From 21adc72793addfe129b2c608562bdeac45ba8a40 Mon Sep 17 00:00:00 2001 From: gwdwyy Date: Fri, 12 Jul 2013 15:34:26 +0800 Subject: [PATCH] update cppcommon --- src/cppcommon/str_functs.cpp | 21 ++++++++++++++++++++- src/cppcommon/str_functs.h | 1 + 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/src/cppcommon/str_functs.cpp b/src/cppcommon/str_functs.cpp index f014992..2d9e12a 100644 --- a/src/cppcommon/str_functs.cpp +++ b/src/cppcommon/str_functs.cpp @@ -350,6 +350,24 @@ namespace CPPCOMMON return res; } + //utf8 -> gbk + string utf8ToGbk(const string& utf) + { + //cout<<__FILE__<<__LINE__<