Base: add drawrectangle, getshorthash

This commit is contained in:
Jonathan Jenne
2023-07-27 16:10:49 +02:00
parent 7b2b37a870
commit de418bcca4
2 changed files with 33 additions and 2 deletions

View File

@@ -107,6 +107,10 @@ Public Class StringEx
Return GetChecksum(pStringToCheck)
End Function
Public Shared Function GetShortHash(pStringToCheck As String) As String
Return GetChecksum(pStringToCheck).Substring(0, 32)
End Function
Friend Class InvalidChars
Public Shared Filenames As String = Regex.Escape(New String(IO.Path.GetInvalidFileNameChars()))
Public Shared Paths As String = Regex.Escape(New String(IO.Path.GetInvalidPathChars()))