首页 > 其他 > 详细

string

时间:2019-10-25 17:20:38      阅读:91      评论:0      收藏:0      [点我收藏+]

function int len(); //if str is "", str.len() is 0;

task putc(int i, string s);

task putc(int i, byte c);

function int getc(int i); // get the ascii value of ith character.

function string toupper(); // turn to upper case.

function string tolower(); // turn to lower case.

function int compare(string s); //

function int icompare(string s); // case insensitive compare.

function string substr(int i, int j);

function integer atoi(); // string s="123"; s.atoi() is ‘d123.

function integer atohex();

function integer atooct();

function integer atobin();

function real atoreal();

task itoa(integer i); // int i=123; str.itoa(i) is "123"

task hextoa(integer i);

task octtoa(integer i);

task bintoa(integer i);

task realtoa(real i);

string

原文:https://www.cnblogs.com/lybinger/p/11739010.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!