regionMatches() — netty Function Reference
Architecture documentation for the regionMatches() function in AsciiString.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 75d97956_7df9_5d75_913f_f87ea4ad5085["regionMatches()"] a41de6d4_fd08_8a12_95fd_35db12fdb4cc["AsciiString"] 75d97956_7df9_5d75_913f_f87ea4ad5085 -->|defined in| a41de6d4_fd08_8a12_95fd_35db12fdb4cc 9f9f7a6d_f9ba_d263_f9ec_8dedb5cf855b["endsWith()"] 9f9f7a6d_f9ba_d263_f9ec_8dedb5cf855b -->|calls| 75d97956_7df9_5d75_913f_f87ea4ad5085 2c9792e6_0b78_a83d_23e2_0c00778fdbe2["startsWith()"] 2c9792e6_0b78_a83d_23e2_0c00778fdbe2 -->|calls| 75d97956_7df9_5d75_913f_f87ea4ad5085 bd440c99_4c19_2dbd_35e0_2686c07dfa2f["regionMatchesAscii()"] bd440c99_4c19_2dbd_35e0_2686c07dfa2f -->|calls| 75d97956_7df9_5d75_913f_f87ea4ad5085 ca58bd74_10fb_66d2_08bd_60369006b021["indexOfIgnoreCase()"] ca58bd74_10fb_66d2_08bd_60369006b021 -->|calls| 75d97956_7df9_5d75_913f_f87ea4ad5085 fb319f55_ebbc_4b58_3f44_4a89b340c1b2["length()"] 75d97956_7df9_5d75_913f_f87ea4ad5085 -->|calls| fb319f55_ebbc_4b58_3f44_4a89b340c1b2 563104d5_0779_8bf9_4289_ded808a3624b["arrayOffset()"] 75d97956_7df9_5d75_913f_f87ea4ad5085 -->|calls| 563104d5_0779_8bf9_4289_ded808a3624b b0010533_e167_3ce3_bebe_5db3bfe5e02a["b2c()"] 75d97956_7df9_5d75_913f_f87ea4ad5085 -->|calls| b0010533_e167_3ce3_bebe_5db3bfe5e02a 84f2e848_a873_1bab_e97b_ddaa0dd1fdf9["charAt()"] 75d97956_7df9_5d75_913f_f87ea4ad5085 -->|calls| 84f2e848_a873_1bab_e97b_ddaa0dd1fdf9 5a9ed78d_0890_217e_ba59_a56f5862a872["equalsIgnoreCase()"] 75d97956_7df9_5d75_913f_f87ea4ad5085 -->|calls| 5a9ed78d_0890_217e_ba59_a56f5862a872 a5f74bee_8f39_ae4d_cb76_e1565aa342ca["regionMatchesCharSequences()"] 75d97956_7df9_5d75_913f_f87ea4ad5085 -->|calls| a5f74bee_8f39_ae4d_cb76_e1565aa342ca 874f6fd4_501b_9c3e_4688_18fa50202eac["equals()"] 75d97956_7df9_5d75_913f_f87ea4ad5085 -->|calls| 874f6fd4_501b_9c3e_4688_18fa50202eac style 75d97956_7df9_5d75_913f_f87ea4ad5085 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/main/java/io/netty/util/AsciiString.java lines 820–848
public boolean regionMatches(int thisStart, CharSequence string, int start, int length) {
ObjectUtil.checkNotNull(string, "string");
if (start < 0 || string.length() - start < length) {
return false;
}
final int thisLen = length();
if (thisStart < 0 || thisLen - thisStart < length) {
return false;
}
if (length <= 0) {
return true;
}
if (string instanceof AsciiString) {
final AsciiString asciiString = (AsciiString) string;
return PlatformDependent.equals(value, thisStart + offset, asciiString.value,
start + asciiString.offset, length);
}
final int thatEnd = start + length;
for (int i = start, j = thisStart + arrayOffset(); i < thatEnd; i++, j++) {
if (b2c(value[j]) != string.charAt(i)) {
return false;
}
}
return true;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does regionMatches() do?
regionMatches() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/AsciiString.java.
Where is regionMatches() defined?
regionMatches() is defined in common/src/main/java/io/netty/util/AsciiString.java at line 820.
What does regionMatches() call?
regionMatches() calls 7 function(s): arrayOffset, b2c, charAt, equals, equalsIgnoreCase, length, regionMatchesCharSequences.
What calls regionMatches()?
regionMatches() is called by 4 function(s): endsWith, indexOfIgnoreCase, regionMatchesAscii, startsWith.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free