Dali-Text: Keyboard Shortcuts
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / text / character-set-conversion.h
index 730016b..168c525 100644 (file)
@@ -1,8 +1,8 @@
-#ifndef __DALI_TOOLKIT_CHARACTER_SET_CONVERSION_H__
-#define __DALI_TOOLKIT_CHARACTER_SET_CONVERSION_H__
+#ifndef DALI_TOOLKIT_CHARACTER_SET_CONVERSION_H
+#define DALI_TOOLKIT_CHARACTER_SET_CONVERSION_H
 
 /*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -65,6 +65,11 @@ uint32_t GetNumberOfUtf8Bytes( const uint32_t* const utf32, uint32_t numberOfCha
  *
  * The @p utf32 buffer needs to be big enough to store all the characters.
  *
+ * If the text contains a single 'CR' character or a pair 'CR'+'LF', they are replaced by a 'LF'.
+ *
+ * @note GetNumberOfUtf8Characters() does not convert 'CR' or 'CR'+'LF' to 'LF' so the return number
+ * of characters of that method may be higher than the number of characters returned by this one.
+ *
  * @param[in] utf8 The pointer to the UTF8 array.
  * @param[in] length The length of the UTF8 array.
  * @param[out] utf32 The pointer to the UTF32 array.
@@ -101,4 +106,4 @@ void Utf32ToUtf8( const uint32_t* const utf32, uint32_t numberOfCharacters, std:
 
 } // namespace Dali
 
-#endif // __DALI_TOOLKIT_CHARACTER_SET_CONVERSION_H__
+#endif // DALI_TOOLKIT_CHARACTER_SET_CONVERSION_H