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 INCLUDE_DART_API_H_ | 5 #ifndef INCLUDE_DART_API_H_ |
6 #define INCLUDE_DART_API_H_ | 6 #define INCLUDE_DART_API_H_ |
7 | 7 |
8 /** \mainpage Dart Embedding API Reference | 8 /** \mainpage Dart Embedding API Reference |
9 * | 9 * |
10 * Dart is a class-based programming language for creating structured | 10 * Dart is a class-based programming language for creating structured |
(...skipping 1308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1319 // --- Strings --- | 1319 // --- Strings --- |
1320 | 1320 |
1321 /** | 1321 /** |
1322 * Is this object a String? | 1322 * Is this object a String? |
1323 */ | 1323 */ |
1324 DART_EXPORT bool Dart_IsString(Dart_Handle object); | 1324 DART_EXPORT bool Dart_IsString(Dart_Handle object); |
1325 | 1325 |
1326 /** | 1326 /** |
1327 * Is this object an ASCII String? | 1327 * Is this object an ASCII String? |
1328 */ | 1328 */ |
1329 DART_EXPORT bool Dart_IsAsciiString(Dart_Handle object); | 1329 DART_EXPORT bool Dart_IsISOLatin1String(Dart_Handle object); |
cshapiro
2012/11/14 00:57:23
Can we name this IsStringISOLatin1 (or IsStringLat
siva
2012/11/14 01:48:54
Done.
| |
1330 | 1330 |
1331 /** | 1331 /** |
1332 * Gets the length of a String. | 1332 * Gets the length of a String. |
1333 * | 1333 * |
1334 * \param str A String. | 1334 * \param str A String. |
1335 * \param length Returns the length of the String. | 1335 * \param length Returns the length of the String. |
1336 * | 1336 * |
1337 * \return A valid handle if no error occurs during the operation. | 1337 * \return A valid handle if no error occurs during the operation. |
1338 */ | 1338 */ |
1339 DART_EXPORT Dart_Handle Dart_StringLength(Dart_Handle str, intptr_t* length); | 1339 DART_EXPORT Dart_Handle Dart_StringLength(Dart_Handle str, intptr_t* length); |
(...skipping 1390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2730 * | 2730 * |
2731 * \param object An object. | 2731 * \param object An object. |
2732 * \param peer A value to store in the peer field. | 2732 * \param peer A value to store in the peer field. |
2733 * | 2733 * |
2734 * \return Returns an error if 'object' is a subtype of Null, num, or | 2734 * \return Returns an error if 'object' is a subtype of Null, num, or |
2735 * bool. | 2735 * bool. |
2736 */ | 2736 */ |
2737 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); | 2737 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); |
2738 | 2738 |
2739 #endif // INCLUDE_DART_API_H_ | 2739 #endif // INCLUDE_DART_API_H_ |
OLD | NEW |