29 references to OptionFlags
Microsoft.ML.Data (29)
DataLoadSave\Text\TextLoader.cs (20)
1118
private readonly
OptionFlags
_flags;
1131
get { return (_flags &
OptionFlags
.HasHeader) != 0; }
1136
get { return (_flags &
OptionFlags
.ReadMultilines) != 0; }
1184
_flags |=
OptionFlags
.TrimWhitespace;
1186
_flags |=
OptionFlags
.HasHeader;
1188
_flags |=
OptionFlags
.AllowQuoting;
1190
_flags |=
OptionFlags
.AllowSparse;
1192
_flags |=
OptionFlags
.ReadMultilines;
1194
_flags |=
OptionFlags
.MissingRealsAsNaNs;
1271
_host.CheckUserArg((_flags &
OptionFlags
.AllowSparse) == 0, nameof(Options.Separator),
1422
_flags = (
OptionFlags
)ctx.Reader.ReadUInt32();
1425
var
acceptableFlags =
OptionFlags
.TrimWhitespace;
1426
acceptableFlags |=
OptionFlags
.HasHeader;
1427
acceptableFlags |=
OptionFlags
.AllowQuoting;
1428
acceptableFlags |=
OptionFlags
.AllowSparse;
1433
acceptableFlags |=
OptionFlags
.ReadMultilines;
1437
acceptableFlags |=
OptionFlags
.MissingRealsAsNaNs;
1457
host.CheckDecode((_flags &
OptionFlags
.AllowSparse) == 0);
1518
_host.Assert((_flags & ~
OptionFlags
.All) == 0);
DataLoadSave\Text\TextLoaderParser.cs (9)
659
private readonly
OptionFlags
_flags;
685
if ((parent._flags &
OptionFlags
.MissingRealsAsNaNs) != 0)
729
_missingRealsAsNaNs = (parent._flags &
OptionFlags
.MissingRealsAsNaNs) != 0;
747
var text = (parent._flags &
OptionFlags
.TrimWhitespace) != 0 ? ReadOnlyMemoryUtils.TrimEndWhiteSpace(line) : line;
870
if ((_flags &
OptionFlags
.TrimWhitespace) != 0)
927
public HelperImpl(ParseStats stats,
OptionFlags
flags, char[] seps, char escapeChar, int inputSize, int srcNeeded)
944
_quoting = (flags &
OptionFlags
.AllowQuoting) != 0;
945
_sparse = (flags &
OptionFlags
.AllowSparse) != 0;
953
_keepEmpty = (flags &
OptionFlags
.MissingRealsAsNaNs) != 0;