YSTest: ystring.cpp 源文件

YSTest PreAlpha_b800_20170810 The YSLib Test Project

- 首页
- 相关页面
- 模块
- 命名空间
- 类
- 文件

- 文件列表
- 文件成员

ystring.cpp
浏览该文件的文档.
1 /*
2 © 2010-2013 FrankHB.
3
4 This file is part of the YSLib project, and may only be used,
5 modified, and distributed under the terms of the YSLib project
6 license, LICENSE.TXT. By continuing to use, modify, or distribute
7 this file you indicate that you have read the license and
8 understand and accept it fully.
9 */
10
28 #include "YSLib/Core/YModules.h"
29 #include YFM_YSLib_Core_YString
30
31 namespace YSLib
32 {
33
34 namespace Text
35 {
36
37 String&
38 String::operator*=(size_t n)
39 {
40 switch(n)
41 {
42 case 0:
43 clear();
44 case 1:
45 break;
46 default:
47 reserve(length() * n);
48 ystdex::concat(*this, n);
49 }
50 return *this;
51 }
52
53 } // namespace Text;
54
55 } // namespace YSLib;
56
NPL::SXML::ParseOption::String
YSLib
YSLib 命名空间。
Definition: AndroidHost.h:45
Text
ystdex::concat
void concat(_tCon &con, _tIn first, _tIn last)
插入元素到容器末尾。
Definition: container.hpp:436
YModules.h