Lines Matching refs:srcLength

59 startsWithPrefix(const char16_t* src , int32_t srcLength){
60 if(srcLength < ACE_PREFIX_LENGTH){
145 getNextSeparator(char16_t *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 char16_t* src, int32_t srcLength,
226 if(srcLength == -1){
227 srcLength = u_strlen(src);
230 if(srcLength > b1Capacity){
231 b1 = (char16_t*) 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 char16_t* src, int32_t srcLength,
424 if(srcLength==-1){
425 srcLength = 0;
426 for(;src[srcLength]!=0;){
427 if(src[srcLength]> 0x7f){
429 }/*else if(isLDHChar(src[srcLength])==false){
434 failPos = srcLength;
436 srcLength++;
438 }else if(srcLength > 0){
439 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 u_memmove(dest, src, srcLength);
576 reqLength = srcLength;
598 if(dest && srcLength <= destCapacity){
599 // srcLength should have already been set earlier.
600 U_ASSERT(srcLength >= 0);
601 u_memmove(dest, src, srcLength);
603 reqLength = srcLength;
611 uidna_toASCII(const char16_t* src, int32_t srcLength,
620 if((src==nullptr) || (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 char16_t* src, int32_t srcLength,
649 if( (src==nullptr) || (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 char16_t *src, int32_t srcLength,
678 if((src==nullptr) || (srcLength < -1) || (destCapacity<0) || (!dest && destCapacity > 0)){
695 int32_t remainingLen = srcLength;
747 remainingLen = (int32_t)(srcLength - (delimiter - src));
762 uidna_IDNToUnicode( const char16_t* src, int32_t srcLength,
771 if((src==nullptr) || (srcLength < -1) || (destCapacity<0) || (!dest && destCapacity > 0)){
788 int32_t remainingLen = srcLength;
846 remainingLen = (int32_t)(srcLength - (delimiter - src));