| 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 #ifndef VM_OBJECT_H_ | 5 #ifndef VM_OBJECT_H_ |
| 6 #define VM_OBJECT_H_ | 6 #define VM_OBJECT_H_ |
| 7 | 7 |
| 8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
| 9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
| 10 #include "platform/utils.h" | 10 #include "platform/utils.h" |
| (...skipping 3967 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3978 intptr_t len, | 3978 intptr_t len, |
| 3979 Heap::Space space); | 3979 Heap::Space space); |
| 3980 static RawOneByteString* New(const uint16_t* characters, | 3980 static RawOneByteString* New(const uint16_t* characters, |
| 3981 intptr_t len, | 3981 intptr_t len, |
| 3982 Heap::Space space); | 3982 Heap::Space space); |
| 3983 static RawOneByteString* New(const int32_t* characters, | 3983 static RawOneByteString* New(const int32_t* characters, |
| 3984 intptr_t len, | 3984 intptr_t len, |
| 3985 Heap::Space space); | 3985 Heap::Space space); |
| 3986 static RawOneByteString* New(const String& str, | 3986 static RawOneByteString* New(const String& str, |
| 3987 Heap::Space space); | 3987 Heap::Space space); |
| 3988 static RawOneByteString* New(const String& other, |
| 3989 intptr_t other_start_index, |
| 3990 intptr_t other_len, |
| 3991 Heap::Space space); |
| 3988 | 3992 |
| 3989 static RawOneByteString* Concat(const String& str1, | 3993 static RawOneByteString* Concat(const String& str1, |
| 3990 const String& str2, | 3994 const String& str2, |
| 3991 Heap::Space space); | 3995 Heap::Space space); |
| 3992 static RawOneByteString* ConcatAll(const Array& strings, | 3996 static RawOneByteString* ConcatAll(const Array& strings, |
| 3993 intptr_t len, | 3997 intptr_t len, |
| 3994 Heap::Space space); | 3998 Heap::Space space); |
| 3995 | 3999 |
| 3996 static RawOneByteString* Transform(int32_t (*mapping)(int32_t ch), | 4000 static RawOneByteString* Transform(int32_t (*mapping)(int32_t ch), |
| 3997 const String& str, | 4001 const String& str, |
| (...skipping 1970 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5968 if (this->CharAt(i) != str.CharAt(begin_index + i)) { | 5972 if (this->CharAt(i) != str.CharAt(begin_index + i)) { |
| 5969 return false; | 5973 return false; |
| 5970 } | 5974 } |
| 5971 } | 5975 } |
| 5972 return true; | 5976 return true; |
| 5973 } | 5977 } |
| 5974 | 5978 |
| 5975 } // namespace dart | 5979 } // namespace dart |
| 5976 | 5980 |
| 5977 #endif // VM_OBJECT_H_ | 5981 #endif // VM_OBJECT_H_ |
| OLD | NEW |