|
DiffMatchPatchDiffCommonPrefix Method
|
Determine the common prefix of two strings.
Namespace: GSF.TextAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.246-beta+ff392465a0262ee2737937d4127fc3c2f08c6dcd
Syntaxpublic int DiffCommonPrefix(
string text1,
string text2
)
Public Function DiffCommonPrefix (
text1 As String,
text2 As String
) As Integer
public:
int DiffCommonPrefix(
String^ text1,
String^ text2
)
member DiffCommonPrefix :
text1 : string *
text2 : string -> int
function DiffCommonPrefix(text1, text2);
View SourceParameters
- text1 String
- First string
- text2 String
- Second string
Return Value
Int32The number of characters common to the start of each string
See Also