MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / strlen30

Function strlen30

modules/dasSQLITE/sqlite/shell.c:731–735  ·  view source on GitHub ↗

** Compute a string length that is limited to what can be stored in ** lower 30 bits of a 32-bit signed integer. */

Source from the content-addressed store, hash-verified

729** lower 30 bits of a 32-bit signed integer.
730*/
731static int strlen30(const char *z){
732 const char *z2 = z;
733 while( *z2 ){ z2++; }
734 return 0x3fffffff & (int)(z2 - z);
735}
736
737/*
738** Return the length of a string in characters. Multibyte UTF8 characters

Callers 15

appendTextFunction · 0.85
shellAddSchemaNameFunction · 0.85
shell_callbackFunction · 0.85
set_table_nameFunction · 0.85
displayLinuxIoStatsFunction · 0.85
expertDotCommandFunction · 0.85
run_schema_dump_queryFunction · 0.85
tryToCloneDataFunction · 0.85
lintFkeyIndexesFunction · 0.85
lintDotCommandFunction · 0.85
arParseCommandFunction · 0.85
arCheckEntriesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected