public class DiffUtils extends Object
Represents a utils class for diff algorithm.
| Constructor and Description |
|---|
DiffUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
assemblyDestinationText(com.aspose.ms.System.Collections.Generic.List<DiffOperation> diffs)
Gets the destination text by diffs.
|
static String |
assemblySourceText(com.aspose.ms.System.Collections.Generic.List<DiffOperation> diffs)
Gets the source text by diffs.
|
static String |
findCommonEndParts(com.aspose.ms.System.Text.msStringBuilder text1,
com.aspose.ms.System.Text.msStringBuilder text2)
Determine the common end parts of two strings.
|
static String |
findCommonEndParts(String text1,
String text2,
int startIndex)
Determine the common end parts of two strings.
|
static String |
findCommonStartParts(com.aspose.ms.System.Text.msStringBuilder text1,
com.aspose.ms.System.Text.msStringBuilder text2)
Determine the common start parts of two strings.
|
static String |
findCommonStartParts(String text1,
String text2)
Determine the common start parts of two strings.
|
public static String findCommonStartParts(String text1, String text2)
Determine the common start parts of two strings.
text1 - First string.text2 - Second string.public static String findCommonStartParts(com.aspose.ms.System.Text.msStringBuilder text1, com.aspose.ms.System.Text.msStringBuilder text2)
Determine the common start parts of two strings.
text1 - First string.text2 - Second string.public static String findCommonEndParts(String text1, String text2, int startIndex)
Determine the common end parts of two strings.
text1 - First string.text2 - Second string.startIndex - The common index(inclusive) to start finding.public static String findCommonEndParts(com.aspose.ms.System.Text.msStringBuilder text1, com.aspose.ms.System.Text.msStringBuilder text2)
Determine the common end parts of two strings.
text1 - First string.text2 - Second string.public static String assemblySourceText(com.aspose.ms.System.Collections.Generic.List<DiffOperation> diffs)
Gets the source text by diffs.
diffs - diffs List of Diff objects.public static String assemblyDestinationText(com.aspose.ms.System.Collections.Generic.List<DiffOperation> diffs)
Gets the destination text by diffs.
diffs - List of diff operations.Copyright © 2025 Aspose. All Rights Reserved.