flang the compiler proves your program cannot hang 0.9.0 GitHub Try in the browserTry it Русский

Unicode case folding

Case-insensitive string comparison by the Unicode rules (case folding).

Import:

  использует «Unicode case folding»

Example

The example was not run for this version of the module. Below is a test from the module source; flang test runs it with the other tests of the module.

функция «Свернуть регистр»
  дано текст равно "Straße"
  ожидается "strasse"

Functions

Functions to call: 6.

Every postcondition has a status: proved — holds for any arguments; checked on tests only — no violation on the values from the tests, other arguments are checked at run time; not proved — there is no proof, the condition is checked at run time.

«Свернуть регистр»

принимает текст: строка
возвращает строка

Test from the module: given текст = "Straße" returns "strasse".

«Равны без учёта регистра»

принимает первый: строка, второй: строка
возвращает признак

Test from the module: given первый = "Москва", второй = "МОСКВА" returns да.

Other functions

No other library module and no example in the repository calls these functions. The functions above are called.

«Свёртка точки»

принимает точка: число
возвращает список числа

Test from the module: given точка = 65 returns [97].

«Свёртка точки по таблице»

принимает точка: число
возвращает список числа

Test from the module: given точка = 181 returns [956].

«Точки свёртки»

принимает таблица: «Таблица юникода», номер: число
возвращает список числа

«Ключ без регистра»

принимает текст: строка
возвращает строка

Test from the module: given текст = "É" returns "é".

Source: flang/stdlib/unicode-case.flang. All modules: Standard library.