Home
last modified time | relevance | path

Searched refs:typo (Results 1 – 3 of 3) sorted by relevance

/tools/metalava/src/main/java/com/android/tools/metalava/
DDocAnalyzer.kt649 for (typo in typos.keys) { in <lambda>() variable
650 if (doc.contains(typo)) { in <lambda>()
651 val replacement = typos[typo] ?: continue in <lambda>()
652 val new = doc.replace(Regex("\\b$typo\\b"), replacement) in <lambda>()
657 … "Replaced $typo with $replacement in the documentation for $item" in <lambda>()
/tools/repohooks/tools/
Dcheckpatch.pl2775 my $typo = $1;
2776 my $typo_fix = $spelling_fix{lc($typo)};
2777 $typo_fix = ucfirst($typo_fix) if ($typo =~ /^[A-Z]/);
2778 $typo_fix = uc($typo_fix) if ($typo =~ /^[A-Z]+$/);
2782 "'$typo' may be misspelled - perhaps '$typo_fix'?\n" . $herecurr) &&
2784 $fixed[$fixlinenr] =~ s/(^|[^A-Za-z@])($typo)($|[^A-Za-z@])/$1$typo_fix$3/;
/tools/metalava/src/test/java/com/android/tools/metalava/
DDocAnalyzerTest.kt120 fun `Fix typo replacement`() { in Fix typo replacement()