Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
lucene / include / org / apache / lucene / util / StringHelper.h
Size: Mime:
#ifndef org_apache_lucene_util_StringHelper_H
#define org_apache_lucene_util_StringHelper_H

#include "java/lang/Object.h"

namespace java {
  namespace lang {
    class String;
    class Class;
  }
}
namespace org {
  namespace apache {
    namespace lucene {
      namespace util {
        class IntsRef;
        class BytesRef;
      }
    }
  }
}
template<class T> class JArray;

namespace org {
  namespace apache {
    namespace lucene {
      namespace util {

        class StringHelper : public ::java::lang::Object {
         public:
          enum {
            mid_bytesDifference_be8aa8aad7019222,
            mid_compare_188471c06e186518,
            mid_endsWith_ff465b75e90e92bc,
            mid_idToString_1e06178c14608383,
            mid_intsRefToBytesRef_7b12f67defdc560b,
            mid_murmurhash3_x86_32_c966aec80abe56d6,
            mid_murmurhash3_x86_32_e2942f7225beb5c0,
            mid_randomId_7e7da87ae816e9d4,
            mid_sortKeyLength_be8aa8aad7019222,
            mid_startsWith_ff465b75e90e92bc,
            mid_startsWith_d0879cd556262c9c,
            max_mid
          };

          static ::java::lang::Class *class$;
          static jmethodID *mids$;
          static bool live$;
          static jclass initializeClass(bool);

          explicit StringHelper(jobject obj) : ::java::lang::Object(obj) {
            if (obj != NULL && mids$ == NULL)
              env->getClass(initializeClass);
          }
          StringHelper(const StringHelper& obj) : ::java::lang::Object(obj) {}

          static jint GOOD_FAST_HASH_SEED;
          static jint ID_LENGTH;

          static jint bytesDifference(const ::org::apache::lucene::util::BytesRef &, const ::org::apache::lucene::util::BytesRef &);
          static jint compare(jint, const JArray< jbyte > &, jint, const JArray< jbyte > &, jint);
          static jboolean endsWith(const ::org::apache::lucene::util::BytesRef &, const ::org::apache::lucene::util::BytesRef &);
          static ::java::lang::String idToString(const JArray< jbyte > &);
          static ::org::apache::lucene::util::BytesRef intsRefToBytesRef(const ::org::apache::lucene::util::IntsRef &);
          static jint murmurhash3_x86_32(const ::org::apache::lucene::util::BytesRef &, jint);
          static jint murmurhash3_x86_32(const JArray< jbyte > &, jint, jint, jint);
          static JArray< jbyte > randomId();
          static jint sortKeyLength(const ::org::apache::lucene::util::BytesRef &, const ::org::apache::lucene::util::BytesRef &);
          static jboolean startsWith(const ::org::apache::lucene::util::BytesRef &, const ::org::apache::lucene::util::BytesRef &);
          static jboolean startsWith(const JArray< jbyte > &, const ::org::apache::lucene::util::BytesRef &);
        };
      }
    }
  }
}

#include <Python.h>

namespace org {
  namespace apache {
    namespace lucene {
      namespace util {
        extern PyType_Def PY_TYPE_DEF(StringHelper);
        extern PyTypeObject *PY_TYPE(StringHelper);

        class t_StringHelper {
        public:
          PyObject_HEAD
          StringHelper object;
          static PyObject *wrap_Object(const StringHelper&);
          static PyObject *wrap_jobject(const jobject&);
          static void install(PyObject *module);
          static void initialize(PyObject *module);
        };
      }
    }
  }
}

#endif