Skip to content

A PHP Class with usefull functions for modern greek unicode text manipulation.

License

Notifications You must be signed in to change notification settings

multipetros/ElStr.class.php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ElStr.class.php

A PHP Class with usefull functions for modern greek unicode text manipulation.
Copyright (c) 2013 - 2016, Petros Kyladitis - http://www.multipetros.gr
Version 1.2

Functions

<string> to_latin($str)

  • Convert greek letters at the string to latins, as ISO:843 / ΕΛΟΤ:743 defines
  • $str string to convert
  • Returns converted string

<string> strtoupper_no_accent($str)

  • Convert unicode string to upper case, without accent marks for the greek letters
  • $str string to upper case convert
  • Returns converted string

<string> strtolower_no_accent($str)

  • Convert unicode string to lower case, without accent marks for the greek letters
  • $str string to lower case convert
  • Returns converted string

<string> str_no_accent($str)

  • Remove accent marks for the greek letters at passed unicode string (no any case convertion)
  • $str string $str string to remove greek accent marks only
  • Returns converted string

<bool> is_upper($char, $notGreekException = false)

  • Check if $char is upper case
  • $char is the character for checking
  • If $notGreekException == true, throws exception when char is not greek
  • Returns true if $char is upper case, else false

<bool> is_lower($char, $notGreekException = false)

  • Check if $char is lower case
  • $char is the character for checking
  • If $notGreekException == true, throws exception when char is not greek
  • Returns true if $char is lower case, else false

License

This project is free software, distributed under the terms & conditions of the FreeBSD License. For more info see at the LICENSE file, distributed with this project. If not, visit http://www.multipetros.gr/freebsd-license/.

About

A PHP Class with usefull functions for modern greek unicode text manipulation.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages