LCASE
- 来源: https://www.freebasic.net/wiki/wikka.php?wakka=KeyPgLcase
- 最后更新: 2020-09-12
返回字符串的小写副本
语法
vb
declare function Lcase ( byref str as const string, byval mode as long = 0 ) as string
declare function Lcase ( byref str as const wstring, byval mode as long = 0 ) as wstring用法
result = Lcase[$]( str [ , mode ] )参数
str
要转换为小写的字符串。
mode
转换模式:0 = 当前区域设置,1 = 仅 ASCII。
返回值
str 的小写副本。
说明
返回 str 中所有字母转换为小写后的副本。
若 str 为空,则返回空字符串("")。
示例
vb
Print LCase("AbCdEfG")输出:
abcdefg平台差异
- DOS 目标不支持
Lcase的宽字符字符串版本。
方言差异
- 在 -lang qb 方言中,字符串类型后缀 "$" 是必须的。
- 在 -lang fblite 方言中,字符串类型后缀 "$" 是可选的。
- 在 -lang fb 方言中,字符串类型后缀 "$" 被忽略,仅在使用 -w suffix 编译选项(或 -w pedantic 编译选项)时发出警告。
与 QB 的差异
- QB 不支持 Unicode。
另请参阅
Ucase
返回 目录