Lines Matching defs:last
114 std::string percent_decode(InputIt first, InputIt last) {
116 result.resize(last - first);
118 for (; first != last; ++first) {
124 if (first + 1 != last && first + 2 != last && is_hex_digit(*(first + 1)) &&
232 // long. This function returns the one beyond the last position.
240 // long. This function returns the one beyond the last position.
248 // function returns the one beyond the last position.
253 // long. This function returns the one beyond the last position.
414 template <typename InputIt> void inp_strlower(InputIt first, InputIt last) {
415 std::transform(first, last, first, lowcase);
872 // Fills random alpha and digit byte to the range [|first|, |last|).
873 // Returns the one beyond the |last|.
875 OutputIt random_alpha_digit(OutputIt first, OutputIt last, Generator &gen) {
881 for (; first != last; ++first) {
887 // Fills random bytes to the range [|first|, |last|).
889 void random_bytes(OutputIt first, OutputIt last, Generator &gen) {
891 std::generate(first, last, [&dis, &gen]() { return dis(gen); });
894 // Shuffles the range [|first|, |last|] by calling swap function |fun|
898 void shuffle(RandomIt first, RandomIt last, Generator &&gen, SwapFun fun) {
899 auto len = std::distance(first, last);