Logo Search packages:      
Sourcecode: cb2bib version File versions

EQRegExp & EQRegExp::operator= ( const EQRegExp rx  ) 

Copies the regular expression rx and returns a reference to the copy. The case sensitivity, wildcard, and minimal matching options are also copied.

Definition at line 3498 of file eqregexp.cpp.

References priv.

Referenced by EQRegExp().

{
    prepareEngine(rx.priv); // to allow sharing
    EQRegExpEngine *otherEng = rx.priv->eng;
    if (otherEng)
        ++otherEng->ref;
    invalidateEngine(priv);
    priv->eng = otherEng;
    priv->engineKey = rx.priv->engineKey;
    priv->min = rx.priv->min;
#ifndef QT_NO_REGEXP_CAPTURE
    priv->t = rx.priv->t;
    priv->capturedCache = rx.priv->capturedCache;
#endif
    if (priv->eng)
        priv->matchState.prepareForMatch(priv->eng);
    priv->matchState.captured = rx.priv->matchState.captured;
    return *this;
}


Generated by  Doxygen 1.6.0   Back to index