Logo Search packages:      
Sourcecode: cb2bib version File versions

bool EQRegExp::isEmpty (  )  const

Returns true if the pattern string is empty; otherwise returns false.

If you call exactMatch() with an empty pattern on an empty string it will return true; otherwise it returns false since it operates over the whole string. If you call indexIn() with an empty pattern on any string it will return the start offset (0 by default) because the empty pattern matches the 'emptiness' at the start of the string. In this case the length of the match returned by matchedLength() will be 0.

See QString::isEmpty().

Definition at line 3555 of file eqregexp.cpp.

    return priv->engineKey.pattern.isEmpty();

Generated by  Doxygen 1.6.0   Back to index