• Home
  • Raw
  • Download

Lines Matching refs:z

168   char *z;  in iotracePrintf()  local
171 z = sqlite3_vmprintf(zFormat, ap); in iotracePrintf()
173 fprintf(iotrace, "%s", z); in iotracePrintf()
174 sqlite3_free(z); in iotracePrintf()
182 static int isNumber(const char *z, int *realnum){ in isNumber() argument
183 if( *z=='-' || *z=='+' ) z++; in isNumber()
184 if( !isdigit(*z) ){ in isNumber()
187 z++; in isNumber()
189 while( isdigit(*z) ){ z++; } in isNumber()
190 if( *z=='.' ){ in isNumber()
191 z++; in isNumber()
192 if( !isdigit(*z) ) return 0; in isNumber()
193 while( isdigit(*z) ){ z++; } in isNumber()
196 if( *z=='e' || *z=='E' ){ in isNumber()
197 z++; in isNumber()
198 if( *z=='+' || *z=='-' ) z++; in isNumber()
199 if( !isdigit(*z) ) return 0; in isNumber()
200 while( isdigit(*z) ){ z++; } in isNumber()
203 return *z==0; in isNumber()
366 static void output_quoted_string(FILE *out, const char *z){ in output_quoted_string() argument
369 for(i=0; z[i]; i++){ in output_quoted_string()
370 if( z[i]=='\'' ) nSingle++; in output_quoted_string()
373 fprintf(out,"'%s'",z); in output_quoted_string()
376 while( *z ){ in output_quoted_string()
377 for(i=0; z[i] && z[i]!='\''; i++){} in output_quoted_string()
380 z++; in output_quoted_string()
381 }else if( z[i]=='\'' ){ in output_quoted_string()
382 fprintf(out,"%.*s''",i,z); in output_quoted_string()
383 z += i+1; in output_quoted_string()
385 fprintf(out,"%s",z); in output_quoted_string()
396 static void output_c_string(FILE *out, const char *z){ in output_c_string() argument
399 while( (c = *(z++))!=0 ){ in output_c_string()
425 static void output_html_string(FILE *out, const char *z){ in output_html_string() argument
427 while( *z ){ in output_html_string()
428 for(i=0; z[i] && z[i]!='<' && z[i]!='&'; i++){} in output_html_string()
430 fprintf(out,"%.*s",i,z); in output_html_string()
432 if( z[i]=='<' ){ in output_html_string()
434 }else if( z[i]=='&' ){ in output_html_string()
439 z += i + 1; in output_html_string()
472 static void output_csv(struct callback_data *p, const char *z, int bSep){ in output_csv() argument
474 if( z==0 ){ in output_csv()
479 for(i=0; z[i]; i++){ in output_csv()
480 if( needCsvQuote[((unsigned char*)z)[i]] in output_csv()
481 || (z[i]==p->separator[0] && in output_csv()
482 (nSep==1 || memcmp(z, p->separator, nSep)==0)) ){ in output_csv()
489 for(i=0; z[i]; i++){ in output_csv()
490 if( z[i]=='"' ) putc('"', out); in output_csv()
491 putc(z[i], out); in output_csv()
495 fprintf(out, "%s", z); in output_csv()
597 char *z = azArg[i]; in callback() local
598 if( z==0 ) z = p->nullvalue; in callback()
599 fprintf(p->out, "%s", z); in callback()
687 char *z; in set_table_name() local
702 z = p->zDestTable = malloc( n+1 ); in set_table_name()
703 if( z==0 ){ in set_table_name()
708 if( needQuote ) z[n++] = '\''; in set_table_name()
710 z[n++] = zName[i]; in set_table_name()
711 if( zName[i]=='\'' ) z[n++] = '\''; in set_table_name()
713 if( needQuote ) z[n++] = '\''; in set_table_name()
714 z[n] = 0; in set_table_name()
991 static void resolve_backslashes(char *z){ in resolve_backslashes() argument
993 for(i=j=0; (c = z[i])!=0; i++, j++){ in resolve_backslashes()
995 c = z[++i]; in resolve_backslashes()
1004 if( z[i+1]>='0' && z[i+1]<='7' ){ in resolve_backslashes()
1006 c = (c<<3) + z[i] - '0'; in resolve_backslashes()
1007 if( z[i+1]>='0' && z[i+1]<='7' ){ in resolve_backslashes()
1009 c = (c<<3) + z[i] - '0'; in resolve_backslashes()
1014 z[j] = c; in resolve_backslashes()
1016 z[j] = 0; in resolve_backslashes()
1259 char *z; in do_meta_command() local
1263 for(i=0, z=zLine; *z && *z!='\n' && *z!='\r'; z++){ in do_meta_command()
1264 if( *z==p->separator[0] && strncmp(z, p->separator, nSep)==0 ){ in do_meta_command()
1265 *z = 0; in do_meta_command()
1268 azCol[i] = &z[nSep]; in do_meta_command()
1269 z += nSep-1; in do_meta_command()
1273 *z = 0; in do_meta_command()
1621 static int _contains_semicolon(const char *z, int N){ in _contains_semicolon() argument
1623 for(i=0; i<N; i++){ if( z[i]==';' ) return 1; } in _contains_semicolon()
1630 static int _all_whitespace(const char *z){ in _all_whitespace() argument
1631 for(; *z; z++){ in _all_whitespace()
1632 if( isspace(*(unsigned char*)z) ) continue; in _all_whitespace()
1633 if( *z=='/' && z[1]=='*' ){ in _all_whitespace()
1634 z += 2; in _all_whitespace()
1635 while( *z && (*z!='*' || z[1]!='/') ){ z++; } in _all_whitespace()
1636 if( *z==0 ) return 0; in _all_whitespace()
1637 z++; in _all_whitespace()
1640 if( *z=='-' && z[1]=='-' ){ in _all_whitespace()
1641 z += 2; in _all_whitespace()
1642 while( *z && *z!='\n' ){ z++; } in _all_whitespace()
1643 if( *z==0 ) return 1; in _all_whitespace()
1828 char *z = malloc( n ); in find_home_dir() local
1829 if( z ) memcpy(z, home_dir, n); in find_home_dir()
1830 home_dir = z; in find_home_dir()
1946 char *z; in main() local
1948 z = argv[i]; in main()
1949 if( z[0]=='-' && z[1]=='-' ) z++; in main()
2003 char *z = argv[i]; in main() local
2004 if( z[1]=='-' ){ z++; } in main()
2005 if( strcmp(z,"-init")==0 ){ in main()
2007 }else if( strcmp(z,"-html")==0 ){ in main()
2009 }else if( strcmp(z,"-list")==0 ){ in main()
2011 }else if( strcmp(z,"-line")==0 ){ in main()
2013 }else if( strcmp(z,"-column")==0 ){ in main()
2015 }else if( strcmp(z,"-csv")==0 ){ in main()
2018 }else if( strcmp(z,"-separator")==0 ){ in main()
2022 }else if( strcmp(z,"-nullvalue")==0 ){ in main()
2026 }else if( strcmp(z,"-header")==0 ){ in main()
2028 }else if( strcmp(z,"-noheader")==0 ){ in main()
2030 }else if( strcmp(z,"-echo")==0 ){ in main()
2032 }else if( strcmp(z,"-bail")==0 ){ in main()
2034 }else if( strcmp(z,"-version")==0 ){ in main()
2037 }else if( strcmp(z,"-interactive")==0 ){ in main()
2039 }else if( strcmp(z,"-batch")==0 ){ in main()
2041 }else if( strcmp(z,"-help")==0 || strcmp(z, "--help")==0 ){ in main()
2044 fprintf(stderr,"%s: unknown option: %s\n", Argv0, z); in main()