regionMatchesAscii() — netty Function Reference
Architecture documentation for the regionMatchesAscii() function in AsciiString.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD bd440c99_4c19_2dbd_35e0_2686c07dfa2f["regionMatchesAscii()"] a41de6d4_fd08_8a12_95fd_35db12fdb4cc["AsciiString"] bd440c99_4c19_2dbd_35e0_2686c07dfa2f -->|defined in| a41de6d4_fd08_8a12_95fd_35db12fdb4cc 0b6ce7e7_e586_2b82_c0ba_7b3fff596a81["indexOfIgnoreCaseAscii()"] 0b6ce7e7_e586_2b82_c0ba_7b3fff596a81 -->|calls| bd440c99_4c19_2dbd_35e0_2686c07dfa2f 75d97956_7df9_5d75_913f_f87ea4ad5085["regionMatches()"] bd440c99_4c19_2dbd_35e0_2686c07dfa2f -->|calls| 75d97956_7df9_5d75_913f_f87ea4ad5085 a5f74bee_8f39_ae4d_cb76_e1565aa342ca["regionMatchesCharSequences()"] bd440c99_4c19_2dbd_35e0_2686c07dfa2f -->|calls| a5f74bee_8f39_ae4d_cb76_e1565aa342ca style bd440c99_4c19_2dbd_35e0_2686c07dfa2f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/main/java/io/netty/util/AsciiString.java lines 1655–1675
public static boolean regionMatchesAscii(final CharSequence cs, final boolean ignoreCase, final int csStart,
final CharSequence string, final int start, final int length) {
if (cs == null || string == null) {
return false;
}
if (!ignoreCase && cs instanceof String && string instanceof String) {
//we don't call regionMatches from String for ignoreCase==true. It's a general purpose method,
//which make complex comparison in case of ignoreCase==true, which is useless for ASCII-only strings.
//To avoid applying this complex ignore-case comparison, we will use regionMatchesCharSequences
return ((String) cs).regionMatches(false, csStart, (String) string, start, length);
}
if (cs instanceof AsciiString) {
return ((AsciiString) cs).regionMatches(ignoreCase, csStart, string, start, length);
}
return regionMatchesCharSequences(cs, csStart, string, start, length,
ignoreCase ? AsciiCaseInsensitiveCharEqualityComparator.INSTANCE :
DefaultCharEqualityComparator.INSTANCE);
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does regionMatchesAscii() do?
regionMatchesAscii() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/AsciiString.java.
Where is regionMatchesAscii() defined?
regionMatchesAscii() is defined in common/src/main/java/io/netty/util/AsciiString.java at line 1655.
What does regionMatchesAscii() call?
regionMatchesAscii() calls 2 function(s): regionMatches, regionMatchesCharSequences.
What calls regionMatchesAscii()?
regionMatchesAscii() is called by 1 function(s): indexOfIgnoreCaseAscii.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free