question: returns the byte length of the utf string that would be created by converting the given characters to utf . concode_field_sep String EMPTY_STRING concode_elem_sep byte[] EMPTY_BYTES concode_field_sep int getCharLength concode_elem_sep int getCharLength concode_elem_sep void charsToBytes concode_elem_sep int bytesToChars concode_elem_sep byte[] stringToBytes concode_elem_sep int getZeroTerminatedByteLength concode_elem_sep String bytesToString
target: int function ( char [ ] arg0 , int arg1 , int arg2 ) { int loc0 = 0 ; arg2 += arg1 ; for ( int loc1 = arg1 ; loc1 < arg2 ; loc1 ++ ) { int loc2 = arg0 [ loc1 ] ; if ( ( loc2 >= 0x0001 ) && ( loc2 <= 0x007F ) ) { loc0 ++ ; } else if ( loc2 > 0x07FF ) { loc0 += 3 ; } else { loc0 += 2 ; } } return loc0 ; }