Probably will be usefull for many programmers and also important to implement in IDE which is having strange behaviour (click here for more details) about lower modules names.
This Demo brings the function CamelCase which have different options, here goes the convention and descriptions:
I hope you enjoy and be usefull.Goal: CamelCase converts strings.
Wikipedia: CamelCase (camel case) or medial capitals is the practice of writing compound words or phrases such that each word or abbreviation begins with a capital letter. Camel case may start with a capital or, especially in programming languages, with a lowercase letter. Common examples are PowerPoint or iPhone.
Syntax: CamelCase( cText, [String to be converted]
<lForce>, [Optional, Default: .T.]
<aRemChar> [Optional, Default: space and underscore] )
Author: Pablo César Arrascaeta
Version: 1.0
CamelCase "Convention" for this procedure:
a. Verifies if the string is completly in upper or lower case.
b. In case lForce be not omitted, with value .F. and item A
been false, CamelCase will not convert it, remaining as is it.
c. Being pass lForce as .T. will convert it.
d. If array is passed in aRemChar parameter, will consider these
elements to be removed.
e. Upper case will converted followed by characters like as:
Space -> " "
UnderScore -> "_"
Dot -> "."
Hyphen -> "-"
Slash -> "/"
BackSlash -> "\"
Reasons to use:
- As opposed to allowing programmers to choose any character sequence
- To reduce the effort needed to read and understand source code
- To enhance source code appearance
(for example, by disallowing overly long names or unclear abbreviations)