Implement toLowerCase and toUpperCase built-in functions.

Related issue: #323

JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg@inf.u-szeged.hu
This commit is contained in:
Zoltan Herczeg
2015-07-14 05:52:12 -07:00
parent bc0ca7be5d
commit 69655f4456
5 changed files with 307 additions and 5 deletions
+12
View File
@@ -220,4 +220,16 @@ extern uint32_t lit_char_hex_to_int (ecma_char_t);
*/
extern bool lit_char_is_word_char (ecma_char_t);
/*
* Utility functions for uppercasing / lowercasing
*/
/**
* Minimum buffer size for lit_char_to_lower_case / lit_char_to_upper_case functions.
*/
#define LIT_MAXIMUM_OTHER_CASE_LENGTH (3)
lit_utf8_size_t lit_char_to_lower_case (ecma_char_t, ecma_char_t *, size_t);
lit_utf8_size_t lit_char_to_upper_case (ecma_char_t, ecma_char_t *, size_t);
#endif /* LIT_CHAR_HELPERS_H */