diff options
Switched to standard integer types
* i.e. replaced uint8_t with std::uint8_t contained within the standard namespace
** as this version of the types is defined by the standard this should offer better compiler independence and standard compliance
* removed unnecessary pointer and reference type arguments in the std::iterator template specializations the CodepointIterator class is derived from
Diffstat (limited to 'src/utility.cc')
-rw-r--r-- | src/utility.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/utility.cc b/src/utility.cc index 92ba7b9..9d81f61 100644 --- a/src/utility.cc +++ b/src/utility.cc @@ -3,15 +3,15 @@ namespace UTF8 { namespace dtl { -bool match(const uint8_t& codeUnit, CodeUnitType&& type) { - return codeUnit & static_cast<uint8_t>(type); +bool match(const std::uint8_t& codeUnit, CodeUnitType&& type) { + return codeUnit & static_cast<std::uint8_t>(type); } void write(char32_t& codePoint, - const uint8_t& codeUnit, + const std::uint8_t& codeUnit, CodePoint&& mask, - const uint8_t& offset) { - codePoint += (codeUnit & static_cast<uint8_t>(mask)) << offset; + const std::uint8_t& offset) { + codePoint += (codeUnit & static_cast<std::uint8_t>(mask)) << offset; } } |