|
DiffMatchPatchDiffCommonPrefix Method
|
Determine the common prefix of two strings.
Namespace: GSF.TextAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.275-beta+5a507085c1b79f1427cd1812b9c3c9c583c21079
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