mirror of
https://github.com/yanyiwu/cppjieba.git
synced 2025-07-18 00:00:12 +08:00
update cppcommon for encoding.h/cpp
This commit is contained in:
parent
44654205d4
commit
65280738e4
@ -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
|
||||
|
||||
|
@ -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");
|
||||
|
1
src/cppcommon/testdata/dict.gbk
vendored
1
src/cppcommon/testdata/dict.gbk
vendored
@ -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
|
||||
|
1
src/cppcommon/testdata/dict.utf8
vendored
1
src/cppcommon/testdata/dict.utf8
vendored
@ -1,5 +1,6 @@
|
||||
包邮拉菲草18cm大檐进口草帽子超强遮阳防晒欧美日韩新款夏天 女
|
||||
AT&T 3 nz
|
||||
|
||||
B超 3 n
|
||||
c# 3 nz
|
||||
C# 3 nz
|
||||
|
Loading…
x
Reference in New Issue
Block a user