Home | History | Annotate | Download | only in toolutil

Lines Matching refs:cp

52 ucbuf_autodetect_fs(FileStream* in, const char** cp, UConverter** conv, int32_t* signatureLength, UErrorCode* error){
63 *cp = ucnv_detectUnicodeSignature(start, numRead, signatureLength, error);
71 if(*cp==NULL){
77 *conv = ucnv_open(*cp,error);
96 static UBool ucbuf_isCPKnown(const char* cp){
97 if(ucnv_compareNames("UTF-8",cp)==0){
100 if(ucnv_compareNames("UTF-16BE",cp)==0){
103 if(ucnv_compareNames("UTF-16LE",cp)==0){
106 if(ucnv_compareNames("UTF-16",cp)==0){
109 if(ucnv_compareNames("UTF-32",cp)==0){
112 if(ucnv_compareNames("UTF-32BE",cp)==0){
115 if(ucnv_compareNames("UTF-32LE",cp)==0){
118 if(ucnv_compareNames("SCSU",cp)==0){
121 if(ucnv_compareNames("BOCU-1",cp)==0){
124 if(ucnv_compareNames("UTF-7",cp)==0){
131 ucbuf_autodetect(const char* fileName, const char** cp,UConverter** conv, int32_t* signatureLength,UErrorCode* error){
136 if(conv==NULL || cp==NULL || fileName==NULL){
148 if(ucbuf_autodetect_fs(in,cp,conv,signatureLength,error)) {
448 ucbuf_open(const char* fileName,const char** cp,UBool showWarning, UBool buffered, UErrorCode* error){
456 if(cp==NULL || fileName==NULL){
479 if(*cp==NULL || **cp=='\0'){
481 ucbuf_autodetect_fs(in,cp,&buf->conv,&buf->signatureLength,error);
482 }else if(ucbuf_isCPKnown(*cp)){
487 buf->conv=ucnv_open(*cp,error);
514 fprintf(stderr, "Could not open codepage [%s]: %s\n", *cp, u_errorName(*error));