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 DART_EXPORT Dart_Handle Dart_DoubleValue(Dart_Handle double_obj, double* value); | 1319 DART_EXPORT Dart_Handle Dart_DoubleValue(Dart_Handle double_obj, double* value); |
1320 | 1320 |
1321 // --- Strings --- | 1321 // --- Strings --- |
1322 | 1322 |
1323 /** | 1323 /** |
1324 * Is this object a String? | 1324 * Is this object a String? |
1325 */ | 1325 */ |
1326 DART_EXPORT bool Dart_IsString(Dart_Handle object); | 1326 DART_EXPORT bool Dart_IsString(Dart_Handle object); |
1327 | 1327 |
1328 /** | 1328 /** |
1329 * Is this object an ASCII String? | 1329 * Is this object a Latin-1 (ISO-8859-1) String? |
1330 */ | 1330 */ |
1331 DART_EXPORT bool Dart_IsAsciiString(Dart_Handle object); | 1331 DART_EXPORT bool Dart_IsStringLatin1(Dart_Handle object); |
1332 | 1332 |
1333 /** | 1333 /** |
1334 * Gets the length of a String. | 1334 * Gets the length of a String. |
1335 * | 1335 * |
1336 * \param str A String. | 1336 * \param str A String. |
1337 * \param length Returns the length of the String. | 1337 * \param length Returns the length of the String. |
1338 * | 1338 * |
1339 * \return A valid handle if no error occurs during the operation. | 1339 * \return A valid handle if no error occurs during the operation. |
1340 */ | 1340 */ |
1341 DART_EXPORT Dart_Handle Dart_StringLength(Dart_Handle str, intptr_t* length); | 1341 DART_EXPORT Dart_Handle Dart_StringLength(Dart_Handle str, intptr_t* length); |
(...skipping 1429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2771 * | 2771 * |
2772 * \param object An object. | 2772 * \param object An object. |
2773 * \param peer A value to store in the peer field. | 2773 * \param peer A value to store in the peer field. |
2774 * | 2774 * |
2775 * \return Returns an error if 'object' is a subtype of Null, num, or | 2775 * \return Returns an error if 'object' is a subtype of Null, num, or |
2776 * bool. | 2776 * bool. |
2777 */ | 2777 */ |
2778 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); | 2778 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); |
2779 | 2779 |
2780 #endif // INCLUDE_DART_API_H_ | 2780 #endif // INCLUDE_DART_API_H_ |
OLD | NEW |