contentEqualsIgnoreCase() — netty Function Reference
Architecture documentation for the contentEqualsIgnoreCase() function in AsciiString.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 0aa52b3b_ba4d_c24c_6dd8_7abe1be70fb9["contentEqualsIgnoreCase()"] a41de6d4_fd08_8a12_95fd_35db12fdb4cc["AsciiString"] 0aa52b3b_ba4d_c24c_6dd8_7abe1be70fb9 -->|defined in| a41de6d4_fd08_8a12_95fd_35db12fdb4cc d7da4546_ad48_4140_703f_6f81d410abf7["containsContentEqualsIgnoreCase()"] d7da4546_ad48_4140_703f_6f81d410abf7 -->|calls| 0aa52b3b_ba4d_c24c_6dd8_7abe1be70fb9 fb319f55_ebbc_4b58_3f44_4a89b340c1b2["length()"] 0aa52b3b_ba4d_c24c_6dd8_7abe1be70fb9 -->|calls| fb319f55_ebbc_4b58_3f44_4a89b340c1b2 5a9ed78d_0890_217e_ba59_a56f5862a872["equalsIgnoreCase()"] 0aa52b3b_ba4d_c24c_6dd8_7abe1be70fb9 -->|calls| 5a9ed78d_0890_217e_ba59_a56f5862a872 4209a38f_b195_ecd8_34d6_6c93b265b3f1["misalignedEqualsIgnoreCase()"] 0aa52b3b_ba4d_c24c_6dd8_7abe1be70fb9 -->|calls| 4209a38f_b195_ecd8_34d6_6c93b265b3f1 b0010533_e167_3ce3_bebe_5db3bfe5e02a["b2c()"] 0aa52b3b_ba4d_c24c_6dd8_7abe1be70fb9 -->|calls| b0010533_e167_3ce3_bebe_5db3bfe5e02a 84f2e848_a873_1bab_e97b_ddaa0dd1fdf9["charAt()"] 0aa52b3b_ba4d_c24c_6dd8_7abe1be70fb9 -->|calls| 84f2e848_a873_1bab_e97b_ddaa0dd1fdf9 style 0aa52b3b_ba4d_c24c_6dd8_7abe1be70fb9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/main/java/io/netty/util/AsciiString.java lines 527–558
public boolean contentEqualsIgnoreCase(CharSequence string) {
if (this == string) {
return true;
}
if (string == null || string.length() != length()) {
return false;
}
if (string instanceof AsciiString) {
AsciiString other = (AsciiString) string;
byte[] value = this.value;
if (offset == 0 && other.offset == 0 && length == value.length) {
byte[] otherValue = other.value;
for (int i = 0; i < value.length; ++i) {
if (!equalsIgnoreCase(value[i], otherValue[i])) {
return false;
}
}
return true;
}
return misalignedEqualsIgnoreCase(other);
}
byte[] value = this.value;
for (int i = offset, j = 0; j < string.length(); ++i, ++j) {
if (!equalsIgnoreCase(b2c(value[i]), string.charAt(j))) {
return false;
}
}
return true;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does contentEqualsIgnoreCase() do?
contentEqualsIgnoreCase() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/AsciiString.java.
Where is contentEqualsIgnoreCase() defined?
contentEqualsIgnoreCase() is defined in common/src/main/java/io/netty/util/AsciiString.java at line 527.
What does contentEqualsIgnoreCase() call?
contentEqualsIgnoreCase() calls 5 function(s): b2c, charAt, equalsIgnoreCase, length, misalignedEqualsIgnoreCase.
What calls contentEqualsIgnoreCase()?
contentEqualsIgnoreCase() is called by 1 function(s): containsContentEqualsIgnoreCase.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free