Method | Description | |
---|---|---|
IsCorrect ( string s ) : bool |
returns true if given string has matching double square brackets and is within the maximum permitted length
|
|
ModifiedSection ( string originalText, string articleText ) : string |
Returns the name of modified section, top for zeroth section, or empty string if more than one section has changed or no changes
|
|
Trim ( string summary ) : string |
Truncates an edit summary that's over the maximum supported length
|
Method | Description | |
---|---|---|
LimitByteLength ( string input, int maxLength ) : string |
http://stackoverflow.com/questions/1225052/best-way-to-shorten-utf8-string-based-on-byte-length |
public static ModifiedSection ( string originalText, string articleText ) : string | ||
originalText | string | |
articleText | string | |
return | string |
public static Trim ( string summary ) : string | ||
summary | string | input long edit summary |
return | string |