Closed fdncred closed 5 years ago
Underscores can be removed. Function names should without the class name. Think about sarray.sarrayaddstring or pixaclass.pixaadd. Only use.add or .addstring is nice with all parameters predefined. If you want to use the full function names _all. Function Is always there.
In general, I'm satisfied if every function name matches the exact function name in Leptonica. If everything is in the All namespace, that's fine too, because I can "using static Leptonica.All" and have visibility to every function just like I would in C/C++.
My internal view is [Class].[Function] (With Defaults, optionals moved to the end and source removed by the own Class). [_All].[Function] (With Defaults, Optionals if the are on the end) [Native].[Function] (Use Pointers instead of classes, All parameters)
This makes it possible to write own code faster with [class].[function] and convert the C-Examples to LeptonicaSharp with the _all Class and all Parameters including the own class.
removed underscores.
Totally don't get naming all the functions wrong with a preceding underscore. This is exactly why Visual Studio has filters on auto-completion.