File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1232,7 +1232,7 @@ Sleep(MilliSeconds(3));
1232
1232
this_thread::sleep_for(chrono::seconds(3));
1233
1233
```
1234
1234
1235
- 如果你 ` using namespace std::literials ; ` 还可以这样快捷地创建字面量:
1235
+ 如果你 ` using namespace std::literals ; ` 还可以这样快捷地创建字面量:
1236
1236
``` cpp
1237
1237
this_thread::sleep_for (3ms); // 3 毫秒
1238
1238
this_thread::sleep_for(3s); // 3 秒
Original file line number Diff line number Diff line change @@ -3051,10 +3051,10 @@ QString str = codec->toUnicode(bytes);
3051
3051
#### 字符串常量
3052
3052
3053
3053
```cpp
3054
- QString str = QStringLiterial ("你好,世界");
3054
+ QString str = QStringLiteral ("你好,世界");
3055
3055
```
3056
3056
3057
- ` QStringLiterial ` 可以保证,转换时采用的是所谓“运行字符集”(实际应该叫字面量字符编码),也就是我们开发者电脑上的“区域设置”,是编译期确定的。而如果写 ` QString::fromLocal8Bits("") ` 就变成 “ANSI”,客户的“区域设置”了。这两个字符编码,比如在之前跨国 galgame 的案例中,就是不同的。
3057
+ ` QStringLiteral ` 可以保证,转换时采用的是所谓“运行字符集”(实际应该叫字面量字符编码),也就是我们开发者电脑上的“区域设置”,是编译期确定的。而如果写 ` QString::fromLocal8Bits("") ` 就变成 “ANSI”,客户的“区域设置”了。这两个字符编码,比如在之前跨国 galgame 的案例中,就是不同的。
3058
3058
3059
3059
#### QTextStream
3060
3060
You can’t perform that action at this time.
0 commit comments