指定番号の文字のコードを取得する
| 2411 | |
| 2412 | // 指定番号の文字のコードを取得する |
| 2413 | extern u32 GetStringCharCode( const char *String, int CharCodeFormat, int Index ) |
| 2414 | { |
| 2415 | u32 CharCode ; |
| 2416 | int CharBytes ; |
| 2417 | int Count ; |
| 2418 | int Address ; |
| 2419 | |
| 2420 | Address = 0 ; |
| 2421 | Count = 0 ; |
| 2422 | for(;;) |
| 2423 | { |
| 2424 | CharCode = GetCharCode_inline( ( const char * )&( ( u8 * )String )[ Address ], CharCodeFormat, &CharBytes ) ; |
| 2425 | if( CharCode == 0 || Count == Index ) |
| 2426 | { |
| 2427 | break ; |
| 2428 | } |
| 2429 | |
| 2430 | Address += CharBytes ; |
| 2431 | Count ++ ; |
| 2432 | } |
| 2433 | |
| 2434 | return CharCode ; |
| 2435 | } |
| 2436 | |
| 2437 | |
| 2438 |
nothing calls this directly
no test coverage detected