private function parseSizeWord($word)
    {
        $sizeWord = strtoupper(preg_replace('/([a-z])([A-Z])/', '$1_$2', $word));
        if (array_key_exists($sizeWord, $this->sizes)) {
            $size = $this->sizes[$sizeWord];
        } else {
            $size = 0;
        }
        return $size;
    }
private function parseSizeWord($word)
    {
        $sizeWord = strtoupper(preg_replace('/([a-z])([A-Z])/', '$1_$2', $word));
        if (array_key_exists($sizeWord, $this->sizes)) {
            $size = $this->sizes[$sizeWord];
        } else {
            $size = 0;
        }
        return $size;
    }
private function parseSizeWord ( $ word ) { $ sizeWord = strtoupper ( preg_replace ( '/([a-z])([A-Z])/' , '$1_$2' , $ word ) ) ; if ( array_key_exists ( $ sizeWord , $ this -> sizes ) ) { $ size = $ this -> sizes [ $ sizeWord ] ; } else { $ size = 0 ; } return $ size ; }
Process given string and return appropriate size value.

@param $word
@return int
Process given string and return appropriate size value .