Lines Matching refs:prefixLength

582         int32_t prefixLength;  in readPackage()  local
593 prefixLength=(int32_t)(prefixLimit-s); in readPackage()
594 if(prefixLength==0 || prefixLength>=UPRV_LENGTHOF(pkgPrefix)) { in readPackage()
601 if(prefixEndsWithType && s[prefixLength-1]!=type) { in readPackage()
608 memcpy(pkgPrefix, s, prefixLength); in readPackage()
609 pkgPrefix[prefixLength]=0; in readPackage()
610 memcpy(prefix, s, ++prefixLength); // include the / in readPackage()
615 prefixLength=inPkgNameLength; in readPackage()
622 prefix[prefixLength++]='_'; in readPackage()
625 prefix[prefixLength++]=U_TREE_ENTRY_SEP_CHAR; in readPackage()
630 prefix[prefixLength]=0; in readPackage()
638 if(0!=strncmp(s, prefix, prefixLength) || s[prefixLength]==0) { in readPackage()
643 items[i].name=s+prefixLength; in readPackage()
694 int32_t i, length, prefixLength, maxItemLength, basenameOffset, offset, outInt32; in writePackage() local
772 prefixLength=(int32_t)strlen(prefix); in writePackage()
774 prefixLength=(int32_t)strlen(pkgPrefix); in writePackage()
775 memcpy(prefix, pkgPrefix, prefixLength); in writePackage()
777 prefix[prefixLength-1]=outType; in writePackage()
780 prefix[prefixLength++]=U_TREE_ENTRY_SEP_CHAR; in writePackage()
781 prefix[prefixLength]=0; in writePackage()
783 dsLocalToOut->swapInvChars(dsLocalToOut, prefix, prefixLength, prefix, &errorCode); in writePackage()
801 name=allocString(FALSE, length+prefixLength); in writePackage()
802 memcpy(name, prefix, prefixLength); in writePackage()
803 memcpy(name+prefixLength, items[i].name, length+1); in writePackage()