summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Schlosser <christoph@linux.com>2018-03-02 17:45:27 +0100
committerChristoph Schlosser <christophschlosser@users.noreply.github.com>2018-03-02 20:24:28 +0100
commita1d28f42d7cef234c0ead363f1f8f657e15be0b9 (patch)
tree99d5d09c79262e85b6ec414afcb4b34f401efe75
parent4e0dd643bb0408d1833cc1dfeca28cc85f0e0044 (diff)
downloaddoxdocgen-a1d28f42d7cef234c0ead363f1f8f657e15be0b9.tar.gz
Document casing checker method
-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) {