Skip to content

Commit c9b7e3f

Browse files
committed
Updated version number and Changelog
1 parent d869569 commit c9b7e3f

3 files changed

Lines changed: 21 additions & 11 deletions

File tree

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,20 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [1.10.0] - 2020-06-04
8+
9+
### Added
10+
11+
- `parse_host` to library interface
12+
13+
### Changed
14+
15+
- Type of error code values used with tl::expected
16+
17+
### Fixed
18+
19+
- A number of parser errors
20+
721
## [1.9.0] - 2020-05-25
822

923
### Changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ cmake_minimum_required(VERSION 3.14)
88

99
project(
1010
skyr-url
11-
VERSION 1.9.0
11+
VERSION 1.10.0
1212
HOMEPAGE_URL https://cpp-netlib.github.io/url
1313
DESCRIPTION "A C++ library that implements the WhatWG URL specification"
1414
LANGUAGES CXX

src/v1/core/url_parser_context.cpp

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -97,23 +97,19 @@ inline auto is_windows_drive_letter(std::string_view segment) noexcept {
9797
return result;
9898
}
9999

100-
inline auto is_single_dot_path_segment(std::string_view segment) noexcept {
101-
auto lower = std::string(segment);
102-
std::transform(begin(lower), end(lower), begin(lower),
103-
[] (auto byte) -> decltype(byte) {
100+
constexpr static auto to_lower = [] (auto byte) -> decltype(byte) {
104101
return std::tolower(byte, std::locale::classic());
105-
});
102+
};
106103

104+
inline auto is_single_dot_path_segment(std::string_view segment) noexcept {
105+
auto lower = std::string(segment);
106+
std::transform(begin(lower), end(lower), begin(lower), to_lower);
107107
return ((lower == ".") || (lower == "%2e"));
108108
}
109109

110110
auto is_double_dot_path_segment(std::string_view segment) noexcept {
111111
auto lower = std::string(segment);
112-
std::transform(begin(lower), end(lower), begin(lower),
113-
[] (auto byte) -> decltype(byte) {
114-
return std::tolower(byte, std::locale::classic());
115-
});
116-
112+
std::transform(begin(lower), end(lower), begin(lower), to_lower);
117113
return (
118114
(lower == "..") ||
119115
(lower == ".%2e") ||

0 commit comments

Comments
 (0)