1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-04 03:40:07 +00:00

Minor string changes.

This commit is contained in:
Julian Storer 2010-03-26 18:23:54 +00:00
parent e0e12a8bd9
commit 66643e85ac
74 changed files with 895 additions and 889 deletions

View file

@ -43,7 +43,7 @@ public:
Token (const String& t,
const Font& f,
const bool isWhitespace_) throw()
const bool isWhitespace_)
: text (t),
font (f),
x(0),
@ -52,7 +52,7 @@ public:
{
w = font.getStringWidth (t);
h = roundToInt (f.getHeight());
isNewLine = t.containsAnyOf (T("\r\n"));
isNewLine = t.containsChar ('\n') || t.containsChar ('\r');
}
Token (const Token& other) throw()
@ -75,7 +75,7 @@ public:
void draw (Graphics& g,
const int xOffset,
const int yOffset) throw()
const int yOffset)
{
if (! isWhitespace)
{