MCPcopy Create free account
hub / github.com/Sinflower/WolfDec / GetStringCharCode

Function GetStringCharCode

src/WolfDec/3rdParty/CharCode.cpp:2413–2435  ·  view source on GitHub ↗

指定番号の文字のコードを取得する

Source from the content-addressed store, hash-verified

2411
2412// 指定番号の文字のコードを取得する
2413extern 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

Callers

nothing calls this directly

Calls 1

GetCharCode_inlineFunction · 0.85

Tested by

no test coverage detected