Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(198)

Side by Side Diff: third_party/WebKit/Source/platform/text/SegmentedString.h

Issue 2385283002: reflow comments in platform/{testing,text} (Closed)
Patch Set: idunnolol Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 2 Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
3 3
4 This library is free software; you can redistribute it and/or 4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public 5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either 6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version. 7 version 2 of the License, or (at your option) any later version.
8 8
9 This library is distributed in the hope that it will be useful, 9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 numberOfPushedCharacters; 301 numberOfPushedCharacters;
302 } 302 }
303 303
304 String toString() const; 304 String toString() const;
305 305
306 UChar currentChar() const { return m_currentChar; } 306 UChar currentChar() const { return m_currentChar; }
307 307
308 // The method is moderately slow, comparing to currentLine method. 308 // The method is moderately slow, comparing to currentLine method.
309 OrdinalNumber currentColumn() const; 309 OrdinalNumber currentColumn() const;
310 OrdinalNumber currentLine() const; 310 OrdinalNumber currentLine() const;
311 // Sets value of line/column variables. Column is specified indirectly by a pa rameter columnAftreProlog 311 // Sets value of line/column variables. Column is specified indirectly by a
312 // which is a value of column that we should get after a prolog (first prologL ength characters) has been consumed. 312 // parameter columnAftreProlog which is a value of column that we should get
313 // after a prolog (first prologLength characters) has been consumed.
313 void setCurrentPosition(OrdinalNumber line, 314 void setCurrentPosition(OrdinalNumber line,
314 OrdinalNumber columnAftreProlog, 315 OrdinalNumber columnAftreProlog,
315 int prologLength); 316 int prologLength);
316 317
317 private: 318 private:
318 enum FastPathFlags { 319 enum FastPathFlags {
319 NoFastPath = 0, 320 NoFastPath = 0,
320 Use8BitAdvanceAndUpdateLineNumbers = 1 << 0, 321 Use8BitAdvanceAndUpdateLineNumbers = 1 << 0,
321 Use8BitAdvance = 1 << 1, 322 Use8BitAdvance = 1 << 1,
322 }; 323 };
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 bool m_closed; 416 bool m_closed;
416 bool m_empty; 417 bool m_empty;
417 unsigned char m_fastPathFlags; 418 unsigned char m_fastPathFlags;
418 void (SegmentedString::*m_advanceFunc)(); 419 void (SegmentedString::*m_advanceFunc)();
419 void (SegmentedString::*m_advanceAndUpdateLineNumberFunc)(); 420 void (SegmentedString::*m_advanceAndUpdateLineNumberFunc)();
420 }; 421 };
421 422
422 } // namespace blink 423 } // namespace blink
423 424
424 #endif 425 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698