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

Side by Side Diff: pkg/dev_compiler/tool/input_sdk/lib/internal/internal.dart

Issue 2698353003: unfork DDC's copy of most SDK libraries (Closed)
Patch Set: revert core_patch Created 3 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
OLDNEW
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 library dart._internal;
6
7 import 'dart:collection';
8
9 import 'dart:core' hide Symbol;
10 import 'dart:core' as core;
11 import 'dart:math' show Random;
12
13 part 'iterable.dart';
14 part 'list.dart';
15 part 'lists.dart';
16 part 'print.dart';
17 part 'sort.dart';
18 part 'symbol.dart';
19
20 // Powers of 10 up to 10^22 are representable as doubles.
21 // Powers of 10 above that are only approximate due to lack of precission.
22 // Used by double-parsing.
23 const POWERS_OF_TEN = const [
24 1.0, /* 0 */
25 10.0,
26 100.0,
27 1000.0,
28 10000.0,
29 100000.0, /* 5 */
30 1000000.0,
31 10000000.0,
32 100000000.0,
33 1000000000.0,
34 10000000000.0, /* 10 */
35 100000000000.0,
36 1000000000000.0,
37 10000000000000.0,
38 100000000000000.0,
39 1000000000000000.0, /* 15 */
40 10000000000000000.0,
41 100000000000000000.0,
42 1000000000000000000.0,
43 10000000000000000000.0,
44 100000000000000000000.0, /* 20 */
45 1000000000000000000000.0,
46 10000000000000000000000.0,
47 ];
48
49 /**
50 * An [Iterable] of the UTF-16 code units of a [String] in index order.
51 */
52 class CodeUnits extends UnmodifiableListBase<int> {
53 /** The string that this is the code units of. */
54 final String _string;
55
56 CodeUnits(this._string);
57
58 int get length => _string.length;
59 int operator[](int i) => _string.codeUnitAt(i);
60
61 static String stringOf(CodeUnits u) => u._string;
62 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698