class Cvtxt::Split

Defined in:

split.cr

Constant Summary

SPLIT_RE_0 = /^\/{3,}/m
SPLIT_RE_1 = /(\r?\n|\r){2,}(?=\P{Zs})/m
SPLIT_RE_2 = /(\r?\n|\r)(?=\P{Zs})/m
SPLIT_RE_3 = /^\s*(?=第[零〇一二两三四五六七八九十百千]+章\s)/m

Constructors

Instance Method Summary

Constructor Detail

def self.new(encoding : String = "GBK", split_mode : Int32 = 1) #

[View source]

Instance Method Detail

def encoding : String #

[View source]
def encoding=(encoding : String) #

[View source]
def parse_chaps(parts : Array(String)) #

[View source]
def save_output(chaps : Array(Chap), out_dir : String) #

[View source]
def set_encoding(encoding : String) #

[View source]
def split(file : String) #

[View source]
def split_chaps(input : String) : Array(String) #

[View source]
def split_mode : Int32 #

[View source]
def split_mode=(split_mode : Int32) #

[View source]
def split_re_x : Regex #

[View source]
def split_re_x=(split_re_x : Regex) #

[View source]