moved cw_is_utf8 to format_is_utf8.

FossilOrigin-Name: d68e3bec6f9bcf6255ff7e71ae3980a77b207ed1e5bd03cef5778094484108c0
This commit is contained in:
7u83@mail.ru
2016-03-12 08:35:54 +00:00
parent 1dbb599802
commit a1c9895cdb
8 changed files with 73 additions and 43 deletions

View File

@ -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