php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
MessageFormatter Class Reference

Public Member Functions

 __construct (string $locale, string $pattern)
 
 format (array $values)
 
 parse (string $string)
 
 setPattern (string $pattern)
 
 getPattern ()
 
 getLocale ()
 
 getErrorCode ()
 
 getErrorMessage ()
 

Static Public Member Functions

static create (string $locale, string $pattern)
 
static formatMessage (string $locale, string $pattern, array $values)
 
static parseMessage (string $locale, string $pattern, string $message)
 

Detailed Description

@generate-class-entries @not-serializable

Definition at line 6 of file msgformat.stub.php.

Constructor & Destructor Documentation

◆ __construct()

MessageFormatter::__construct ( string $locale,
string $pattern )

Definition at line 8 of file msgformat.stub.php.

Member Function Documentation

◆ create()

static MessageFormatter::create ( string $locale,
string $pattern )
static

@tentative-return-type @alias msgfmt_create

Definition at line 14 of file msgformat.stub.php.

◆ format()

MessageFormatter::format ( array $values)

@tentative-return-type @alias msgfmt_format

Definition at line 20 of file msgformat.stub.php.

◆ formatMessage()

static MessageFormatter::formatMessage ( string $locale,
string $pattern,
array $values )
static

@tentative-return-type @alias msgfmt_format_message

Definition at line 26 of file msgformat.stub.php.

◆ getErrorCode()

MessageFormatter::getErrorCode ( )

@tentative-return-type @alias msgfmt_get_error_code

Definition at line 64 of file msgformat.stub.php.

◆ getErrorMessage()

MessageFormatter::getErrorMessage ( )

@tentative-return-type @alias msgfmt_get_error_message

Definition at line 70 of file msgformat.stub.php.

◆ getLocale()

MessageFormatter::getLocale ( )

@tentative-return-type @alias msgfmt_get_locale

Definition at line 58 of file msgformat.stub.php.

◆ getPattern()

MessageFormatter::getPattern ( )

@tentative-return-type @alias msgfmt_get_pattern

Definition at line 52 of file msgformat.stub.php.

◆ parse()

MessageFormatter::parse ( string $string)
Returns
array<int, int|float|string>|false @tentative-return-type @alias msgfmt_parse

Definition at line 33 of file msgformat.stub.php.

◆ parseMessage()

static MessageFormatter::parseMessage ( string $locale,
string $pattern,
string $message )
static
Returns
array<int, int|float|string>|false @tentative-return-type @alias msgfmt_parse_message

Definition at line 40 of file msgformat.stub.php.

◆ setPattern()

MessageFormatter::setPattern ( string $pattern)

@tentative-return-type @alias msgfmt_set_pattern

Definition at line 46 of file msgformat.stub.php.


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