首页 > 其他 > 详细

StringOfChar 将一个字符重复多次 形成一个 字符串

时间:2016-05-01 01:08:05      阅读:267      评论:0      收藏:0      [点我收藏+]

StringOfChar  

 

Returns a string with a specified number of repeating characters.

In Delphi code, StringOfChar returns a string that contains Count characters, with the character value given by Ch. For example,

S := StringOfChar(‘A‘, 10);

sets S to the string ‘AAAAAAAAAA‘.

Note that StringOfChar returns the same type as ch: either an AnsiString or UnicodeString, so it works properly for both types. 

StringOfChar 将一个字符重复多次 形成一个 字符串

原文:http://www.cnblogs.com/delphi-xe5/p/5449815.html

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