mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:27:43 +00:00
Everywhere: Fix more typos
This commit is contained in:
parent
4e86c34ef0
commit
bcfc6f0c57
57 changed files with 108 additions and 108 deletions
|
@ -332,7 +332,7 @@ public:
|
|||
|
||||
// The function will return the next range of unset bits starting from the
|
||||
// @from value.
|
||||
// @from: the postition from which the search starts. The var will be
|
||||
// @from: the position from which the search starts. The var will be
|
||||
// changed and new value is the offset of the found block.
|
||||
// @min_length: minimum size of the range which will be returned.
|
||||
// @max_length: maximum size of the range which will be returned.
|
||||
|
|
|
@ -75,7 +75,7 @@ namespace AK {
|
|||
|
||||
class InputStream : public virtual AK::Detail::Stream {
|
||||
public:
|
||||
// Reads at least one byte unless none are requested or none are avaliable. Does nothing
|
||||
// Reads at least one byte unless none are requested or none are available. Does nothing
|
||||
// and returns zero if there is already an error.
|
||||
virtual size_t read(Bytes) = 0;
|
||||
|
||||
|
|
|
@ -302,7 +302,7 @@ bool String::equals_ignoring_case(const StringView& other) const
|
|||
return StringUtils::equals_ignoring_case(view(), other);
|
||||
}
|
||||
|
||||
int String::replace(const String& needle, const String& replacement, bool all_occurences)
|
||||
int String::replace(const String& needle, const String& replacement, bool all_occurrences)
|
||||
{
|
||||
if (is_empty())
|
||||
return 0;
|
||||
|
@ -316,7 +316,7 @@ int String::replace(const String& needle, const String& replacement, bool all_oc
|
|||
|
||||
pos = ptr - characters();
|
||||
positions.append(pos);
|
||||
if (!all_occurences)
|
||||
if (!all_occurrences)
|
||||
break;
|
||||
|
||||
start = pos + 1;
|
||||
|
|
|
@ -252,7 +252,7 @@ public:
|
|||
|
||||
StringView view() const;
|
||||
|
||||
int replace(const String& needle, const String& replacement, bool all_occurences = false);
|
||||
int replace(const String& needle, const String& replacement, bool all_occurrences = false);
|
||||
|
||||
template<typename T, typename... Rest>
|
||||
bool is_one_of(const T& string, Rest... rest) const
|
||||
|
|
|
@ -152,14 +152,14 @@ void TestSuite::main(const String& suite_name, int argc, char** argv)
|
|||
|
||||
args_parser.add_option(do_tests_only, "Only run tests.", "tests", 0);
|
||||
args_parser.add_option(do_benchmarks_only, "Only run benchmarks.", "bench", 0);
|
||||
args_parser.add_option(do_list_cases, "List avaliable test cases.", "list", 0);
|
||||
args_parser.add_option(do_list_cases, "List available test cases.", "list", 0);
|
||||
args_parser.add_positional_argument(search_string, "Only run matching cases.", "pattern", Core::ArgsParser::Required::No);
|
||||
args_parser.parse(argc, argv);
|
||||
|
||||
const auto& matching_tests = find_cases(search_string, !do_benchmarks_only, !do_tests_only);
|
||||
|
||||
if (do_list_cases) {
|
||||
out() << "Avaliable cases for " << suite_name << ":";
|
||||
out() << "Available cases for " << suite_name << ":";
|
||||
for (const auto& test : matching_tests) {
|
||||
out() << " " << test.name();
|
||||
}
|
||||
|
|
|
@ -158,7 +158,7 @@ TEST_CASE(set_range)
|
|||
bitmap.set_range(48, 32, true);
|
||||
bitmap.set_range(94, 39, true);
|
||||
bitmap.set_range(190, 71, true);
|
||||
bitmap.set_range(190 + 71 - 7, 21, false); // slighly overlapping clear
|
||||
bitmap.set_range(190 + 71 - 7, 21, false); // slightly overlapping clear
|
||||
for (size_t i = 0; i < bitmap.size(); i++) {
|
||||
bool should_be_set = (i >= 48 && i < 48 + 32)
|
||||
|| (i >= 94 && i < 94 + 39)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue