Menu

Removed DjVuTXT::search_string() function ?

2008-11-28
2012-11-08
  • Seong-ug Hong

    Seong-ug Hong - 2008-11-28

    Hi Leon.
    Thanks.

    I using reference library (3.5.x)
    but
    removed

    DJVUREFAPI GList<Zone *> search_string(
    GUTF8String string,
    int & start_pos,
    const bool search_fwd,
    const bool match_case,
    const bool whole_word=false ) const;

    function on this version or before ?

    search_string() function is very useful

    ====
    DjVuTXT.h version is
    // $Id: DjVuText.h,v 1.29 2005/02/08 22:02:03 stang Exp $
    // $Name: Bob_1050 $

     
    • Seong-ug Hong

      Seong-ug Hong - 2008-11-28

      Thanks, Leon.

       
    • Leon Bottou

      Leon Bottou - 2008-11-29

      This function has been removed in december 2008
      because it was incorrect, and unable to handle text
      in non latin languages.

      For a correct implementation, see function search_text in
      djvulibre-3.5/gui/shared/QT/qd_search_dialog.cpp.

      However I advise you against using the internal apis
      of the reference library. The public api is documented
      in files ddjvuapi.h and miniexp.h. The function
      ddjvu_document_get_pagetext give full access
      to the text information. For an implementation
      of search, see functions miniexp_search_text
      in djview/src/qdjviewsidebar.cpp.

      - L.

       
    • Seong-ug Hong

      Seong-ug Hong - 2008-11-29

      :)

       

Log in to post a comment.