Home | History | Annotate | Download | only in intltest

Lines Matching full:srclength

47 startsWithPrefix(const UChar* src , int32_t srcLength){
50 if(srcLength < ACE_PREFIX_LENGTH){
129 static int32_t convertToPuny(const UChar* src, int32_t srcLength,
141 u_strToUTF32((UChar32*)b1,b1Capacity,&b1Len,src,srcLength,&status);
153 u_strToUTF32((UChar32*)b1,b1Len,&b1Len,src,srcLength,&status);
199 static int32_t convertFromPuny( const UChar* src, int32_t srcLength,
206 convertUCharsToASCII(src, b1,srcLength);
211 unsigned char* caseFlags = NULL; //(unsigned char*) uprv_malloc(srcLength * sizeof(unsigned char*));
212 punycode_status error = punycode_decode(srcLength,b1,(uint32_t*)&b2Len,b2,caseFlags);
220 error = punycode_decode(srcLength,b1,(uint32_t*)&b2Len,b2,caseFlags);
244 idnaref_toASCII(const UChar* src, int32_t srcLength,
253 if((src == NULL) || (srcLength < -1) || (destCapacity<0) || (!dest && destCapacity > 0)){
277 if(srcLength == -1){
278 srcLength = u_strlen(src);
282 for( j=0;j<srcLength;j++){
295 b1Len = prep->process(src,srcLength,b1, b1Capacity,allowUnassigned,parseError,*status);
308 b1Len = prep->process(src,srcLength,b1, b1Len,allowUnassigned, parseError, *status);
411 idnaref_toUnicode(const UChar* src, int32_t srcLength,
420 if((src == NULL) || (srcLength < -1) || (destCapacity<0) || (!dest && destCapacity > 0)){
454 if(srcLength==-1){
455 srcLength = 0;
456 for(;src[srcLength]!=0;){
457 if(src[srcLength]> 0x7f){
459 }if(prep->isLDHChar(src[srcLength])==FALSE){
464 failPos = srcLength;
466 srcLength++;
469 for(int32_t j=0; j<srcLength; j++){
484 b1Len = prep->process(src,srcLength,b1,b1Capacity,allowUnassigned, parseError, *status);
496 b1Len = prep->process(src,srcLength,b1, b1Len,allowUnassigned, parseError, *status);
505 if(srcLength < b1Capacity){
506 uprv_memmove(b1,src, srcLength * U_SIZEOF_UCHAR);
509 b1 = (UChar*) uprv_malloc(srcLength * U_SIZEOF_UCHAR);
514 uprv_memmove(b1,src, srcLength * U_SIZEOF_UCHAR);
516 b1Len = srcLength;
519 if(startsWithPrefix(src,srcLength)){
582 || src[0] == HYPHEN || src[srcLength-1] == HYPHEN){
588 uprv_syntaxError(src,failPos, srcLength,parseError);
591 uprv_syntaxError(src,0,srcLength,parseError);
594 uprv_syntaxError(src, (srcLength>0) ? srcLength-1 : srcLength, srcLength,parseError);
601 if(srcLength <= destCapacity){
602 uprv_memmove(dest,src,srcLength * U_SIZEOF_UCHAR);
604 reqLength = srcLength;
625 if(dest && srcLength <= destCapacity){
626 if(srcLength == -1) {
629 uprv_memmove(dest,src,srcLength * U_SIZEOF_UCHAR);
632 reqLength = srcLength;
640 getNextSeparator(UChar *src,int32_t srcLength,NamePrepTransform* prep,
644 if(srcLength == -1){
660 for(i=0;i<srcLength;i++){
667 if(i==srcLength){
668 *limit = src+srcLength;
676 idnaref_IDNToASCII( const UChar* src, int32_t srcLength,
685 if((src == NULL) || (srcLength < -1) || (destCapacity<0) || (!dest && destCapacity > 0)){
701 int32_t remainingLen = srcLength;
714 if(srcLength == -1){
769 if(delimiter == src+srcLength){
814 remainingLen = srcLength - (delimiter - src);
831 idnaref_IDNToUnicode( const UChar* src, int32_t srcLength,
840 if((src == NULL) || (srcLength < -1) || (destCapacity<0) || (!dest && destCapacity > 0)){
857 int32_t remainingLen = srcLength;
868 if(srcLength == -1){
922 if(delimiter == src+srcLength){
971 remainingLen = srcLength - (delimiter - src);