Skip to content

Commit

Permalink
馃洜 Link documentation properly
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePhD committed Jul 3, 2022
1 parent ef92651 commit dd0a6d7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
4 changes: 3 additions & 1 deletion documentation/source/api/containers/basic_text.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,11 @@ The ``basic_text`` class provides functionality similar to ``std::string`` but f

.. doxygentypedef:: ztd::text::text

.. doxygentypedef:: ztd::text::ntext

.. doxygentypedef:: ztd::text::wtext

.. doxygentypedef:: ztd::text::ltext
.. doxygentypedef:: ztd::text::nltext

.. doxygentypedef:: ztd::text::wltext

Expand Down
4 changes: 3 additions & 1 deletion documentation/source/api/views/basic_text_view.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,11 @@ The ``basic_text_view`` class provides a one-by-one view of the stored range's c

.. doxygentypedef:: ztd::text::text_view

.. doxygentypedef:: ztd::text::ntext_view

.. doxygentypedef:: ztd::text::wtext_view

.. doxygentypedef:: ztd::text::ltext_view
.. doxygentypedef:: ztd::text::nltext_view

.. doxygentypedef:: ztd::text::wltext_view

Expand Down
6 changes: 3 additions & 3 deletions include/ztd/text/basic_text.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ namespace ztd { namespace text {
}

explicit constexpr basic_text(::std::in_place_t) // cf
noexcept(_S_constructor_from_in_place())
noexcept(_S_constructor_in_place())
: _M_encoding(), _M_normalization(), _M_range() {
this->_M_verify_integrity();
}
Expand Down Expand Up @@ -356,7 +356,7 @@ namespace ztd { namespace text {
&& ::std::is_nothrow_default_constructible_v<range_type>);
}

static constexpr bool _S_constructor_from_in_place() noexcept {
static constexpr bool _S_constructor_in_place() noexcept {
return ::std::is_nothrow_default_constructible_v<encoding_type> // cf
&& ::std::is_nothrow_default_constructible_v<range_type> // cf
&& ::std::is_nothrow_default_constructible_v<normalization_type>;
Expand All @@ -365,7 +365,7 @@ namespace ztd { namespace text {
template <typename _InPlaceOrRange>
static constexpr bool _S_constructor_range_noexcept() noexcept {
if constexpr (::std::is_same_v<::ztd::remove_cvref_t<_InPlaceOrRange>, ::std::in_place_t>) {
return _S_constructor_from_in_place();
return _S_constructor_in_place();
}
else {
return _S_constructor_from_range_noexcept<_InPlaceOrRange>();
Expand Down
4 changes: 1 addition & 3 deletions include/ztd/text/validate_decodable_as.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,7 @@ namespace ztd { namespace text {
template <typename _Input, typename _Encoding, typename _DecodeState, typename _EncodeState>
constexpr auto basic_validate_decodable_as(
_Input&& __input, _Encoding&& __encoding, _DecodeState& __decode_state, _EncodeState& __encode_state) {
using _UInput = remove_cvref_t<_Input>;
using _InputValueType = ranges::range_value_type_t<_UInput>;
using _UEncoding = remove_cvref_t<_Encoding>;
using _UEncoding = remove_cvref_t<_Encoding>;

auto __working_input = __txt_detail::__string_view_or_span_or_reconstruct(::std::forward<_Input>(__input));

Expand Down

0 comments on commit dd0a6d7

Please sign in to comment.