Skip to content

Commit

Permalink
added couple of comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zejal committed May 13, 2024
1 parent 1f9b1a6 commit 85911ab
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/fast_float/parse_number.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,11 @@ from_chars_result_t<UC> from_chars(UC const * first, UC const * last,
return from_chars_caller<T>::call(first, last, value, parse_options_t<UC>(fmt));
}

/**
* This function overload takes parsed_number_string_t structure that is created and populated
* either by from_chars_advanced function taking chars range and parsing options
* or other parsing custom function implemented by user.
*/
template<typename T, typename UC>
FASTFLOAT_CONSTEXPR20
from_chars_result_t<UC> from_chars_advanced(parsed_number_string_t<UC>& pns,
Expand Down Expand Up @@ -286,6 +291,7 @@ from_chars_result_t<UC> from_chars_advanced(UC const * first, UC const * last,
}
}

// call overload that takes parsed_number_string_t directly.
return from_chars_advanced(pns, value);
}

Expand Down

0 comments on commit 85911ab

Please sign in to comment.