Selen

AbstractWidth
in package

AbstractYes

Table of Contents

Constants

FULL_CHARACTER_WIDTH  = 2
HALF_CHARACTER_WIDTH  = 1

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

Methods

__construct()

public __construct(string $val) : mixed
Parameters
$val : string

notExist()

public abstract notExist() : bool
Return values
bool

notOnly()

public abstract notOnly() : bool
Return values
bool

calcStrAllFullWidth()

すべて全角文字だった場合の横幅の長さを計算します

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

文字列の横幅を返します


        
On this page

Search results