Pad capital letters¶
Expands a run-together, capital-delimited identifier (e.g. MyFieldName) into separated words.
| Field | Value |
|---|---|
| Operation ID | op-05-pad-capital-letters |
| Trigger | Caller wants a run-together identifier expanded into words |
| Inputs | Target string |
| Outputs | Space-separated string |
| Primary components | TitleCaseExtensions.ToPadCapitalLetters, PadCapitalLettersFormat.ApplyFormat (SAIF.Framework.StandardFormats) |
| Entry point | SAIF.Business.Utilities/TitleCaseExtensions.vb |
Steps¶
- If the target already contains a space, return it unchanged (BR-018).
- Otherwise delegate to
New PadCapitalLettersFormat().ApplyFormat(Target)fromSAIF.Framework.StandardFormats.
Process flow¶
The following diagram visualizes this operation's control flow.
flowchart TD
Start([Caller invokes ToPadCapitalLetters]) --> CheckSpace{Target already<br>contains a space?}
CheckSpace -->|Yes| ReturnUnchanged([Return target unchanged])
CheckSpace -->|No| Delegate["Delegate to New<br>PadCapitalLettersFormat().ApplyFormat(Target)"]
ReturnUnchanged --> Done([Return result])
Delegate --> Done
Failure and edge-case behavior¶
- No explicit exception handling in this operation. The only guarded edge case is a target that already contains a space, which is returned unchanged without delegating to
ApplyFormat.
Related documentation¶
Sources¶
SAIF.Business.Utilities/TitleCaseExtensions.vb