Properly spell out UTF-16LE.
A bunch of places wrote it as UTF16-LE.
Change-Id: Id42fcfc746f43b3d921aca59687aa760857c4f3b
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/54670
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
diff --git a/core/fxge/win32/fx_win32_device.cpp b/core/fxge/win32/fx_win32_device.cpp
index 9c948e7..3361e7c 100644
--- a/core/fxge/win32/fx_win32_device.cpp
+++ b/core/fxge/win32/fx_win32_device.cpp
@@ -37,7 +37,7 @@
const struct {
const char* m_pFaceName;
- const char* m_pVariantName; // Note: UTF16-LE terminator required.
+ const char* m_pVariantName; // Note: UTF-16LE terminator required.
} g_VariantNames[] = {
{"DFKai-SB", "\x19\x6A\x77\x69\xD4\x9A\x00\x00"},
};
diff --git a/public/fpdf_annot.h b/public/fpdf_annot.h
index 7fb2405..ee81ae8 100644
--- a/public/fpdf_annot.h
+++ b/public/fpdf_annot.h
@@ -402,7 +402,7 @@
//
// annot - handle to an annotation.
// key - the key to the dictionary entry to be set, encoded in UTF-8.
-// value - the string value to be set, encoded in UTF16-LE.
+// value - the string value to be set, encoded in UTF-16LE.
//
// Returns true if successful.
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV
@@ -421,7 +421,7 @@
//
// annot - handle to an annotation.
// key - the key to the requested dictionary entry, encoded in UTF-8.
-// buffer - buffer for holding the value string, encoded in UTF16-LE.
+// buffer - buffer for holding the value string, encoded in UTF-16LE.
// buflen - length of the buffer in bytes.
//
// Returns the length of the string value in bytes.
@@ -454,7 +454,7 @@
// annot - handle to an annotation.
// appearanceMode - the appearance mode (normal, rollover or down) for which
// to get the AP.
-// value - the string value to be set, encoded in UTF16-LE. If
+// value - the string value to be set, encoded in UTF-16LE. If
// nullptr is passed, the AP is cleared for that mode. If the
// mode is Normal, APs for all modes are cleared.
//
@@ -477,7 +477,7 @@
// annot - handle to an annotation.
// appearanceMode - the appearance mode (normal, rollover or down) for which
// to get the AP.
-// buffer - buffer for holding the value string, encoded in UTF16-LE.
+// buffer - buffer for holding the value string, encoded in UTF-16LE.
// buflen - length of the buffer in bytes.
//
// Returns the length of the string value in bytes.
@@ -578,7 +578,7 @@
// FPDFDOC_InitFormFillEnvironment.
// annot - handle to an annotation.
// index - numeric index of the option in the "Opt" array
-// buffer - buffer for holding the value string, encoded in UTF16-LE.
+// buffer - buffer for holding the value string, encoded in UTF-16LE.
// buflen - length of the buffer in bytes.
//
// Returns the length of the string value in bytes.
diff --git a/public/fpdf_attachment.h b/public/fpdf_attachment.h
index 1c424f6..e92c058 100644
--- a/public/fpdf_attachment.h
+++ b/public/fpdf_attachment.h
@@ -64,7 +64,7 @@
// and the returned length is 0.
//
// attachment - handle to an attachment.
-// buffer - buffer for holding the file name, encoded in UTF16-LE.
+// buffer - buffer for holding the file name, encoded in UTF-16LE.
// buflen - length of the buffer in bytes.
//
// Returns the length of the file name in bytes.
@@ -101,7 +101,7 @@
//
// attachment - handle to an attachment.
// key - the key to the dictionary entry, encoded in UTF-8.
-// value - the string value to be set, encoded in UTF16-LE.
+// value - the string value to be set, encoded in UTF-16LE.
//
// Returns true if successful.
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV
@@ -121,7 +121,7 @@
//
// attachment - handle to an attachment.
// key - the key to the requested string value, encoded in UTF-8.
-// buffer - buffer for holding the string value encoded in UTF16-LE.
+// buffer - buffer for holding the string value encoded in UTF-16LE.
// buflen - length of the buffer in bytes.
//
// Returns the length of the dictionary value string in bytes.
diff --git a/public/fpdf_edit.h b/public/fpdf_edit.h
index 92e8964..97d1bb5 100644
--- a/public/fpdf_edit.h
+++ b/public/fpdf_edit.h
@@ -335,7 +335,7 @@
// Get the name of a content mark.
//
// mark - handle to a content mark.
-// buffer - buffer for holding the returned name in UTF16-LE. This is only
+// buffer - buffer for holding the returned name in UTF-16LE. This is only
// modified if |buflen| is longer than the length of the name.
// Optional, pass null to just retrieve the size of the buffer
// needed.
@@ -365,7 +365,7 @@
//
// mark - handle to a content mark.
// index - index of the property.
-// buffer - buffer for holding the returned key in UTF16-LE. This is only
+// buffer - buffer for holding the returned key in UTF-16LE. This is only
// modified if |buflen| is longer than the length of the key.
// Optional, pass null to just retrieve the size of the buffer
// needed.
@@ -413,7 +413,7 @@
//
// mark - handle to a content mark.
// key - string key of the property.
-// buffer - buffer for holding the returned value in UTF16-LE. This is
+// buffer - buffer for holding the returned value in UTF-16LE. This is
// only modified if |buflen| is longer than the length of the
// value.
// Optional, pass null to just retrieve the size of the buffer
@@ -1204,7 +1204,7 @@
// Returns the number of bytes in the text (including the trailing NUL
// character) on success, 0 on error.
//
-// Regardless of the platform, the |buffer| is always in UTF16-LE encoding.
+// Regardless of the platform, the |buffer| is always in UTF-16LE encoding.
// If |length| is less than the returned length, or |buffer| is NULL, |buffer|
// will not be modified.
FPDF_EXPORT unsigned long FPDF_CALLCONV
diff --git a/public/fpdf_formfill.h b/public/fpdf_formfill.h
index 4bedfb5..bf5005c 100644
--- a/public/fpdf_formfill.h
+++ b/public/fpdf_formfill.h
@@ -1434,7 +1434,7 @@
* page - Handle to the page. Returned by FPDF_LoadPage
* function.
* buffer - Buffer for holding the form text, encoded in
- * UTF16-LE. If NULL, |buffer| is not modified.
+ * UTF-16LE. If NULL, |buffer| is not modified.
* buflen - Length of |buffer| in bytes. If |buflen| is less
than the length of the form text string, |buffer| is
not modified.
@@ -1457,7 +1457,7 @@
* page - Handle to the page. Returned by FPDF_LoadPage
* function.
* buffer - Buffer for holding the selected text, encoded in
- * UTF16-LE. If NULL, |buffer| is not modified.
+ * UTF-16LE. If NULL, |buffer| is not modified.
* buflen - Length of |buffer| in bytes. If |buflen| is less
than the length of the selected text string,
|buffer| is not modified.