MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / find_char

Function find_char

src/SB/Core/x/xFont.cpp:3612–3634  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3610}
3611
3612const char* find_char(const substr& s, char c)
3613{
3614 if (!s.text)
3615 {
3616 return NULL;
3617 }
3618
3619 const char* text = s.text;
3620 S32 size = s.size;
3621
3622 while (size > 0 && *text != '\0')
3623 {
3624 if (*text == c)
3625 {
3626 return text;
3627 }
3628
3629 size--;
3630 text++;
3631 }
3632
3633 return NULL;
3634}
3635
3636const char* skip_ws(substr& s)
3637{

Callers 2

parse_split_tagFunction · 0.70
read_tagMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected