20 references to Result
Microsoft.ML.Core (20)
Utilities\DoubleParser.cs (20)
93
var
res = Parse(span, out value, flags);
94
Contracts.Assert(res !=
Result
.Empty || ((flags & OptionFlags.EmptyAsNaN) == 0 && value == 0) || Single.IsNaN(value));
95
return res <=
Result
.Empty;
103
var
res = Parse(span, out value, flags);
104
Contracts.Assert(res !=
Result
.Empty || ((flags & OptionFlags.EmptyAsNaN) == 0 && value == 0) || Double.IsNaN(value));
105
return res <=
Result
.Empty;
108
public static
Result
Parse(ReadOnlySpan<char> span, out Single value, OptionFlags flags = OptionFlags.Default)
120
return
Result
.Empty;
133
return
Result
.Good;
138
return
Result
.Good;
146
return
Result
.Error;
153
return
Result
.Extra;
157
return
Result
.Good;
160
public static
Result
Parse(ReadOnlySpan<char> span, out Double value, OptionFlags flags = OptionFlags.Default)
172
return
Result
.Empty;
185
return
Result
.Good;
190
return
Result
.Good;
198
return
Result
.Error;
205
return
Result
.Extra;
209
return
Result
.Good;