20 namespace Deveel.Data.Sql.Objects {
23 private const char ZeroOrMoreChars =
'%';
24 private const char OneChar =
'_';
27 return (ch == OneChar || ch == ZeroOrMoreChars);
31 throw new NotImplementedException();
35 return Substring(source, offset, (
int)source.
Length - offset);
39 if (source == null || source.
IsNull)
42 var en = source.GetEnumerator();
43 var sb =
new StringBuilder(count);
46 while (en.MoveNext()) {
50 sb.Append(en.Current);
52 if (index == count - 1)
57 var s = sb.ToString();
60 var chars =
new char[count];
61 sb.CopyTo(0, chars, 0, count);
68 throw new NotImplementedException();
static bool IsWildCard(char ch)
static SqlNumber IndexOf(this ISqlString pattern, SqlString expression)
static SqlBoolean PatternMatch(this ISqlString pattern, string expression, char escapeChar)
bool IsNull
Gets a boolean value indicating if the object is NULL.
static SqlString Substring(this ISqlString source, int offset)
static SqlString Substring(this ISqlString source, int offset, int count)
Deveel.Data.Sql.Objects.SqlString SqlString