@@ 425-428 (lines=4) @@ | ||
422 | $this->numSteps = ( int )round($this->options['max'] / $this->options['step']); |
|
423 | // Calculate measures |
|
424 | $this->measures['fixedCharSpace'] = iconv_strlen($this->stripEscapeSequences($this->insertValues()), 'UTF-8'); |
|
425 | if( iconv_strpos($this->options['formatString'], '%max%', 0, 'UTF-8') !== false ) |
|
426 | { |
|
427 | $this->measures['maxSpace'] = iconv_strlen(sprintf($this->options['maxFormat'], $this->options['max']), 'UTF-8'); |
|
428 | } |
|
429 | if( iconv_strpos($this->options['formatString'], '%act%', 0, 'UTF-8') !== false ) |
|
430 | { |
|
431 | $this->measures['actSpace'] = iconv_strlen(sprintf($this->options['actFormat'], $this->options['max']), 'UTF-8'); |
|
@@ 429-432 (lines=4) @@ | ||
426 | { |
|
427 | $this->measures['maxSpace'] = iconv_strlen(sprintf($this->options['maxFormat'], $this->options['max']), 'UTF-8'); |
|
428 | } |
|
429 | if( iconv_strpos($this->options['formatString'], '%act%', 0, 'UTF-8') !== false ) |
|
430 | { |
|
431 | $this->measures['actSpace'] = iconv_strlen(sprintf($this->options['actFormat'], $this->options['max']), 'UTF-8'); |
|
432 | } |
|
433 | if( iconv_strpos($this->options['formatString'], '%fraction%', 0, 'UTF-8') !== false ) |
|
434 | { |
|
435 | $this->measures['fractionSpace'] = iconv_strlen(sprintf($this->options['fractionFormat'], 100), 'UTF-8'); |