MCPcopy Create free account
hub / github.com/ddnet/ddnet / str_utf8_check

Function str_utf8_check

src/base/str.cpp:1222–1233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1220}
1221
1222int str_utf8_check(const char *str)
1223{
1224 int codepoint;
1225 while((codepoint = str_utf8_decode(&str)))
1226 {
1227 if(codepoint == -1)
1228 {
1229 return 0;
1230 }
1231 }
1232 return 1;
1233}
1234
1235void str_utf8_copy_num(char *dst, const char *src, int dst_size, int num)
1236{

Callers 14

IntsToStrFunction · 0.85
ValidateHeaderMethod · 0.85
GetDataStringMethod · 0.85
GetMethod · 0.85
AddPathMethod · 0.85
UpdateMethod · 0.85
GetStringMethod · 0.85
ValidMethod · 0.85
RecvMethod · 0.85
TESTFunction · 0.85
fs_listdirFunction · 0.85
fs_listdir_fileinfoFunction · 0.85

Calls 1

str_utf8_decodeFunction · 0.85

Tested by 1

TESTFunction · 0.68