nn::ngc::CTR::CountNumbers Function

Syntax

int CountNumbers(
     const wchar_t * pString
);

Parameters

Name Description
pString Specifies the NULL-terminated string that is the target of the [in] check

Return Values

Returns the number of numeric characters in the specified string. If the process fails, a negative value is returned.

Description

Returns the number of numeric characters in the string.

Since telephone numbers and certain other types of personal information take the form of strings that contain many numeric characters, there are restrictions on the number of numeric characters that can be displayed at the same time on the screen when users enter strings. Use this function to get the total number of numeric characters within strings on screen at once to avoid exceeding the restrictions within the UGC Guidelines.

Revision History

2010/11/10
Initial version.

CONFIDENTIAL