LCase
返回字符串的小写副本
语法
Declare
Function
LCase
Overload
(
ByRef
str
As
Const
String
,
ByVal
mode
As
Integer
= 0 )
As
String
Declare
Function
LCase
(
ByRef
str
As
Const
WString
,
ByVal
mode
As
Integer
= 0 )
As
WString
用法
result
=
LCase
[$](
str
[ ,
mode
] )
参数
str
字符串转换为小写。
mode
转换模式:0 =当前语言环境,1 =仅ASCII
返回值
str
的小写副本。
说明
返回
str
的副本,其中所有字母都转换为小写。
如果
str
为空,则返回空字符串(
"
"
)。
例子
Print
LCase
(
"AbCdEfG"
)
输出:
abcdefg
平台差异
DOS目标不支持
LCase
的宽字符串版本。
方言差异
在
-lang qb
方言中,字符串类型后缀“$”是必须的。
字符串类型后缀“$”在
-lang fblite
和
-lang fb
方言中是可选的。
与QB差别
QB不支持Unicode。
参考
UCase