mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-30 09:00:05 +02:00
Update to v098r10 release.
byuu says: Changelog: - synchronized tomoko, loki, icarus with extensive changes to nall (118KiB diff)
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace nall {
|
||||
|
||||
template<bool Insensitive, bool Quoted> auto string::_find(int offset, rstring source) const -> maybe<uint> {
|
||||
template<bool Insensitive, bool Quoted> auto string::_find(int offset, string_view source) const -> maybe<uint> {
|
||||
if(source.size() == 0) return nothing;
|
||||
|
||||
auto p = data();
|
||||
@@ -15,12 +15,12 @@ template<bool Insensitive, bool Quoted> auto string::_find(int offset, rstring s
|
||||
return nothing;
|
||||
}
|
||||
|
||||
auto string::find(rstring source) const -> maybe<uint> { return _find<0, 0>(0, source); }
|
||||
auto string::ifind(rstring source) const -> maybe<uint> { return _find<1, 0>(0, source); }
|
||||
auto string::qfind(rstring source) const -> maybe<uint> { return _find<0, 1>(0, source); }
|
||||
auto string::iqfind(rstring source) const -> maybe<uint> { return _find<1, 1>(0, source); }
|
||||
auto string::find(string_view source) const -> maybe<uint> { return _find<0, 0>(0, source); }
|
||||
auto string::ifind(string_view source) const -> maybe<uint> { return _find<1, 0>(0, source); }
|
||||
auto string::qfind(string_view source) const -> maybe<uint> { return _find<0, 1>(0, source); }
|
||||
auto string::iqfind(string_view source) const -> maybe<uint> { return _find<1, 1>(0, source); }
|
||||
|
||||
auto string::findFrom(int offset, rstring source) const -> maybe<uint> { return _find<0, 0>(offset, source); }
|
||||
auto string::ifindFrom(int offset, rstring source) const -> maybe<uint> { return _find<1, 0>(offset, source); }
|
||||
auto string::findFrom(int offset, string_view source) const -> maybe<uint> { return _find<0, 0>(offset, source); }
|
||||
auto string::ifindFrom(int offset, string_view source) const -> maybe<uint> { return _find<1, 0>(offset, source); }
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user