Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix typo #51

Merged
merged 1 commit into from
Dec 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Siv3D/include/Siv3D/String.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -801,11 +801,11 @@ namespace s3d

constexpr String& replace(size_type pos, size_type count, const String& s) SIV3D_LIFETIMEBOUND;

constexpr String& replate(const_iterator first, const_iterator last, const String& s) SIV3D_LIFETIMEBOUND;
constexpr String& replace(const_iterator first, const_iterator last, const String& s) SIV3D_LIFETIMEBOUND;

constexpr String& replace(const_iterator first, const_iterator last, const value_type* s) SIV3D_LIFETIMEBOUND;

constexpr String& replate(const_iterator first, const_iterator last, const StringViewLike auto& s);
constexpr String& replace(const_iterator first, const_iterator last, const StringViewLike auto& s);

constexpr String& replace(size_type pos, size_type count, const value_type* s) SIV3D_LIFETIMEBOUND;

Expand Down
4 changes: 2 additions & 2 deletions Siv3D/include/Siv3D/detail/String.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@ namespace s3d
return *this;
}

constexpr String& String::replate(const_iterator first, const_iterator last, const String& s)
constexpr String& String::replace(const_iterator first, const_iterator last, const String& s)
{
m_string.replace(first, last, s.m_string);
return *this;
Expand All @@ -985,7 +985,7 @@ namespace s3d
return *this;
}

constexpr String& String::replate(const_iterator first, const_iterator last, const StringViewLike auto& s)
constexpr String& String::replace(const_iterator first, const_iterator last, const StringViewLike auto& s)
{
m_string.replace(first, last, s);
return *this;
Expand Down