about summary refs log tree commit diff
path: root/src/libstd/base64.rs
AgeCommit message (Collapse)AuthorLines
2013-05-14Use static string with fail!() and remove fail!(fmt!())Björn Steinbrink-4/+4
fail!() used to require owned strings but can handle static strings now. Also, it can pass its arguments to fmt!() on its own, no need for the caller to call fmt!() itself.
2013-05-08libstd: convert chained ifs to a match in base64.Huon Wilson-24/+20
2013-04-28make way for a new iter moduleDaniel Micay-2/+2
2013-04-25Fix incorrect replacement of `modulo` with `rem`Brendan Zabarauskas-1/+1
2013-04-22Rename Div operator trait to Quot and Modulo operator trait to RemBrendan Zabarauskas-1/+1
2013-04-15auto merge of #5895 : huonw/rust/no-pub-tests, r=thestingerbors-2/+2
This patch is a sledge hammer that moves all tests into `#[cfg(test)] mod test { .. }`, and makes them private, there were several instances of `pub mod tests { #[test] pub fn ... } `. (The reason for this is I was playing with using `syntax` to index code ([result so far](http://www.ug.it.usyd.edu.au/~hwil7821/rust-api/)) and it was getting some junk from the tests.) The rustdoc commit is particularly brutal, so it's fine if that one isn't landed.
2013-04-16libcore,std,syntax,rustc: move tests into `mod tests`, make them private (no ↵Huon Wilson-2/+2
pub mod or pub fn).
2013-04-15auto merge of #5879 : astrieanna/rust/document_std_base64, r=catamorphismbors-1/+79
This adds examples for the methods in std::base64. Each example is complete in the sense that you can copy-paste it into a file and compile it successfully without adding anything (imports, etc). The hardest part of figuring out how to use this was figuring out the right import statements to put at the top.
2013-04-14Change to 4-space indents in code examplesLeah Hanson-14/+14
2013-04-14update copyright notice on base64.rsLeah Hanson-1/+1
2013-04-13Doc review, as requested :-).Dan Luu-8/+7
Mostly just phrasing things differently, which is a matter of taste. Feel free to use or not use any of the changes I'm suggesting. I would say this one thing should be changed, though, not necessarily the way I changed it here. * Convert any string (literal, `@`, `&`, `~`) * that contains a base64 encoded value, to the byte values it encodes. If this structure is going to be used, either the entire clause, 'that contains a base64 encoded value', should be bracketed by commas, or the comma at the end of the clause should be removed.
2013-04-13move rustdoc comments so that they attach to the functions rather than the ↵Leah Hanson-79/+79
impl blocks.
2013-04-12Add comments for the implementations of from_base64 and to_base64 for .Leah Hanson-0/+34
2013-04-12add rustdoc comments with examples for the string versions of to_base64 and ↵Leah Hanson-0/+45
from_base64
2013-04-08Removing no longer needed unsafe blocksAlex Crichton-81/+77
2013-03-29librustc: Remove `fail_unless!`Patrick Walton-14/+14
2013-03-27base64: add docstringDaniel Micay-0/+2
2013-03-26librustc: Remove obsolete syntaxPatrick Walton-1/+1
2013-03-26librustc: Modify all code to use new lifetime binder syntaxPatrick Walton-2/+2
2013-03-26Isolated bug, static vector seems to behave differently than fixed sized oneMarvin Löbel-1/+1
2013-03-26Switched over a bunch of splitting funktions to non-allocating iteratorsMarvin Löbel-13/+17
2013-03-22libstd: Remove all uses of `pure` from libstd. rs=depurePatrick Walton-6/+6
2013-03-18librustc: Convert all uses of old lifetime notation to new lifetime ↵Patrick Walton-2/+2
notation. rs=delifetiming
2013-03-07librustc: Convert all uses of `assert` over to `fail_unless!`Patrick Walton-14/+14
2013-03-07De-implicit-self libstdBen Striegel-8/+8
2013-03-06Add manual &self/ and &static/ and /&self declarations thatNiko Matsakis-2/+2
are currently inferred. New rules are coming that will require them to be explicit. All add some explicit self declarations.
2013-03-04Remove unused imports throughout src/Alex Crichton-1/+0
2013-02-14librustc: Replace `impl Type : Trait` with `impl Trait for Type`. ↵Patrick Walton-4/+4
rs=implflipping
2013-02-13Remove die!, raplace invocations with fail! Issue #4524 pt 3Nick Desaulniers-4/+4
2013-02-07Make ~fn non-copyable, make &fn copyable, split barefn/closure types,Niko Matsakis-2/+0
correct handling of moves for struct-record update. Part of #3678. Fixes #2828, #3904, #4719.
2013-01-31Replace most invocations of fail keyword with die! macroNick Desaulniers-4/+4
2013-01-29libstd: De-export libstd. rs=deexportPatrick Walton-4/+2
2012-12-27libstd: Fix a bunch of resolve errors in tests. rs=firePatrick Walton-0/+3
2012-12-27librustc: Terminate name searches at the nearest module scope for paths that ↵Patrick Walton-1/+5
contain at least two components. r=graydon
2012-12-03Update license, add license boilerplate to most files. Remainder will follow.Graydon Hoare-0/+10
2012-11-18Fixing warnings for long and blank linesJesse Jones-10/+11
2012-11-18Made more stuff pure.Jesse Jones-86/+88
escape functions in char, io.with_str_reader, base64 and md5sum, cell.empty_cell and is_empty.
2012-09-28std: Eliminate deprecated patternsBrian Anderson-1/+0
2012-09-27De-export std::{base64,cmp,par}. Part of #3583.Graydon Hoare-2/+2
2012-09-26Demode vec::push (and convert to method)Niko Matsakis-6/+6
2012-09-21De-mode vec::map, vec::eachi, vec::rev_each, vec::rev_eachiNiko Matsakis-2/+1
2012-09-21libcore: De-mode strPatrick Walton-13/+13
2012-09-21Install new pub/priv/export rules as defaults, old rules accessible under ↵Graydon Hoare-0/+1
#[legacy_exports];
2012-09-04libstd: "import" -> "use"Patrick Walton-1/+1
2012-09-03libstd: Make ToBase64 take slicesPatrick Walton-2/+2
2012-09-02std: warn(non_camel_case_types) everywhere. still some exceptionsBrian Anderson-1/+0
2012-09-01Confirm demode of base64.rsKevin Cantu-0/+2
2012-08-28CamelCasify lots of stdBen Striegel-6/+7
2012-08-23Rename str::bytes to str::to_bytesTim Chevalier-9/+9
Closes #3245
2012-08-15Expunge match checksTim Chevalier-4/+7