moved cw_is_utf8 to format_is_utf8.
FossilOrigin-Name: d68e3bec6f9bcf6255ff7e71ae3980a77b207ed1e5bd03cef5778094484108c0
This commit is contained in:
@ -518,7 +518,7 @@ void cw_dbg_colored(int level, const char *file, int line, const char *format, .
|
||||
|
||||
}
|
||||
|
||||
int cw_is_utf8(unsigned char *str, size_t len);
|
||||
//int cw_is_utf8(unsigned char *str, size_t len);
|
||||
|
||||
|
||||
int cw_format_item(char *dst,mbag_item_t * item)
|
||||
@ -549,7 +549,7 @@ static int cw_format_version(char *s, bstrv_t ver, char * def)
|
||||
int i;
|
||||
|
||||
|
||||
if ( cw_is_utf8(version,len) ){
|
||||
if ( format_is_utf8(version,len) ){
|
||||
if (len != 0 )
|
||||
rs+=sprintf(s+rs,"%.*s",len,version);
|
||||
else
|
||||
|
Reference in New Issue
Block a user