Lines Matching refs:ch
717 unsigned int ch = va_arg(ap,unsigned int); in sqlite3_str_vappendf() local
718 if( ch<0x00080 ){ in sqlite3_str_vappendf()
719 buf[0] = ch & 0xff; in sqlite3_str_vappendf()
721 }else if( ch<0x00800 ){ in sqlite3_str_vappendf()
722 buf[0] = 0xc0 + (u8)((ch>>6)&0x1f); in sqlite3_str_vappendf()
723 buf[1] = 0x80 + (u8)(ch & 0x3f); in sqlite3_str_vappendf()
725 }else if( ch<0x10000 ){ in sqlite3_str_vappendf()
726 buf[0] = 0xe0 + (u8)((ch>>12)&0x0f); in sqlite3_str_vappendf()
727 buf[1] = 0x80 + (u8)((ch>>6) & 0x3f); in sqlite3_str_vappendf()
728 buf[2] = 0x80 + (u8)(ch & 0x3f); in sqlite3_str_vappendf()
731 buf[0] = 0xf0 + (u8)((ch>>18) & 0x07); in sqlite3_str_vappendf()
732 buf[1] = 0x80 + (u8)((ch>>12) & 0x3f); in sqlite3_str_vappendf()
733 buf[2] = 0x80 + (u8)((ch>>6) & 0x3f); in sqlite3_str_vappendf()
734 buf[3] = 0x80 + (u8)(ch & 0x3f); in sqlite3_str_vappendf()
808 char ch; in sqlite3_str_vappendf() local
825 for(i=n=0; k!=0 && (ch=escarg[i])!=0; i++, k--){ in sqlite3_str_vappendf()
826 if( ch==q ) n++; in sqlite3_str_vappendf()
827 if( flag_altform2 && (ch&0xc0)==0xc0 ){ in sqlite3_str_vappendf()
843 bufpt[j++] = ch = escarg[i]; in sqlite3_str_vappendf()
844 if( ch==q ) bufpt[j++] = ch; in sqlite3_str_vappendf()