Add a couple more comments to new unicode function to remind us when a
variable is counting UTF-16 characters vs. normal bytes. svn path=/trunk/; revision=35256
This commit is contained in:
parent
f0029fd060
commit
e9f3d27b4a
|
@ -1965,7 +1965,7 @@ tvb_unicode_strsize(tvbuff_t *tvb, const gint offset)
|
|||
i += 2;
|
||||
} while(uchar != 0);
|
||||
|
||||
return i;
|
||||
return i; /* Number of *UTF-16* characters */
|
||||
}
|
||||
|
||||
/* Find length of string by looking for end of string ('\0'), up to
|
||||
|
@ -2410,7 +2410,7 @@ tvb_get_ephemeral_unicode_stringz(tvbuff_t *tvb, const gint offset, gint *length
|
|||
}
|
||||
|
||||
if(lengthp)
|
||||
*lengthp = i;
|
||||
*lengthp = i; /* Number of *bytes* processed */
|
||||
|
||||
return strbuf->str;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue