Searched refs:CountChars (Results 1 - 25 of 43) sorted by relevance

12

/haiku/src/tests/kits/support/bstring/
H A DStringAccessTest.cpp22 // CountChars(), Length(), String()
25 CPPUNIT_ASSERT(string.CountChars() == 10);
30 CPPUNIT_ASSERT(string2.CountChars() == 4);
38 CPPUNIT_ASSERT(string3.CountChars() == 2);
46 CPPUNIT_ASSERT(empty.CountChars() == 0);
53 CPPUNIT_ASSERT(invalid.CountChars() == 31);
/haiku/src/apps/haikudepot/util/
H A DValidationUtils.cpp49 for (int32 i = 0; i < string.CountChars(); i++) {
63 for (int32 i = 0; i < string.CountChars(); i++) {
77 for (int32 i = 0; i < string.CountChars(); i++) {
90 && value.CountChars() >= MIN_LENGTH_NICKNAME
91 && value.CountChars() <= MAX_LENGTH_NICKNAME;
/haiku/src/apps/haikudepot/textview/
H A DParagraph.cpp140 if (offset - span.CountChars() < 0)
142 offset -= span.CountChars();
163 span.Insert(span.CountChars(), newSpan.Text());
175 TextSpan spanAfter = span.SubSpan(offset, span.CountChars() - offset);
198 if (offset - span.CountChars() < 0)
200 offset -= span.CountChars();
209 int32 removeLength = std::min(span.CountChars() - offset, length);
216 int32 spanLength = fTextSpans[index].CountChars();
227 span.Insert(span.CountChars(), lastSpan.Text());
240 if (span.CountChars() >
[all...]
H A DTextSpan.cpp23 fCharCount(text.CountChars()),
78 fCharCount = fText.CountChars();
117 int32 charCount = fText.CountChars();
133 int32 charCount = fText.CountChars();
H A DTextSpan.h34 inline int32 CountChars() const function in class:TextSpan
H A DTextDocument.cpp133 if (!document.IsSet() || document->Length() != text.CountChars())
174 if (textOffset - span.CountChars() < 0)
176 textOffset -= span.CountChars();
195 if (textOffset - span.CountChars() < 0)
197 textOffset -= span.CountChars();
216 if (textOffset - span.CountChars() < 0)
218 textOffset -= span.CountChars();
440 int32 length = text.CountChars();
553 int32 spanLength = span.CountChars();
664 textOffset += span.CountChars();
[all...]
H A DMarkupParser.cpp135 int32 charCount = text.CountChars();
H A DTextEditor.cpp259 _SetCaretOffset(offset + string.CountChars(), true, false, true);
291 _SetCaretOffset(offset + string.CountChars(), true, false, true);
/haiku/src/tests/kits/support/
H A Dstring_utf8_tests.cpp12 printf("got: \"%s\" %lu %ld\n", string.String(), string.Length(), string.CountChars());
18 if (chars != string.CountChars()) {
/haiku/src/apps/deskcalc/
H A DExpressionTextView.cpp145 if (fHistoryPos == count && fCurrentValue.CountChars() > 0) {
206 uint decimalSeparatorWidth = decimalSeparator.CountChars();
211 if (value.CountChars() > 3 && stringWidth > viewWidth) {
221 exponent = value.CountChars() - decimalSeparatorWidth - firstDigit;
266 offset = value.CountChars() - 1;
270 offset = value.CountChars() - 1;
314 offset = value.CountChars();
329 offset = value.CountChars();
/haiku/src/apps/mediaplayer/playlist/
H A DPlaylistFileReader.cpp86 if (path.FindLast(".m3u") == path.CountChars() - 4
87 || path.FindLast(".m3u8") == path.CountChars() - 5)
89 else if (path.FindLast(".pls") == path.CountChars() - 4)
/haiku/src/apps/cortex/InfoView/
H A DInfoView.cpp460 numChars[i] = line->CountChars();
476 while (currentLine && (currentLine->CountChars() > 0))
479 for (int32 i = 0; i < currentLine->CountChars(); i++)
489 currentLine->CountChars() - i);
497 if (i == currentLine->CountChars() - 1) // the last char in the text
515 currentLine->CountChars() - lastBreak);
539 if (line->CountChars() != numChars[i])
/haiku/src/bin/pkgman/
H A DPackageManager.cpp238 if (leftStr.CountChars() + rightStr.CountChars() >= width)
242 leftStr.TruncateChars(width - rightStr.CountChars() - 2);
246 int extraSpace = width - leftStr.CountChars() - rightStr.CountChars();
/haiku/src/kits/shared/
H A DTextTable.cpp71 int32 textWidth = text.CountChars();
79 int32 textWidth = text.CountChars();
/haiku/src/apps/fontdemo/
H A DFontDemoView.cpp76 const size_t size = fString.CountChars();
400 const size_t size = string.CountChars();
/haiku/src/kits/interface/
H A DSeparatorView.cpp175 } else if (fLabel.CountChars() > 0) {
248 if (fLabel.CountChars() > 0) {
273 } else if (fLabel.CountChars() > 0) {
/haiku/src/apps/firstbootprompt/
H A DBootPromptWindow.cpp457 bool hasGlyphs[name.CountChars()];
458 font.GetHasGlyphs(name.String(), name.CountChars(), hasGlyphs);
459 for (int32 i = 0; i < name.CountChars(); ++i) {
/haiku/src/add-ons/disk_systems/gpt/
H A DGPTPartitionHandle.cpp174 size_t length = name->CountChars();
/haiku/src/bin/cddb_lookup/
H A Dcddb_server.cpp309 newCddbServer.CountChars() - pos + 1);
310 if (portString.CountChars() > 0) {
/haiku/src/apps/cortex/RouteApp/
H A DStatusView.cpp215 if (details.CountChars() > 0) {
385 if (truncated || details.CountChars() > 0) {
387 if (details.CountChars() > 0) {
/haiku/src/apps/installer/
H A DUnzipEngine.cpp316 line.CopyInto(itemPath, 13, line.CountChars() - 14);
/haiku/src/kits/tracker/
H A DCountView.cpp360 fFilterString.TruncateChars(fFilterString.CountChars() - 1);
/haiku/src/apps/switcher/
H A DLaunchButton.cpp348 if (fDescription.CountChars() > 0) {
/haiku/src/servers/app/decorator/
H A DDecorator.h241 { return tab->title.CountChars(); }
/haiku/src/kits/network/libnetservices/
H A DHttpRequest.cpp886 if (statusLine.CountChars() < 12)
987 if (fOptUserAgent.CountChars() > 0)
990 if (fOptReferer.CountChars() > 0)

Completed in 150 milliseconds

12