MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / _all_whitespace

Function _all_whitespace

src/database/cppsqlite3.cpp:1270–1289  ·  view source on GitHub ↗

** Test to see if a line consists entirely of whitespace. */

Source from the content-addressed store, hash-verified

1268** Test to see if a line consists entirely of whitespace.
1269*/
1270static int _all_whitespace(const char *z){
1271 for(; *z; z++){
1272 if( isspace(*(unsigned char*)z) ) continue;
1273 if( *z=='/' && z[1]=='*' ){
1274 z += 2;
1275 while( *z && (*z!='*' || z[1]!='/') ){ z++; }
1276 if( *z==0 ) return 0;
1277 z++;
1278 continue;
1279 }
1280 if( *z=='-' && z[1]=='-' ){
1281 z += 2;
1282 while( *z && *z!='\n' ){ z++; }
1283 if( *z==0 ) return 1;
1284 continue;
1285 }
1286 return 0;
1287 }
1288 return 1;
1289}
1290
1291
1292/*

Callers 2

_is_command_terminatorFunction · 0.85
process_inputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected