Searched refs:keepCount (Results 1 - 1 of 1) sorted by relevance

/macosx-10.10/WebCore-7600.1.25/platform/graphics/
H A DStringTruncator.cpp44 typedef unsigned TruncationFunction(const String&, unsigned length, unsigned keepCount, UChar* buffer, bool shouldInsertEllipsis);
61 static unsigned centerTruncateToBuffer(const String& string, unsigned length, unsigned keepCount, UChar* buffer, bool shouldInsertEllipsis) argument
63 ASSERT_WITH_SECURITY_IMPLICATION(keepCount < length);
64 ASSERT_WITH_SECURITY_IMPLICATION(keepCount < STRING_BUFFER_SIZE);
66 unsigned omitStart = (keepCount + 1) / 2;
68 unsigned omitEnd = boundedTextBreakFollowing(it, omitStart + (length - keepCount) - 1, length);
102 static unsigned rightTruncateToBuffer(const String& string, unsigned length, unsigned keepCount, UChar* buffer, bool shouldInsertEllipsis) argument
104 ASSERT_WITH_SECURITY_IMPLICATION(keepCount < length);
105 ASSERT_WITH_SECURITY_IMPLICATION(keepCount < STRING_BUFFER_SIZE);
113 if (keepCount >
132 rightClipToCharacterBuffer(const String& string, unsigned length, unsigned keepCount, UChar* buffer, bool) argument
[all...]

Completed in 166 milliseconds