mirror of
https://github.com/yanyiwu/cppjieba.git
synced 2025-07-18 00:00:12 +08:00
Upgrade [limonp](https://github.com/yanyiwu/limonp) -> v0.6.1
This commit is contained in:
parent
79ffd00979
commit
dfb9c1f010
1
deps/limonp/StdExtension.hpp
vendored
1
deps/limonp/StdExtension.hpp
vendored
@ -29,6 +29,7 @@ using std::tr1::unordered_set;
|
||||
#include <fstream>
|
||||
#include <sstream>
|
||||
|
||||
#define print(x) std::cout << x << std::endl
|
||||
|
||||
namespace std {
|
||||
|
||||
|
2
deps/limonp/StringUtil.hpp
vendored
2
deps/limonp/StringUtil.hpp
vendored
@ -80,7 +80,7 @@ inline string& Lower(string& str) {
|
||||
|
||||
inline bool IsSpace(unsigned c) {
|
||||
// when passing large int as the argument of isspace, it core dump, so here need a type cast.
|
||||
return c > 0xff ? false : std::isspace(c & 0xff);
|
||||
return c > 0xff ? false : std::isspace(c & 0xff) != 0;
|
||||
}
|
||||
|
||||
inline std::string& LTrim(std::string &s) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user