1 /*---------------------------------------------------------------------------*
2   Project:  Horizon
3   File:     ngc_Api.h
4 
5   Copyright (C)2010 Nintendo Co., Ltd.  All rights reserved.
6 
7   These coded instructions, statements, and computer programs contain
8   proprietary information of Nintendo of America Inc. and/or Nintendo
9   Company Ltd., and are protected by Federal copyright law.  They may
10   not be disclosed to third parties or copied or duplicated in any form,
11   in whole or in part, without the prior written consent of Nintendo.
12 
13   $Rev: 28569 $
14  *---------------------------------------------------------------------------*/
15 
16 #ifndef NN_NGC_API_H_
17 #define NN_NGC_API_H_
18 
19 namespace nn
20 {
21 namespace ngc
22 {
23 namespace CTR
24 {
25 
26 /*!
27   @brief 文字列に含まれる、数を表す文字の個数を返します。
28 
29          多くの数値を含む文字列は、電話番号などの個人情報を示す場合があるため、
30          ユーザーが入力した文字列に含まれる数字の数にについて、
31          画面に同時に出すことが出来る合計数に制限があります。
32          この関数で個数を計上し、一度に画面に表示される文字列に含まれる数字の合計数が
33          UGCガイドラインで決められた制限を超えないようにしてください。
34 
35   @param pString [in] 調べる対象のNULL終端文字列を指定します。
36   @return 指定された文字列に含まれる数を表す文字の個数が返ります。失敗した場合に負の数が返ります。
37  */
38 int CountNumbers( const wchar_t *pString );
39 
40 }   // namespace CTR
41 }   // namespace ngc
42 }   // namespace nn
43 
44 #endif  // NN_NGC_API_H_
45