Proper Function
|
|
将每个单词的首字母转换为大写
命名空间:
XSharp.Core
程序集:
XSharp.Core (在 XSharp.Core.dll 中) 版本:2.24 GA
Syntax FUNCTION Proper(
cText AS STRING
) AS STRING
public static string Proper(
string cText
)
Request Example
查看代码Parameters
- cText
- 类型:String
一串文本。
Return Value
类型:
StringcText 的每个单词开头都为大写字母。
备注
Proper() 依赖于国家/地区。
Examples
此示例使用 Proper() 来大写一个人的名字:
1LOCAL cName AS STRING
2cName := "terry a. brown"
3? Proper(cName)
4? cName
See Also