Skip to content

Prefixes and abbreviations

David Skoland edited this page Jan 30, 2017 · 1 revision

Prefixes

Internally, AO2 uses a number of prefixes to prevent ambiguity.

f_ Function variables, initialized within a function and therefore go out of scope by the end of the function it is initialized in.

p_ parameter variables, used in front of parameter names in functions void do_things(int p_stuff)

i_ Iteration variables, commonly used in for(each) loops for (QString i_name : name_list)

ui_ UI elements, in most cases this is an object from a subclass of QWidget _ui_ic_chatlog->show();

ic_ Relating to "in-character" widgets, like character logs

Abbreviations

Abbreviations are commonly used for brevity

char a player character(e. g. Phoenix Wright) not a programmatical char

ms master server

ic in-character

ooc out of character