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++){
296 b1Len = prep->process(src,srcLength,b1, b1Capacity,allowUnassigned,parseError,*status);
309 b1Len = prep->process(src,srcLength,b1, b1Len,allowUnassigned, parseError, *status);
413 idnaref_toUnicode(const UChar* src, int32_t srcLength,
422 if((src == NULL) || (srcLength < -1) || (destCapacity<0) || (!dest && destCapacity > 0)){
456 if(srcLength==-1){
457 srcLength = 0;
458 for(;src[srcLength]!=0;){
459 if(src[srcLength]> 0x7f){
461 }if(prep->isLDHChar(src[srcLength])==FALSE){
466 failPos = srcLength;
468 srcLength++;
471 for(int32_t j=0; j<srcLength; j++){
486 b1Len = prep->process(src,srcLength,b1,b1Capacity,allowUnassigned, parseError, *status);
498 b1Len = prep->process(src,srcLength,b1, b1Len,allowUnassigned, parseError, *status);
507 if(srcLength < b1Capacity){
508 uprv_memmove(b1,src, srcLength * U_SIZEOF_UCHAR);
511 b1 = (UChar*) uprv_malloc(srcLength * U_SIZEOF_UCHAR);
516 uprv_memmove(b1,src, srcLength * U_SIZEOF_UCHAR);
518 b1Len = srcLength;
521 if(startsWithPrefix(src,srcLength)){
584 || src[0] == HYPHEN || src[srcLength-1] == HYPHEN){
590 uprv_syntaxError(src,failPos, srcLength,parseError);
593 uprv_syntaxError(src,0,srcLength,parseError);
596 uprv_syntaxError(src, (srcLength>0) ? srcLength-1 : srcLength, srcLength,parseError);
603 if(srcLength <= destCapacity){
604 uprv_memmove(dest,src,srcLength * U_SIZEOF_UCHAR);
606 reqLength = srcLength;
627 if(dest && srcLength <= destCapacity){
628 if(srcLength == -1) {
631 uprv_memmove(dest,src,srcLength * U_SIZEOF_UCHAR);
634 reqLength = srcLength;
642 getNextSeparator(UChar *src,int32_t srcLength,NamePrepTransform* prep,
646 if(srcLength == -1){
662 for(i=0;i<srcLength;i++){
669 if(i==srcLength){
670 *limit = src+srcLength;
678 idnaref_IDNToASCII( const UChar* src, int32_t srcLength,
687 if((src == NULL) || (srcLength < -1) || (destCapacity<0) || (!dest && destCapacity > 0)){
703 int32_t remainingLen = srcLength;
716 if(srcLength == -1){
771 if(delimiter == src+srcLength){
816 remainingLen = srcLength - (delimiter - src);
833 idnaref_IDNToUnicode( const UChar* src, int32_t srcLength,
842 if((src == NULL) || (srcLength < -1) || (destCapacity<0) || (!dest && destCapacity > 0)){
859 int32_t remainingLen = srcLength;
870 if(srcLength == -1){
924 if(delimiter == src+srcLength){
973 remainingLen = srcLength - (delimiter - src);