Repository URL to install this package:
|
Version:
7.7.1 ▾
|
#ifndef org_apache_lucene_util_UnicodeUtil_H
#define org_apache_lucene_util_UnicodeUtil_H
#include "java/lang/Object.h"
namespace java {
namespace lang {
class String;
class Class;
class CharSequence;
}
}
namespace org {
namespace apache {
namespace lucene {
namespace util {
class BytesRef;
}
}
}
}
template<class T> class JArray;
namespace org {
namespace apache {
namespace lucene {
namespace util {
class UnicodeUtil : public ::java::lang::Object {
public:
enum {
mid_UTF16toUTF8_76bc0581233ba4d6,
mid_UTF16toUTF8_716c3839ec2f6d06,
mid_UTF16toUTF8_77f6a84a854f264d,
mid_UTF8toUTF16_2a2009a8cbbc84a5,
mid_UTF8toUTF16_379c799cf51f8b0b,
mid_UTF8toUTF32_c1e25814898f5e79,
mid_calcUTF16toUTF8Length_562a8843a61f17b3,
mid_codePointCount_1c4ca52d1ca2a202,
mid_maxUTF8Length_898568c95ed890a7,
mid_newString_923467c770de09e1,
mid_toHexString_b6b89aa915f3be5f,
mid_validUTF16String_c2bf75780755a5b8,
mid_validUTF16String_4ddf93950f8edf56,
max_mid
};
static ::java::lang::Class *class$;
static jmethodID *mids$;
static bool live$;
static jclass initializeClass(bool);
explicit UnicodeUtil(jobject obj) : ::java::lang::Object(obj) {
if (obj != NULL && mids$ == NULL)
env->getClass(initializeClass);
}
UnicodeUtil(const UnicodeUtil& obj) : ::java::lang::Object(obj) {}
static ::org::apache::lucene::util::BytesRef *BIG_TERM;
static jint MAX_UTF8_BYTES_PER_CHAR;
static jint UNI_REPLACEMENT_CHAR;
static jint UNI_SUR_HIGH_END;
static jint UNI_SUR_HIGH_START;
static jint UNI_SUR_LOW_END;
static jint UNI_SUR_LOW_START;
static jint UTF16toUTF8(const ::java::lang::CharSequence &, jint, jint, const JArray< jbyte > &);
static jint UTF16toUTF8(const JArray< jchar > &, jint, jint, const JArray< jbyte > &);
static jint UTF16toUTF8(const ::java::lang::CharSequence &, jint, jint, const JArray< jbyte > &, jint);
static jint UTF8toUTF16(const ::org::apache::lucene::util::BytesRef &, const JArray< jchar > &);
static jint UTF8toUTF16(const JArray< jbyte > &, jint, jint, const JArray< jchar > &);
static jint UTF8toUTF32(const ::org::apache::lucene::util::BytesRef &, const JArray< jint > &);
static jint calcUTF16toUTF8Length(const ::java::lang::CharSequence &, jint, jint);
static jint codePointCount(const ::org::apache::lucene::util::BytesRef &);
static jint maxUTF8Length(jint);
static ::java::lang::String newString(const JArray< jint > &, jint, jint);
static ::java::lang::String toHexString(const ::java::lang::String &);
static jboolean validUTF16String(const ::java::lang::CharSequence &);
static jboolean validUTF16String(const JArray< jchar > &, jint);
};
}
}
}
}
#include <Python.h>
namespace org {
namespace apache {
namespace lucene {
namespace util {
extern PyType_Def PY_TYPE_DEF(UnicodeUtil);
extern PyTypeObject *PY_TYPE(UnicodeUtil);
class t_UnicodeUtil {
public:
PyObject_HEAD
UnicodeUtil object;
static PyObject *wrap_Object(const UnicodeUtil&);
static PyObject *wrap_jobject(const jobject&);
static void install(PyObject *module);
static void initialize(PyObject *module);
};
}
}
}
}
#endif