.. 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, bool caseInsensitive = false); static size_t :ref:`search`(const unsigned char* haystack, size_t haystackLength, const unsigned char* needle, const size_t needleLength, const :ref:`OccTable`& occ, bool caseInsensitive = false); static :ref:`Int64` :ref:`find`(const std::string& haystack, const std::string& needle, const size_t& haystackOffset, const :ref:`OccTable`& occ, bool caseInsensitive = false); static :ref:`Int64` :ref:`find`(const std::string& haystack, const std::string& needle, const size_t& haystackOffset = 0, bool caseInsensitive = false); static :ref:`Int64` :ref:`find`(std::string_view haystack, std::string_view needle, const size_t& haystackOffset, const :ref:`OccTable`& occ, bool caseInsensitive = false); static :ref:`Int64` :ref:`find`(std::string_view haystack, std::string_view needle, const size_t& haystackOffset = 0, bool caseInsensitive = false); }; .. _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_1a0eb9725eba173a6324e2f31c11608bf1: .. 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, bool caseInsensitive = false) .. 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_1a60c518d6df68ee8b0aedbecb00dff38e: .. 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, bool caseInsensitive = false) .. 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_1a872737eea35b9b42cb4bbac3aae31d5a: .. 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, bool caseInsensitive = false) .. 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_1a78b7a5b320c2282b388d7400ee9de9d8: .. ref-code-block:: cpp :class: doxyrest-title-code-block static :ref:`Int64` find(std::string_view haystack, std::string_view needle, const size_t& haystackOffset, const :ref:`OccTable`& occ, bool caseInsensitive = false) .. 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_1adc4c863883d9eb504de557209c4ffecd: .. ref-code-block:: cpp :class: doxyrest-title-code-block static :ref:`Int64` find(std::string_view haystack, std::string_view needle, const size_t& haystackOffset = 0, bool caseInsensitive = false) .. rubric:: Returns: -1 if not found otherwise the position