Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(182)

Side by Side Diff: runtime/include/dart_api.h

Issue 11419086: Use a signed 32-bit integer for representing code points. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: add missing files Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/lib/string.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1370 matching lines...) Expand 10 before | Expand all | Expand 10 after
1381 1381
1382 /** 1382 /**
1383 * Returns a String built from an array of UTF-32 encoded characters. 1383 * Returns a String built from an array of UTF-32 encoded characters.
1384 * 1384 *
1385 * \param utf32_array An array of UTF-32 encoded characters. 1385 * \param utf32_array An array of UTF-32 encoded characters.
1386 * \param length The length of the codepoints array. 1386 * \param length The length of the codepoints array.
1387 * 1387 *
1388 * \return The String object if no error occurs. Otherwise returns 1388 * \return The String object if no error occurs. Otherwise returns
1389 * an error handle. 1389 * an error handle.
1390 */ 1390 */
1391 DART_EXPORT Dart_Handle Dart_NewStringFromUTF32(const uint32_t* utf32_array, 1391 DART_EXPORT Dart_Handle Dart_NewStringFromUTF32(const int32_t* utf32_array,
1392 intptr_t length); 1392 intptr_t length);
1393 1393
1394 /** 1394 /**
1395 * Is this object an external String? 1395 * Is this object an external String?
1396 * 1396 *
1397 * An external String is a String which references a fixed array of 1397 * An external String is a String which references a fixed array of
1398 * codepoints which is external to the Dart heap. 1398 * codepoints which is external to the Dart heap.
1399 */ 1399 */
1400 DART_EXPORT bool Dart_IsExternalString(Dart_Handle object); 1400 DART_EXPORT bool Dart_IsExternalString(Dart_Handle object);
1401 1401
(...skipping 1369 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « no previous file | runtime/lib/string.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698