Obtain the length of a given string.
Obtain the length of a given string.
- 注意
- None.
- 参数
-
string | [IN] String to obtain the length. |
count | [IN] Maximum length |
- 返回值
-
If | the parameter is abnormal, return 0. |
If | the length of a string is greater than the count, return count. Otherwise, the actual length of the string is returned. |