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

Side by Side Diff: include/v8.h

Issue 42423: Add a public API for using an empty sring. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 9 months 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 | src/api.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 2007-2008 the V8 project authors. All rights reserved. 1 // Copyright 2007-2008 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 718 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 * copying begins. 729 * copying begins.
730 * \param length The number of bytes to copy from the string. 730 * \param length The number of bytes to copy from the string.
731 * \return The number of characters copied to the buffer 731 * \return The number of characters copied to the buffer
732 * excluding the NULL terminator. 732 * excluding the NULL terminator.
733 */ 733 */
734 int Write(uint16_t* buffer, int start = 0, int length = -1) const; // UTF-16 734 int Write(uint16_t* buffer, int start = 0, int length = -1) const; // UTF-16
735 int WriteAscii(char* buffer, int start = 0, int length = -1) const; // ASCII 735 int WriteAscii(char* buffer, int start = 0, int length = -1) const; // ASCII
736 int WriteUtf8(char* buffer, int length = -1) const; // UTF-8 736 int WriteUtf8(char* buffer, int length = -1) const; // UTF-8
737 737
738 /** 738 /**
739 * A zero length string.
740 */
741 static v8::Local<v8::String> Empty();
742
743 /**
739 * Returns true if the string is external 744 * Returns true if the string is external
740 */ 745 */
741 bool IsExternal() const; 746 bool IsExternal() const;
742 747
743 /** 748 /**
744 * Returns true if the string is both external and ascii 749 * Returns true if the string is both external and ascii
745 */ 750 */
746 bool IsExternalAscii() const; 751 bool IsExternalAscii() const;
747 /** 752 /**
748 * An ExternalStringResource is a wrapper around a two-byte string 753 * An ExternalStringResource is a wrapper around a two-byte string
(...skipping 1746 matching lines...) Expand 10 before | Expand all | Expand 10 after
2495 2500
2496 } // namespace v8 2501 } // namespace v8
2497 2502
2498 2503
2499 #undef V8EXPORT 2504 #undef V8EXPORT
2500 #undef V8EXPORT_INLINE 2505 #undef V8EXPORT_INLINE
2501 #undef TYPE_CHECK 2506 #undef TYPE_CHECK
2502 2507
2503 2508
2504 #endif // V8_H_ 2509 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698