From b4fff719de29c9926030276c2dac4e34f239ffae Mon Sep 17 00:00:00 2001 From: koldo Date: Fri, 4 Feb 2011 23:36:43 +0000 Subject: [PATCH] .Core: Some doc included git-svn-id: svn://ultimatepp.org/upp/trunk@3165 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/src.tpp/String$en-us.tpp | 33 ++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/uppsrc/Core/src.tpp/String$en-us.tpp b/uppsrc/Core/src.tpp/String$en-us.tpp index 7cb581fce..b95a987bb 100644 --- a/uppsrc/Core/src.tpp/String$en-us.tpp +++ b/uppsrc/Core/src.tpp/String$en-us.tpp @@ -501,6 +501,29 @@ rt]([@(0.0.255) int]_[*@3 pos], [@(0.0.255) const]_[_^AString`:`:tchar^ tchar]_` times).&] [s3; &] [s4;%- &] +[s5;:AString`:`:Mid`(int`,int`)const:%- [_^AString`:`:String^ String]_[* Mid]([@(0.0.255) i +nt]_[*@3 pos], [@(0.0.255) int]_[*@3 length])_[@(0.0.255) const]&] +[s2; Returns a substring that begins from [%-*@3 pos] and with [%-*@3 length +]chars.&] +[s3; &] +[s4;%- &] +[s5;:AString`:`:Mid`(int`)const:%- [_^AString`:`:String^ String]_[* Mid]([@(0.0.255) int]_[*@3 p +os])_[@(0.0.255) const]&] +[s2; Returns a substring that begins from [%-*@3 pos].&] +[s3; &] +[s4;%- &] +[s5;:AString`:`:Right`(int`)const:%- [_^AString`:`:String^ String]_[* Right]([@(0.0.255) in +t]_[*@3 count])_[@(0.0.255) const]&] +[s2; Returns a substring with [%-*@3 count ]chars beginning from the +ens of the string.&] +[s3; &] +[s4;%- &] +[s5;:AString`:`:Left`(int`)const:%- [_^AString`:`:String^ String]_[* Left]([@(0.0.255) int]_ +[*@3 count])_[@(0.0.255) const]&] +[s2; Returns a substring with [%-*@3 count ]chars beginning from the +begin of the string.&] +[s3; &] +[s4;%- &] [s5;:AString`:`:Find`(const AString`:`:tchar`*`,int`)const:%- [@(0.0.255) int]_[* Find]([@(0.0.255) c onst]_[_^AString`:`:tchar^ tchar]_`*[*@3 s], [@(0.0.255) int]_[*@3 from]_`=_[@3 0])_[@(0.0.255) c onst]&] @@ -509,4 +532,14 @@ onst]&] [@(0.0.255) int]_[*@3 from]_`=_[@3 0])_[@(0.0.255) const]&] [s2; Returns first position of substring [%-*@3 s] tested from [%-*@3 from] position, or `-1 if [%-*@3 s] is not found.&] +[s4;%- &] +[s5;:AString`:`:Replace`(const AString`:`:String`&`,const AString`:`:String`&`):%- [@(0.0.255) v +oid]_[* Replace]([@(0.0.255) const]_[_^AString`:`:String^ String][@(0.0.255) `&]_[*@3 find], + [@(0.0.255) const]_[_^AString`:`:String^ String][@(0.0.255) `&]_[*@3 replace])&] +[s5;:AString`:`:Replace`(const AString`:`:tchar`*`,const AString`:`:tchar`*`):%- [@(0.0.255) v +oid]_[* Replace]([@(0.0.255) const]_[_^AString`:`:tchar^ tchar]_`*[*@3 find], +[@(0.0.255) const]_[_^AString`:`:tchar^ tchar]_`*[*@3 replace])&] +[s2; Replaces substring [%-*@3 find] with [%-*@3 replace ]string for +all times [%-*@3 find] string appears.&] +[s3; &] [s0; ] \ No newline at end of file