|
|
@@ -18,6 +18,7 @@
|
|
|
|
|
|
#include <csignal>
|
|
|
|
|
|
+#include "config.h"
|
|
|
#include "std/stringhash.h"
|
|
|
#include "std/stringbuilder.h"
|
|
|
|
|
|
@@ -74,7 +75,7 @@ inline bool sphIsModifier ( int iSymbol )
|
|
|
|
|
|
/// all wildcards
|
|
|
template < typename T >
|
|
|
-inline bool sphIsWild ( T c )
|
|
|
+bool sphIsWild ( T c )
|
|
|
{
|
|
|
return c=='*' || c=='?' || c=='%';
|
|
|
}
|
|
|
@@ -449,7 +450,7 @@ void sphConfigureCommon ( const CSphConfig & hConf, FixPathAbsolute_fn && fnPath
|
|
|
/// my own is chinese
|
|
|
FORCE_INLINE bool sphIsChineseCode ( int iCode )
|
|
|
{
|
|
|
- return ( ( iCode>=0x2E80 && iCode<=0x2EF3 ) || // CJK radicals
|
|
|
+ return ( iCode>=0x2E80 && iCode<=0x2EF3 ) || // CJK radicals
|
|
|
( iCode>=0x2F00 && iCode<=0x2FD5 ) || // Kangxi radicals
|
|
|
( iCode>=0x3000 && iCode<=0x303F ) || // CJK Symbols and Punctuation
|
|
|
( iCode>=0x3105 && iCode<=0x312D ) || // Bopomofo
|
|
|
@@ -458,7 +459,7 @@ FORCE_INLINE bool sphIsChineseCode ( int iCode )
|
|
|
( iCode>=0x4E00 && iCode<=0x9FFF ) || // Ideograph
|
|
|
( iCode>=0xF900 && iCode<=0xFAD9 ) || // compatibility ideographs
|
|
|
( iCode>=0xFF00 && iCode<=0xFFEF ) || // Halfwidth and fullwidth forms
|
|
|
- ( iCode>=0x20000 && iCode<=0x2FA1D ) ); // CJK Ideograph Extensions B/C/D, and compatibility ideographs
|
|
|
+ ( iCode>=0x20000 && iCode<=0x2FA1D ) ; // CJK Ideograph Extensions B/C/D, and compatibility ideographs
|
|
|
}
|
|
|
|
|
|
/// detect chinese chars in a buffer
|