mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-17 15:46:05 +02:00
Corlib fixes
This commit is contained in:
parent
45638a6e7e
commit
2ed6a9a94b
3 changed files with 7 additions and 45 deletions
|
@ -2579,6 +2579,13 @@ namespace Beefy.widgets
|
|||
lineEnd--;
|
||||
}
|
||||
|
||||
public bool IsLineWhiteSpace(int line)
|
||||
{
|
||||
String str = scope .();
|
||||
GetLineText(line, str);
|
||||
return str.IsWhiteSpace;
|
||||
}
|
||||
|
||||
public virtual void GetLineText(int line, String outStr)
|
||||
{
|
||||
GetTextData();
|
||||
|
|
|
@ -274,31 +274,6 @@ namespace System.Collections.Generic
|
|||
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)
|
||||
{
|
||||
int i, j;
|
||||
|
|
|
@ -2017,26 +2017,6 @@ namespace System
|
|||
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)
|
||||
{
|
||||
var strings = scope:mixin List<String>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue