Click or drag to resize

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.6.0.0 (5.6.19.0117)
Syntax
public static List<string> FragmentizeString(
	string toFragmentize,
	bool lowerCaseFragments,
	bool upperCaseFirstCharacter
)

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: ListString
toFragmentize in fragments, including delimiters as and '_' but not spaces
See Also