.. index:: pair: class; EE::String::BMH .. _doxid-class_e_e_1_1_string_1_1_b_m_h: class EE::String::BMH ===================== .. toctree:: :hidden: Overview ~~~~~~~~ Boyer–Moore–Horspool fast string search. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class BMH { public: // typedefs typedef std::vector :target:`OccTable`; // methods static const :ref:`OccTable` :target:`createOccTable`(const unsigned char* needle, size_t needleLength); static size_t :ref:`search`(const unsigned char* haystack, size_t haystackLength, const unsigned char* needle, const size_t needleLength, const :ref:`OccTable`& occ); static :ref:`Int64` :ref:`find`(const std::string& haystack, const std::string& needle, const size_t& haystackOffset, const :ref:`OccTable`& occ); static :ref:`Int64` :ref:`find`(const std::string& haystack, const std::string& needle, const size_t& haystackOffset = 0); }; .. _details-class_e_e_1_1_string_1_1_b_m_h: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Boyer–Moore–Horspool fast string search. Methods ------- .. index:: pair: function; search .. _doxid-class_e_e_1_1_string_1_1_b_m_h_1a6b482b62bad996007894ee6d654167b2: .. ref-code-block:: cpp :class: doxyrest-title-code-block static size_t search(const unsigned char* haystack, size_t haystackLength, const unsigned char* needle, const size_t needleLength, const :ref:`OccTable`& occ) .. rubric:: Returns: haystackLength if not found, otherwise the position .. index:: pair: function; find .. _doxid-class_e_e_1_1_string_1_1_b_m_h_1a2b7d30e485aa68bf1dac3c553448e52c: .. ref-code-block:: cpp :class: doxyrest-title-code-block static :ref:`Int64` find(const std::string& haystack, const std::string& needle, const size_t& haystackOffset, const :ref:`OccTable`& occ) .. rubric:: Returns: -1 if not found otherwise the position .. index:: pair: function; find .. _doxid-class_e_e_1_1_string_1_1_b_m_h_1af517893206f050eb423143afc3eb0372: .. ref-code-block:: cpp :class: doxyrest-title-code-block static :ref:`Int64` find(const std::string& haystack, const std::string& needle, const size_t& haystackOffset = 0) .. rubric:: Returns: -1 if not found otherwise the position