Functions.PosUpper 方法 | |
Retrieves the 1 based position of the first upper case letter in a string.
命名空间:
XSharp.XPP
程序集:
XSharp.XPP (在 XSharp.XPP.dll 中) 版本:2.22 GA
语法 FUNCTION PosUpper(
cString,
lNoLetter,
nIgnoreCharsFromLeft
) AS LONG CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public static int PosUpper(
__Usual cString = default,
__Usual lNoLetter = default,
__Usual nIgnoreCharsFromLeft = default
)
查看代码参数
- cString (Optional)
- 类型:__Usual
String to check - lNoLetter (Optional)
- 类型:__Usual
When TRUE is passed then the first character is returned which is not changed by function Lower(). Defaults to FALSE. - nIgnoreCharsFromLeft (Optional)
- 类型:__Usual
Number of characters that must be ignored. Defaults to 0.
返回值
类型:
Int32Returns the position of the first upper case letter in a string as a numeric value, or ZERO when there is no uppercase letter in the string.
备注 In X# A letter is defined as a character for which the Char.IsLetter() method returns TRUE.
If lNoLetter is set to TRUE the function returns the position of the first character which is not a letter.
参见