MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / ConsoleColor_StringLength

Function ConsoleColor_StringLength

source/Debugger/Debugger_Console.h:207–225  ·  view source on GitHub ↗

Return the string length without the markup

Source from the content-addressed store, hash-verified

205
206 // Return the string length without the markup
207 inline int ConsoleColor_StringLength( const char *pText )
208 {
209 const char *pSrc = pText;
210 /* */ int nLen = 0;
211
212 if ( pText )
213 {
214 while ( *pSrc )
215 {
216 if ( ConsoleColor_IsCharMeta( *pSrc ) )
217 pSrc++;
218 else
219 nLen++;
220 pSrc++;
221 }
222 }
223
224 return nLen;
225 }
226
227// Globals __________________________________________________________________
228

Callers 1

CmdSymbolsInfoFunction · 0.85

Calls 1

ConsoleColor_IsCharMetaFunction · 0.85

Tested by

no test coverage detected