File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed
Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1616
1717``` c++
1818#include < iostream>
19- #include < encoding /string.hpp>
19+ #include < ext /string.hpp>
2020
2121using std::string_view_literals::operator " " sv;
2222
2323int main () {
24- std::wcout << encoding ::to_wstring("Hello world!"sv) << std::endl;
24+ std::wcout << ext ::to_wstring("Hello world!"sv) << std::endl;
2525 return 0;
2626}
2727```
@@ -30,7 +30,7 @@ int main() {
3030
3131``` c++
3232#define PAINFUL_CPP_STRING_CONVERSION_NAMESPACE foo
33- #include <encoding /string.hpp>
33+ #include <ext /string.hpp>
3434```
3535
3636## 互转表格
Original file line number Diff line number Diff line change @@ -16,12 +16,12 @@ You can convert strings through the following API:
1616
1717``` c++
1818#include < iostream>
19- #include < encoding /string.hpp>
19+ #include < ext /string.hpp>
2020
2121using std::string_view_literals::operator " " sv;
2222
2323int main () {
24- std::wcout << encoding ::to_wstring("Hello world!"sv) << std::endl;
24+ std::wcout << ext ::to_wstring("Hello world!"sv) << std::endl;
2525 return 0;
2626}
2727```
@@ -30,7 +30,7 @@ You can customize namespace:
3030
3131``` c++
3232#define PAINFUL_CPP_STRING_CONVERSION_NAMESPACE foo
33- #include <encoding /string.hpp>
33+ #include <ext /string.hpp>
3434```
3535
3636## Conversion matrix
Original file line number Diff line number Diff line change 33// Author: 璀境石 (GitHub: @Demonese / @chuikingshek)
44#pragma once
55
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
88
99#ifndef PAINFUL_CPP_STRING_CONVERSION_NAMESPACE
1010#define PAINFUL_CPP_STRING_CONVERSION_NAMESPACE ext
Original file line number Diff line number Diff line change 33// Author: 璀境石 (GitHub: @Demonese / @chuikingshek)
44#pragma once
55
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
88
99#ifndef PAINFUL_CPP_STRING_CONVERSION_NAMESPACE
1010#define PAINFUL_CPP_STRING_CONVERSION_NAMESPACE ext
You can’t perform that action at this time.
0 commit comments