File tree 4 files changed +10
-10
lines changed
4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 16
16
17
17
``` c++
18
18
#include < iostream>
19
- #include < encoding /string.hpp>
19
+ #include < ext /string.hpp>
20
20
21
21
using std::string_view_literals::operator " " sv;
22
22
23
23
int main () {
24
- std::wcout << encoding ::to_wstring("Hello world!"sv) << std::endl;
24
+ std::wcout << ext ::to_wstring("Hello world!"sv) << std::endl;
25
25
return 0;
26
26
}
27
27
```
@@ -30,7 +30,7 @@ int main() {
30
30
31
31
``` c++
32
32
#define PAINFUL_CPP_STRING_CONVERSION_NAMESPACE foo
33
- #include <encoding /string.hpp>
33
+ #include <ext /string.hpp>
34
34
```
35
35
36
36
## 互转表格
Original file line number Diff line number Diff line change @@ -16,12 +16,12 @@ You can convert strings through the following API:
16
16
17
17
``` c++
18
18
#include < iostream>
19
- #include < encoding /string.hpp>
19
+ #include < ext /string.hpp>
20
20
21
21
using std::string_view_literals::operator " " sv;
22
22
23
23
int main () {
24
- std::wcout << encoding ::to_wstring("Hello world!"sv) << std::endl;
24
+ std::wcout << ext ::to_wstring("Hello world!"sv) << std::endl;
25
25
return 0;
26
26
}
27
27
```
@@ -30,7 +30,7 @@ You can customize namespace:
30
30
31
31
``` c++
32
32
#define PAINFUL_CPP_STRING_CONVERSION_NAMESPACE foo
33
- #include <encoding /string.hpp>
33
+ #include <ext /string.hpp>
34
34
```
35
35
36
36
## Conversion matrix
Original file line number Diff line number Diff line change 3
3
// Author: 璀境石 (GitHub: @Demonese / @chuikingshek)
4
4
#pragma once
5
5
6
- #ifndef PAINFUL_CPP_STRING_CONVERSION_ENCODING_STRING_H
7
- #define PAINFUL_CPP_STRING_CONVERSION_ENCODING_STRING_H
6
+ #ifndef PAINFUL_CPP_STRING_CONVERSION_EXT_STRING_H
7
+ #define PAINFUL_CPP_STRING_CONVERSION_EXT_STRING_H
8
8
9
9
#ifndef PAINFUL_CPP_STRING_CONVERSION_NAMESPACE
10
10
#define PAINFUL_CPP_STRING_CONVERSION_NAMESPACE ext
Original file line number Diff line number Diff line change 3
3
// Author: 璀境石 (GitHub: @Demonese / @chuikingshek)
4
4
#pragma once
5
5
6
- #ifndef PAINFUL_CPP_STRING_CONVERSION_ENCODING_STRING_VIEW_H
7
- #define PAINFUL_CPP_STRING_CONVERSION_ENCODING_STRING_VIEW_H
6
+ #ifndef PAINFUL_CPP_STRING_CONVERSION_EXT_STRING_VIEW_H
7
+ #define PAINFUL_CPP_STRING_CONVERSION_EXT_STRING_VIEW_H
8
8
9
9
#ifndef PAINFUL_CPP_STRING_CONVERSION_NAMESPACE
10
10
#define PAINFUL_CPP_STRING_CONVERSION_NAMESPACE ext
You can’t perform that action at this time.
0 commit comments