Skip to content

Commit 486a142

Browse files
committed
3.0.0, code review
1 parent 15e494a commit 486a142

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

README.ZH.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616

1717
```c++
1818
#include <iostream>
19-
#include <encoding/string.hpp>
19+
#include <ext/string.hpp>
2020

2121
using std::string_view_literals::operator""sv;
2222

2323
int 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
## 互转表格

README.md

+3-3
Original file line numberDiff line numberDiff 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

2121
using std::string_view_literals::operator""sv;
2222

2323
int 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

include/ext/string.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
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

include/ext/string_view.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
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

0 commit comments

Comments
 (0)