Overview

Namespaces

  • esperecyan
    • webidl
      • lib

Classes

  • BooleanType
  • DictionaryType
  • FloatType
  • IntegerType
  • NullableType
  • ObjectType
  • SequenceType
  • StringType
  • Type
  • UnionType

Traits

  • Error
  • Overview
  • Namespace
  • Class
  • Tree

Class IntegerType

esperecyan\webidl\lib\IntegerType uses esperecyan\webidl\lib\Utility (not available)
Namespace: esperecyan\webidl\lib
Internal
Located at lib/IntegerType.php
Methods summary
public static boolean
# isIntegerCastable( mixed $value )

与えられた値が整数型に変換可能であれば真を返します。

与えられた値が整数型に変換可能であれば真を返します。

次の型の値が整数型に変換可能であるとみなされます。 論理型。整数型。浮動小数点型。文字列型。リソース型。オブジェクト型のうち、GMP のインスタンス。

Parameters

$value

Returns

boolean
public static integer
# toByte( boolean|integer|float|string|resource|GMP $value, string|null $extendedAttribute = null )

与えられた値を −128〜127 の範囲の整数に変換して返します。

与えられた値を −128〜127 の範囲の整数に変換して返します。

Parameters

$value
$extendedAttribute
拡張属性。[EnforceRange] か [Clamp] のいずれか。

Returns

integer

Link

WebIDL Level 1
public static integer
# toOctet( boolean|integer|float|string|resource|GMP $value, string|null $extendedAttribute = null )

与えられた値を 0〜255 の範囲の整数に変換して返します。

与えられた値を 0〜255 の範囲の整数に変換して返します。

Parameters

$value
$extendedAttribute
拡張属性。[EnforceRange] か [Clamp] のいずれか。

Returns

integer

Link

WebIDL Level 1
public static integer
# toShort( boolean|integer|float|string|resource|GMP $value, string|null $extendedAttribute = null )

与えられた値を −32768〜32767 の範囲の整数に変換して返します。

与えられた値を −32768〜32767 の範囲の整数に変換して返します。

Parameters

$value
$extendedAttribute
拡張属性。[EnforceRange] か [Clamp] のいずれか。

Returns

integer

Link

WebIDL Level 1
public static integer
# toUnsignedShort( boolean|integer|float|string|resource|GMP $value, string|null $extendedAttribute = null )

与えられた値を 0〜65535 の範囲の整数に変換して返します。

与えられた値を 0〜65535 の範囲の整数に変換して返します。

Parameters

$value
$extendedAttribute
拡張属性。[EnforceRange] か [Clamp] のいずれか。

Returns

integer

Link

WebIDL Level 1
public static integer
# toLong( boolean|integer|float|string|resource|GMP $value, string|null $extendedAttribute = null )

与えられた値を −2147483648〜2147483647 の範囲の整数に変換して返します。

与えられた値を −2147483648〜2147483647 の範囲の整数に変換して返します。

Parameters

$value
$extendedAttribute
拡張属性。[EnforceRange] か [Clamp] のいずれか。

Returns

integer

Link

WebIDL Level 1
public static integer|float
# toUnsignedLong( boolean|integer|float|string|resource|GMP $value, string|null $extendedAttribute = null )

与えられた値を 0〜4294967295 の範囲の整数に変換して返します。

与えられた値を 0〜4294967295 の範囲の整数に変換して返します。

Parameters

$value
$extendedAttribute
拡張属性。[EnforceRange] か [Clamp] のいずれか。

Returns

integer|float
32bit版のPHP、またはWindows版のPHP 5.6以前において、整数型の範囲を超える場合は浮動小数点数。

Link

WebIDL Level 1
public static integer|float
# toLongLong( boolean|integer|float|string|resource|GMP $value, string|null $extendedAttribute = null )

与えられた値を −9223372036854775808〜9223372036854775807 の範囲の整数に変換して返します。 32bit版のPHP、またはWindows版のPHP 5.6以前では、−9007199254740991〜9007199254740991 の範囲の整数に変換して返します。

与えられた値を −9223372036854775808〜9223372036854775807 の範囲の整数に変換して返します。 32bit版のPHP、またはWindows版のPHP 5.6以前では、−9007199254740991〜9007199254740991 の範囲の整数に変換して返します。

Parameters

$value
$extendedAttribute
拡張属性。[EnforceRange] か [Clamp] のいずれか。

Returns

integer|float
32bit版のPHP、またはWindows版のPHP 5.6以前において、整数型の範囲を超える場合は浮動小数点数。

Link

WebIDL Level 1
public static integer|float
# toUnsignedLongLong( boolean|integer|float|string|resource|GMP $value, string|null $extendedAttribute = null )

与えられた値を 0〜9223372036854775807 の範囲の整数に変換して返します。 32bit版のPHP、またはWindows版のPHP 5.6以前では、0〜9007199254740991 の範囲の整数に変換して返します。

与えられた値を 0〜9223372036854775807 の範囲の整数に変換して返します。 32bit版のPHP、またはWindows版のPHP 5.6以前では、0〜9007199254740991 の範囲の整数に変換して返します。

Parameters

$value
$extendedAttribute
拡張属性。[EnforceRange] か [Clamp] のいずれか。

Returns

integer|float
32bit版のPHP、またはWindows版のPHP 5.6以前において、整数型の範囲を超える場合は浮動小数点数。

Link

WebIDL Level 1
esperecyan/webidl documentation API documentation generated by ApiGen