imgtools/imglib/host/utf16string.cpp
changeset 606 30b30f9da0b7
parent 600 6d08f4a05d93
equal deleted inserted replaced
605:122d2b873fd1 606:30b30f9da0b7
    39 	Assign(aUtf8Str.c_str(),aUtf8Str.length());
    39 	Assign(aUtf8Str.c_str(),aUtf8Str.length());
    40 }
    40 }
    41 UTF16String::UTF16String(const TUint16* aUtf16Str,TInt aLength /* = -1*/){
    41 UTF16String::UTF16String(const TUint16* aUtf16Str,TInt aLength /* = -1*/){
    42 	
    42 	
    43 	if(aLength < 0){
    43 	if(aLength < 0){
       
    44 		aLength = 0 ;
    44 		const TUint16* p = aUtf16Str ;
    45 		const TUint16* p = aUtf16Str ;
    45 		while(*p){
    46 		while(*p){
    46 			p++ ;
    47 			p++ ;
    47 			aLength ++ ;
    48 			aLength ++ ;
    48 		}
    49 		}