1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-17 07:44:09 +02:00

Corlib fixes

This commit is contained in:
Brian Fiete 2020-02-05 17:07:47 -08:00
parent 45638a6e7e
commit 2ed6a9a94b
3 changed files with 7 additions and 45 deletions

View file

@ -2579,6 +2579,13 @@ namespace Beefy.widgets
lineEnd--; lineEnd--;
} }
public bool IsLineWhiteSpace(int line)
{
String str = scope .();
GetLineText(line, str);
return str.IsWhiteSpace;
}
public virtual void GetLineText(int line, String outStr) public virtual void GetLineText(int line, String outStr)
{ {
GetTextData(); GetTextData();

View file

@ -274,31 +274,6 @@ namespace System.Collections.Generic
items[lo + curI - 1] = *dt; items[lo + curI - 1] = *dt;
} }
private void InsertionSortZ(int lo, int hi)
{
int i, j;
T t;
T2 ti = ?;
for (i = lo; i < hi; i++)
{
j = i;
t = keys[i + 1];
//ti = (items != null) ? items[i + 1] : null;
if (items != null)
ti = items[i + 1];
while (j >= lo && comparer(t, keys[j]) < 0)
{
keys[j + 1] = keys[j];
if(items != null)
items[j + 1] = items[j];
j--;
}
keys[j + 1] = t;
if (items != null)
items[j + 1] = ti;
}
}
private void InsertionSort(int lo, int hi) private void InsertionSort(int lo, int hi)
{ {
int i, j; int i, j;

View file

@ -2017,26 +2017,6 @@ namespace System
inStr = scope:: String(outStr); inStr = scope:: String(outStr);
} }
/*public static mixin StackSplit(var target, var splitChar)
{
var stringViews = scope List<StringView>();
target.Split(stringViews, splitChar);
var strings = stack List<String>();
for (int i = 0; i < stringViews.Count; i++)
strings.Add(stack String(stringViews[i]));
strings
}*/
/*public static mixin StackSplit(var target, var splitChar)
{
var stringViews = scope List<StringView>();
target.Split(stringViews, splitChar);
var strings = stack String[stringViews.Count];
for (int i = 0; i < stringViews.Count; i++)
strings[i] = stack String(stringViews[i]);
strings
}*/
public static mixin StackSplit(var target, var splitChar) public static mixin StackSplit(var target, var splitChar)
{ {
var strings = scope:mixin List<String>(); var strings = scope:mixin List<String>();