summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Lang/Cpp/CppParser.ts11
1 files changed, 11 insertions, 0 deletions
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) {