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

Method WordLength

src/engine/client/text.cpp:1026–1037  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1024 }
1025
1026 int WordLength(const char *pText) const
1027 {
1028 const char *pCursor = pText;
1029 while(true)
1030 {
1031 if(*pCursor == '\0')
1032 return pCursor - pText;
1033 if(*pCursor == '\n' || *pCursor == '\t' || *pCursor == ' ')
1034 return pCursor - pText + 1;
1035 str_utf8_decode(&pCursor);
1036 }
1037 }
1038
1039 bool LoadFontCollection(const char *pFontName, const FT_Byte *pFontData, FT_Long FontDataSize)
1040 {

Callers

nothing calls this directly

Calls 1

str_utf8_decodeFunction · 0.85

Tested by

no test coverage detected