OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #include "vm/object.h" | 5 #include "vm/object.h" |
6 | 6 |
7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" |
10 #include "vm/become.h" | 10 #include "vm/become.h" |
(...skipping 21120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
21131 return false; // No way they can match. | 21131 return false; // No way they can match. |
21132 } | 21132 } |
21133 intptr_t pos = 0; | 21133 intptr_t pos = 0; |
21134 intptr_t str2_pos = 0; | 21134 intptr_t str2_pos = 0; |
21135 while (pos < len) { | 21135 while (pos < len) { |
21136 int32_t ch = T1::CharAt(str1, pos); | 21136 int32_t ch = T1::CharAt(str1, pos); |
21137 pos++; | 21137 pos++; |
21138 | 21138 |
21139 if (ch == Library::kPrivateKeySeparator) { | 21139 if (ch == Library::kPrivateKeySeparator) { |
21140 // Consume a private key separator. | 21140 // Consume a private key separator. |
21141 while ((pos < len) && (T1::CharAt(str1, pos) != '.')) { | 21141 while ((pos < len) && (T1::CharAt(str1, pos) != '.') && |
| 21142 (T1::CharAt(str1, pos) != '&')) { |
21142 pos++; | 21143 pos++; |
21143 } | 21144 } |
21144 // Resume matching characters. | 21145 // Resume matching characters. |
21145 continue; | 21146 continue; |
21146 } | 21147 } |
21147 if ((str2_pos == str2_len) || (ch != T2::CharAt(str2, str2_pos))) { | 21148 if ((str2_pos == str2_len) || (ch != T2::CharAt(str2, str2_pos))) { |
21148 return false; | 21149 return false; |
21149 } | 21150 } |
21150 str2_pos++; | 21151 str2_pos++; |
21151 } | 21152 } |
(...skipping 2144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
23296 return UserTag::null(); | 23297 return UserTag::null(); |
23297 } | 23298 } |
23298 | 23299 |
23299 | 23300 |
23300 const char* UserTag::ToCString() const { | 23301 const char* UserTag::ToCString() const { |
23301 const String& tag_label = String::Handle(label()); | 23302 const String& tag_label = String::Handle(label()); |
23302 return tag_label.ToCString(); | 23303 return tag_label.ToCString(); |
23303 } | 23304 } |
23304 | 23305 |
23305 } // namespace dart | 23306 } // namespace dart |
OLD | NEW |