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 String? |
Søren Gjesse
2012/11/15 08:11:30
Maybe mention ISO 8859-1 in the comment.
siva
2012/11/15 22:42:59
Done.
| |
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 1390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2732 * | 2732 * |
2733 * \param object An object. | 2733 * \param object An object. |
2734 * \param peer A value to store in the peer field. | 2734 * \param peer A value to store in the peer field. |
2735 * | 2735 * |
2736 * \return Returns an error if 'object' is a subtype of Null, num, or | 2736 * \return Returns an error if 'object' is a subtype of Null, num, or |
2737 * bool. | 2737 * bool. |
2738 */ | 2738 */ |
2739 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); | 2739 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); |
2740 | 2740 |
2741 #endif // INCLUDE_DART_API_H_ | 2741 #endif // INCLUDE_DART_API_H_ |
OLD | NEW |