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

Side by Side Diff: Source/core/html/track/vtt/VTTTokenizer.cpp

Issue 1119663002: Making Unicode character names consistent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase patch Created 5 years, 7 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 133
134 WEBVTT_BEGIN_STATE(EscapeState) { 134 WEBVTT_BEGIN_STATE(EscapeState) {
135 if (cc == ';') { 135 if (cc == ';') {
136 if (equalLiteral(buffer, "&amp")) { 136 if (equalLiteral(buffer, "&amp")) {
137 result.append('&'); 137 result.append('&');
138 } else if (equalLiteral(buffer, "&lt")) { 138 } else if (equalLiteral(buffer, "&lt")) {
139 result.append('<'); 139 result.append('<');
140 } else if (equalLiteral(buffer, "&gt")) { 140 } else if (equalLiteral(buffer, "&gt")) {
141 result.append('>'); 141 result.append('>');
142 } else if (equalLiteral(buffer, "&lrm")) { 142 } else if (equalLiteral(buffer, "&lrm")) {
143 result.append(leftToRightMark); 143 result.append(leftToRightMarkCharacter);
144 } else if (equalLiteral(buffer, "&rlm")) { 144 } else if (equalLiteral(buffer, "&rlm")) {
145 result.append(rightToLeftMark); 145 result.append(rightToLeftMarkCharacter);
146 } else if (equalLiteral(buffer, "&nbsp")) { 146 } else if (equalLiteral(buffer, "&nbsp")) {
147 result.append(noBreakSpace); 147 result.append(noBreakSpaceCharacter);
148 } else { 148 } else {
149 buffer.append(static_cast<LChar>(cc)); 149 buffer.append(static_cast<LChar>(cc));
150 result.append(buffer); 150 result.append(buffer);
151 } 151 }
152 buffer.clear(); 152 buffer.clear();
153 WEBVTT_ADVANCE_TO(DataState); 153 WEBVTT_ADVANCE_TO(DataState);
154 } else if (isASCIIAlphanumeric(cc)) { 154 } else if (isASCIIAlphanumeric(cc)) {
155 buffer.append(static_cast<LChar>(cc)); 155 buffer.append(static_cast<LChar>(cc));
156 WEBVTT_ADVANCE_TO(EscapeState); 156 WEBVTT_ADVANCE_TO(EscapeState);
157 } else if (cc == '<') { 157 } else if (cc == '<') {
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 END_STATE() 256 END_STATE()
257 257
258 } 258 }
259 259
260 ASSERT_NOT_REACHED(); 260 ASSERT_NOT_REACHED();
261 return false; 261 return false;
262 } 262 }
263 263
264 } 264 }
265 265
OLDNEW
« no previous file with comments | « Source/core/html/track/vtt/BufferedLineReaderTest.cpp ('k') | Source/core/layout/LayoutBlockFlowLine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698