Source/WebKit/efl/ewk/ewk_view.cpp
Eina_Bool ewk_view_text_search(const Evas_Object* o, const char* string, Eina_Bool case_sensitive, Eina_Bool forward, Eina_Bool wrap)
{
    EWK_VIEW_SD_GET_OR_RETURN(o, sd, EINA_FALSE);
    EWK_VIEW_PRIV_GET_OR_RETURN(sd, priv, EINA_FALSE);
    EINA_SAFETY_ON_NULL_RETURN_VAL(string, EINA_FALSE);
    WTF::TextCaseSensitivity sensitive;
    WebCore::FindDirection direction;

    if (case_sensitive)
        sensitive = WTF::TextCaseSensitive;
    else
        sensitive = WTF::TextCaseInsensitive;

    if (forward)
        direction = WebCore::FindDirectionForward;
    else
        direction = WebCore::FindDirectionBackward;

    return priv->page->findString(String::fromUTF8(string), sensitive, direction, wrap);
}
/**
 * Search the given text string in document.
 *
 * @param o view object where to search text.
 * @param string reference string to search.
 * @param case_sensitive if search should be case sensitive or not.
 * @param forward if search is from cursor and on or backwards.
 * @param wrap if search should wrap at end.
 *
 * @return @c EINA_TRUE if found, @c EINA_FALSE if not or failure.
 */
Search the given text string in document.
@param o view object where to search text.
@param string reference string to search.
@param case_sensitive if search should be case sensitive or not.
@param forward if search is from cursor and on or backwards.
@param wrap if search should wrap at end.

@return @c EINA_TRUE if found, @c EINA_FALSE if not or failure.
Search the given text string in document . @param o view object where to search text . @param string reference string to search . @param case_sensitive if search should be case sensitive or not . @param forward if search is from cursor and on or backwards . @param wrap if search should wrap at end . @return @c EINA_TRUE if found @c EINA_FALSE if not or failure .
Eina_Bool ewk_view_text_search(const Evas_Object* o, const char* string, Eina_Bool case_sensitive, Eina_Bool forward, Eina_Bool wrap)
{
    EWK_VIEW_SD_GET_OR_RETURN(o, sd, EINA_FALSE);
    EWK_VIEW_PRIV_GET_OR_RETURN(sd, priv, EINA_FALSE);
    EINA_SAFETY_ON_NULL_RETURN_VAL(string, EINA_FALSE);
    WTF::TextCaseSensitivity sensitive;
    WebCore::FindDirection direction;
    if (case_sensitive)
        sensitive = WTF::TextCaseSensitive;
    else
        sensitive = WTF::TextCaseInsensitive;
    if (forward)
        direction = WebCore::FindDirectionForward;
    else
        direction = WebCore::FindDirectionBackward;
    return priv->page->findString(String::fromUTF8(string), sensitive, direction, wrap);
}
Eina_Bool ewk_view_text_search ( const Evas_Object * o , const char * string , Eina_Bool case_sensitive , Eina_Bool forward , Eina_Bool wrap ) { EWK_VIEW_SD_GET_OR_RETURN ( o , sd , EINA_FALSE ) ; EWK_VIEW_PRIV_GET_OR_RETURN ( sd , priv , EINA_FALSE ) ; EINA_SAFETY_ON_NULL_RETURN_VAL ( string , EINA_FALSE ) ; WTF :: TextCaseSensitivity sensitive ; WebCore :: FindDirection direction ; if ( case_sensitive ) sensitive = WTF :: TextCaseSensitive ; else sensitive = WTF :: TextCaseInsensitive ; if ( forward ) direction = WebCore :: FindDirectionForward ; else direction = WebCore :: FindDirectionBackward ; return priv -> page -> findString ( String :: fromUTF8 ( string ) , sensitive , direction , wrap ) ; }
Search the given text string in document.
Search the given text string in document .