SearchOptions
classin packageklyn.io
public class SearchOptions
SearchOptions

Text search settings. Auto encoding detects Unicode BOMs, otherwise UTF-8. Specify a legacy charset explicitly; availability depends on the OS converter. Files and lines are streamed, but the collecting overload stores its results. Example: options = SearchOptions(); options.smartCase = true

Fields
Modifier and Type Member Description
public caseSensitive
caseSensitive as Boolean = true
Case-sensitive matching by default.
public encoding
encoding as String = "auto"
Charset name, or auto for BOM detection then UTF-8.
public excludes
excludes as ArrayList<String> = [".git/", ".cache/", "node_modules/", "build/"]
Exclude globs applied before descent; clear to include default excluded folders.
public includeHidden
includeHidden as Boolean = false
Skip dot-prefixed entries, except .gitignore loading.
public includes
includes as ArrayList<String> = ArrayList<String>()
File include globs, relative to the root; empty accepts all.
public maxTotalMatches
maxTotalMatches as ULong = 0ul
Global result limit; zero is unlimited.
public regex
regex as Boolean = false
Use a regular expression instead of literal text.
public respectGitignore
respectGitignore as Boolean = true
Honor nested .gitignore files.
public skipBinary
skipBinary as Boolean = true
Skip NUL-containing files (except UTF-16/32) and malformed encoded input.
public smartCase
smartCase as Boolean = false
Ignore case unless the pattern contains uppercase.
public workers
workers as UInt = 1u
Worker count; one is deterministic depth-first traversal.