//
// sub_18001C060 from 0x18001c060 to 0x18001c0d5 (117 bytes)
//
// 7 xrefs:
// > sub_180018D00 @ 0x180018d1e
// > sub_180018D00 @ 0x180018d29
// > DS_Dictionary::getIndexOfKeyWithClosestAlphaNumericalMatch @ 0x18001a426
// > DS_Dictionary::getIndexOfKeyWithClosestAlphaNumericalMatch @ 0x18001a431
// > ??> @ 0x18013c934
// > ??> @ 0x18013c944
// > ??> @ 0x1801b8b18
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:21:26 +0000
//
__int64 __fastcall sub_18001C060(const char *a1)
{
unsigned int v2; // ebx
int v3; // eax
__int64 v4; // rbp
__int64 v5; // rdi
int v6; // eax
unsigned int v7; // ecx
v2 = 0;
v3 = strlen(a1);
v4 = v3;
if ( v3 <= 0 )
return 0;
v5 = 0;
do
{
v6 = isdigit(a1[v5]);
v7 = v2 + 1;
if ( !v6 )
v7 = v2;
++v5;
v2 = v7;
}
while ( v5 < v4 );
return v7;
}