Commit Graph

56 Commits

Author SHA1 Message Date
alanknight@google.com a3061ab600 Stop using deprecated charCodeAt in Intl
Review URL: https://codereview.chromium.org//12262030

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18526 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 18:23:43 +00:00
blois@google.com 1fb79cdb28 Resubmit "Adding ease-of-use methods to HttpRequest."
Fixing the dependent pkg/intl code.

This is the same as my previous CL, but with the modification to pkg/intl/lib/src/http_request_data_reader.dart

BUG=

Review URL: https://codereview.chromium.org//12148002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17949 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-31 22:40:04 +00:00
alanknight@google.com 76bce685bb Remove the code that attempts to find a locale from the command line VM in Windows.
Review URL: https://codereview.chromium.org//12038073

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17674 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-25 23:56:02 +00:00
alanknight@google.com e17f6ef909 Make standalone (non-browser) locale detection for windows also accept short locale names
Review URL: https://codereview.chromium.org//11953069

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17588 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 18:51:50 +00:00
floitsch@google.com fb7b9e3c5c Rename Date to DateTime.
BUG=http://dartbug.com/1424

Review URL: https://codereview.chromium.org//11770004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17549 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 12:16:37 +00:00
lrn@google.com 4868ee2110 Remove Futures class, move methods to Future.
Optimize Future.forEach, Future.delay.

Review URL: https://codereview.chromium.org//11865005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16954 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 09:46:45 +00:00
efortuna@google.com 22cf3808b8 Missed two files that needed dart:async import.
BUG=

Review URL: https://codereview.chromium.org//11785036

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16779 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-08 02:24:23 +00:00
efortuna@google.com 01421cc23d Fix up test statuses. Browser tests should now all pass.
BUG=

Review URL: https://codereview.chromium.org//11784032

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16777 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-08 01:49:14 +00:00
ager@google.com 37e711d665 Fix use of chain in intl library.
R=sgjesse@google.com
BUG=

Review URL: https://codereview.chromium.org//11773019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16691 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 12:22:07 +00:00
floitsch@google.com 4a7dfd2da3 Big merge from experimental to bleeding edge.
Review URL: https://codereview.chromium.org//11783009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16687 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 11:23:16 +00:00
alanknight@google.com 10919626d2 Document date format initialization better and make it possible to use en_US dates without it
dartbug.com/6567
Review URL: https://codereview.chromium.org//11669013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16582 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-02 18:17:48 +00:00
bak@google.com 6c398a3a25 Fixed Issue 7508: Many StringBuffer methods return StringBuffer, but should be void.
- Methods in StringBuffer have now been changed so they do not return this.
- This forces the programmer to use cascaded calls instead of flaky chaining of calls.
Review URL: https://codereview.chromium.org//11645019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16358 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-20 11:13:27 +00:00
scheglov@google.com 1277895b47 Issue 6836. Using undeclared identifier in static context is now warning.
http://code.google.com/p/dart/issues/detail?id=6836

R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org//11280135

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15311 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-26 16:18:35 +00:00
ager@google.com 3fb41705e5 Rename File.readAsText to File.readAsString. There is no Text type in Dart
and the methods return Strings.

R=sgjesse@google.com
BUG=

Review URL: https://codereview.chromium.org//11412033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15011 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 13:10:15 +00:00
ajohnsen@google.com ab69873a42 Make RegExp constructor non-const.
Another take of https://codereview.chromium.org/11410033/ with status changes applied for co19 tests.

BUG=

Review URL: https://codereview.chromium.org//11369210

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14837 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 10:18:06 +00:00
ajohnsen@google.com ec9fee9858 "Reverting 14829-14832"
BUG=

Review URL: https://codereview.chromium.org//11312203

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14833 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 07:28:13 +00:00
ajohnsen@google.com 8dc3edd7ce Make RegExp's constructor non-const.
BUG=

Review URL: https://codereview.chromium.org//11410033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14829 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 06:48:43 +00:00
lrn@google.com 2208fcd208 Change NotImplementedException to UnimplementedError.
Retain a NotImplementedException type for backwards compatibility.
This class will be removed soon.
The constructor of UnimplementedError is currently const in order to
support the NotImplementedException. That will be fixed too.

Review URL: https://codereview.chromium.org//11358060

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14467 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-02 13:18:37 +00:00
alanknight@google.com 8352fb6c7e Update intl to new import syntax
Review URL: https://codereview.chromium.org//11366016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14372 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-31 21:32:10 +00:00
scheglov@google.com dce51bf910 Using 'interface' and 'abstract' for methods should produce error
R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org//11314019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14165 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-27 16:22:18 +00:00
alanknight@google.com 583697cae9 Tolerate null from finding browser locale, re-enable tests
Review URL: https://codereview.chromium.org//11265028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14097 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-25 20:07:02 +00:00
floitsch@google.com 9cc9214b58 Rename regexp methods to getters.
Review URL: https://codereview.chromium.org//11266050

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14094 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-25 19:31:56 +00:00
floitsch@google.com 2e778387b3 Make getKeys, getValues getters (keys, values).
Review URL: https://codereview.chromium.org//11267018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14093 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-25 19:22:11 +00:00
floitsch@google.com 3300f91153 Make first and last getters.
Review URL: https://codereview.chromium.org//11273041

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14082 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-25 15:19:31 +00:00
floitsch@google.com e7c5e69beb Make String.charCodes a getter.
Review URL: https://codereview.chromium.org//11263040

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14078 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-25 14:25:43 +00:00
floitsch@google.com 09f6d09d88 Make isEmpty a getter.
Review URL: https://codereview.chromium.org//11238035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14022 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-24 15:04:32 +00:00
floitsch@google.com 27cadf2b66 isEven, isOdd, isNegative, isMaxValue, isMinValue, isInfinite, isPositive, isSingleValue.
Review URL: https://codereview.chromium.org//11227042

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13974 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-23 16:15:36 +00:00
ahe@google.com 6254729761 Revert "Parts must start with 'part of'" and "Attempt to fix VM build"
This reverts r13961 and r13963.

