上一页 1 ··· 131 132 133 134 135 136 137 138 139 ··· 215 下一页
摘要: StrAlloc : 给 PChar 指针分配空间, 并填充 #0; StrBufSize : PChar 缓冲区大小. unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs; type TForm1 =... 阅读全文
posted @ 2008-05-13 13:43 万一 阅读(2824) 评论(0) 推荐(0)
摘要: //StrPas: 转换 PChar 为 string; 现在可以直接赋值, 很少用了. var p: PChar; s: string; begin p := 'Delphi'; s := StrPas(p); ShowMessage(s); {Delphi} end; //StrNew、StrDispose: 建立与销毁 PChar. var p: PChar; ... 阅读全文
posted @ 2008-05-13 13:13 万一 阅读(8579) 评论(0) 推荐(0)
摘要: 其实这也是个 Copy 函数, 和 Move 没有关系. unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs; type TForm1 = class(TForm) procedure FormCreat... 阅读全文
posted @ 2008-05-13 09:59 万一 阅读(2466) 评论(0) 推荐(0)
摘要: 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)
上一页 1 ··· 131 132 133 134 135 136 137 138 139 ··· 215 下一页