Home | History | Annotate | Download | only in common

Lines Matching full:srclength

57 startsWithPrefix(const UChar* src , int32_t srcLength){
60 if(srcLength < ACE_PREFIX_LENGTH){
145 getNextSeparator(UChar *src, int32_t srcLength,
147 if(srcLength == -1){
163 for(i=0;i<srcLength;i++){
170 // if(i==srcLength)
171 *limit = src+srcLength;
194 _internal_toASCII(const UChar* src, int32_t srcLength,
226 if(srcLength == -1){
227 srcLength = u_strlen(src);
230 if(srcLength > b1Capacity){
231 b1 = (UChar*) uprv_malloc(srcLength * U_SIZEOF_UCHAR);
236 b1Capacity = srcLength;
240 for( j=0;j<srcLength;j++){
251 b1Len = usprep_prepare(nameprep, src, srcLength, b1, b1Capacity, namePrepOptions, parseError, status);
267 b1Len = usprep_prepare(nameprep, src, srcLength, b1, b1Len, namePrepOptions, parseError, status);
394 _internal_toUnicode(const UChar* src, int32_t srcLength,
425 if(srcLength==-1){
426 srcLength = 0;
427 for(;src[srcLength]!=0;){
428 if(src[srcLength]> 0x7f){
430 }/*else if(isLDHChar(src[srcLength])==FALSE){
435 failPos = srcLength;
437 srcLength++;
439 }else if(srcLength > 0){
440 for(int32_t j=0; j<srcLength; j++){
457 b1Len = usprep_prepare(nameprep, src, srcLength, b1, b1Capacity, namePrepOptions, parseError, status);
469 b1Len = usprep_prepare(nameprep, src, srcLength, b1, b1Len, namePrepOptions, parseError, status);
479 b1Len = srcLength;
553 || src[0] == HYPHEN || src[srcLength-1] == HYPHEN){
559 uprv_syntaxError(src,failPos, srcLength,parseError);
562 uprv_syntaxError(src,0,srcLength,parseError);
565 uprv_syntaxError(src, (srcLength>0) ? srcLength-1 : srcLength, srcLength,parseError);
573 if(srcLength <= destCapacity){
574 uprv_memmove(dest,src,srcLength * U_SIZEOF_UCHAR);
576 reqLength = srcLength;
598 if(dest && srcLength <= destCapacity){
599 // srcLength should have already been set earlier.
600 U_ASSERT(srcLength >= 0);
601 uprv_memmove(dest,src,srcLength * U_SIZEOF_UCHAR);
603 reqLength = srcLength;
611 uidna_toASCII(const UChar* src, int32_t srcLength,
620 if((src==NULL) || (srcLength < -1) || (destCapacity<0) || (!dest && destCapacity > 0)){
631 int32_t retLen = _internal_toASCII(src, srcLength, dest, destCapacity, options, nameprep, parseError, status);
640 uidna_toUnicode(const UChar* src, int32_t srcLength,
649 if( (src==NULL) || (srcLength < -1) || (destCapacity<0) || (!dest && destCapacity > 0)){
660 int32_t retLen = _internal_toUnicode(src, srcLength, dest, destCapacity, options, nameprep, parseError, status);
669 uidna_IDNToASCII( const UChar *src, int32_t srcLength,
678 if((src==NULL) || (srcLength < -1) || (destCapacity<0) || (!dest && destCapacity > 0)){
695 int32_t remainingLen = srcLength;
747 remainingLen = (int32_t)(srcLength - (delimiter - src));
762 uidna_IDNToUnicode( const UChar* src, int32_t srcLength,
771 if((src==NULL) || (srcLength < -1) || (destCapacity<0) || (!dest && destCapacity > 0)){
788 int32_t remainingLen = srcLength;
846 remainingLen = (int32_t)(srcLength - (delimiter - src));