Implementing unimplemented cases in ecma comparison routines.

This commit is contained in:
Ruben Ayrapetyan
2014-09-02 19:57:55 +04:00
parent c581f10b94
commit 11d772fda4
3 changed files with 119 additions and 14 deletions
+17
View File
@@ -806,6 +806,23 @@ ecma_compare_ecma_string_to_ecma_string (const ecma_string_t *string1_p, /* ecma
return ecma_compare_ecma_string_to_ecma_string_longpath (string1_p, string2_p);
} /* ecma_compare_ecma_string_to_ecma_string */
/**
* Relational compare of ecma-strings.
*
* First string is less than second string if:
* - strings are not equal;
* - first string is prefix of second or is lexicographically less than second.
*
* @return true - if first string is less than second string,
* false - otherwise.
*/
bool
ecma_compare_ecma_string_to_ecma_string_relational (const ecma_string_t *string1_p, /**< ecma-string */
const ecma_string_t *string2_p) /**< ecma-string */
{
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (string1_p, string2_p);
} /* ecma_compare_ecma_string_to_ecma_string_relational */
/**
* Get length of ecma-string
*