From 14c4c132ab5e4fa3cd49439adc421cecb1de47da Mon Sep 17 00:00:00 2001 From: klugier Date: Fri, 25 Nov 2016 22:57:28 +0000 Subject: [PATCH] .doc Convertion between string and numbers are now documented git-svn-id: svn://ultimatepp.org/upp/trunk@10490 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- .../StringsAndNumbersConvertion$en-us.tpp | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 uppsrc/Core/src.tpp/StringsAndNumbersConvertion$en-us.tpp diff --git a/uppsrc/Core/src.tpp/StringsAndNumbersConvertion$en-us.tpp b/uppsrc/Core/src.tpp/StringsAndNumbersConvertion$en-us.tpp new file mode 100644 index 000000000..0e4faf3d5 --- /dev/null +++ b/uppsrc/Core/src.tpp/StringsAndNumbersConvertion$en-us.tpp @@ -0,0 +1,54 @@ +topic "Convertion between strings and numbers"; +[2 $$0,0#00000000000000000000000000000000:Default] +[i448;a25;kKO9;2 $$1,0#37138531426314131252341829483380:class] +[l288;2 $$2,2#27521748481378242620020725143825:desc] +[0 $$3,0#96390100711032703541132217272105:end] +[H6;0 $$4,0#05600065144404261032431302351956:begin] +[i448;a25;kKO9;2 $$5,0#37138531426314131252341829483370:item] +[l288;a4;*@5;1 $$6,6#70004532496200323422659154056402:requirement] +[l288;i1121;b17;O9;~~~.1408;2 $$7,0#10431211400427159095818037425705:param] +[i448;b42;O9;2 $$8,8#61672508125594000341940100500538:tparam] +[b42;2 $$9,9#13035079074754324216151401829390:normal] +[{_} +[ {{10000@(113.42.0) [s0;%% [*@7;4 Convertion between strings and numbers]]}}&] +[s9; Sometimes you need to convert numbers to strings and vice vers. +U`+`+ provides several functions to help you efficiency deal +with that task. In this reference topic, we only mention the +most important ones.&] +[s3; &] +[s0; If you are looking for more powerfull convertion tools. You +can see at [^topic`:`/`/Core`/src`/Format`$en`-us`#Formatting`:`:struct^ Format] +and [^topic`:`/`/Core`/src`/Convert`$en`-us`#Convert`:`:class^ Convert] +class documentation.&] +[s0; &] +[ {{10000F(128)G(128)@1 [s0;%% [* String to number converting functions]]}}&] +[s3; &] +[s5;:Upp`:`:StrInt`(const char`*`): [@(0.0.255) int]_[* StrInt]([@(0.0.255) const]_[@(0.0.255) c +har`*]_[*@3 s])&] +[s2; Converts string to integer.&] +[s7;%% [%-*C@3 s]-|String&] +[s7;%% [*/ Return value]-|String converted to integer.&] +[s3; &] +[s0; &] +[ {{10000F(128)G(128)@1 [s0;%% [* Number to string converting functions]]}}&] +[s0; &] +[s5;:Upp`:`:IntStr`(int`): [_^Upp`:`:String^ String]_[* IntStr]([@(0.0.255) int]_[*@3 i])&] +[s2; Converts integer to string.&] +[s7;%% [%-*C@3 i]-|Integer.&] +[s7;%% [*/ Return value]-|Integer converted to string.&] +[s3; &] +[s4; &] +[s5;:Upp`:`:IntStr64`(Upp`:`:int64`): [_^Upp`:`:String^ String]_[* IntStr64]([_^Upp`:`:int64^ i +nt64]_[*@3 i])&] +[s2; Converts 64 bits integer to string.&] +[s7;%% [%-*C@3 i]-|Integer.&] +[s7;%% [*/ Return value]-|Integer converted to string.&] +[s3; &] +[s4; &] +[s5;:Upp`:`:DblStr`(double`): [_^Upp`:`:String^ String]_[* DblStr]([@(0.0.255) double]_[*@3 d +])&] +[s2; Converts double precision number to string.&] +[s7;%% [%-*C@3 i]-|Integer.&] +[s7;%% [*/ Return value]-|Double converted to string.&] +[s3; &] +[s0; ]] \ No newline at end of file