OpenPetra
Free Administration Software for Non-Profits
|
General String utility functions for ICT applications. More...
Public Member Functions | |
String | FormatUsingCurrencyCode (decimal AValue, String ACurrencyCode) |
Use this for displaying currency-sensitive amounts. More... | |
int | DecimalPlacesForCurrency (String ACurrencyCode) |
Static Public Member Functions | |
static StringCollection | InitStrArr (string[] list) |
convert an array of strings into a StringCollection More... | |
static StringCollection | StrSplit (string s, string delim) |
split a string using a delimiter and return a StringCollection containing the pieces of the string More... | |
static string | StrMerge (StringCollection l, char delim) |
concatenate a string using the given delimiter More... | |
static string | StrMerge (String[] l, char delim) |
concatenate a string using the given delimiter More... | |
static void | JoinAndAppend (ref string AStringToExtend, string AStringToAppend, string AJoinString) |
Appends a string to another string. If the original length was non-zero the join string is inserted between the two strings. Often used to join SQL parts in a filter statement. More... | |
static StringCollection | StrSort (StringCollection l) |
return a sorted version of the given StringCollection (not case sensitive) More... | |
static Boolean | Contains (StringCollection haystack, StringCollection needles) |
check if a StringCollection haystack contains all of the needles More... | |
static Boolean | ContainsSome (StringCollection haystack, StringCollection needles) |
check if a StringCollection haystack contains at least one of the needles More... | |
static Boolean | IsSame (string s1, string s2) |
Tests if two strings are equal, case insensitive More... | |
static string | CleanString (string s) |
removes line breaks and tabulators and trims spaces, even inside the string More... | |
static string | TrimQuotes (string s) |
return the string without the quotes at the start and the end of the string More... | |
static string | MD5Sum (string s) |
calcuate the md5 hash sum of a string More... | |
static string | EncodeStringToBase64 (string APlainText) |
convert string to base64 More... | |
static int | FindMatchingQuote (String s, int position) |
need to find the matching quotes More... | |
static int | FindMatchingQuote (StringBuilder s, int position) |
need to find the matching quotes More... | |
static string | GetCSVSeparator (string ACSVData) |
Get the separator from the first VALID line of CSV Data. Comments and blank lines are ignored. Leading spaces are ignored. The primary test is for tab, semicolon and comma. If the first item is a floating point number with a comma for a decimal separator it will need to be in quotes! All text within quotes is ignored. The character after the matching quote is also a candidate for being the separator. This character is returned if the separator is NOT tab, semicolon or comma. Thus quoted data separated by a space is correctly determined. More... | |
static string | GetNextCSV (ref string line, List< String >ALines, ref int ALineCounter, string separator) |
parse csv values that spread across multiple lines More... | |
static string | GetNextCSV (ref string list, string separator, Boolean ATryAllSeparators=false, Boolean ARemoveLeadingAndTrailingSpaces=false) |
retrieves the first value of the comma separated list, and removes the value from the list More... | |
static string | GetNextCSV (ref StringBuilder list, char separator, Boolean ARemoveLeadingAndTrailingSpaces=false) |
retrieves the first value of the comma separated list, and removes the value from the list. This version of GetNextCSV is quite optimized, but less flexible than the other version. only supports single character separators, and works only with the specified separator More... | |
static string | GetNextCSV (ref string list, string separator, string ADefaultValue) |
overload for GetNextCSV. if the value is empty, the default value will be used More... | |
static string | GetNextCSV (ref string list, string[] separators) |
try to use different separators; first fitting separator is used More... | |
static string | GetNextCSV (ref string list) |
overload for GetNextCSV this will use the comma as default separator More... | |
static String | GetCSVValue (string list, int index) |
retrieves a specific value from a comma separated list, the list stays unchanged More... | |
static StringCollection | GetCSVList (string list, string delimiter, bool trimmedValues=false) |
parse a line of CSV values, and return a StringCollection with the values More... | |
static Boolean | ContainsCSV (string list, String AElement) |
checks if the list contains the given value More... | |
static string | AddCSV (string line, string value, string separator=",") |
adds a new value to a comma separated list, adding a delimiter if necessary More... | |
static string | ConcatCSV (string line1, string line2, string separator) |
concatenates two comma separated lists, adding a comma if necessary More... | |
static string | ConcatCSV (string line1, string line2) |
concatenate two string using the comma as delimiter More... | |
static string | GetNextToken (ref string AStringToParse) |
simple parser function a token is defined to be a group of characters separated by given separator characters eg. a word etc More... | |
static string | DirName (string path) |
returns the directory portion of pathname, using the last / or \ character More... | |
static string | BaseName (string path) |
returns the filename portion of pathname, using the last / or \ character More... | |
static string | InitialCaps (string str) |
Capitalizes the first letter of a string. InitialCaps returns a string in which the first character is capitalized and all the remaining characters are lower-case. More... | |
static string | UpperCamelCase (String AStr, bool AIgnorePrefix, bool AIgnorePostfix) |
return a string where all underscores are removed, and instead the character following the underscore has been converted to Uppercase, also the first character of the string More... | |
static string | UpperCamelCase (String AStr, char ASeparator, bool AIgnorePrefix, bool AIgnorePostfix) |
General function for transforming a string from old style naming convention to new (e.g. a_account_hierarchy to AccountHierarchy) More... | |
static string | UpperCamelCase (String AStr, bool AIgnorePrefix) |
overload of UpperCamelCase; will always use the postfix and not drop it More... | |
static string | UpperCamelCase (String AStr) |
overload for UpperCamelCase; will not drop postfix or prefix More... | |
static string | ReverseUpperCamelCase (String AStr) |
converts a string from UpperCamelCase back to a string with spaces; keeps the capital letters More... | |
static string | AnsiQuotedStr (string s, string delim) |
A Quote character is inserted at the beginning and end of the string, and each Quote character in the string is doubled. More... | |
static string | AnsiDeQuotedStr (string s, string delim) |
reverse function for AnsiQuotedStr this will remove the quotes and deal with quotes contained in the string More... | |
static decimal | TryStrToDecimal (string s, decimal ADefault) |
this method attempts to convert a string to a decimal value; if it fails, no exception is thrown, but a default value is used instead More... | |
static Int64 | TryStrToInt (string s, Int64 ADefault) |
attempt to parse a string for an Integer; if it fails, return a default value More... | |
static Int32 | TryStrToInt32 (string s, Int32 ADefault) |
attempt to parse a string for an Integer; if it fails, return a default value More... | |
static decimal | TryStrToCurr (string s) |
attempt to parse a string for an decimal this is a little special for currencies, which was more important in Delphi than it is now in C# More... | |
static string | IntToStr (int i) |
print an integer into a string More... | |
static System.Int64 | StrToInt (string s) |
parse a string and return the Integer value More... | |
static string | DateToStr (System.DateTime date, string format) |
print a date into a string using a given format this will make sure that the correct separators are used (problem with dash and hyphen in original String.Format) More... | |
static String | PartnerKeyToStr (System.Int64 APartnerKey) |
print a partner key with all leading zeros to a string a partner key has the form: 0027123456 More... | |
static System.Int64 | StrToPartnerKey (String APartnerKeyString) |
parse a string and return the partner key More... | |
static String | FormatStrToPartnerKeyString (String APartnerKeyString) |
format a partner key given as a string will add leading zeros etc will rotate the string, so drop a zero at the front in case there is an additional digit at the end this is used to help entering the partner key and always display leading zeros More... | |
static bool | IsStringPositiveInteger (String APositiveInteger) |
checks if there is positive Integer in the string More... | |
static string | BoolToStr (Boolean b) |
print a boolean value to string More... | |
static Boolean | StrToBool (string s) |
reverse function for BoolToStr will parse a string for a boolean More... | |
static string | NullToEmptyString (string s) |
makes sure that a null value is converted to an empty string, otherwise the string is returned. More... | |
static string | NullOrEmptyStringToNull (string s) |
Returns a string if it isn't null or String.Empty, otherwise returns null. More... | |
static string | TrimStringToNull (string s) |
Trims a string and returns null if the string is null or is all whitespace. More... | |
static String | FormatCurrencyInternal (decimal d, String format) |
This method formats a currency value, using an MS Access Style format string. examples: "(#,##0.00)" "#,##0.00 CR" etc. It returns a string with the written value according to the format. This function is only used by FormatCurrency, which is the function that should be called from outside. More... | |
static String | GetFormatString (String AVariantFormatString, String AGeneralFormatString) |
find the appropriate format string, using general format (for the whole column) and the type of the current value More... | |
static Boolean | IsCurrencyFormatString (String AFormatString) |
check if the given format is for currencies More... | |
static String | FormatCurrency (TVariant value, String format) |
print a currency value (actually all sorts of values, e.g. dates) into a string More... | |
static String | FormatCurrency (decimal value, String format) |
overload for FormatCurrency, using a decimal value More... | |
static String | GetLongMonthName (Int32 monthNr) |
returns the full name of the month, using .net localised information More... | |
static String | DateToLocalizedString (DateTime ADateTime) |
return a string with just the date, no time information More... | |
static String | DateToLocalizedString (DateTime ? ADateTime) |
overload for nullable DateTime More... | |
static String | DateToLocalizedString (DateTime ADateTime, Boolean AIncludeTime) |
return a string with the date and optionally with the time More... | |
static String | DateToLocalizedString (DateTime ADateTime, Boolean AIncludeTime, Boolean ATimeWithSeconds) |
Print a date to string, optionally with time and even seconds More... | |
static int | FindMatchingEndBracket (string AInspectString, int AStartPos, char ABracketChar) |
Finds a matching closing bracket in a String. More... | |
static Boolean | ContainsI (string s, string needle) |
check if the needle occurs in s, ignoring case sensitivity More... | |
static int | CountOccurencesOfChar (string instance, char c) |
Count the occurences of a certain character in a string More... | |
static string[] | SplitEmailAddresses (string AEmailAddress) |
Splits a string that contains one or more email addresses so that each email address becomes one item in a string array. More... | |
static string | StrArrayToString (string[] AStringArrary, string ADelimiter="") |
Returns the elements of a string[] as one string, optionally adding a delimter between the elements if one is specified in Argument ADelimiter . More... | |
static string | StrCollToString (StringCollection AStringColl, string ADelimiter="") |
Returns the elements of a StringCollection as one string, optionally adding a delimter between the elements if one is specified in Argument ADelimiter . More... | |
static CultureInfo | GetCultureInfoForDateFormat (string ADateFormat) |
Get a CultureInfo object that is appropriate for the given Date Format. The most important consideration is when parsing short date formats. All other ones work fine in OpenPetra. When parsing short dates it is important to base the CultureInfo on a relevant base culture. We use en-US when the date format is month-first and en-GB otherwise (Day or Year first) More... | |
static bool | LooksLikeFloat (string AString, out bool ? AIsDotDecimalSeparator) |
Evaluates a string and returns true if the text looks like a floating point number AND the decimal separator is unambiguous. If it does look like a float the method works out if the decimal separator looks like a dot or a comma. The method also considers whether dot or comma might be thousands separator. More... | |
static bool | LooksLikeAmbiguousShortDate (string AString, bool ADateMayBeInteger, out DateTime AMonthFirstDate, out DateTime ADayFirstDate) |
Evaluates a string and returns true if the text looks like a date. If it appears to be a date the method returns two values - the date value if the text is parsed as month-first and the date value if the text is parsed as day-first. If either of them is an invalid date it will have DateTime.MinValue. Dates can have a separator of / - . or space. Note that .NET parses many date strings unambiguously even though the basic date format is quite simple. For the date formats that OpenPetra works with we really only need to distinguish between month-first short dates and day-first short dates. More... | |
Static Public Attributes | |
static readonly string | CSV_STRING_FORMAT_ERROR = Catalog.GetString(">>STRING FORMAT ERROR<<") |
This string is returned by the CSV parser if it cannot successfully parse a text CSV field - usually due to mis-matched quote marks. More... | |
const String | FINANCE_CURRENCY_FORMAT_AS_CURRENCY = "FinanceShowCurrencyAsCurrency" |
Show money amounts in currency format on finance screens (default is true) More... | |
const String | FINANCE_DECIMAL_FORMAT_AS_CURRENCY = "FinanceShowDecimalAsCurrency" |
Show other decimal entities in currency format on finance screens (default is true) More... | |
const String | FINANCE_CURRENCY_SHOW_THOUSANDS = "FinanceCurrencyShowThousands" |
Show thousands separator for financial entities on finance screens (default is true) More... | |
const String | PARTNER_CURRENCY_FORMAT_AS_CURRENCY = "PartnerShowCurrencyAsCurrency" |
Show money amounts in currency format on partner/conference/personnel screens (default is false) More... | |
const String | PARTNER_DECIMAL_FORMAT_AS_CURRENCY = "PartnerShowDecimalAsCurrency" |
Show other decimal entities in currency format on partner screens (default is false) More... | |
const String | PARTNER_CURRENCY_SHOW_THOUSANDS = "PartnerCurrencyShowThousands" |
Show thousands separator for financial entities on partner/conference/personnel screens (default is true) More... | |
Properties | |
DataTable | CurrencyFormatTable [set] |
If this is not given (during initialisation), a default format will be used. More... | |
General String utility functions for ICT applications.
|
inlinestatic |
adds a new value to a comma separated list, adding a delimiter if necessary
line | the existing line, could be empty or hold already values |
value | value to be added |
separator | delimiter to use |
|
inlinestatic |
reverse function for AnsiQuotedStr this will remove the quotes and deal with quotes contained in the string
s | string to be stripped of quotes |
delim | which quote character to look for and remove/replace |
|
inlinestatic |
A Quote character is inserted at the beginning and end of the string, and each Quote character in the string is doubled.
s | string to be quoted |
delim | the quote character to be used (could be single or double quote, etc) |
|
inlinestatic |
returns the filename portion of pathname, using the last / or \ character
path | the complete path |
|
inlinestatic |
print a boolean value to string
b | boolean value |
|
inlinestatic |
removes line breaks and tabulators and trims spaces, even inside the string
s | the string that should be cleaned up |
|
inlinestatic |
concatenate two string using the comma as delimiter
line1 | the first string |
line2 | the second string |
|
inlinestatic |
concatenates two comma separated lists, adding a comma if necessary
line1 | first line, could be empty or hold already values |
line2 | second line |
separator | defaults to comma |
|
inlinestatic |
check if a StringCollection haystack contains all of the needles
haystack | the StringCollection to be searched |
needles | the StringCollection containing the strings that are to be found |
|
inlinestatic |
checks if the list contains the given value
list | separated values |
AElement | string to look for in the list |
|
inlinestatic |
check if the needle occurs in s, ignoring case sensitivity
|
inlinestatic |
check if a StringCollection haystack contains at least one of the needles
haystack | the StringCollection to be searched |
needles | the StringCollection containing the strings that are to be found |
|
inlinestatic |
Count the occurences of a certain character in a string
instance | |
c |
|
inlinestatic |
overload for nullable DateTime
ADateTime |
|
inlinestatic |
return a string with just the date, no time information
ADateTime | the date to print |
|
inlinestatic |
return a string with the date and optionally with the time
ADateTime | the date to print |
AIncludeTime | if true then the time is printed as well |
|
inlinestatic |
Print a date to string, optionally with time and even seconds
ADateTime | the date to print |
AIncludeTime | want to print time |
ATimeWithSeconds | want to print seconds |
|
inlinestatic |
print a date into a string using a given format this will make sure that the correct separators are used (problem with dash and hyphen in original String.Format)
date | the date to be printed |
format | format string, eg. dd/MM/yyyy; see help for String.Format |
|
inline |
ACurrencyCode |
|
inlinestatic |
returns the directory portion of pathname, using the last / or \ character
path | the complete path |
|
inlinestatic |
convert string to base64
|
inlinestatic |
Finds a matching closing bracket in a String.
AInspectString | The String to inspect. |
AStartPos | Start position from which to search (must be >= 0). |
ABracketChar | Opening bracket character. Supported are '(', '[' and '{'. |
|
inlinestatic |
need to find the matching quotes
s | String to the find the matching quote |
position | position of the first quote |
|
inlinestatic |
need to find the matching quotes
s | String to the find the matching quote |
position | position of the first quote |
|
inlinestatic |
overload for FormatCurrency, using a decimal value
value | value to be formatted |
format | format to be used |
|
inlinestatic |
print a currency value (actually all sorts of values, e.g. dates) into a string
value | the value to be printed |
format | the format to be used; can be dayofyear for birthdays, currency, etc |
|
inlinestatic |
This method formats a currency value, using an MS Access Style format string. examples: "(#,##0.00)" "#,##0.00 CR" etc. It returns a string with the written value according to the format. This function is only used by FormatCurrency, which is the function that should be called from outside.
d | the double value to be formatted |
format | format to be used to print the double |
|
inlinestatic |
format a partner key given as a string will add leading zeros etc will rotate the string, so drop a zero at the front in case there is an additional digit at the end this is used to help entering the partner key and always display leading zeros
APartnerKeyString | the string to be formatted |
|
inline |
Use this for displaying currency-sensitive amounts.
AValue | |
ACurrencyCode |
|
inlinestatic |
parse a line of CSV values, and return a StringCollection with the values
|
inlinestatic |
Get the separator from the first VALID line of CSV Data. Comments and blank lines are ignored. Leading spaces are ignored. The primary test is for tab, semicolon and comma. If the first item is a floating point number with a comma for a decimal separator it will need to be in quotes! All text within quotes is ignored. The character after the matching quote is also a candidate for being the separator. This character is returned if the separator is NOT tab, semicolon or comma. Thus quoted data separated by a space is correctly determined.
ACSVData | Multi-line CSV data |
|
inlinestatic |
retrieves a specific value from a comma separated list, the list stays unchanged
list | the comma separated list |
index | index of the value that should be returned, starting counts with 0 |
|
inlinestatic |
Get a CultureInfo object that is appropriate for the given Date Format. The most important consideration is when parsing short date formats. All other ones work fine in OpenPetra. When parsing short dates it is important to base the CultureInfo on a relevant base culture. We use en-US when the date format is month-first and en-GB otherwise (Day or Year first)
|
inlinestatic |
find the appropriate format string, using general format (for the whole column) and the type of the current value
AVariantFormatString | what kind of value are we talking about, eg. currency |
AGeneralFormatString | defining the format on a higher level, e.g. CurrencyWithoutDecimals or CurrencyThousands etc |
|
inlinestatic |
returns the full name of the month, using .net localised information
monthNr | the number of the month (starting January = 1) |
|
inlinestatic |
parse csv values that spread across multiple lines
line | |
ALines | |
ALineCounter | |
separator |
|
inlinestatic |
overload for GetNextCSV this will use the comma as default separator
list | separated values; the first value will be removed |
|
inlinestatic |
retrieves the first value of the comma separated list, and removes the value from the list
list | the comma separated list that will get the first value removed |
separator | the delimiter/separator of the list |
ATryAllSeparators | if this is true, a number of default separators (slash, comma, etc) will be used |
ARemoveLeadingAndTrailingSpaces | if this is true, leading and trailing spaces will be discarded (useful for file imports) |
|
inlinestatic |
overload for GetNextCSV. if the value is empty, the default value will be used
list | separated values; the first value will be removed |
separator | delimiter to be used |
ADefaultValue | to be used if the csv value is empty |
|
inlinestatic |
try to use different separators; first fitting separator is used
list | |
separators |
|
inlinestatic |
retrieves the first value of the comma separated list, and removes the value from the list. This version of GetNextCSV is quite optimized, but less flexible than the other version. only supports single character separators, and works only with the specified separator
list | the comma separated list that will get the first value removed |
separator | the delimiter/separator of the list |
ARemoveLeadingAndTrailingSpaces | if this is true, leading and trailing spaces will be discarded (useful for file imports) |
|
inlinestatic |
simple parser function a token is defined to be a group of characters separated by given separator characters eg. a word etc
AStringToParse | the string to be parsed; the first token will be removed |
|
inlinestatic |
Capitalizes the first letter of a string. InitialCaps returns a string in which the first character is capitalized and all the remaining characters are lower-case.
str | String to be converted. |
|
inlinestatic |
convert an array of strings into a StringCollection
list | array of strings |
|
inlinestatic |
print an integer into a string
i | the integer value |
|
inlinestatic |
check if the given format is for currencies
AFormatString | format string to check |
|
inlinestatic |
Tests if two strings are equal, case insensitive
s1 | the first string to be compared |
s2 | the other string to be compared |
|
inlinestatic |
checks if there is positive Integer in the string
APositiveInteger | string to check |
|
inlinestatic |
Appends a string to another string. If the original length was non-zero the join string is inserted between the two strings. Often used to join SQL parts in a filter statement.
AStringToExtend | The string to extend. May be empty |
AStringToAppend | The string to append |
AJoinString | A string that joins the other two. If the first string is empty the join is not used. There are some predefined strings in the CommonJoinStrings class. |
|
inlinestatic |
Evaluates a string and returns true if the text looks like a date. If it appears to be a date the method returns two values - the date value if the text is parsed as month-first and the date value if the text is parsed as day-first. If either of them is an invalid date it will have DateTime.MinValue. Dates can have a separator of / - . or space. Note that .NET parses many date strings unambiguously even though the basic date format is quite simple. For the date formats that OpenPetra works with we really only need to distinguish between month-first short dates and day-first short dates.
AString | The string to evaluate |
ADateMayBeInteger | Set to true if the option to include numeric dates such as 311216 should be included |
AMonthFirstDate | If successful this will be the date if the month is first, otherwise DateTime.MinValue |
ADayFirstDate | If successful this will be the date if the day is first, otherwise DateTime.MinValue |
|
inlinestatic |
Evaluates a string and returns true if the text looks like a floating point number AND the decimal separator is unambiguous. If it does look like a float the method works out if the decimal separator looks like a dot or a comma. The method also considers whether dot or comma might be thousands separator.
AString | |
AIsDotDecimalSeparator |
|
inlinestatic |
calcuate the md5 hash sum of a string
s |
|
inlinestatic |
Returns a string if it isn't null or String.Empty, otherwise returns null.
s | String. |
|
inlinestatic |
makes sure that a null value is converted to an empty string, otherwise the string is returned.
s | the string which can be null or have a proper string value |
|
inlinestatic |
print a partner key with all leading zeros to a string a partner key has the form: 0027123456
APartnerKey | partner key to be printed |
|
inlinestatic |
converts a string from UpperCamelCase back to a string with spaces; keeps the capital letters
|
inlinestatic |
Splits a string that contains one or more email addresses so that each email address becomes one item in a string array.
|
inlinestatic |
Returns the elements of a string[] as one string, optionally adding a delimter between the elements if one is specified in Argument ADelimiter .
AStringArrary | String array. |
ADelimiter | Delimiter (optional). |
|
inlinestatic |
Returns the elements of a StringCollection as one string, optionally adding a delimter between the elements if one is specified in Argument ADelimiter .
AStringColl | StringCollection. |
ADelimiter | Delimiter (optional). |
|
inlinestatic |
concatenate a string using the given delimiter
l | the string array containing the strings that should be concatenated |
delim | the delimiter to be used between the strings |
|
inlinestatic |
concatenate a string using the given delimiter
l | the StringCollection containing the strings that should be concatenated |
delim | the delimiter to be used between the strings |
|
inlinestatic |
return a sorted version of the given StringCollection (not case sensitive)
l | the StringCollection to be used to generate a sorted list |
|
inlinestatic |
split a string using a delimiter and return a StringCollection containing the pieces of the string
s | the string to split |
delim | the delimiter to use |
|
inlinestatic |
reverse function for BoolToStr will parse a string for a boolean
s | string containing the bool value |
|
inlinestatic |
parse a string and return the Integer value
s | the string containing the integer value |
|
inlinestatic |
parse a string and return the partner key
APartnerKeyString | string containing the partner key |
|
inlinestatic |
return the string without the quotes at the start and the end of the string
s |
|
inlinestatic |
Trims a string and returns null if the string is null or is all whitespace.
s | String. |
|
inlinestatic |
attempt to parse a string for an decimal this is a little special for currencies, which was more important in Delphi than it is now in C#
s | the string containing a currency value |
|
inlinestatic |
this method attempts to convert a string to a decimal value; if it fails, no exception is thrown, but a default value is used instead
s | string that should contain a float |
ADefault | value to be used if there is no float in the string |
|
inlinestatic |
attempt to parse a string for an Integer; if it fails, return a default value
s | the string containing an Integer |
ADefault | alternative default value |
|
inlinestatic |
attempt to parse a string for an Integer; if it fails, return a default value
s | the string containing an Integer |
ADefault | alternative default value |
|
inlinestatic |
overload for UpperCamelCase; will not drop postfix or prefix
AStr | string to be changed |
|
inlinestatic |
overload of UpperCamelCase; will always use the postfix and not drop it
AStr | string to be modified |
AIgnorePrefix | should prefix be ignored |
|
inlinestatic |
return a string where all underscores are removed, and instead the character following the underscore has been converted to Uppercase, also the first character of the string
AStr | the string to be transformed |
AIgnorePrefix | strip any prefix |
AIgnorePostfix | strip any postfix |
|
inlinestatic |
General function for transforming a string from old style naming convention to new (e.g. a_account_hierarchy to AccountHierarchy)
AStr | string to be transformed |
ASeparator | separator that will mark the next character for uppercase |
AIgnorePrefix | should prefixes be ignored |
AIgnorePostfix | should postfixes be ignored |
|
static |
This string is returned by the CSV parser if it cannot successfully parse a text CSV field - usually due to mis-matched quote marks.
|
static |
Show money amounts in currency format on finance screens (default is true)
|
static |
Show thousands separator for financial entities on finance screens (default is true)
|
static |
Show other decimal entities in currency format on finance screens (default is true)
|
static |
Show money amounts in currency format on partner/conference/personnel screens (default is false)
|
static |
Show thousands separator for financial entities on partner/conference/personnel screens (default is true)
|
static |
Show other decimal entities in currency format on partner screens (default is false)
|
set |
If this is not given (during initialisation), a default format will be used.