Skip to content

Commit 1f8099c

Browse files
committed
= split tools into several 'aide' classes
= remove test-old since i think most of that functionality has been transfered = added FibSquares function
1 parent ae13eaf commit 1f8099c

File tree

119 files changed

+1638
-3681
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+1638
-3681
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -364,4 +364,3 @@ test.sh
364364
/stuff
365365
/build
366366
/Writer/wiki/*
367-
/test-old

Core/Aides/IgnoreCaseAide.cs

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
namespace ImageFunctions.Core.Aides;
2+
3+
public static class IgnoreCaseAide
4+
{
5+
public static bool EqualsIC(this string sub, string test)
6+
{
7+
if(sub == null) { return false; }
8+
return sub.Equals(test, StringComparison.OrdinalIgnoreCase);
9+
}
10+
11+
public static bool StartsWithIC(this string sub, string test)
12+
{
13+
if(sub == null) { return false; }
14+
return sub.StartsWith(test, StringComparison.OrdinalIgnoreCase);
15+
}
16+
17+
public static bool EndsWithIC(this string sub, string test)
18+
{
19+
if(sub == null) { return false; }
20+
return sub.EndsWith(test, StringComparison.OrdinalIgnoreCase);
21+
}
22+
}

0 commit comments

Comments
 (0)