org.eclipse.jgit.diff.RawText .
| Modifier and Type | Field and Description |
|---|---|
| public static final RawTextComparator | DEFAULT
No special treatment. |
| public static final RawTextComparator | WS_IGNORE_ALL
Ignores all whitespace. |
| public static final RawTextComparator | WS_IGNORE_CHANGE
Ignores whitespace occurring between non-whitespace characters. |
| public static final RawTextComparator | WS_IGNORE_LEADING
Ignore leading whitespace. |
| public static final RawTextComparator | WS_IGNORE_TRAILING
Ignores trailing whitespace. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static int | |
| private static int | |
| public int | hash(RawText
the sequence. seq, int the item to obtain the hash for. lno)Implements abstract org. Get a hash value for an item in a sequence. |
| protected abstract int | Returns: hash code for the region[ptr, end) of raw.the raw file content. raw, int first byte of the region to hash. ptr, int 1 past the last byte of the region. end)Compute a hash code for a region. |
| public Edit | reduceCommonStartEnd(RawText
the first sequence. a, RawText the second sequence. b, Edit the edit to start with and update. e)Overrides org. Modify the edit to remove common leading and trailing items. |
| DEFAULT | back to summary |
|---|---|
| public static final RawTextComparator DEFAULT No special treatment. | |
| WS_IGNORE_ALL | back to summary |
|---|---|
| public static final RawTextComparator WS_IGNORE_ALL Ignores all whitespace. | |
| WS_IGNORE_CHANGE | back to summary |
|---|---|
| public static final RawTextComparator WS_IGNORE_CHANGE Ignores whitespace occurring between non-whitespace characters. | |
| WS_IGNORE_LEADING | back to summary |
|---|---|
| public static final RawTextComparator WS_IGNORE_LEADING Ignore leading whitespace. | |
| WS_IGNORE_TRAILING | back to summary |
|---|---|
| public static final RawTextComparator WS_IGNORE_TRAILING Ignores trailing whitespace. | |
| RawTextComparator | back to summary |
|---|---|
| public RawTextComparator() | |
| findForwardLine | back to summary |
|---|---|
| private static int findForwardLine(IntList lines, int idx, int ptr) | |
| findReverseLine | back to summary |
|---|---|
| private static int findReverseLine(IntList lines, int idx, int ptr) | |
| hash | back to summary |
|---|---|
| public int hash(RawText seq, int lno) Implements abstract org. Doc from org. Get a hash value for an item in a sequence.
If two items are equal according to this comparator's
| |
| hashRegion | back to summary |
|---|---|
| protected abstract int hashRegion(byte[] raw, int ptr, int end) Compute a hash code for a region.
| |
| reduceCommonStartEnd | back to summary |
|---|---|
| public Edit reduceCommonStartEnd(RawText a, RawText b, Edit e) Overrides org. Doc from org. Modify the edit to remove common leading and trailing items.
The supplied edit | |