Skip to content

Sabre VObject StringUtil

Evert Pot edited this page Sep 1, 2014 · 3 revisions

Sabre\VObject\StringUtil

Useful utilities for working with various strings.

  • Class name: StringUtil
  • Namespace: Sabre\VObject

Methods

isUTF8

boolean Sabre\VObject\StringUtil::isUTF8(string $str)

Returns true or false depending on if a string is valid UTF-8

  • Visibility: public
  • This method is static.

Arguments

  • $str string

convertToUTF8

string Sabre\VObject\StringUtil::convertToUTF8(string $str)

This method tries its best to convert the input string to UTF-8.

Currently only ISO-5991-1 input and UTF-8 input is supported, but this may be expanded upon if we receive other examples.

  • Visibility: public
  • This method is static.

Arguments

  • $str string
Clone this wiki locally