Lines Matching refs:replaceThis
1505 BString::ReplaceFirst(char replaceThis, char withThis) in ReplaceFirst() argument
1507 int32 pos = FindFirst(replaceThis); in ReplaceFirst()
1515 BString::ReplaceLast(char replaceThis, char withThis) in ReplaceLast() argument
1517 int32 pos = FindLast(replaceThis); in ReplaceLast()
1525 BString::ReplaceAll(char replaceThis, char withThis, int32 fromOffset) in ReplaceAll() argument
1528 int32 pos = FindFirst(replaceThis, fromOffset); in ReplaceAll()
1532 for( ; pos >= 0; pos = FindFirst(replaceThis, pos + 1)) in ReplaceAll()
1540 BString::Replace(char replaceThis, char withThis, int32 maxReplaceCount, in Replace() argument
1544 int32 pos = FindFirst(replaceThis, fromOffset); in Replace()
1548 pos = FindFirst(replaceThis, pos + 1)) { in Replace()
1558 BString::ReplaceFirst(const char* replaceThis, const char* withThis) in ReplaceFirst() argument
1560 if (replaceThis == NULL || FindFirst(replaceThis) < 0) in ReplaceFirst()
1566 return _DoReplace(replaceThis, withThis, 1, 0, KEEP_CASE); in ReplaceFirst()
1571 BString::ReplaceLast(const char* replaceThis, const char* withThis) in ReplaceLast() argument
1573 if (replaceThis == NULL) in ReplaceLast()
1578 int32 replaceThisLength = strlen(replaceThis); in ReplaceLast()
1579 int32 pos = _FindBefore(replaceThis, Length(), replaceThisLength); in ReplaceLast()
1603 BString::ReplaceAll(const char* replaceThis, const char* withThis, in ReplaceAll() argument
1606 if (replaceThis == NULL || FindFirst(replaceThis) < 0) in ReplaceAll()
1612 return _DoReplace(replaceThis, withThis, REPLACE_ALL, in ReplaceAll()
1618 BString::Replace(const char* replaceThis, const char* withThis, in Replace() argument
1621 if (replaceThis == NULL || maxReplaceCount <= 0 in Replace()
1622 || FindFirst(replaceThis) < 0) in Replace()
1628 return _DoReplace(replaceThis, withThis, maxReplaceCount, in Replace()
1634 BString::ReplaceAllChars(const char* replaceThis, const char* withThis, in ReplaceAllChars() argument
1637 return ReplaceAll(replaceThis, withThis, in ReplaceAllChars()
1643 BString::ReplaceChars(const char* replaceThis, const char* withThis, in ReplaceChars() argument
1646 return Replace(replaceThis, withThis, maxReplaceCount, in ReplaceChars()
1652 BString::IReplaceFirst(char replaceThis, char withThis) in IReplaceFirst() argument
1654 char tmp[2] = { replaceThis, '\0' }; in IReplaceFirst()
1664 BString::IReplaceLast(char replaceThis, char withThis) in IReplaceLast() argument
1666 char tmp[2] = { replaceThis, '\0' }; in IReplaceLast()
1676 BString::IReplaceAll(char replaceThis, char withThis, int32 fromOffset) in IReplaceAll() argument
1678 char tmp[2] = { replaceThis, '\0' }; in IReplaceAll()
1691 BString::IReplace(char replaceThis, char withThis, int32 maxReplaceCount, in IReplace() argument
1694 char tmp[2] = { replaceThis, '\0' }; in IReplace()
1711 BString::IReplaceFirst(const char* replaceThis, const char* withThis) in IReplaceFirst() argument
1713 if (replaceThis == NULL || IFindFirst(replaceThis) < 0) in IReplaceFirst()
1718 return _DoReplace(replaceThis, withThis, 1, 0, IGNORE_CASE); in IReplaceFirst()
1723 BString::IReplaceLast(const char* replaceThis, const char* withThis) in IReplaceLast() argument
1725 if (replaceThis == NULL) in IReplaceLast()
1730 int32 replaceThisLength = strlen(replaceThis); in IReplaceLast()
1731 int32 pos = _IFindBefore(replaceThis, Length(), replaceThisLength); in IReplaceLast()
1755 BString::IReplaceAll(const char* replaceThis, const char* withThis, in IReplaceAll() argument
1758 if (replaceThis == NULL || IFindFirst(replaceThis) < 0) in IReplaceAll()
1764 return _DoReplace(replaceThis, withThis, REPLACE_ALL, in IReplaceAll()
1770 BString::IReplace(const char* replaceThis, const char* withThis, in IReplace() argument
1773 if (replaceThis == NULL || maxReplaceCount <= 0 in IReplace()
1774 || FindFirst(replaceThis) < 0) in IReplace()
1780 return _DoReplace(replaceThis, withThis, maxReplaceCount, in IReplace()