aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/string-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/string-utils.c')
-rw-r--r--src/string-utils.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/string-utils.c b/src/string-utils.c
index e1013f5..ac5835b 100644
--- a/src/string-utils.c
+++ b/src/string-utils.c
@@ -91,7 +91,18 @@ teco_string_diff(const teco_string_t *a, const gchar *b, gsize b_len)
return len;
}
-/** @memberof teco_string_t */
+/**
+ * Get the length of the prefix common to two strings
+ * without considering case.
+ *
+ * @fixme This is currently only used for symbols and one/two letter
+ * Q-Register names, which cannot be UTF-8.
+ * If we rewrote this to perform Unicode case folding, we would
+ * also have to check for character validity.
+ * Once our parser is Unicode-aware, this is not necessary.
+ *
+ * @memberof teco_string_t
+ */
gsize
teco_string_casediff(const teco_string_t *a, const gchar *b, gsize b_len)
{