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

Side by Side Diff: lib/core/int.dart

Issue 11275002: Fix typo (rewriting comment). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update comment Created 8 years, 2 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 | no next file » | 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 /** 5 /**
6 * Representation of Dart integers containing integer specific 6 * Representation of Dart integers containing integer specific
7 * operations and specialization of operations inherited from [num]. 7 * operations and specialization of operations inherited from [num].
8 * 8 *
9 * Integers can be arbitrarily large in Dart. 9 * Integers can be arbitrarily large in Dart.
10 * 10 *
(...skipping 29 matching lines...) Expand all
40 40
41 /** Returns true if and only if this integer is odd. */ 41 /** Returns true if and only if this integer is odd. */
42 bool get isOdd; 42 bool get isOdd;
43 43
44 /** Negate operator. Negating an integer produces an integer. */ 44 /** Negate operator. Negating an integer produces an integer. */
45 int operator -(); 45 int operator -();
46 46
47 /** Returns the absolute value of this integer. */ 47 /** Returns the absolute value of this integer. */
48 int abs(); 48 int abs();
49 49
50 /** For integers the round method is the identify function. */ 50 /** Returns [this]. */
51 int round(); 51 int round();
52 52
53 /** For integers the floor method is the identify function. */ 53 /** Returns [this]. */
54 int floor(); 54 int floor();
55 55
56 /** For integers the ceil method is the identify function. */ 56 /** Returns [this]. */
57 int ceil(); 57 int ceil();
58 58
59 /** For integers the truncate method is the identify function. */ 59 /** Returns [this]. */
60 int truncate(); 60 int truncate();
61 61
62 /** 62 /**
63 * Returns a representation of this [int] value. 63 * Returns a representation of this [int] value.
64 * 64 *
65 * It should always be the case that if [:i:] is an [int] value, 65 * It should always be the case that if [:i:] is an [int] value,
66 * then [:i == int.parse(i.toString()):]. 66 * then [:i == int.parse(i.toString()):].
67 */ 67 */
68 String toString(); 68 String toString();
69 69
70 /** 70 /**
71 * Parse [source] as an integer literal and return its value. 71 * Parse [source] as an integer literal and return its value.
72 * 72 *
73 * Accepts "0x" prefix for hexadecimal numbers, otherwise defaults 73 * Accepts "0x" prefix for hexadecimal numbers, otherwise defaults
74 * to base-10. 74 * to base-10.
75 * 75 *
76 * Throws a [FormatException] if [source] is not a valid integer literal. 76 * Throws a [FormatException] if [source] is not a valid integer literal.
77 */ 77 */
78 external static int parse(String source); 78 external static int parse(String source);
79 } 79 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698