Review URL: https://codereview.chromium.org//11233061

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13967 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-23 14:24:04 +00:00
scheglov@google.com 50b5b6e1a8 Parts must start with 'part of'
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13961 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-23 13:20:50 +00:00
regis@google.com 42d2d4fb0f Change bidi_utils and bidi_formatter for new optional parameters.
Review URL: https://codereview.chromium.org//11200003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13793 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-18 18:21:38 +00:00
regis@google.com 8c3cfbb381 Second round of cleanups for new optional parameter semantics.
Review URL: https://codereview.chromium.org//11194025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13759 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-17 20:58:19 +00:00
regis@google.com adb534674c Change core lib, dart2js, and more for new optional parameters syntax and semantics (new semantics is not enforced yet).
Review URL: https://codereview.chromium.org//11090016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13684 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-16 16:03:47 +00:00
alanknight@google.com 986f155836 Try removing explicit use of dynamic
Review URL: https://codereview.chromium.org//11017057

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13486 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-10 17:16:28 +00:00
alanknight@google.com 588a8fbd77 Remove function types from intl, as they appear to break the vm
Review URL: https://codereview.chromium.org//11066099

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13485 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-10 17:02:28 +00:00
alanknight@google.com 4a0d950454 Make verifiedLocale work differently depending on what it's verifying for
Review URL: https://codereview.chromium.org//11086033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13484 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-10 16:36:13 +00:00
alanknight@google.com 3c23d6f35c Small changes for spec updates/editor suggestions
Review URL: https://codereview.chromium.org//11099014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13425 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-09 18:25:54 +00:00
alanknight@google.com 6637f2ce35 Clean up TODOs and comments in Intl
Review URL: https://codereview.chromium.org//11091012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13383 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-08 23:26:09 +00:00
alanknight@google.com 7998b490fc If no pattern is specified for date formatting, use a default
Review URL: https://codereview.chromium.org//11068011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13309 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-05 18:26:15 +00:00
alanknight@google.com c3ced88fa3 Move Bidi functions into methods to make the docs look better
Review URL: https://codereview.chromium.org//11032035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13261 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-04 21:15:20 +00:00
alanknight@google.com 14ce294bb1 Make the date formatting library visible in apidoc by merging it into Intl
Review URL: https://codereview.chromium.org//11048027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13199 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-03 22:11:09 +00:00
alanknight@google.com 89de7ade42 Fix markdown syntax in Intl
Review URL: https://codereview.chromium.org//11045009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13153 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-02 23:46:13 +00:00
alanknight@google.com 70082fd783 Minor cleanups to take advantage of lazy initialization
Review URL: https://codereview.chromium.org//11038007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13137 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-02 20:37:03 +00:00
alanknight@google.com 8d2d5bc6f7 Finding locale from browser needs to canonicalize the result
Review URL: https://codereview.chromium.org//11016017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13136 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-02 20:36:51 +00:00
alanknight@google.com d5dd0c5fb0 Make sure to wrap all callbacks with expectAsync in tests
Review URL: https://codereview.chromium.org//11028010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13124 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-02 16:25:40 +00:00
lrn@google.com a1faa6f135 Change IllegalArgumentException to ArgumentError.
Review URL: https://codereview.chromium.org//10989013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12841 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-25 12:27:52 +00:00
danrubel@google.com 9b89419e88 migrate raw string to new syntax in pkg
Review URL: https://codereview.chromium.org//10961061

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12754 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-22 19:41:42 +00:00
alanknight@google.com 907c7ea083 Read locales over http in the browser
Review URL: https://codereview.chromium.org//10959002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12664 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-20 23:27:56 +00:00
alanknight@google.com b9f933b920 Change intl to use new pub layout
Review URL: https://codereview.chromium.org//10952004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12519 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-18 22:18:15 +00:00
lrn@google.com 26fab5183a Move parseInt parseDouble to int/double classes as a static method.
Remove math dependency from core/coreimpl in dart2js.
The existing Math.parseInt and Math.parseDouble are kept *for now*, but
simply redirect to the static methods.
They will be removed in time (when library code is ready for it).

Review URL: https://codereview.chromium.org//10913271

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12417 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-17 07:25:38 +00:00
alanknight@google.com 282a347822 Add async initialization for Intl.message and an example
Review URL: https://chromiumcodereview.appspot.com//10915215

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12345 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-13 18:20:29 +00:00