Class BoyerMoore
java.lang.Object
org.apache.pekko.http.impl.engine.parsing.BoyerMoore
Straight-forward Boyer-Moore string search implementation.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintnextIndex(org.apache.pekko.util.ByteString haystack, int offset) Returns the index of the next occurrence ofneedleinhaystackthat is >=offset.
- 
Constructor Details- 
BoyerMoorepublic BoyerMoore(byte[] needle) 
 
- 
- 
Method Details- 
nextIndexpublic int nextIndex(org.apache.pekko.util.ByteString haystack, int offset) Returns the index of the next occurrence ofneedleinhaystackthat is >=offset. If none is found aNotEnoughDataExceptionis thrown.- Parameters:
- haystack- (undocumented)
- offset- (undocumented)
- Returns:
- (undocumented)
 
 
-