Lines Matching refs:o
64 int i, o; in convertStringToNjChar() local
67 for( i = o = 0 ; src[ i ] != 0x00 && o < maxChars ; ) { in convertStringToNjChar()
69 dst_tmp = ( NJ_UINT8* )&( dst[ o ] ); in convertStringToNjChar()
77 o++; in convertStringToNjChar()
87 o++; in convertStringToNjChar()
97 o++; in convertStringToNjChar()
106 if( !( o < maxChars - 1 ) ) { in convertStringToNjChar()
122 o += 2; in convertStringToNjChar()
127 dst[ o ] = NJ_CHAR_NUL; in convertStringToNjChar()
140 int i, o; in convertNjCharToString() local
143 for( i = o = 0 ; src[ i ] != 0x0000 && i < maxChars ; ) { in convertNjCharToString()
150 dst[ o + 0 ] = src_tmp[ 1 ] & 0x007f; in convertNjCharToString()
152 o++; in convertNjCharToString()
156 … dst[ o + 0 ] = 0xc0 | ( ( src_tmp[ 0 ] & 0x07 ) << 2 ) | ( ( src_tmp[ 1 ] & 0xc0 ) >> 6 ); in convertNjCharToString()
157 dst[ o + 1 ] = 0x80 | ( ( src_tmp[ 1 ] & 0x3f ) ); in convertNjCharToString()
159 o += 2; in convertNjCharToString()
176 dst[ o + 0 ] = 0xf0 | ( ( src1 & 0x1c ) >> 2 ); in convertNjCharToString()
177 dst[ o + 1 ] = 0x80 | ( ( src1 & 0x03 ) << 4 ) | ( ( src2 & 0xf0 ) >> 4 ); in convertNjCharToString()
178 …dst[ o + 2 ] = 0x80 | ( ( src2 & 0x0f ) << 2 ) | ( ( src3 & 0xc0 ) >> 6… in convertNjCharToString()
179 … dst[ o + 3 ] = 0x80 | ( src3 & 0x3f ); in convertNjCharToString()
181 o += 4; in convertNjCharToString()
185 dst[ o + 0 ] = 0xe0 | ( ( src_tmp[ 0 ] & 0xf0 ) >> 4 ); in convertNjCharToString()
186 … dst[ o + 1 ] = 0x80 | ( ( src_tmp[ 0 ] & 0x0f ) << 2 ) | ( ( src_tmp[ 1 ] & 0xc0 ) >> 6 ); in convertNjCharToString()
187 dst[ o + 2 ] = 0x80 | ( ( src_tmp[ 1 ] & 0x3f ) ); in convertNjCharToString()
189 o += 3; in convertNjCharToString()
192 dst[ o ] = 0x00; in convertNjCharToString()