Section 1 Libraries
Naming Convention
3BSE042835-600
17
Naming Convention
The name of a library shall describe its purpose.
The name of a library shall consist of a mix of uppercase and lowercase letters
forming the structure "
LibName
Lib". That is, the different parts of the name shall be
separated with uppercase letters and the name string shall always end with "Lib".
The maximum string length is 32 characters.
Some names are reserved. Examples of names used by the standard libraries are
BasicLib
and
IconLib
.
All libraries share the same name space. Therefore, it is strongly recommended that
the user-defined libraries shall have a prefix in their library name. It is also
important to avoid too general names.
A split library's name starts with the function family (for example “Control”), then
the sub-category (for example “Advanced”), and ends with the suffix “Lib”.
For the support libraries, the naming convention is that the word “Support” should
be included between the main part of the name and the
Lib
suffix. For example, for
the user-defined library BUX, the support library could be named BUXSupportLib.
provides a brief summary of the naming rules.
Table 2. Naming rules for libraries
Library Category
Naming Rule
General
The different parts of the name shall be separated
with upper-case letters and the name string shall
always end with "Lib". The maximum string length
must not exceed 32 characters.
User-defined Libraries
The name string shall have a prefix (for example, the
company name or an abbreviation of it).
Support Libraries
The word "Support" shall be included between the
main part of the name and the
Lib
suffix.
Split Libraries
A split library's name starts with the function family
(for example, "Control"), then the sub-category (for
example,"Advanced"), and ends with the
Lib
suffix.
Содержание AC 800M
Страница 1: ...Power and productivity for a better worldTM AC 800M Library Object Style Guide System Version 6 0...
Страница 2: ......
Страница 3: ...AC 800M Library Object Style Guide System Version 6 0...
Страница 12: ...Related Documentation About This User Manual 12 3BSE042835 600...
Страница 18: ...Naming Convention Section 1 Libraries 18 3BSE042835 600...
Страница 108: ...SIL Mark Restrictions Section 6 Program Code Issues 108 3BSE042835 600...
Страница 116: ...Standard Library Parameters Appendix A Names and Abbreviations 116 3BSE042835 600...
Страница 119: ......