OLD | NEW |
1 // Copyright 2007-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2007-2009 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
912 */ | 912 */ |
913 static Local<String> New(const char* data, int length = -1); | 913 static Local<String> New(const char* data, int length = -1); |
914 | 914 |
915 /** Allocates a new string from utf16 data.*/ | 915 /** Allocates a new string from utf16 data.*/ |
916 static Local<String> New(const uint16_t* data, int length = -1); | 916 static Local<String> New(const uint16_t* data, int length = -1); |
917 | 917 |
918 /** Creates a symbol. Returns one if it exists already.*/ | 918 /** Creates a symbol. Returns one if it exists already.*/ |
919 static Local<String> NewSymbol(const char* data, int length = -1); | 919 static Local<String> NewSymbol(const char* data, int length = -1); |
920 | 920 |
921 /** | 921 /** |
| 922 * Creates a new string by concatenating the left and the right strings |
| 923 * passed in as parameters. |
| 924 */ |
| 925 static Local<String> Concat(Handle<String> left, Handle<String>right); |
| 926 |
| 927 /** |
922 * Creates a new external string using the data defined in the given | 928 * Creates a new external string using the data defined in the given |
923 * resource. The resource is deleted when the external string is no | 929 * resource. The resource is deleted when the external string is no |
924 * longer live on V8's heap. The caller of this function should not | 930 * longer live on V8's heap. The caller of this function should not |
925 * delete or modify the resource. Neither should the underlying buffer be | 931 * delete or modify the resource. Neither should the underlying buffer be |
926 * deallocated or modified except through the destructor of the | 932 * deallocated or modified except through the destructor of the |
927 * external string resource. | 933 * external string resource. |
928 */ | 934 */ |
929 static Local<String> NewExternal(ExternalStringResource* resource); | 935 static Local<String> NewExternal(ExternalStringResource* resource); |
930 | 936 |
931 /** | 937 /** |
(...skipping 2197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3129 | 3135 |
3130 } // namespace v8 | 3136 } // namespace v8 |
3131 | 3137 |
3132 | 3138 |
3133 #undef V8EXPORT | 3139 #undef V8EXPORT |
3134 #undef V8EXPORT_INLINE | 3140 #undef V8EXPORT_INLINE |
3135 #undef TYPE_CHECK | 3141 #undef TYPE_CHECK |
3136 | 3142 |
3137 | 3143 |
3138 #endif // V8_H_ | 3144 #endif // V8_H_ |
OLD | NEW |