]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib:charset: Fix code spelling
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Thu, 7 Sep 2023 03:57:53 +0000 (15:57 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 11 Sep 2023 02:42:41 +0000 (02:42 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/util/charset/charset.h
lib/util/charset/util_str.c

index 4eaee1bbb7c6bd173236d0692211783c4aa79f13..941a8be214663b568d3edb7b11b8e73c5e078377 100644 (file)
@@ -119,8 +119,8 @@ size_t utf16_len_n(const void *src, size_t n);
 char *strchr_m(const char *s, char c);
 /**
  * Calculate the number of units (8 or 16-bit, depending on the
- * destination charset), that would be needed to convert the input
- * string which is expected to be in in src_charset encoding to the
+ * destination charset) that would be needed to convert the input
+ * string, which is expected to be in src_charset encoding, to the
  * destination charset (which should be a unicode charset).
  */
 size_t strlen_m_ext_handle(struct smb_iconv_handle *ic,
index 5d415f097e4a92ee47f0f29fd63ed34f7e8528a2..1650c9b82321b4da3bbfa58d15937ea5590c70b4 100644 (file)
@@ -200,8 +200,8 @@ _PUBLIC_ bool strcsequal(const char *s1,const char *s2)
 
 /**
  * Calculate the number of units (8 or 16-bit, depending on the
- * destination charset), that would be needed to convert the input
- * string which is expected to be in in src_charset encoding to the
+ * destination charset) that would be needed to convert the input
+ * string, which is expected to be in src_charset encoding, to the
  * destination charset (which should be a unicode charset).
  */
 _PUBLIC_ size_t strlen_m_ext_handle(struct smb_iconv_handle *ic,
@@ -287,8 +287,8 @@ _PUBLIC_ size_t strlen_m_ext_handle(struct smb_iconv_handle *ic,
 
 /**
  * Calculate the number of units (8 or 16-bit, depending on the
- * destination charset), that would be needed to convert the input
- * string which is expected to be in in src_charset encoding to the
+ * destination charset) that would be needed to convert the input
+ * string, which is expected to be in src_charset encoding, to the
  * destination charset (which should be a unicode charset).
  */
 _PUBLIC_ size_t strlen_m_ext(const char *s, charset_t src_charset, charset_t dst_charset)
@@ -324,7 +324,7 @@ _PUBLIC_ size_t strlen_m_ext_term_null(const char *s,
 
 /**
  * Calculate the number of 16-bit units that would be needed to convert
- * the input string which is expected to be in CH_UNIX encoding to UTF16.
+ * the input string, which is expected to be in CH_UNIX encoding, to UTF16.
  *
  * This will be the same as the number of bytes in a string for single
  * byte strings, but will be different for multibyte.