| OLD | NEW |
| 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 Loading... |
| 133 | 133 |
| 134 WEBVTT_BEGIN_STATE(EscapeState) { | 134 WEBVTT_BEGIN_STATE(EscapeState) { |
| 135 if (cc == ';') { | 135 if (cc == ';') { |
| 136 if (equalLiteral(buffer, "&")) { | 136 if (equalLiteral(buffer, "&")) { |
| 137 result.append('&'); | 137 result.append('&'); |
| 138 } else if (equalLiteral(buffer, "<")) { | 138 } else if (equalLiteral(buffer, "<")) { |
| 139 result.append('<'); | 139 result.append('<'); |
| 140 } else if (equalLiteral(buffer, ">")) { | 140 } else if (equalLiteral(buffer, ">")) { |
| 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, " ")) { | 146 } else if (equalLiteral(buffer, " ")) { |
| 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 Loading... |
| 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 |
| OLD | NEW |