Lines Matching defs:aSrc
91 Counts occurrences of breakStr in aSrc
94 PRInt32 CountLinebreaks(const T* aSrc, PRInt32 inLen, const char* breakStr)
96 const T* src = aSrc;
97 const T* srcEnd = aSrc + inLen;
329 char* nsLinebreakConverter::ConvertLineBreaks(const char* aSrc,
333 if (!aSrc) return nsnull;
335 PRInt32 sourceLen = (aSrcLen == kIgnoreLen) ? strlen(aSrc) + 1 : aSrcLen;
339 resultString = ConvertUnknownBreaks(LOSER_CHAR_CAST(aSrc), sourceLen, GetLinebreakString(aDestBreaks));
341 resultString = ConvertBreaks(LOSER_CHAR_CAST(aSrc), sourceLen, GetLinebreakString(aSrcBreaks), GetLinebreakString(aDestBreaks));
398 PRUnichar* nsLinebreakConverter::ConvertUnicharLineBreaks(const PRUnichar* aSrc,
402 if (!aSrc) return nsnull;
404 PRInt32 bufLen = (aSrcLen == kIgnoreLen) ? nsCRT::strlen(aSrc) + 1 : aSrcLen;
408 resultString = ConvertUnknownBreaks(LOSER_UNICHAR_CAST(aSrc), bufLen, GetLinebreakString(aDestBreaks));
410 resultString = ConvertBreaks(LOSER_UNICHAR_CAST(aSrc), bufLen, GetLinebreakString(aSrcBreaks), GetLinebreakString(aDestBreaks));