CoreUtilsFragmentizeString Method (String, Boolean, Boolean) |
Splits string passed in into fragments. First on spaces, then on _ and then on Capitols/lowercase boundaries. All fragments are added to the
same list, all '_''s stripped out are stored in the list as well. All spaces are not placed in the returned list.
Underscores are stored per underscore, so a ___ part is stored as 3 strings with 1 underscore.
Namespace:
SD.LLBLGen.Pro.Core
Assembly:
SD.LLBLGen.Pro.Core (in SD.LLBLGen.Pro.Core.dll) Version: 5.9.0.0 (5.9.0)
Syntax public static List<string> FragmentizeString(
string toFragmentize,
bool lowerCaseFragments,
bool upperCaseFirstCharacter
)
Public Shared Function FragmentizeString (
toFragmentize As String,
lowerCaseFragments As Boolean,
upperCaseFirstCharacter As Boolean
) As List(Of String)
Parameters
- toFragmentize
- Type: SystemString
- lowerCaseFragments
- Type: SystemBoolean
if set to true it lowercases all fragments - upperCaseFirstCharacter
- Type: SystemBoolean
if set to true it makes sure the first character of the first fragment is uppercased if
lowerCaseFragments is set to true. If lowerCaseFragments is false, this parameter has no effect.
Return Value
Type:
ListStringtoFragmentize in fragments, including delimiters as and '_' but not spaces
See Also