Home | History | Annotate | Download | only in common

Lines Matching refs:cnv

179 _UTF7Reset(UConverter *cnv, UConverterResetChoice choice) {
182 cnv->toUnicodeStatus=0x1000000; /* inDirectMode=TRUE */
183 cnv->toULength=0;
187 cnv->fromUnicodeStatus=(cnv->fromUnicodeStatus&0xf0000000)|0x1000000; /* keep version, inDirectMode=TRUE */
192 _UTF7Open(UConverter *cnv,
195 if(UCNV_GET_VERSION(cnv)<=1) {
196 /* TODO(markus): Should just use cnv->options rather than copying the version number. */
197 cnv->fromUnicodeStatus=UCNV_GET_VERSION(cnv)<<28;
198 _UTF7Reset(cnv, UCNV_RESET_BOTH);
207 UConverter *cnv;
229 cnv=pArgs->converter;
238 uint32_t status=cnv->toUnicodeStatus;
243 bytes=cnv->toUBytes;
244 byteIndex=cnv->toULength;
433 cnv->toUnicodeStatus=((uint32_t)inDirectMode<<24)|((uint32_t)((uint8_t)base64Counter)<<16)|(uint32_t)bits;
434 cnv->toULength=byteIndex;
446 UConverter *cnv;
461 cnv=pArgs->converter;
472 uint32_t status=cnv->fromUnicodeStatus;
513 cnv->charErrorBuffer[0]=MINUS;
514 cnv->charErrorBufferLength=1;
563 cnv->charErrorBuffer[0]=MINUS;
564 cnv->charErrorBufferLength=1;
593 cnv->charErrorBuffer[0]=toBase64[(c>>4)&0x3f];
594 cnv->charErrorBufferLength=1;
616 cnv->charErrorBuffer[0]=toBase64[(c>>2)&0x3f];
617 cnv->charErrorBufferLength=1;
624 cnv->charErrorBuffer[0]=toBase64[(c>>8)&0x3f];
625 cnv->charErrorBuffer[1]=toBase64[(c>>2)&0x3f];
626 cnv->charErrorBufferLength=2;
648 cnv->charErrorBuffer[0]=toBase64[c&0x3f];
649 cnv->charErrorBufferLength=1;
656 cnv->charErrorBuffer[0]=toBase64[(c>>6)&0x3f];
657 cnv->charErrorBuffer[1]=toBase64[c&0x3f];
658 cnv->charErrorBufferLength=2;
686 cnv->charErrorBuffer[cnv->charErrorBufferLength++]=toBase64[bits];
691 cnv->fromUnicodeStatus=(cnv->fromUnicodeStatus&0xf0000000)|0x1000000; /* keep version, inDirectMode=TRUE */
694 cnv->fromUnicodeStatus=
695 (cnv->fromUnicodeStatus&0xf0000000)| /* keep version*/
707 _UTF7GetName(const UConverter *cnv) {
708 switch(cnv->fromUnicodeStatus>>28) {
864 UConverter *cnv;
888 cnv=pArgs->converter;
897 uint32_t status=cnv->toUnicodeStatus;
902 bytes=cnv->toUBytes;
903 byteIndex=cnv->toULength;
1119 cnv->toUnicodeStatus=((uint32_t)inDirectMode<<24)|((uint32_t)((uint8_t)base64Counter)<<16)|(uint32_t)bits;
1120 cnv->toULength=byteIndex;
1132 UConverter *cnv;
1147 cnv=pArgs->converter;
1158 uint32_t status=cnv->fromUnicodeStatus;
1198 cnv->charErrorBuffer[0]=MINUS;
1199 cnv->charErrorBufferLength=1;
1247 cnv->charErrorBuffer[0]=MINUS;
1248 cnv->charErrorBufferLength=1;
1279 cnv->charErrorBuffer[0]=TO_BASE64_IMAP(b);
1280 cnv->charErrorBufferLength=1;
1306 cnv->charErrorBuffer[0]=TO_BASE64_IMAP(b);
1307 cnv->charErrorBufferLength=1;
1315 cnv->charErrorBuffer[0]=TO_BASE64_IMAP(b);
1317 cnv->charErrorBuffer[1]=TO_BASE64_IMAP(b);
1318 cnv->charErrorBufferLength=2;
1344 cnv->charErrorBuffer[0]=TO_BASE64_IMAP(b);
1345 cnv->charErrorBufferLength=1;
1353 cnv->charErrorBuffer[0]=TO_BASE64_IMAP(b);
1355 cnv->charErrorBuffer[1]=TO_BASE64_IMAP(b);
1356 cnv->charErrorBufferLength=2;
1385 cnv->charErrorBuffer[cnv->charErrorBufferLength++]=TO_BASE64_IMAP(bits);
1396 cnv->charErrorBuffer[cnv->charErrorBufferLength++]=MINUS;
1401 cnv->fromUnicodeStatus=(cnv->fromUnicodeStatus&0xf0000000)|0x1000000; /* keep version, inDirectMode=TRUE */
1404 cnv->fromUnicodeStatus=
1405 (cnv->fromUnicodeStatus&0xf0000000)| /* keep version*/