// // getUTF8StringLength from 0x5e9fdc to 0x5ea020 (68 bytes) // // 1 xrefs: // > cocos2d::getCharacterCountInUTF8String @ 0x5ea490 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // size_t __fastcall getUTF8StringLength(const char *a1) { unsigned __int8 *v1; // r4 size_t result; // r0 unsigned __int8 *v3; // r7 int i; // r6 int v5; // r5 v1 = (unsigned __int8 *)a1; result = strlen(a1); if ( result ) { v3 = &v1[result]; for ( i = 0; ; ++i ) { if ( v1 == v3 ) return i; v5 = *((unsigned __int8 *)&unk_9B0840 + *v1 + 8) + 1; if ( v5 > v3 - v1 ) break; result = sub_5E9C70(v1, *((unsigned __int8 *)&unk_9B0840 + *v1 + 8) + 1); if ( !result ) return result; v1 += v5; } return 0; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source