mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
License fixes
git-svn-id: svn://ultimatepp.org/upp/trunk@501 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
99c0a588a6
commit
d148c48f07
569 changed files with 19215 additions and 265210 deletions
|
|
@ -1,15 +1,14 @@
|
|||
topic "[W]String and [W]StringBuffer";
|
||||
topic "[W]String and [W]StringBuffer";
|
||||
[2 $$0,0#00000000000000000000000000000000:Default]
|
||||
[i448;a25;kKO9;*@(64)2 $$1,0#37138531426314131252341829483380:class]
|
||||
[l288;2 $$2,2#27521748481378242620020725143825:desc]
|
||||
[a83;*R6 $$3,0#31310162474203024125188417583966:caption]
|
||||
[l288;i1121;b17;O9;~~~.1408;2 $$4,0#10431211400427159095818037425705:param]
|
||||
[i448;a25;kKO9;*@(64)2 $$5,0#37138531426314131252341829483370:item]
|
||||
[*+117 $$6,6#14700283458701402223321329925657:header]
|
||||
[l416;2 $$7,7#55548704457842300043401641954952:nested`-desc]
|
||||
[l288;i448;a25;kO9;*2 $$8,8#64691275497409617375831514634295:nested`-class]
|
||||
[i448;a25;kKO9;2 $$1,0#37138531426314131252341829483380:class]
|
||||
[l288;2 $$2,0#27521748481378242620020725143825:desc]
|
||||
[0 $$3,0#96390100711032703541132217272105:end]
|
||||
[H6;0 $$4,0#05600065144404261032431302351956:begin]
|
||||
[i448;a25;kKO9;2 $$5,0#37138531426314131252341829483370:item]
|
||||
[l288;a17;*@5;1 $$6,6#70004532496200323422659154056402:requirement]
|
||||
[l288;i1121;b17;O9;~~~.1408;2 $$7,0#10431211400427159095818037425705:param]
|
||||
[{_}%EN-US
|
||||
[s3; `[W`]String and `[W`]StringBuffer&]
|
||||
[s0; `[W`]String and `[W`]StringBuffer&]
|
||||
[s0; `[W`]String is a value class that contains an array of characters
|
||||
(or bytes in case of String). It is designed to have fast copy
|
||||
operations. The array of characters is zero terminated. String
|
||||
|
|
@ -23,243 +22,262 @@ buffer.&]
|
|||
[s0;@(0.0.255) &]
|
||||
[s0;%- [*+117 `[W`]String common methods]&]
|
||||
[s0;@(0.0.255) &]
|
||||
[s5;K:`:`:AString`:`:Remove`(int`,int`):%- [@(0.0.255) void]_[@0 Remove]([@(0.0.255) int]_[@3 a
|
||||
t], [@(0.0.255) int]_[@3 count]_`=_[@3 1])&]
|
||||
[s5;K:`:`:AString`:`:Remove`(int`,int`):%- [@(0.0.255) void][@(64) _]Remove[@(64) (][@(0.0.255) i
|
||||
nt][@(64) _][@3 at][@(64) , ][@(0.0.255) int][@(64) _][@3 count][@(64) _`=_][@3 1][@(64) )]&]
|
||||
[s2; Removes [%-*@3 count] element starting at position [%-*@3 at].&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:AString`:`:Set`(int`,int`):%- [@(0.0.255) void]_[@0 Set]([@(0.0.255) int]_[@3 at],
|
||||
[@(0.0.255) int]_[@3 chr])&]
|
||||
[s5;K:`:`:AString`:`:Set`(int`,int`):%- [@(0.0.255) void][@(64) _]Set[@(64) (][@(0.0.255) int
|
||||
][@(64) _][@3 at][@(64) , ][@(0.0.255) int][@(64) _][@3 chr][@(64) )]&]
|
||||
[s2; Replace character at position [%-*@3 at] with [%-*@3 chr].&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:AString`:`:Trim`(int`):%- [@(0.0.255) void]_[@0 Trim]([@(0.0.255) int]_[@3 at])&]
|
||||
[s5;K:`:`:AString`:`:Trim`(int`):%- [@(0.0.255) void][@(64) _]Trim[@(64) (][@(0.0.255) int][@(64) _
|
||||
][@3 at][@(64) )]&]
|
||||
[s2; Sets the number of characters (length) to [%-*@3 at].&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:AString`:`:GetLength`(`)const:%- [@(0.0.255) int]_[@0 GetLength]()_[@(0.0.255) co
|
||||
nst]&]
|
||||
[s5;K:`:`:AString`:`:GetCount`(`)const:%- [@(0.0.255) int]_[@0 GetCount]()_[@(0.0.255) cons
|
||||
t]&]
|
||||
[s5;K:`:`:AString`:`:GetLength`(`)const:%- [@(0.0.255) int][@(64) _]GetLength[@(64) ()_][@(0.0.255) c
|
||||
onst]&]
|
||||
[s5;K:`:`:AString`:`:GetCount`(`)const:%- [@(0.0.255) int][@(64) _]GetCount[@(64) ()_][@(0.0.255) c
|
||||
onst]&]
|
||||
[s2; Returns the number of characters.&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:AString`:`:IsEmpty`(`)const:%- [@(0.0.255) bool]_[@0 IsEmpty]()_[@(0.0.255) const
|
||||
]&]
|
||||
[s5;K:`:`:AString`:`:IsEmpty`(`)const:%- [@(0.0.255) bool][@(64) _]IsEmpty[@(64) ()_][@(0.0.255) c
|
||||
onst]&]
|
||||
[s2; Same as GetCount() `=`= 0.&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:AString`:`:Find`(int`,int`)const:%- [@(0.0.255) int]_[@0 Find]([@(0.0.255) int]_[@3 c
|
||||
hr], [@(0.0.255) int]_[@3 from]_`=_[@3 0])_[@(0.0.255) const]&]
|
||||
[s5;K:`:`:AString`:`:Find`(int`,int`)const:%- [@(0.0.255) int][@(64) _]Find[@(64) (][@(0.0.255) i
|
||||
nt][@(64) _][@3 chr][@(64) , ][@(0.0.255) int][@(64) _][@3 from][@(64) _`=_][@3 0][@(64) )_][@(0.0.255) c
|
||||
onst]&]
|
||||
[s2; Returns a position of character equal to [%-*@3 chr] greater or
|
||||
equal to [%-*@3 from], or `-1 if not found.&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:AString`:`:ReverseFind`(int`,int`)const:%- [@(0.0.255) int]_[@0 ReverseFind]([@(0.0.255) i
|
||||
nt]_[@3 chr], [@(0.0.255) int]_[@3 from])_[@(0.0.255) const]&]
|
||||
[s5;K:`:`:AString`:`:ReverseFind`(int`,int`)const:%- [@(0.0.255) int][@(64) _]ReverseFind
|
||||
[@(64) (][@(0.0.255) int][@(64) _][@3 chr][@(64) , ][@(0.0.255) int][@(64) _][@3 from][@(64) )_][@(0.0.255) c
|
||||
onst]&]
|
||||
[s2; Returns a position of [/ last] character equal to [%-*@3 chr] lower
|
||||
or equal to [%-*@3 from], or `-1 if not found.&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:AString`:`:ReverseFind`(int`)const:%- [@(0.0.255) int]_[@0 ReverseFind]([@(0.0.255) i
|
||||
nt]_[@3 chr])_[@(0.0.255) const]&]
|
||||
[s5;K:`:`:AString`:`:ReverseFind`(int`)const:%- [@(0.0.255) int][@(64) _]ReverseFind[@(64) (
|
||||
][@(0.0.255) int][@(64) _][@3 chr][@(64) )_][@(0.0.255) const]&]
|
||||
[s2; Returns a position of [/ last] character equal to [%-*@3 chr], or
|
||||
`-1 if not found.&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:AString`:`:Find`(int`,const T`*`,int`)const:%- [@(0.0.255) int]_[@0 Find]([@(0.0.255) i
|
||||
nt]_[@3 len], [@(0.0.255) const_`[w`]char]_`*[@3 s], [@(0.0.255) int]_[@3 from])_[@(0.0.255) c
|
||||
onst]&]
|
||||
[s5;K:`:`:AString`:`:Find`(int`,const T`*`,int`)const:%- [@(0.0.255) int][@(64) _]Find[@(64) (
|
||||
][@(0.0.255) int][@(64) _][@3 len][@(64) , ][@(0.0.255) const_`[w`]char][@(64) _`*][@3 s][@(64) ,
|
||||
][@(0.0.255) int][@(64) _][@3 from][@(64) )_][@(0.0.255) const]&]
|
||||
[s2; Returns a position of substring of [%-*@3 len] characters [%-*@3 s]
|
||||
greater or equal to [%-*@3 from], or `-1 if not found.&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:AString`:`:Find`(const T`*`,int`)const:%- [@(0.0.255) int]_[@0 Find]([@(0.0.255) c
|
||||
onst]_[@(0.0.255) `[w`]char]_`*[@3 s], [@(0.0.255) int]_[@3 from]_`=_[@3 0])_[@(0.0.255) cons
|
||||
t]&]
|
||||
[s5;K:`:`:AString`:`:Find`(const T`*`,int`)const:%- [@(0.0.255) int][@(64) _]Find[@(64) (][@(0.0.255) c
|
||||
onst][@(64) _][@(0.0.255) `[w`]char][@(64) _`*][@3 s][@(64) , ][@(0.0.255) int][@(64) _][@3 from][@(64) _
|
||||
`=_][@3 0][@(64) )_][@(0.0.255) const]&]
|
||||
[s2; Same as Find(strlen(s), s, from).&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:AString`:`:Find`(const S`&`,int`)const:%- [@(0.0.255) int]_[@0 Find]([@(0.0.255) c
|
||||
onst]_[@0 `[W`]String]`&_[@3 s], [@(0.0.255) int]_[@3 from]_`=_[@3 0])_[@(0.0.255) const]&]
|
||||
[s5;K:`:`:AString`:`:Find`(const S`&`,int`)const:%- [@(0.0.255) int][@(64) _]Find[@(64) (][@(0.0.255) c
|
||||
onst][@(64) _]`[W`]String[@(64) `&_][@3 s][@(64) , ][@(0.0.255) int][@(64) _][@3 from][@(64) _`=_
|
||||
][@3 0][@(64) )_][@(0.0.255) const]&]
|
||||
[s2; Same as Find(s.GetLength(), s, from). &]
|
||||
[s0; &]
|
||||
[s5;K:`:`:AString`:`:StartsWith`(const T`*`,int`)const:%- [@(0.0.255) bool]_[@0 StartsWit
|
||||
h]([@(0.0.255) const]_[@(0.0.255) `[w`]char]_`*[@3 s], [@(0.0.255) int]_[@3 len])_[@(0.0.255) c
|
||||
onst]&]
|
||||
[s5;K:`:`:AString`:`:StartsWith`(const T`*`,int`)const:%- [@(0.0.255) bool][@(64) _]Start
|
||||
sWith[@(64) (][@(0.0.255) const][@(64) _][@(0.0.255) `[w`]char][@(64) _`*][@3 s][@(64) ,
|
||||
][@(0.0.255) int][@(64) _][@3 len][@(64) )_][@(0.0.255) const]&]
|
||||
[s2; Returns true if string [/ starts] with [%-*@3 len] characters [%-*@3 s].&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:AString`:`:StartsWith`(const T`*`)const:%- [@(0.0.255) bool]_[@0 StartsWith]([@(0.0.255) c
|
||||
onst]_[@(0.0.255) `[w`]char]_`*[@3 s])_[@(0.0.255) const]&]
|
||||
[s5;K:`:`:AString`:`:StartsWith`(const T`*`)const:%- [@(0.0.255) bool][@(64) _]StartsWith
|
||||
[@(64) (][@(0.0.255) const][@(64) _][@(0.0.255) `[w`]char][@(64) _`*][@3 s][@(64) )_][@(0.0.255) c
|
||||
onst]&]
|
||||
[s2; Same as StartsWith(s, strlen(s)).&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:AString`:`:StartsWith`(const S`&`)const:%- [@(0.0.255) bool]_[@0 StartsWith]([@(0.0.255) c
|
||||
onst]_[@0 `[W`]String]`&_[@3 s])_[@(0.0.255) const]&]
|
||||
[s5;K:`:`:AString`:`:StartsWith`(const S`&`)const:%- [@(0.0.255) bool][@(64) _]StartsWith
|
||||
[@(64) (][@(0.0.255) const][@(64) _]`[W`]String[@(64) `&_][@3 s][@(64) )_][@(0.0.255) const]&]
|
||||
[s2; Same as StartsWith(s, s.GetLength()).&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:AString`:`:EndsWith`(const T`*`,int`)const:%- [@(0.0.255) bool]_[@0 EndsWith]([@(0.0.255) c
|
||||
onst]_[@(0.0.255) `[w`]char]_`*[@3 s], [@(0.0.255) int]_[@3 len])_[@(0.0.255) const]&]
|
||||
[s5;K:`:`:AString`:`:EndsWith`(const T`*`,int`)const:%- [@(0.0.255) bool][@(64) _]EndsWit
|
||||
h[@(64) (][@(0.0.255) const][@(64) _][@(0.0.255) `[w`]char][@(64) _`*][@3 s][@(64) ,
|
||||
][@(0.0.255) int][@(64) _][@3 len][@(64) )_][@(0.0.255) const]&]
|
||||
[s2; Returns true if string [/ ends] with [%-*@3 len] characters [%-*@3 s].&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:AString`:`:EndsWith`(const T`*`)const:%- [@(0.0.255) bool]_[@0 EndsWith]([@(0.0.255) c
|
||||
onst]_[@(0.0.255) `[w`]char]_`*[@3 s])_[@(0.0.255) const]&]
|
||||
[s5;K:`:`:AString`:`:EndsWith`(const T`*`)const:%- [@(0.0.255) bool][@(64) _]EndsWith[@(64) (
|
||||
][@(0.0.255) const][@(64) _][@(0.0.255) `[w`]char][@(64) _`*][@3 s][@(64) )_][@(0.0.255) const]&]
|
||||
[s2; Same as EndsWith(s, strlen(s)).&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:AString`:`:EndsWith`(const S`&`)const:%- [@(0.0.255) bool]_[@0 EndsWith]([@(0.0.255) c
|
||||
onst]_[@0 `[W`]String]`&_[@3 s])_[@(0.0.255) const]&]
|
||||
[s5;K:`:`:AString`:`:EndsWith`(const S`&`)const:%- [@(0.0.255) bool][@(64) _]EndsWith[@(64) (
|
||||
][@(0.0.255) const][@(64) _]`[W`]String[@(64) `&_][@3 s][@(64) )_][@(0.0.255) const]&]
|
||||
[s2; Same as EndsWith(s, s.GetLength()).&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:AString`:`:Clear`(`):%- [@(0.0.255) void]_[@0 Clear]()&]
|
||||
[s5;K:`:`:AString`:`:Clear`(`):%- [@(0.0.255) void][@(64) _]Clear[@(64) ()]&]
|
||||
[s2; Empties the string.&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:AString`:`:Shrink`(`):%- [@(0.0.255) void]_[@0 Shrink]()&]
|
||||
[s5;K:`:`:AString`:`:Shrink`(`):%- [@(0.0.255) void][@(64) _]Shrink[@(64) ()]&]
|
||||
[s2; Reduces memory used by string to minimum (size optimization).&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:AString`:`:Reserve`(int`):%- [@(0.0.255) void]_[@0 Reserve]([@(0.0.255) int]_[@3 le
|
||||
n])&]
|
||||
[s5;K:`:`:AString`:`:Reserve`(int`):%- [@(0.0.255) void][@(64) _]Reserve[@(64) (][@(0.0.255) i
|
||||
nt][@(64) _][@3 len][@(64) )]&]
|
||||
[s2; Preallocates enough memory to hold [%-*@3 len] (speed optimization).&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:AString`:`:Begin`(`)const:%- [@(0.0.255) const]_[@(0.0.255) `[w`]char]_`*[@0 Begi
|
||||
n]()_[@(0.0.255) const]&]
|
||||
[s5;K:`:`:AString`:`:Begin`(`)const:%- [@(0.0.255) const][@(64) _][@(0.0.255) `[w`]char][@(64) _
|
||||
`*]Begin[@(64) ()_][@(0.0.255) const]&]
|
||||
[s2; Returns a pointer to the first character.&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:AString`:`:End`(`)const:%- [@(0.0.255) const]_[@(0.0.255) `[w`]char]_`*[@0 End]()
|
||||
_[@(0.0.255) const]&]
|
||||
[s5;K:`:`:AString`:`:End`(`)const:%- [@(0.0.255) const][@(64) _][@(0.0.255) `[w`]char][@(64) _
|
||||
`*]End[@(64) ()_][@(0.0.255) const]&]
|
||||
[s2; Returns a pointer to the ending zero.&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:AString`:`:Last`(`)const:%- [@(0.0.255) const]_[@(0.0.255) `[w`]char]_`*[@0 Last](
|
||||
)_[@(0.0.255) const]&]
|
||||
[s5;K:`:`:AString`:`:Last`(`)const:%- [@(0.0.255) const][@(64) _][@(0.0.255) `[w`]char][@(64) _
|
||||
`*]Last[@(64) ()_][@(0.0.255) const]&]
|
||||
[s2; Returns a pointer to the last character or to the ending zero
|
||||
if there are no characters in string.&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:Cat`(int`):%- [@(0.0.255) void]_[@0 Cat]([@(0.0.255) int]_[@3 c])&]
|
||||
[s5;K:`:`:String`:`:operator`+`=`(char`):%- [@(0.0.255) const]_[^`:`:String^ String]`&_[@0 o
|
||||
perator`+`=]([@(0.0.255) `[w`]char]_[@3 c])&]
|
||||
[s5;K:`:`:String`:`:Cat`(int`):%- [@(0.0.255) void][@(64) _]Cat[@(64) (][@(0.0.255) int][@(64) _
|
||||
][@3 c][@(64) )]&]
|
||||
[s5;K:`:`:String`:`:operator`+`=`(char`):%- [@(0.0.255) const][@(64) _][^`:`:String^@(64) S
|
||||
tring][@(64) `&_]operator`+`=[@(64) (][@(0.0.255) `[w`]char][@(64) _][@3 c][@(64) )]&]
|
||||
[s2; Appends single character. This operations has constant amortized
|
||||
time (in other words, internal space used by implementation grows
|
||||
exponentially, like with Vector or std`::vector).&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:Cat`(const char`*`):%- [@(0.0.255) void]_[@0 Cat]([@(0.0.255) const]_[@(0.0.255) `[
|
||||
w`]char]_`*[@3 s])&]
|
||||
[s5;K:`:`:String`:`:operator`+`=`(const char`*`):%- [@(0.0.255) const]_[^`:`:String^ `[W`]
|
||||
String]`&_[@0 operator`+`=]([@(0.0.255) const]_[@(0.0.255) `[w`]char]_`*[@3 s])&]
|
||||
[s5;K:`:`:String`:`:Cat`(const char`*`):%- [@(0.0.255) void][@(64) _]Cat[@(64) (][@(0.0.255) c
|
||||
onst][@(64) _][@(0.0.255) `[w`]char][@(64) _`*][@3 s][@(64) )]&]
|
||||
[s5;K:`:`:String`:`:operator`+`=`(const char`*`):%- [@(0.0.255) const][@(64) _][^`:`:String^@(64) `[
|
||||
W`]String][@(64) `&_]operator`+`=[@(64) (][@(0.0.255) const][@(64) _][@(0.0.255) `[w`]char][@(64) _
|
||||
`*][@3 s][@(64) )]&]
|
||||
[s2; Appends a zero terminated string.&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:Cat`(const`:`:String`&`):%- [@(0.0.255) void]_[@0 Cat]([@(0.0.255) cons
|
||||
t]_[^`:`:String^ `[W`]String]`&_[@3 s])&]
|
||||
[s5;K:`:`:String`:`:operator`+`=`(const`:`:String`&`):%- [@(0.0.255) const]_[^`:`:String^ `[
|
||||
W`]String]`&_[@0 operator`+`=]([@(0.0.255) const]_[^`:`:String^ `[W`]String]`&_[@3 s])&]
|
||||
[s5;K:`:`:String`:`:Cat`(const`:`:String`&`):%- [@(0.0.255) void][@(64) _]Cat[@(64) (][@(0.0.255) c
|
||||
onst][@(64) _][^`:`:String^@(64) `[W`]String][@(64) `&_][@3 s][@(64) )]&]
|
||||
[s5;K:`:`:String`:`:operator`+`=`(const`:`:String`&`):%- [@(0.0.255) const][@(64) _][^`:`:String^@(64) `[
|
||||
W`]String][@(64) `&_]operator`+`=[@(64) (][@(0.0.255) const][@(64) _][^`:`:String^@(64) `[W
|
||||
`]String][@(64) `&_][@3 s][@(64) )]&]
|
||||
[s2; Appends another strings.&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:Cat`(int`,int`):%- [@(0.0.255) void]_[@0 Cat]([@(0.0.255) int]_[@3 c],
|
||||
[@(0.0.255) int]_[@3 count])&]
|
||||
[s5;K:`:`:String`:`:Cat`(int`,int`):%- [@(0.0.255) void][@(64) _]Cat[@(64) (][@(0.0.255) int][@(64) _
|
||||
][@3 c][@(64) , ][@(0.0.255) int][@(64) _][@3 count][@(64) )]&]
|
||||
[s2; Appends character [%-*@3 c] [%-*@3 count] times.&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:Cat`(const char`*`,int`):%- [@(0.0.255) void]_[@0 Cat]([@(0.0.255) cons
|
||||
t]_[@(0.0.255) char]_`*[@3 s], [@(0.0.255) int]_[@3 len])&]
|
||||
[s5;K:`:`:String`:`:Cat`(const char`*`,int`):%- [@(0.0.255) void][@(64) _]Cat[@(64) (][@(0.0.255) c
|
||||
onst][@(64) _][@(0.0.255) char][@(64) _`*][@3 s][@(64) , ][@(0.0.255) int][@(64) _][@3 len][@(64) )
|
||||
]&]
|
||||
[s2; Appends string [%-*@3 s] with [%-*@3 len]. (There can be zeros in
|
||||
[%-*@3 s]).&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:Cat`(const char`*`,const char`*`):%- [@(0.0.255) void]_[@0 Cat]([@(0.0.255) c
|
||||
onst]_[@(0.0.255) `[w`]char]_`*[@3 s], [@(0.0.255) const]_[@(0.0.255) `[w`]char]_`*[@3 lim])
|
||||
&]
|
||||
[s5;K:`:`:String`:`:Cat`(const char`*`,const char`*`):%- [@(0.0.255) void][@(64) _]Cat[@(64) (
|
||||
][@(0.0.255) const][@(64) _][@(0.0.255) `[w`]char][@(64) _`*][@3 s][@(64) ,
|
||||
][@(0.0.255) const][@(64) _][@(0.0.255) `[w`]char][@(64) _`*][@3 lim][@(64) )]&]
|
||||
[s2; Same as Cat([%-*@3 s], [%-*@3 lim] `- [%-*@3 s]).&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:Cat`(const`:`:String`&`,int`):%- [@(0.0.255) void]_[@0 Cat]([@(0.0.255) c
|
||||
onst]_[^`:`:String^ `[W`]String]`&_[@3 s], [@(0.0.255) int]_[@3 len])&]
|
||||
[s5;K:`:`:String`:`:Cat`(const`:`:String`&`,int`):%- [@(0.0.255) void][@(64) _]Cat[@(64) (][@(0.0.255) c
|
||||
onst][@(64) _][^`:`:String^@(64) `[W`]String][@(64) `&_][@3 s][@(64) ,
|
||||
][@(0.0.255) int][@(64) _][@3 len][@(64) )]&]
|
||||
[s2; Appends [%-*@3 len] characters from [%-*@3 s].&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:Cat`(`):%- [^`:`:String^ `[W`]String]`&_[@0 Cat]()&]
|
||||
[s5;K:`:`:String`:`:Cat`(`):%- [^`:`:String^ `[W`]String]`&_Cat[@(64) ()]&]
|
||||
[s2; Returns `*this. This very specific functions is used to create
|
||||
strings `"in`-place`" when calling other functions, e.g. Foo(String().Cat()
|
||||
<< a << `" `= `" << b). Note that simple Foo(String() << a <<
|
||||
`" `= `" << b) does not work with standard C`+`+ as you cannot
|
||||
pass temporary as non`-const parameter of `"<<`".&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:operator`=`(const char`*`):%- [^`:`:String^ `[W`]String]`&_[@0 operat
|
||||
or`=]([@(0.0.255) const]_[@(0.0.255) `[w`]char]_`*[@3 s])&]
|
||||
[s5;K:`:`:String`:`:operator`=`(const char`*`):%- [^`:`:String^ `[W`]String]`&_operator
|
||||
`=[@(64) (][@(0.0.255) const][@(64) _][@(0.0.255) `[w`]char][@(64) _`*][@3 s][@(64) )]&]
|
||||
[s2; Assigns zero terminated string.&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:operator`=`(const`:`:String`&`):%- [^`:`:String^ `[W`]String]`&_[@0 o
|
||||
perator`=]([@(0.0.255) const]_[^`:`:String^ `[W`]String]`&_[@3 s])&]
|
||||
[s5;K:`:`:String`:`:operator`=`(const`:`:String`&`):%- [^`:`:String^ `[W`]String]`&_ope
|
||||
rator`=[@(64) (][@(0.0.255) const][@(64) _][^`:`:String^@(64) `[W`]String][@(64) `&_][@3 s][@(64) )
|
||||
]&]
|
||||
[s2; Assigns another string. This operations is relatively fast and
|
||||
does not depend on the length of string.&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:operator`=`(`:`:String`:`:Buffer`&`):%- [^`:`:String^ String]`&_[@0 o
|
||||
perator`=]([^`:`:String`:`:Buffer^ `[W`]StringBuffer]`&_[@3 b])&]
|
||||
[s5;K:`:`:String`:`:operator`=`(`:`:String`:`:Buffer`&`):%- [^`:`:String^ String]`&_ope
|
||||
rator`=[@(64) (][^`:`:String`:`:Buffer^@(64) `[W`]StringBuffer][@(64) `&_][@3 b][@(64) )]&]
|
||||
[s2; Assigns the content of `[W`]StringBuffer. After the operation,
|
||||
sources is empty.&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:operator`<`<`=`(const`:`:String`&`):%- [^`:`:String^ String]`&_[@0 op
|
||||
erator<<`=]([@(0.0.255) const]_[^`:`:String^ String]`&_[@3 s])&]
|
||||
[s5;K:`:`:String`:`:operator`<`<`=`(const`:`:String`&`):%- [^`:`:String^ String]`&_oper
|
||||
ator<<`=[@(64) (][@(0.0.255) const][@(64) _][^`:`:String^@(64) String][@(64) `&_][@3 s][@(64) )
|
||||
]&]
|
||||
[s2; `"Deep`" assignment. It is equivalent of standard assignment
|
||||
followed by Shrink operation (in other words, internal buffer
|
||||
gets reallocated to the exact size of source).&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:Insert`(int`,int`):%- [@(0.0.255) void]_[@0 Insert]([@(0.0.255) int]_[@3 a
|
||||
t], [@(0.0.255) int]_[@3 c])&]
|
||||
[s5;K:`:`:String`:`:Insert`(int`,int`):%- [@(0.0.255) void][@(64) _]Insert[@(64) (][@(0.0.255) i
|
||||
nt][@(64) _][@3 at][@(64) , ][@(0.0.255) int][@(64) _][@3 c][@(64) )]&]
|
||||
[s2; Insert character [%-*@3 c] at position [%-*@3 at].&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:Insert`(int`,const`:`:String`&`):%- [@(0.0.255) void]_[@0 Insert]([@(0.0.255) i
|
||||
nt]_[@3 at], [@(0.0.255) const]_[^`:`:String`:`:Buffer^ `[W`]][^`:`:String^ String]`&_[@3 s
|
||||
])&]
|
||||
[s5;K:`:`:String`:`:Insert`(int`,const`:`:String`&`):%- [@(0.0.255) void][@(64) _]Insert[@(64) (
|
||||
][@(0.0.255) int][@(64) _][@3 at][@(64) , ][@(0.0.255) const][@(64) _][^`:`:String`:`:Buffer^@(64) `[
|
||||
W`]][^`:`:String^@(64) String][@(64) `&_][@3 s][@(64) )]&]
|
||||
[s2; Insert character [%-*@3 s] at position [%-*@3 at].&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:Insert`(int`,const char`*`,int`):%- [@(0.0.255) void]_[@0 Insert]([@(0.0.255) i
|
||||
nt]_[@3 at], [@(0.0.255) const]_[@(0.0.255) `[w`]char]_`*[@3 s], [@(0.0.255) int]_[@3 l])&]
|
||||
[s5;K:`:`:String`:`:Insert`(int`,const char`*`,int`):%- [@(0.0.255) void][@(64) _]Insert[@(64) (
|
||||
][@(0.0.255) int][@(64) _][@3 at][@(64) , ][@(0.0.255) const][@(64) _][@(0.0.255) `[w`]char][@(64) _
|
||||
`*][@3 s][@(64) , ][@(0.0.255) int][@(64) _][@3 l][@(64) )]&]
|
||||
[s2; Inserts first [%-*@3 l] characters of [%-*@3 s] at position [%-*@3 at].&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:Insert`(int`,const char`*`):%- [@(0.0.255) void]_[@0 Insert]([@(0.0.255) i
|
||||
nt]_[@3 at], [@(0.0.255) const]_[@(0.0.255) `[w`]char]_`*[@3 s])&]
|
||||
[s5;K:`:`:String`:`:Insert`(int`,const char`*`):%- [@(0.0.255) void][@(64) _]Insert[@(64) (
|
||||
][@(0.0.255) int][@(64) _][@3 at][@(64) , ][@(0.0.255) const][@(64) _][@(0.0.255) `[w`]char][@(64) _
|
||||
`*][@3 s][@(64) )]&]
|
||||
[s2; Inserts zero terminated [%-*@3 s] at position [%-*@3 at].&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:Mid`(int`,int`)const:%- [^`:`:String`:`:Buffer^ `[W`]][^`:`:String^ S
|
||||
tring]_[@0 Mid]([@(0.0.255) int]_[@3 pos], [@(0.0.255) int]_[@3 length])_[@(0.0.255) const]&]
|
||||
tring]_Mid[@(64) (][@(0.0.255) int][@(64) _][@3 pos][@(64) , ][@(0.0.255) int][@(64) _][@3 length
|
||||
][@(64) )_][@(0.0.255) const]&]
|
||||
[s2; Returns the substring starting at [%-*@3 pos] of [%-*@3 length]
|
||||
characters.&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:Mid`(int`)const:%- [^`:`:String`:`:Buffer^ `[W`]][^`:`:String^ String
|
||||
]_[@0 Mid]([@(0.0.255) int]_[@3 pos])_[@(0.0.255) const]&]
|
||||
]_Mid[@(64) (][@(0.0.255) int][@(64) _][@3 pos][@(64) )_][@(0.0.255) const]&]
|
||||
[s2; Inserts a substring starting at [%-*@3 pos] till the end of string.&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:Right`(int`)const:%- [^`:`:String`:`:Buffer^ `[W`]][^`:`:String^ Stri
|
||||
ng]_[@0 Right]([@(0.0.255) int]_[@3 count])_[@(0.0.255) const]&]
|
||||
ng]_Right[@(64) (][@(0.0.255) int][@(64) _][@3 count][@(64) )_][@(0.0.255) const]&]
|
||||
[s2; Returns last [%-*@3 count] characters.&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:Left`(int`)const:%- [^`:`:String`:`:Buffer^ `[W`]][^`:`:String^ Strin
|
||||
g]_[@0 Left]([@(0.0.255) int]_[@3 count])_[@(0.0.255) const]&]
|
||||
g]_Left[@(64) (][@(0.0.255) int][@(64) _][@3 count][@(64) )_][@(0.0.255) const]&]
|
||||
[s2; Returns firs [%-*@3 count] characters (same as Mid(0, [%-*@3 count])).&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:IsEqual`(const`:`:String`&`)const:%- [@(0.0.255) bool]_[@0 IsEqual]([@(0.0.255) c
|
||||
onst]_[^`:`:String`:`:Buffer^ `[W`]][^`:`:String^ String]`&_[@3 s])_[@(0.0.255) const]&]
|
||||
[s5;K:`:`:String`:`:IsEqual`(const`:`:String`&`)const:%- [@(0.0.255) bool][@(64) _]IsEqua
|
||||
l[@(64) (][@(0.0.255) const][@(64) _][^`:`:String`:`:Buffer^@(64) `[W`]][^`:`:String^@(64) S
|
||||
tring][@(64) `&_][@3 s][@(64) )_][@(0.0.255) const]&]
|
||||
[s2; True if strings are equal.&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:IsEqual`(const char`*`)const:%- [@(0.0.255) bool]_[@0 IsEqual]([@(0.0.255) c
|
||||
onst]_[@(0.0.255) `[w`]char]_`*[@3 s])_[@(0.0.255) const]&]
|
||||
[s5;K:`:`:String`:`:IsEqual`(const char`*`)const:%- [@(0.0.255) bool][@(64) _]IsEqual[@(64) (
|
||||
][@(0.0.255) const][@(64) _][@(0.0.255) `[w`]char][@(64) _`*][@3 s][@(64) )_][@(0.0.255) const]&]
|
||||
[s2; True if strings are equal. [%-@3 s] is zero terminated.&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:Compare`(const`:`:String`&`)const:%- [@(0.0.255) int]_[@0 Compare]([@(0.0.255) c
|
||||
onst]_[^`:`:String`:`:Buffer^ `[W`]][^`:`:String^ String]`&_[@3 s])_[@(0.0.255) const]&]
|
||||
[s5;K:`:`:String`:`:Compare`(const`:`:String`&`)const:%- [@(0.0.255) int][@(64) _]Compare
|
||||
[@(64) (][@(0.0.255) const][@(64) _][^`:`:String`:`:Buffer^@(64) `[W`]][^`:`:String^@(64) S
|
||||
tring][@(64) `&_][@3 s][@(64) )_][@(0.0.255) const]&]
|
||||
[s2; Lexicographic comparison, return `-1 if this string is lower,
|
||||
0 for equality, 1 if this string is greater. Individual characters
|
||||
are compared as unsigned integer values.&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:Compare`(const char`*`)const:%- [@(0.0.255) int]_[@0 Compare]([@(0.0.255) c
|
||||
onst]_[@(0.0.255) `[w`]char]_`*[@3 s])_[@(0.0.255) const]&]
|
||||
[s5;K:`:`:String`:`:Compare`(const char`*`)const:%- [@(0.0.255) int][@(64) _]Compare[@(64) (
|
||||
][@(0.0.255) const][@(64) _][@(0.0.255) `[w`]char][@(64) _`*][@3 s][@(64) )_][@(0.0.255) const]&]
|
||||
[s2; Lexicographic comparison with zero terminated [%-*@3 s].&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:operator`~`(`)const:%- [@(0.0.255) const]_[@(0.0.255) `[w`]char]_`*[@0 o
|
||||
perator`~]()_[@(0.0.255) const]&]
|
||||
[s5;K:`:`:String`:`:operator const char`*`(`)const:%- [@0 operator]_[@(0.0.255) const]_[@(0.0.255) `[
|
||||
w`]char]`*()_[@(0.0.255) const]&]
|
||||
[s5;K:`:`:String`:`:operator`~`(`)const:%- [@(0.0.255) const][@(64) _][@(0.0.255) `[w`]char
|
||||
][@(64) _`*]operator`~[@(64) ()_][@(0.0.255) const]&]
|
||||
[s5;K:`:`:String`:`:operator const char`*`(`)const:%- operator[@(64) _][@(0.0.255) const][@(64) _
|
||||
][@(0.0.255) `[w`]char][@(64) `*()_][@(0.0.255) const]&]
|
||||
[s2; Return a immutable pointer to zero terminated sequence of characters
|
||||
with string`'s content (a pointer to String internal buffer).
|
||||
This pointer is only valid until next modifying operation on
|
||||
string (destructor included).&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:operator`*`(`)const:%- [@(0.0.255) int]_[@0 operator`*]()_[@(0.0.255) c
|
||||
[s5;K:`:`:String`:`:operator`*`(`)const:%- [@(0.0.255) int][@(64) _]operator`*[@(64) ()_][@(0.0.255) c
|
||||
onst]&]
|
||||
[s2; Returns first character of string or 0 if string is empty.&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:operator`[`]`(int`)const:%- [@(0.0.255) int]_[@0 operator`[`]]([@(0.0.255) i
|
||||
nt]_[@3 i])_[@(0.0.255) const]&]
|
||||
[s5;K:`:`:String`:`:operator`[`]`(int`)const:%- [@(0.0.255) int][@(64) _]operator`[`][@(64) (
|
||||
][@(0.0.255) int][@(64) _][@3 i][@(64) )_][@(0.0.255) const]&]
|
||||
[s2; Returns [%-*@3 i] character of string.&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:IsVoid`(`)const:%- [@(0.0.255) bool]_[@0 IsVoid]()_[@(0.0.255) const]&]
|
||||
[s5;K:`:`:String`:`:IsVoid`(`)const:%- [@(0.0.255) bool][@(64) _]IsVoid[@(64) ()_][@(0.0.255) c
|
||||
onst]&]
|
||||
[s2; Returns true if String is special value returned by GetVoid.&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:IsZero`(`)const:%- static [^`:`:String`:`:Buffer^ `[W`]][^`:`:String^ S
|
||||
tring]_[@0 GetVoid]()&]
|
||||
tring]_GetVoid[@(64) ()]&]
|
||||
[s2; Returns special Void value. This value is same as empty string,
|
||||
but IsVoid method returns true for it. It can be used in special
|
||||
scenarios where client code needs to distinguish between two
|
||||
|
|
@ -267,88 +285,92 @@ empty values (let us say Void is `"more empty`"...). For example,
|
|||
LoadFile returns Void string if file failed to load, but normal
|
||||
empty string if it is empty.&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:ToString`(`)const:%- [@(0.0.255) const]_[^`:`:String`:`:Buffer^ `[W`]
|
||||
][^`:`:String^ String]`&_[@0 ToString]()_[@(0.0.255) const]&]
|
||||
[s5;K:`:`:String`:`:ToString`(`)const:%- [@(0.0.255) const][@(64) _][^`:`:String`:`:Buffer^@(64) `[
|
||||
W`]][^`:`:String^@(64) String][@(64) `&_]ToString[@(64) ()_][@(0.0.255) const]&]
|
||||
[s2; Returns `*this. Useful because ToString is standard method to
|
||||
convert concrete type to text, used by AsString template (and
|
||||
therefore by operator << as well).&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:`:`:String`(`):%- [@0 `[W`]String]()&]
|
||||
[s5;K:`:`:String`:`:`:`:String`(`):%- `[W`]String[@(64) ()]&]
|
||||
[s2; Constructs empty `[W`]String.&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:`:`:String`(const`:`:Nuller`&`):%- [@0 `[W`]String]([@(0.0.255) const
|
||||
]_[^`:`:Nuller^ Nuller]`&)&]
|
||||
[s5;K:`:`:String`:`:`:`:String`(const`:`:Nuller`&`):%- `[W`]String[@(64) (][@(0.0.255) co
|
||||
nst][@(64) _][^`:`:Nuller^@(64) Nuller][@(64) `&)]&]
|
||||
[s2; Constructs empty `[W`]String. This variant is important to allow
|
||||
assigning Null to String (which is same as assigning the empty
|
||||
String).&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:`:`:String`(const`:`:String`&`):%- [@0 `[W`]String]([@(0.0.255) const
|
||||
]_[@0 `[W`]String]`&_[@3 s])&]
|
||||
[s5;K:`:`:String`:`:`:`:String`(const`:`:String`&`):%- `[W`]String[@(64) (][@(0.0.255) co
|
||||
nst][@(64) _]`[W`]String[@(64) `&_][@3 s][@(64) )]&]
|
||||
[s2; Copy constructor.&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:`:`:String`(const char`*`):%- [@0 `[W`]String]([@(0.0.255) const]_[@(0.0.255) `[
|
||||
w`]char]_`*[@3 s])&]
|
||||
[s5;K:`:`:String`:`:`:`:String`(const char`*`):%- `[W`]String[@(64) (][@(0.0.255) const][@(64) _
|
||||
][@(0.0.255) `[w`]char][@(64) _`*][@3 s][@(64) )]&]
|
||||
[s2; Constructor form zero terminated string.&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:`:`:String`(const`:`:String`&`,int`):%- [@0 `[W`]String]([@(0.0.255) c
|
||||
onst]_[@0 `[W`]String]`&_[@3 s], [@(0.0.255) int]_[@3 n])&]
|
||||
[s5;K:`:`:String`:`:`:`:String`(const`:`:String`&`,int`):%- `[W`]String[@(64) (][@(0.0.255) c
|
||||
onst][@(64) _]`[W`]String[@(64) `&_][@3 s][@(64) , ][@(0.0.255) int][@(64) _][@3 n][@(64) )]&]
|
||||
[s2; Constructs a string equal to first [%-*@3 n] characters of [%-*@3 s].&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:`:`:String`(const char`*`,int`):%- [@0 `[W`]String]([@(0.0.255) const
|
||||
]_[@(0.0.255) `[w`]char]_`*[@3 s], [@(0.0.255) int]_[@3 n])&]
|
||||
[s5;K:`:`:String`:`:`:`:String`(const char`*`,int`):%- `[W`]String[@(64) (][@(0.0.255) co
|
||||
nst][@(64) _][@(0.0.255) `[w`]char][@(64) _`*][@3 s][@(64) , ][@(0.0.255) int][@(64) _][@3 n][@(64) )
|
||||
]&]
|
||||
[s2; Constructs a string equal to first [%-*@3 n] characters of [%-*@3 s].&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:`:`:String`(const char`*`,const char`*`):%- [@0 `[W`]String]([@(0.0.255) c
|
||||
onst]_[@(0.0.255) `[w`]char]_`*[@3 s], [@(0.0.255) const]_[@(0.0.255) `[w`]char]_`*[@3 lim])
|
||||
&]
|
||||
[s5;K:`:`:String`:`:`:`:String`(const char`*`,const char`*`):%- `[W`]String[@(64) (][@(0.0.255) c
|
||||
onst][@(64) _][@(0.0.255) `[w`]char][@(64) _`*][@3 s][@(64) , ][@(0.0.255) const][@(64) _][@(0.0.255) `[
|
||||
w`]char][@(64) _`*][@3 lim][@(64) )]&]
|
||||
[s2; Constructs a string equal to first [%-*@3 lim] `- [%-*@3 s] characters
|
||||
of [%-*@3 s].&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:`:`:String`(int`,int`):%- [@0 `[W`]String]([@(0.0.255) int]_[@3 chr],
|
||||
[@(0.0.255) int]_[@3 count])&]
|
||||
[s5;K:`:`:String`:`:`:`:String`(int`,int`):%- `[W`]String[@(64) (][@(0.0.255) int][@(64) _][@3 c
|
||||
hr][@(64) , ][@(0.0.255) int][@(64) _][@3 count][@(64) )]&]
|
||||
[s2; Constructs a string consisting of [%-*@3 count] characters [%-*@3 chr].&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:`:`:String`(`:`:String`:`:Buffer`&`):%- [@0 `[W`]String]([^`:`:String`:`:Buffer^ `[
|
||||
W`]StringBuffer]`&_[@3 b])&]
|
||||
[s5;K:`:`:String`:`:`:`:String`(`:`:String`:`:Buffer`&`):%- `[W`]String[@(64) (][^`:`:String`:`:Buffer^@(64) `[
|
||||
W`]StringBuffer][@(64) `&_][@3 b][@(64) )]&]
|
||||
[s2; Constructs a string from [%-*@3 b]. [%-*@3 b] is emptied by this
|
||||
operation.&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:Swap`(`:`:String`&`,`:`:String`&`):%- friend_[@(0.0.255) void]_[@0 Sw
|
||||
ap]([^`:`:String^ String]`&_[@3 a], [^`:`:String^ String]`&_[@3 b])&]
|
||||
[s5;K:`:`:String`:`:Swap`(`:`:String`&`,`:`:String`&`):%- friend_[@(0.0.255) void][@(64) _
|
||||
]Swap[@(64) (][^`:`:String^@(64) String][@(64) `&_][@3 a][@(64) , ][^`:`:String^@(64) String][@(64) `&
|
||||
_][@3 b][@(64) )]&]
|
||||
[s2; Optimized swap operation.&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:`:`:String`(const std`:`:string`&`):%- [@0 String]([@(0.0.255) const]_
|
||||
[^std`:`:string^ std`::string]`&_[@3 s])&]
|
||||
[s5;K:`:`:String`:`:`:`:String`(const std`:`:string`&`):%- String[@(64) (][@(0.0.255) con
|
||||
st][@(64) _][^std`:`:string^@(64) std`::string][@(64) `&_][@3 s][@(64) )]&]
|
||||
[s2; Constructor to achieve minimal STL compatibility.&]
|
||||
[s0; &]
|
||||
[s0; &]
|
||||
[s0; [*+117 String specific methods]&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:Cat`(const`:`:byte`*`,int`):%- [@(0.0.255) void]_[@0 Cat]([@(0.0.255) c
|
||||
onst]_[^`:`:byte^ byte]_`*[@3 s], [@(0.0.255) int]_[@3 len])&]
|
||||
[s5;K:`:`:String`:`:Cat`(const`:`:byte`*`,int`):%- [@(0.0.255) void][@(64) _]Cat[@(64) (][@(0.0.255) c
|
||||
onst][@(64) _][^`:`:byte^@(64) byte][@(64) _`*][@3 s][@(64) , ][@(0.0.255) int][@(64) _][@3 len][@(64) )
|
||||
]&]
|
||||
[s2; Appends [%-*@3 len] bytes starting at [%-*@3 s] to String.&]
|
||||
[s5;K^`:`:WString^ &]
|
||||
[s5;K:`:`:String`:`:operator const void`*`(`)const:%- [@0 operator]_[@(0.0.255) const]_[@(0.0.255) v
|
||||
oid]`*()_[@(0.0.255) const]&]
|
||||
[s5;K:`:`:String`:`:operator const`:`:byte`*`(`)const:%- [@0 operator]_[@(0.0.255) const]_
|
||||
byte`*()_[@(0.0.255) const]&]
|
||||
[s5;K:`:`:String`:`:operator const void`*`(`)const:%- operator[@(64) _][@(0.0.255) const][@(64) _
|
||||
][@(0.0.255) void][@(64) `*()_][@(0.0.255) const]&]
|
||||
[s5;K:`:`:String`:`:operator const`:`:byte`*`(`)const:%- operator[@(64) _][@(0.0.255) con
|
||||
st][@(64) _byte`*()_][@(0.0.255) const]&]
|
||||
[s2; Return a immutable pointer to zero terminated sequence of bytes
|
||||
with string`'s content (a pointer to String internal buffer).
|
||||
This pointer is only valid until next modifying operation on
|
||||
string (destructor included).&]
|
||||
[s0;@(0.0.255) &]
|
||||
[s5;K:`:`:String`:`:ToWString`(`)const:%- [^`:`:WString^ WString]_[@0 ToWString]()_[@(0.0.255) c
|
||||
[s5;K:`:`:String`:`:ToWString`(`)const:%- [^`:`:WString^ WString]_ToWString[@(64) ()_][@(0.0.255) c
|
||||
onst]&]
|
||||
[s2; Convert String to WString using current default charset.&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:`:`:String`(const`:`:byte`*`,int`):%- [@0 String]([@(0.0.255) const]_
|
||||
[^`:`:byte^ byte]_`*[@3 s], [@(0.0.255) int]_[@3 n])&]
|
||||
[s5;K:`:`:String`:`:`:`:String`(const`:`:byte`*`,int`):%- String[@(64) (][@(0.0.255) cons
|
||||
t][@(64) _][^`:`:byte^@(64) byte][@(64) _`*][@3 s][@(64) , ][@(0.0.255) int][@(64) _][@3 n][@(64) )
|
||||
]&]
|
||||
[s2; Constructs string equal to first [%-*@3 n] bytes of [%-*@3 s].&]
|
||||
[s0; &]
|
||||
[s0; &]
|
||||
[s0; [*+117 WString specific methods]&]
|
||||
[s0;* &]
|
||||
[s5;K:`:`:WString`:`:ToString`(`)const:%- [^`:`:String^ String]_[@0 ToString]()_[@(0.0.255) c
|
||||
[s5;K:`:`:WString`:`:ToString`(`)const:%- [^`:`:String^ String]_ToString[@(64) ()_][@(0.0.255) c
|
||||
onst]&]
|
||||
[s2; Converts WString to String using current default charset. Also
|
||||
serves as standard text conversion (for AsString and operator<<
|
||||
|
|
@ -360,71 +382,76 @@ templates).&]
|
|||
[s0; [*+117 `[W`]StringBuffer methods]&]
|
||||
[s0; &]
|
||||
[s0; &]
|
||||
[s5;K:`:`:AStringBuffer`:`:operator T`*`(`):%- [@0 operator]_[@(0.0.255) `[w`]char]`*()&]
|
||||
[s5;K:`:`:AStringBuffer`:`:operator void`*`(`):%- [@0 operator]_[@(0.0.255) void]`*()&]
|
||||
[s5;K:`:`:AStringBuffer`:`:operator`~`(`):%- [@(0.0.255) `[w`]char]_[@0 `*operator`~]()&]
|
||||
[s5;K:`:`:AStringBuffer`:`:Begin`(`):%- [@4 T][@0 _`*Begin]()&]
|
||||
[s5;K:`:`:AStringBuffer`:`:operator T`*`(`):%- operator[@(64) _][@(0.0.255) `[w`]char][@(64) `*
|
||||
()]&]
|
||||
[s5;K:`:`:AStringBuffer`:`:operator void`*`(`):%- operator[@(64) _][@(0.0.255) void][@(64) `*
|
||||
()]&]
|
||||
[s5;K:`:`:AStringBuffer`:`:operator`~`(`):%- [@(0.0.255) `[w`]char][@(64) _]`*operator`~[@(64) (
|
||||
)]&]
|
||||
[s5;K:`:`:AStringBuffer`:`:Begin`(`):%- [@4 T]_`*Begin[@(64) ()]&]
|
||||
[s2; Returns a pointer to the buffer of characters. Mutating operations
|
||||
invalidate this pointer.&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:AStringBuffer`:`:End`(`):%- T_`*[@0 End]()&]
|
||||
[s5;K:`:`:AStringBuffer`:`:End`(`):%- T_`*End[@(64) ()]&]
|
||||
[s2; Returns Begin() `+ GetCount(). Mutating operations invalidate
|
||||
this pointer.&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:AStringBuffer`:`:Cat`(int`):%- [@(0.0.255) void]_[@0 Cat]([@(0.0.255) int]_[@3 c])&]
|
||||
[s5;K:`:`:AStringBuffer`:`:Cat`(int`):%- [@(0.0.255) void][@(64) _]Cat[@(64) (][@(0.0.255) in
|
||||
t][@(64) _][@3 c][@(64) )]&]
|
||||
[s2; Appends single character.&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:AStringBuffer`:`:Cat`(int`,int`):%- [@(0.0.255) void]_[@0 Cat]([@(0.0.255) int]_[@3 c
|
||||
], [@(0.0.255) int]_[@3 count])&]
|
||||
[s5;K:`:`:AStringBuffer`:`:Cat`(int`,int`):%- [@(0.0.255) void][@(64) _]Cat[@(64) (][@(0.0.255) i
|
||||
nt][@(64) _][@3 c][@(64) , ][@(0.0.255) int][@(64) _][@3 count][@(64) )]&]
|
||||
[s2; Appends [%-*@3 count] characters [%-*@3 c].&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:AStringBuffer`:`:Cat`(const T`*`,int`):%- [@(0.0.255) void]_[@0 Cat]([@(0.0.255) c
|
||||
onst]_[@4 T]_`*[@3 s], [@(0.0.255) int]_[@3 len])&]
|
||||
[s5;K:`:`:AStringBuffer`:`:Cat`(const T`*`,int`):%- [@(0.0.255) void][@(64) _]Cat[@(64) (][@(0.0.255) c
|
||||
onst][@(64) _][@4 T][@(64) _`*][@3 s][@(64) , ][@(0.0.255) int][@(64) _][@3 len][@(64) )]&]
|
||||
[s2; Appends [%-*@3 len] characters of [%-*@3 s].&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:AStringBuffer`:`:GetLength`(`)const:%- [@(0.0.255) int]_[@0 GetLength]()_[@(0.0.255) c
|
||||
onst]&]
|
||||
[s5;K:`:`:AStringBuffer`:`:GetCount`(`)const:%- [@(0.0.255) int]_[@0 GetCount]()_[@(0.0.255) c
|
||||
onst]&]
|
||||
[s5;K:`:`:AStringBuffer`:`:GetLength`(`)const:%- [@(0.0.255) int][@(64) _]GetLength[@(64) (
|
||||
)_][@(0.0.255) const]&]
|
||||
[s5;K:`:`:AStringBuffer`:`:GetCount`(`)const:%- [@(0.0.255) int][@(64) _]GetCount[@(64) ()_
|
||||
][@(0.0.255) const]&]
|
||||
[s2; Returns the number of characters in the buffer.&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:AStringBuffer`:`:SetLength`(int`):%- [@4 T]_`*[@0 SetLength]([@(0.0.255) int]_[@3 l
|
||||
en])&]
|
||||
[s5;K:`:`:AStringBuffer`:`:SetCount`(int`):%- [@4 T]_`*[@0 SetCount]([@(0.0.255) int]_[@3 len
|
||||
])&]
|
||||
[s5;K:`:`:AStringBuffer`:`:SetLength`(int`):%- [@4 T][@(64) _`*]SetLength[@(64) (][@(0.0.255) i
|
||||
nt][@(64) _][@3 len][@(64) )]&]
|
||||
[s5;K:`:`:AStringBuffer`:`:SetCount`(int`):%- [@4 T][@(64) _`*]SetCount[@(64) (][@(0.0.255) i
|
||||
nt][@(64) _][@3 len][@(64) )]&]
|
||||
[s2; [%-*@3 len] &]
|
||||
[s2; Returns a pointer to the buffer of characters. Mutating operations
|
||||
invalidate this pointer.&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:AStringBuffer`:`:Clear`(`):%- [@(0.0.255) void]_[@0 Clear]()&]
|
||||
[s5;K:`:`:AStringBuffer`:`:Clear`(`):%- [@(0.0.255) void][@(64) _]Clear[@(64) ()]&]
|
||||
[s2; Clears the content of StringBuffer.&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:AStringBuffer`:`:Reserve`(int`):%- [@(0.0.255) void]_[@0 Reserve]([@(0.0.255) int
|
||||
]_[@3 alloc])&]
|
||||
[s5;K:`:`:AStringBuffer`:`:Reserve`(int`):%- [@(0.0.255) void][@(64) _]Reserve[@(64) (][@(0.0.255) i
|
||||
nt][@(64) _][@3 alloc][@(64) )]&]
|
||||
[s2; Preallocates internal buffer (avoids resizing of internal buffer
|
||||
up to [%-@3 alloc] characters).&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:Buffer`:`:Strlen`(`):%- [@(0.0.255) void]_[@0 Strlen]()&]
|
||||
[s5;K:`:`:String`:`:Buffer`:`:Strlen`(`):%- [@(0.0.255) void][@(64) _]Strlen[@(64) ()]&]
|
||||
[s2; Same as SetCount(strlen(Begin())). Useful for converting C strings
|
||||
returned from system to String.&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:Buffer`:`:operator`=`(`:`:String`&`):%- [@(0.0.255) void]_[@0 operato
|
||||
r`=]([@(0.0.255) `[W`]][^`:`:String^ String]`&_[@3 s])&]
|
||||
[s5;K:`:`:String`:`:Buffer`:`:operator`=`(`:`:String`&`):%- [@(0.0.255) void][@(64) _]ope
|
||||
rator`=[@(64) (][@(0.0.255) `[W`]][^`:`:String^@(64) String][@(64) `&_][@3 s][@(64) )]&]
|
||||
[s2; Assigns content of [%-*@3 s] to StringBuffer. Clears [%-*@3 s].&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:Buffer`:`:`:`:String`:`:Buffer`(`):%- [@0 Buffer]()&]
|
||||
[s5;K:`:`:String`:`:Buffer`:`:`:`:String`:`:Buffer`(`):%- Buffer[@(64) ()]&]
|
||||
[s2; Constructs empty buffer.&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:Buffer`:`:`:`:String`:`:Buffer`(int`):%- [@0 Buffer]([@(0.0.255) int]_
|
||||
[@3 length])&]
|
||||
[s5;K:`:`:String`:`:Buffer`:`:`:`:String`:`:Buffer`(int`):%- Buffer[@(64) (][@(0.0.255) i
|
||||
nt][@(64) _][@3 length][@(64) )]&]
|
||||
[s2; Constructs buffer of [%-*@3 length] characters.&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:Buffer`:`:`:`:String`:`:Buffer`(`:`:String`&`):%- [@0 Buffer]([@(0.0.255) `[
|
||||
W`]][^`:`:String^ String]`&_[@3 text])&]
|
||||
[s5;K:`:`:String`:`:Buffer`:`:`:`:String`:`:Buffer`(`:`:String`&`):%- Buffer[@(64) (][@(0.0.255) `[
|
||||
W`]][^`:`:String^@(64) String][@(64) `&_][@3 text][@(64) )]&]
|
||||
[s2; Assigns content of [%-*@3 s] to StringBuffer. Clears [%-*@3 s].&]
|
||||
[s0; &]
|
||||
[s5;K:`:`:String`:`:Buffer`:`:`:`:String`:`:Buffer`(`:`:String`&`,int`):%- [@0 Buffer](
|
||||
[@(0.0.255) `[W`]][^`:`:String^ String]`&_[@3 text], [@(0.0.255) int]_[@3 length])&]
|
||||
[s5;K:`:`:String`:`:Buffer`:`:`:`:String`:`:Buffer`(`:`:String`&`,int`):%- Buffer[@(64) (
|
||||
][@(0.0.255) `[W`]][^`:`:String^@(64) String][@(64) `&_][@3 text][@(64) ,
|
||||
][@(0.0.255) int][@(64) _][@3 length][@(64) )]&]
|
||||
[s2; Assigns content of [%-*@3 s] to StringBuffer and trims the length.
|
||||
Clears [%-*@3 s].&]
|
||||
[s0; ]
|
||||
Loading…
Add table
Add a link
Reference in a new issue