indexOfIgnoreCase() — netty Function Reference
Architecture documentation for the indexOfIgnoreCase() function in AsciiString.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD ca58bd74_10fb_66d2_08bd_60369006b021["indexOfIgnoreCase()"] a41de6d4_fd08_8a12_95fd_35db12fdb4cc["AsciiString"] ca58bd74_10fb_66d2_08bd_60369006b021 -->|defined in| a41de6d4_fd08_8a12_95fd_35db12fdb4cc fb319f55_ebbc_4b58_3f44_4a89b340c1b2["length()"] ca58bd74_10fb_66d2_08bd_60369006b021 -->|calls| fb319f55_ebbc_4b58_3f44_4a89b340c1b2 75d97956_7df9_5d75_913f_f87ea4ad5085["regionMatches()"] ca58bd74_10fb_66d2_08bd_60369006b021 -->|calls| 75d97956_7df9_5d75_913f_f87ea4ad5085 style ca58bd74_10fb_66d2_08bd_60369006b021 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/main/java/io/netty/util/AsciiString.java lines 1707–1728
public static int indexOfIgnoreCase(final CharSequence str, final CharSequence searchStr, int startPos) {
if (str == null || searchStr == null) {
return INDEX_NOT_FOUND;
}
if (startPos < 0) {
startPos = 0;
}
int searchStrLen = searchStr.length();
final int endLimit = str.length() - searchStrLen + 1;
if (startPos > endLimit) {
return INDEX_NOT_FOUND;
}
if (searchStrLen == 0) {
return startPos;
}
for (int i = startPos; i < endLimit; i++) {
if (regionMatches(str, true, i, searchStr, 0, searchStrLen)) {
return i;
}
}
return INDEX_NOT_FOUND;
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does indexOfIgnoreCase() do?
indexOfIgnoreCase() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/AsciiString.java.
Where is indexOfIgnoreCase() defined?
indexOfIgnoreCase() is defined in common/src/main/java/io/netty/util/AsciiString.java at line 1707.
What does indexOfIgnoreCase() call?
indexOfIgnoreCase() calls 2 function(s): length, regionMatches.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free