Skip to content

Commit

Permalink
[共通] StringView::lastIndexOfAny() のデフォルト引数を 0 から npos に修正 #1241
Browse files Browse the repository at this point in the history
  • Loading branch information
Reputeless committed Jul 2, 2024
1 parent 1f4c0fb commit fb0bb47
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Siv3D/include/Siv3D/StringView.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,10 @@ namespace s3d
constexpr size_t indexOfAny(const value_type* anyof, size_t pos = 0) const noexcept;

[[nodiscard]]
constexpr size_t lastIndexOfAny(StringView anyof, size_t pos = 0) const noexcept;
constexpr size_t lastIndexOfAny(StringView anyof, size_t pos = npos) const noexcept;

[[nodiscard]]
constexpr size_t lastIndexOfAny(const value_type* anyof, size_t pos = 0) const noexcept;
constexpr size_t lastIndexOfAny(const value_type* anyof, size_t pos = npos) const noexcept;

[[nodiscard]]
constexpr size_t indexNotOfAny(StringView anyof, size_t pos = 0) const noexcept;
Expand All @@ -257,10 +257,10 @@ namespace s3d
constexpr size_t indexNotOfAny(const value_type* anyof, size_t pos = 0) const noexcept;

[[nodiscard]]
constexpr size_t lastIndexNotOfAny(StringView anyof, size_t pos = 0) const noexcept;
constexpr size_t lastIndexNotOfAny(StringView anyof, size_t pos = npos) const noexcept;

[[nodiscard]]
constexpr size_t lastIndexNotOfAny(const value_type* anyof, size_t pos = 0) const noexcept;
constexpr size_t lastIndexNotOfAny(const value_type* anyof, size_t pos = npos) const noexcept;

/// @brief 文字列が指定した文字を含むかを返します。
/// @param ch 検索する文字
Expand Down

0 comments on commit fb0bb47

Please sign in to comment.