From a1d28f42d7cef234c0ead363f1f8f657e15be0b9 Mon Sep 17 00:00:00 2001 From: Christoph Schlosser Date: Fri, 2 Mar 2018 17:45:27 +0100 Subject: Document casing checker method --- src/Lang/Cpp/CppParser.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/Lang') diff --git a/src/Lang/Cpp/CppParser.ts b/src/Lang/Cpp/CppParser.ts index ebef76f..263f984 100644 --- a/src/Lang/Cpp/CppParser.ts +++ b/src/Lang/Cpp/CppParser.ts @@ -708,6 +708,17 @@ export default class CppParser implements ICodeParser { return args; } + /** + * Get the casing of a specified text + * + * @private + * @param {string} name Text to check + * @param {number} validateFrom Check if only a substr is the same casing as the whole string. + * Set to 0 to disable check. + * @returns {CasingType} Detected type of casing + * + * @memberOf CppParser + */ private checkCasing(name: string, validateFrom: number): CasingType { let containsUnderscores = name.indexOf("_") !== -1; if (containsUnderscores) { -- cgit v1.2.3