indexOfIgnoreCaseAscii() — netty Function Reference
Architecture documentation for the indexOfIgnoreCaseAscii() function in AsciiString.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 0b6ce7e7_e586_2b82_c0ba_7b3fff596a81["indexOfIgnoreCaseAscii()"] a41de6d4_fd08_8a12_95fd_35db12fdb4cc["AsciiString"] 0b6ce7e7_e586_2b82_c0ba_7b3fff596a81 -->|defined in| a41de6d4_fd08_8a12_95fd_35db12fdb4cc fb319f55_ebbc_4b58_3f44_4a89b340c1b2["length()"] 0b6ce7e7_e586_2b82_c0ba_7b3fff596a81 -->|calls| fb319f55_ebbc_4b58_3f44_4a89b340c1b2 bd440c99_4c19_2dbd_35e0_2686c07dfa2f["regionMatchesAscii()"] 0b6ce7e7_e586_2b82_c0ba_7b3fff596a81 -->|calls| bd440c99_4c19_2dbd_35e0_2686c07dfa2f style 0b6ce7e7_e586_2b82_c0ba_7b3fff596a81 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/main/java/io/netty/util/AsciiString.java lines 1760–1781
public static int indexOfIgnoreCaseAscii(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 (regionMatchesAscii(str, true, i, searchStr, 0, searchStrLen)) {
return i;
}
}
return INDEX_NOT_FOUND;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does indexOfIgnoreCaseAscii() do?
indexOfIgnoreCaseAscii() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/AsciiString.java.
Where is indexOfIgnoreCaseAscii() defined?
indexOfIgnoreCaseAscii() is defined in common/src/main/java/io/netty/util/AsciiString.java at line 1760.
What does indexOfIgnoreCaseAscii() call?
indexOfIgnoreCaseAscii() calls 2 function(s): length, regionMatchesAscii.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free