This commit is contained in:
morkt 2017-01-08 06:18:13 +04:00
parent 1b3b54f4f9
commit db4919d26e

View File

@ -50,13 +50,16 @@ namespace GameRes.Formats.Cyberworks
internal abstract class ArchiveNameParser internal abstract class ArchiveNameParser
{ {
protected Regex m_regex; readonly Regex m_regex;
protected ArchiveNameParser (string pattern) protected ArchiveNameParser (string pattern)
{ {
m_regex = new Regex (pattern, RegexOptions.IgnoreCase); m_regex = new Regex (pattern, RegexOptions.IgnoreCase);
} }
/// <summary>
/// Returns toc filename and archive index corresponding to <paramref name="arc_name"/>.
/// </summary>
public Tuple<string, int> ParseName (string arc_name) public Tuple<string, int> ParseName (string arc_name)
{ {
var match = m_regex.Match (arc_name); var match = m_regex.Match (arc_name);