| OLD | NEW |
| 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 m_currentString.numberOfCharactersConsumed(); | 252 m_currentString.numberOfCharactersConsumed(); |
| 253 } | 253 } |
| 254 | 254 |
| 255 return; | 255 return; |
| 256 } | 256 } |
| 257 | 257 |
| 258 (this->*m_advanceAndUpdateLineNumberFunc)(); | 258 (this->*m_advanceAndUpdateLineNumberFunc)(); |
| 259 } | 259 } |
| 260 | 260 |
| 261 void advanceAndASSERT(UChar expectedCharacter) { | 261 void advanceAndASSERT(UChar expectedCharacter) { |
| 262 ASSERT_UNUSED(expectedCharacter, currentChar() == expectedCharacter); | 262 DCHECK_EQ(expectedCharacter, currentChar()); |
| 263 advance(); | 263 advance(); |
| 264 } | 264 } |
| 265 | 265 |
| 266 void advanceAndASSERTIgnoringCase(UChar expectedCharacter) { | 266 void advanceAndASSERTIgnoringCase(UChar expectedCharacter) { |
| 267 ASSERT_UNUSED(expectedCharacter, | 267 DCHECK_EQ(WTF::Unicode::foldCase(currentChar()), |
| 268 WTF::Unicode::foldCase(currentChar()) == | 268 WTF::Unicode::foldCase(expectedCharacter)); |
| 269 WTF::Unicode::foldCase(expectedCharacter)); | |
| 270 advance(); | 269 advance(); |
| 271 } | 270 } |
| 272 | 271 |
| 273 void advancePastNonNewline() { | 272 void advancePastNonNewline() { |
| 274 ASSERT(currentChar() != '\n'); | 273 ASSERT(currentChar() != '\n'); |
| 275 advance(); | 274 advance(); |
| 276 } | 275 } |
| 277 | 276 |
| 278 void advancePastNewlineAndUpdateLineNumber() { | 277 void advancePastNewlineAndUpdateLineNumber() { |
| 279 ASSERT(currentChar() == '\n'); | 278 ASSERT(currentChar() == '\n'); |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 bool m_closed; | 415 bool m_closed; |
| 417 bool m_empty; | 416 bool m_empty; |
| 418 unsigned char m_fastPathFlags; | 417 unsigned char m_fastPathFlags; |
| 419 void (SegmentedString::*m_advanceFunc)(); | 418 void (SegmentedString::*m_advanceFunc)(); |
| 420 void (SegmentedString::*m_advanceAndUpdateLineNumberFunc)(); | 419 void (SegmentedString::*m_advanceAndUpdateLineNumberFunc)(); |
| 421 }; | 420 }; |
| 422 | 421 |
| 423 } // namespace blink | 422 } // namespace blink |
| 424 | 423 |
| 425 #endif | 424 #endif |
| OLD | NEW |