update cppcommon for encoding.h/cpp

This commit is contained in:
gwdwyy 2013-07-21 16:48:26 +08:00
parent 44654205d4
commit 65280738e4
4 changed files with 6 additions and 0 deletions

View File

@ -29,6 +29,8 @@ io_functs.test: io_functs.cpp io_functs.h
g++ -o $@ $< -DTEST_IO_FUNCTS
str_functs.ut: str_functs.cpp str_functs.h
g++ -o $@ $< -DTEST_STR_FUNCTS -liconv
encoding.ut: encoding.cpp str_functs.cpp str_functs.h encoding.h
g++ -o $@ encoding.cpp str_functs.cpp -DENCODING_UT -liconv
vec_functs.test: vec_functs.cpp vec_functs.h vec_functs.tcc
g++ -o $@ $< -DTEST_VEC_FUNCTS

View File

@ -452,6 +452,8 @@ int main()
string utfStr = unicodeToUtf8(uniStr);
cout<<utfStr<<endl;
}
cout<<utf8ToGbk("")<<endl;
cout<<gbkToUtf8("")<<endl;
//vector<string> tmp;
//tmp.push_back("1");
////tmp.push_back("2");

View File

@ -2,6 +2,7 @@ AT&T 3 nz
B超 3 n
c# 3 nz
C# 3 nz
c++ 3 nz
C++ 3 nz
T恤 4 n

View File

@ -1,5 +1,6 @@
包邮拉菲草18cm大檐进口草帽子超强遮阳防晒欧美日韩新款夏天 女
AT&T 3 nz
B超 3 n
c# 3 nz
C# 3 nz