摘要:
StrEnd 获取 PChar 串未指针; StrLen 获取 PChar 串长度. unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm)... 阅读全文
posted @ 2008-05-12 23:05
万一
阅读(2316)
评论(0)
推荐(0)
摘要:
StrScan : 返回一个字符在一个 PChar 串中第一次出现的位置指针; StrRScan : 返回一个字符在一个 PChar 串中最后一次出现的位置指针; StrPos : 返回一个 PChar 串在另一个 PChar 串中第一次出现的位置指针. unit Unit1; interface uses Windows, Messages, SysUtils, Varia... 阅读全文
posted @ 2008-05-12 22:52
万一
阅读(3379)
评论(1)
推荐(0)
摘要:
StrLCat 与 StrCat 类似, StrLCat 多出的参数好像是限制结果的长度. unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TFo... 阅读全文
posted @ 2008-05-12 22:40
万一
阅读(1892)
评论(1)
推荐(0)
摘要:
StrUpper 和 StrLower 是转换 PChar 串的大小写的函数. unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) ... 阅读全文
posted @ 2008-05-12 21:44
万一
阅读(2076)
评论(0)
推荐(0)
摘要:
StrLCopy 只是比 StrCopy 多了一个限制长度的参数; StrPCopy 等价于 StrCopy; StrPLCopy 等价于 StrLCopy. unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs; t... 阅读全文
posted @ 2008-05-12 21:23
万一
阅读(5353)
评论(0)
推荐(1)
摘要:
StrCopy 和 StrECopy 都是复制源 PChar 串到目标 PChar 串, 只是返回值不同; StrCopy 返回结果的首地址, StrECopy 返回结果的尾(#0)地址. unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Form... 阅读全文
posted @ 2008-05-12 21:21
万一
阅读(5240)
评论(1)
推荐(0)
摘要:
StrLComp、StrLIComp 与 StrComp、StrIComp 基本是一样的, 只是多了一个参数用来指定有效长度. unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs; type TForm1 = c... 阅读全文
posted @ 2008-05-12 16:52
万一
阅读(2498)
评论(0)
推荐(0)
摘要:
StrComp 和 StrIComp 都是对比 PChar 字串的大小的函数, 只是后者不区分大小写. unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = cla... 阅读全文
posted @ 2008-05-12 14:31
万一
阅读(3058)
评论(0)
推荐(0)
摘要:
//把源串添加到目标串后, 要求目标串必须有足够的空间 StrCat( Dest: PChar; {目标串} const Source: PChar {源串} ): PChar; {返回目标串} unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Clas... 阅读全文
posted @ 2008-05-12 14:11
万一
阅读(3097)
评论(5)
推荐(0)
浙公网安备 33010602011771号