AbstractWidth
in package
AbstractYes
Table of Contents
Constants
Properties
- $str : string
Methods
- __construct() : mixed
- exist() : bool
- notExist() : bool
- notOnly() : bool
- only() : bool
- calcStrAllFullWidth() : int
- すべて全角文字だった場合の横幅の長さを計算します
- calcStrAllHalfWidth() : int
- すべて半角文字だった場合の横幅の長さを計算します
- getStrLength() : int
- 文字列の長さを取得します
- getStrWidth() : int
- 文字列の横幅を取得します
Constants
FULL_CHARACTER_WIDTH
public
int
FULL_CHARACTER_WIDTH
= 2
全角1文字の幅
HALF_CHARACTER_WIDTH
public
int
HALF_CHARACTER_WIDTH
= 1
半角1文字の幅
Properties
$str
protected
string
$str
Methods
__construct()
public
__construct(string $val) : mixed
Parameters
- $val : string
exist()
public
abstract exist() : bool
Return values
boolnotExist()
public
abstract notExist() : bool
Return values
boolnotOnly()
public
abstract notOnly() : bool
Return values
boolonly()
public
abstract only() : bool
Return values
boolcalcStrAllFullWidth()
すべて全角文字だった場合の横幅の長さを計算します
protected
calcStrAllFullWidth() : int
Return values
int —横幅の長さを返します
calcStrAllHalfWidth()
すべて半角文字だった場合の横幅の長さを計算します
protected
calcStrAllHalfWidth() : int
Return values
int —横幅の長さを返します
getStrLength()
文字列の長さを取得します
protected
getStrLength() : int
Return values
int —文字列の長さを返します
getStrWidth()
文字列の横幅を取得します
protected
getStrWidth() : int
Return values
int —文字列の横幅を返します