C# 클래스 Pchp.Library.Locale

This class manages locale information for PHP and interacts .NET Framework.
파일 보기 프로젝트 열기: iolevel/peachpie

공개 메소드들

메소드 설명
localeconv ( Context ctx ) : PhpArray

Gets information about the current thread culture.

nl_langinfo ( int item ) : string

Not supported.

strcoll ( Context ctx, string str1, string str2 ) : int

Compares two specified strings, honoring their case, using culture specific comparison.

비공개 메소드들

메소드 설명
GetCulture ( Context ctx, Category category ) : CultureInfo

Gets a culture specific for the given category.

GetCultureByName ( string name ) : CultureInfo

Gets a culture of a specified name. Tries "{language}-{country}", "{country}-{language}". Recognizes "C", "", "0" and null as invariant culture. Note, PHP swaps language and country codes.

GetCultures ( Context ctx ) : System.Globalization.CultureInfo[]

Cultures associated with cathegories.

GetFirstExistingCulture ( Context ctx, object locale, object moreLocales, CultureInfo &culture ) : bool

Searches in given objects for a locale string describing an existing culture.

GetGroupingArray ( int groups ) : PhpArray

Converts .NET groups information to PHP array.

GetStringComparer ( Context ctx, bool ignoreCase ) : PhpLocaleStringComparer

Creates a new PhpLocaleStringComparer comparing according to the current collate.

SetCulture ( Context ctx, Category category, CultureInfo culture ) : void

Sets a culture specific for the given category.

setlocale ( Context ctx, Category category, object locale ) : string

메소드 상세

localeconv() 공개 정적인 메소드

Gets information about the current thread culture.
public static localeconv ( Context ctx ) : PhpArray
ctx Pchp.Core.Context
리턴 Pchp.Core.PhpArray

nl_langinfo() 공개 정적인 메소드

Not supported.
public static nl_langinfo ( int item ) : string
item int
리턴 string

strcoll() 공개 정적인 메소드

Compares two specified strings, honoring their case, using culture specific comparison.
public static strcoll ( Context ctx, string str1, string str2 ) : int
ctx Pchp.Core.Context Current runtime context.
str1 string A string.
str2 string A string.
리턴 int