aboutsummaryrefslogtreecommitdiffstats
path: root/components/util/str.rs
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2015-04-14 02:57:41 -0500
committerbors-servo <metajack+bors@gmail.com>2015-04-14 02:57:41 -0500
commit4997d3a112354a407365fede1ab1944834a2e13c (patch)
tree15f0302b2c182fe4847e8495f2a33d42ea5f7097 /components/util/str.rs
parentb7f59a36461e6c9eb08b8e48760168d3cb26a400 (diff)
parent5eaa92204599332d8f1fdfb04da302136161db55 (diff)
downloadservo-4997d3a112354a407365fede1ab1944834a2e13c.tar.gz
servo-4997d3a112354a407365fede1ab1944834a2e13c.zip
Auto merge of #5677 - frewsxcv:https, r=Ms2ger
Extracted this out of #5649 This commit was created with the following commands: ``` find . -iname "*.webidl" -type f -print0 | xargs -0 sed -i '' 's/http:\(.*\)whatwg.org/https:\1whatwg.org/g' ``` ``` find . -iname "*.rs" -type f -print0 | xargs -0 sed -i '' 's/http:\(.*\)whatwg.org/https:\1whatwg.org/g' ```
Diffstat (limited to 'components/util/str.rs')
-rw-r--r--components/util/str.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/components/util/str.rs b/components/util/str.rs
index a400edb9572..9d1d65294d4 100644
--- a/components/util/str.rs
+++ b/components/util/str.rs
@@ -49,7 +49,7 @@ pub fn char_is_whitespace(c: char) -> bool {
/// A "space character" according to:
///
-/// http://www.whatwg.org/specs/web-apps/current-work/multipage/common-microsyntaxes.html#space-character
+/// https://www.whatwg.org/specs/web-apps/current-work/multipage/common-microsyntaxes.html#space-character
pub static HTML_SPACE_CHARACTERS: StaticCharVec = &[
'\u{0020}',
'\u{0009}',
@@ -65,8 +65,8 @@ pub fn split_html_space_chars<'a>(s: &'a str) ->
}
/// Shared implementation to parse an integer according to
-/// <http://www.whatwg.org/html/#rules-for-parsing-integers> or
-/// <http://www.whatwg.org/html/#rules-for-parsing-non-negative-integers>.
+/// <https://www.whatwg.org/html/#rules-for-parsing-integers> or
+/// <https://www.whatwg.org/html/#rules-for-parsing-non-negative-integers>.
fn do_parse_integer<T: Iterator<Item=char>>(input: T) -> Option<i64> {
fn is_ascii_digit(c: &char) -> bool {
match *c {
@@ -111,7 +111,7 @@ fn do_parse_integer<T: Iterator<Item=char>>(input: T) -> Option<i64> {
}
/// Parse an integer according to
-/// <http://www.whatwg.org/html/#rules-for-parsing-integers>.
+/// <https://www.whatwg.org/html/#rules-for-parsing-integers>.
pub fn parse_integer<T: Iterator<Item=char>>(input: T) -> Option<i32> {
do_parse_integer(input).and_then(|result| {
result.to_i32()
@@ -119,7 +119,7 @@ pub fn parse_integer<T: Iterator<Item=char>>(input: T) -> Option<i32> {
}
/// Parse an integer according to
-/// <http://www.whatwg.org/html/#rules-for-parsing-non-negative-integers>.
+/// <https://www.whatwg.org/html/#rules-for-parsing-non-negative-integers>.
pub fn parse_unsigned_integer<T: Iterator<Item=char>>(input: T) -> Option<u32> {
do_parse_integer(input).and_then(|result| {
result.to_u32()