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

Unified Diff: lib/core/string.dart

Issue 1659163007: Rename fletch -> dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: address comments Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/core/int.dart ('k') | lib/dartino/dartino.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/core/string.dart
diff --git a/lib/core/string.dart b/lib/core/string.dart
index 0dfed6350f0a9171c896fcd02b7ca2e29ac80c7c..cad7894f7c13412df1196af3612890a8ff7816ac 100644
--- a/lib/core/string.dart
+++ b/lib/core/string.dart
@@ -447,91 +447,91 @@ abstract class _StringBase implements String {
String toUpperCase() => internalToUpperCase(this);
- @fletch.native external int get length;
+ @dartino.native external int get length;
}
class _OneByteString extends _StringBase {
factory _OneByteString(int length) => _create(length);
- @fletch.native int codeUnitAt(int index) {
- switch (fletch.nativeError) {
- case fletch.wrongArgumentType:
+ @dartino.native int codeUnitAt(int index) {
+ switch (dartino.nativeError) {
+ case dartino.wrongArgumentType:
throw new ArgumentError();
- case fletch.indexOutOfBounds:
+ case dartino.indexOutOfBounds:
throw new IndexError(index, this);
}
}
- @fletch.native external bool operator ==(Object other);
+ @dartino.native external bool operator ==(Object other);
int get hashCode => identityHashCode(this);
- @fletch.native String operator +(String other) {
+ @dartino.native String operator +(String other) {
throw new ArgumentError(other);
}
- @fletch.native String _substring(int start, int end) {
- switch (fletch.nativeError) {
- case fletch.wrongArgumentType:
+ @dartino.native String _substring(int start, int end) {
+ switch (dartino.nativeError) {
+ case dartino.wrongArgumentType:
throw new ArgumentError();
- case fletch.indexOutOfBounds:
+ case dartino.indexOutOfBounds:
throw new IndexError(start, this);
}
}
- @fletch.native external void _setContent(int offset, _StringBase content);
+ @dartino.native external void _setContent(int offset, _StringBase content);
- @fletch.native void _setCodeUnitAt(int index, int char) {
- switch (fletch.nativeError) {
- case fletch.wrongArgumentType:
+ @dartino.native void _setCodeUnitAt(int index, int char) {
+ switch (dartino.nativeError) {
+ case dartino.wrongArgumentType:
throw new ArgumentError();
- case fletch.indexOutOfBounds:
+ case dartino.indexOutOfBounds:
throw new IndexError(index, this);
}
}
- @fletch.native external static _OneByteString _create(int length);
+ @dartino.native external static _OneByteString _create(int length);
}
class _TwoByteString extends _StringBase {
factory _TwoByteString(int length) => _create(length);
- @fletch.native int codeUnitAt(int index) {
- switch (fletch.nativeError) {
- case fletch.wrongArgumentType:
+ @dartino.native int codeUnitAt(int index) {
+ switch (dartino.nativeError) {
+ case dartino.wrongArgumentType:
throw new ArgumentError();
- case fletch.indexOutOfBounds:
+ case dartino.indexOutOfBounds:
throw new IndexError(index, this);
}
}
- @fletch.native external bool operator ==(Object other);
+ @dartino.native external bool operator ==(Object other);
int get hashCode => identityHashCode(this);
- @fletch.native String operator +(String other) {
+ @dartino.native String operator +(String other) {
throw new ArgumentError(other);
}
- @fletch.native String _substring(int start, int end) {
- switch (fletch.nativeError) {
- case fletch.wrongArgumentType:
+ @dartino.native String _substring(int start, int end) {
+ switch (dartino.nativeError) {
+ case dartino.wrongArgumentType:
throw new ArgumentError();
- case fletch.indexOutOfBounds:
+ case dartino.indexOutOfBounds:
throw new IndexError(start, this);
}
}
- @fletch.native external void _setContent(int offset, _StringBase content);
+ @dartino.native external void _setContent(int offset, _StringBase content);
- @fletch.native void _setCodeUnitAt(int index, int char) {
- switch (fletch.nativeError) {
- case fletch.wrongArgumentType:
+ @dartino.native void _setCodeUnitAt(int index, int char) {
+ switch (dartino.nativeError) {
+ case dartino.wrongArgumentType:
throw new ArgumentError();
- case fletch.indexOutOfBounds:
+ case dartino.indexOutOfBounds:
throw new IndexError(index, this);
}
}
- @fletch.native external static _TwoByteString _create(int length);
+ @dartino.native external static _TwoByteString _create(int length);
}
« no previous file with comments | « lib/core/int.dart ('k') | lib/dartino/dartino.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698