Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
Google_Utils Class Reference

Static Public Member Functions

static camelCase ($value)
 Convert a string to camelCase.
 
static getStrLen ($str)
 Misc function used to count the number of bytes in a post body, in the world of multi-byte chars and the unpredictability of strlen/mb_strlen/sizeof, this is the only way to do that in a sane manner at the moment.
 
static normalize ($arr)
 Normalize all keys in an array to lower-case.
 
static urlSafeB64Decode ($b64)
 
static urlSafeB64Encode ($data)
 

Member Function Documentation

◆ camelCase()

static Google_Utils::camelCase ( $value)
static

Convert a string to camelCase.

Parameters
string$value
Return values
string

◆ getStrLen()

static Google_Utils::getStrLen ( $str)
static

Misc function used to count the number of bytes in a post body, in the world of multi-byte chars and the unpredictability of strlen/mb_strlen/sizeof, this is the only way to do that in a sane manner at the moment.

This algorithm was originally developed for the Solar Framework by Paul M. Jones

@externalurl http://solarphp.com/ @externalurl http://svn.solarphp.com/core/trunk/Solar/Json.php @externalurl http://framework.zend.com/svn/framework/standard/trunk/library/Zend/Json/Decoder.php

Parameters
string$str
Return values
intThe number of bytes in a string.

◆ normalize()

static Google_Utils::normalize ( $arr)
static

Normalize all keys in an array to lower-case.

Parameters
array$arr
Return values
arrayNormalized array.

The documentation for this class was generated from the following file: