This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
vbbs/app/Classes/Frame/Ansi.php

29 lines
631 B
PHP
Raw Normal View History

<?php
namespace App\Classes\Frame;
use Illuminate\Support\Facades\Log;
use App\Classes\Frame as AbstractFrame;
class Ansi extends AbstractFrame
{
public static $frame_length = 22;
public static $frame_width = 80;
public static $header_length = 60;
public static $pagenum_length = 9;
public static $cost_length = 7;
public static $cost_unit = 'u';
2018-12-11 12:31:44 +00:00
public static $if_filler = '.';
public function fields($startline=0)
{
$this->output .= str_replace(LF,CR.LF,$this->frame->content);
}
public function strlenv($text):int {
return strlen($text ? preg_replace('/'.ESC.'\[[0-9;?]+[a-zA-Z]/','',$text) : $text);
}
}