Table of Contents

Class FileForSearching

Namespace
SunamoShared._public.SunamoData.Data
Assembly
SunamoShared.dll

Represents a file loaded for content searching with lowercased line cache.

public class FileForSearching
Inheritance
FileForSearching
Inherited Members
Extension Methods

Constructors

FileForSearching(string)

Initializes a new instance of the FileForSearching class.

public FileForSearching(string path)

Parameters

path string

The file path to load for searching.

Properties

FoundedLines

Gets or sets the list of line indices where matches were found.

public List<int> FoundedLines { get; set; }

Property Value

List<int>

IsSurelyNo

Gets or sets a value indicating whether this file is surely not a match.

public bool IsSurelyNo { get; set; }

Property Value

bool

Lines

Gets or sets the original lines of the file.

public List<string> Lines { get; set; }

Property Value

List<string>

LinesLower

Gets or sets the lowercased version of all lines for case-insensitive searching.

public List<string> LinesLower { get; set; }

Property Value

List<string>

Methods

Init()

Loads the file content and creates a lowercased line cache.

public Task Init()

Returns

Task