Class: StringUtils

StringUtils()

new StringUtils()

Class containing String utility functions
Source:

Methods

isValidUUID(pUUID, pIgnoreCase) → {Boolean}

validates if a string is a UUID according to versions 1 through 5 of RFC4122
Parameters:
Name Type Description
pUUID String String to be validated
pIgnoreCase bool true if case sensitivty isn't needed
Source:
Returns:
ob es sich um eine UUID handelt
Type
Boolean

label_new_edit(pDateNew, pUserNew, pDateEdit, pUserEdit) → {String}

Generates the string which shows, who created the dataset and who edited it
Parameters:
Name Type Description
pDateNew String req Date of creation
pUserNew String req name of the user, who created the dataset
pDateEdit String req date of the last change
pUserEdit String req name of last editor
Source:
Returns:
Type
String

splitAddress(pAddress) → {Array}

Splits street and buildingnumber
Parameters:
Name Type Description
pAddress String req Address
Source:
Returns:
[ Street, BuildingNr ]
Type
Array

stringStatrsWith(pString, pStringToSearch) → {Boolean}

Returns wether a string starts with given string or not.
Parameters:
Name Type Description
pString String, which is being searched in
pStringToSearch String, which is being searched
Source:
Returns:
Type
Boolean

translateStr(pText, pLocale) → {String}

uses the right translate method, depending on the parameters
Parameters:
Name Type Description
pText String string to be translated
pLocale String locale for translating
Source:
Returns:
Type
String