docs: update containers API docs
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
|
||||
**类型**: `class`
|
||||
|
||||
**头文件**: `XCEngine/Containers/String.h`
|
||||
|
||||
**描述**: 动态字符串类,提供 UTF-8 编码的字符串操作。
|
||||
|
||||
## 概述
|
||||
@@ -30,9 +32,9 @@
|
||||
| [Destructor](destructor.md) | 析构函数 |
|
||||
| [operator=](operator-assign.md) | 赋值运算符 |
|
||||
| [operator+=](operator-plus-assign.md) | 追加字符串/字符 |
|
||||
| [operator+](../string/operator-plus.md) | 字符串连接 |
|
||||
| [operator==](../string/operator-equal.md) | 判断两个字符串是否相等 |
|
||||
| [operator!=](../string/operator-equal.md) | 判断两个字符串是否不相等 |
|
||||
| [operator+](operator-plus.md) | 字符串连接 |
|
||||
| [operator==](operator-equal.md) | 判断两个字符串是否相等 |
|
||||
| [operator!=](operator-equal.md) | 判断两个字符串是否不相等 |
|
||||
| [Substring](substring.md) | 获取子串 |
|
||||
| [Trim](trim.md) | 去除首尾空白 |
|
||||
| [ToLower/ToUpper](to-lower-upper.md) | 大小写转换 |
|
||||
@@ -92,7 +94,7 @@ bool hasPrefix = str.StartsWith("Hello");
|
||||
bool hasSuffix = str.EndsWith("!");
|
||||
|
||||
// 查找
|
||||
SizeType pos = str.Find("World"); // 返回 7
|
||||
XCEngine::Containers::String::SizeType pos = str.Find("World"); // 返回 6
|
||||
|
||||
// 转换
|
||||
Containers::String upper = str.ToUpper();
|
||||
|
||||
Reference in New Issue
Block a user