| 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 3985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3996 intptr_t len, | 3996 intptr_t len, |
| 3997 Heap::Space space); | 3997 Heap::Space space); |
| 3998 static RawOneByteString* New(const uint16_t* characters, | 3998 static RawOneByteString* New(const uint16_t* characters, |
| 3999 intptr_t len, | 3999 intptr_t len, |
| 4000 Heap::Space space); | 4000 Heap::Space space); |
| 4001 static RawOneByteString* New(const int32_t* characters, | 4001 static RawOneByteString* New(const int32_t* characters, |
| 4002 intptr_t len, | 4002 intptr_t len, |
| 4003 Heap::Space space); | 4003 Heap::Space space); |
| 4004 static RawOneByteString* New(const String& str, | 4004 static RawOneByteString* New(const String& str, |
| 4005 Heap::Space space); | 4005 Heap::Space space); |
| 4006 // 'other' must be OneByteString. |
| 4007 static RawOneByteString* New(const String& other_one_byte_string, |
| 4008 intptr_t other_start_index, |
| 4009 intptr_t other_len, |
| 4010 Heap::Space space); |
| 4006 | 4011 |
| 4007 static RawOneByteString* Concat(const String& str1, | 4012 static RawOneByteString* Concat(const String& str1, |
| 4008 const String& str2, | 4013 const String& str2, |
| 4009 Heap::Space space); | 4014 Heap::Space space); |
| 4010 static RawOneByteString* ConcatAll(const Array& strings, | 4015 static RawOneByteString* ConcatAll(const Array& strings, |
| 4011 intptr_t len, | 4016 intptr_t len, |
| 4012 Heap::Space space); | 4017 Heap::Space space); |
| 4013 | 4018 |
| 4014 static RawOneByteString* Transform(int32_t (*mapping)(int32_t ch), | 4019 static RawOneByteString* Transform(int32_t (*mapping)(int32_t ch), |
| 4015 const String& str, | 4020 const String& str, |
| (...skipping 1972 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5988 if (this->CharAt(i) != str.CharAt(begin_index + i)) { | 5993 if (this->CharAt(i) != str.CharAt(begin_index + i)) { |
| 5989 return false; | 5994 return false; |
| 5990 } | 5995 } |
| 5991 } | 5996 } |
| 5992 return true; | 5997 return true; |
| 5993 } | 5998 } |
| 5994 | 5999 |
| 5995 } // namespace dart | 6000 } // namespace dart |
| 5996 | 6001 |
| 5997 #endif // VM_OBJECT_H_ | 6002 #endif // VM_OBJECT_H_ |
| OLD | NEW |