Huon Wilson
55534100ce
std: fix spelling in docs.
2013-12-15 16:26:09 +11:00
Florian Zeitz
dfe38dbca4
Fix handling of upper/lowercase, and whitespace
2013-11-27 23:36:20 +01:00
Patrick Walton
f571e46ddb
test: Remove non-procedure uses of do
from compiletest, libstd tests,
...
compile-fail tests, run-fail tests, and run-pass tests.
2013-11-26 08:25:27 -08:00
Patrick Walton
1946265e1a
libstd: Change all uses of &fn(A)->B
over to |A|->B
in libstd
2013-11-19 12:40:19 -08:00
Gyorgy Andrasek
0f66856e53
Fix typo in to_digit
2013-11-01 17:13:43 +01:00
Alex Crichton
daf5f5a4d1
Drop the '2' suffix from logging macros
...
Who doesn't like a massive renaming?
2013-10-22 08:09:56 -07:00
Alex Crichton
a8ba31dbf3
std: Remove usage of fmt!
2013-09-30 23:21:18 -07:00
Jesse Ray
13571af92f
Added is_control function, method, and tests.
2013-09-23 17:10:48 -04:00
Jimmy Zelinskie
4757631369
Remove and replace cond! Closes #9282 .
2013-09-18 07:34:02 -04:00
blake2-ppc
ad74fde62f
Use std::iter::range_step
...
Use the iterator version instead of the old uint::/int::range_step
functions.
2013-09-15 00:41:34 -04:00
Erick Tryzelaar
ca47eebb44
std: Add a bunch of Default impls
2013-09-12 18:54:13 -07:00
Daniel Micay
62a3434529
stop treating char as an integer type
...
Closes #7609
2013-09-04 08:07:56 -04:00
Marvin Löbel
8d610e1d2d
Added ToStr impl for char
...
Changed ToStr impl for Ascii
2013-09-04 03:19:52 +02:00
Eric Martin
babe20f018
remove several 'ne' methods
2013-08-30 21:53:25 -04:00
Florian Zeitz
83f4bee44f
Add Unicode decomposition mappings to std::unicode
2013-08-21 11:50:07 +02:00
Alex Crichton
b820748ff5
Implement formatting arguments for strings and integers
...
Closes #1651
2013-08-12 23:18:51 -07:00
OGINO Masanori
b4d6ae5bb8
Remove redundant Ord method impls.
...
Basically, generic containers should not use the default methods since a
type of elements may not guarantees total order. str could use them
since u8's Ord guarantees total order. Floating point numbers are also
broken with the default methods because of NaN. Thanks for @thestinger.
Timespec also guarantees total order AIUI. I'm unsure whether
extra::semver::Identifier does so I left it alone. Proof needed.
Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
2013-08-09 14:28:14 +09:00
Daniel Micay
b3ad685f7f
replace all remaining for
with foreach
or do
2013-08-03 03:00:42 -04:00
Gary Linscott
52949fbf18
Faster check for ascii-space
...
Since ' ' is by far one of the most common characters, it is worthwhile
to put it first, and short-circuit the rest of the function.
On the same JSON benchmark, as the json_perf improvement, reading example.json
10 times from https://code.google.com/p/rapidjson/wiki/Performance .
Before: 0.16s
After: 0.11s
2013-07-06 01:54:29 -04:00
Alex Crichton
d3155faede
Specialize to_str_common for floats/integers in strconv
...
This allows the integral paths to avoid allocations on the heap
Closes #4424 , #4423
2013-06-30 09:19:25 -07:00
Alex Crichton
8fe6fc11de
Change char::escape_{default,unicode} to take callbacks instead of allocating
...
strings
2013-06-30 09:19:02 -07:00
Patrick Walton
e015bee286
Rewrite each_path to allow performance improvements in the future.
...
Instead of determining paths from the path tag, we iterate through
modules' children recursively in the metadata. This will allow for
lazy external module resolution.
2013-06-28 10:44:16 -04:00
Graydon Hoare
d904c72af8
replace #[inline(always)] with #[inline]. r=burningtree.
2013-06-18 14:48:48 -07:00
Alex Crichton
893c70d7bc
Add Zero impls for lots of common types
2013-06-14 19:12:37 -07:00
Alex Crichton
007651cd26
Require documentation by default for libstd
...
Adds documentation for various things that I understand.
Adds #[allow(missing_doc)] for lots of things that I don't understand.
2013-05-30 01:02:55 -05:00
Patrick Walton
0c820d4123
libstd: Rename libcore to libstd and libstd to libextra; update makefiles.
...
This only changes the directory names; it does not change the "real"
metadata names.
2013-05-22 21:57:05 -07:00
Graydon Hoare
dde5860380
Remove some duplicated unused parts of std now that they're present in core.
2011-12-14 18:04:45 -08:00
Marijn Haverbeke
e3eca9174b
Change literal representation to not truncate
...
Also shuffles around the organization of numeric literals and types,
separating by int/uint/float instead of machine-vs-non-machine types.
This simplifies some code.
Closes #974
Closes #1252
2011-12-07 21:08:28 +01:00
Graydon Hoare
447414f007
Establish 'core' library separate from 'std'.
2011-12-06 12:13:04 -08:00