-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCharacterExtract.cs
32 lines (28 loc) · 1.13 KB
/
CharacterExtract.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MySQLCLRFunctions
{
public static class CharacterExtract
{
/***************************************************************************************************************************************************************************************************
*
* Extract everything after a specific string
*
* WARNING: Empty string is not a character!
*
***************************************************************************************************************************************************************************************************/
internal static char? FIRSTC(this string input)
{
if (StringTest.IsNullOrEmpty(input)) return null; // Empty string is not a character!
return input[0];
}
public static char? FirstC(string input)
{
if (StringTest.IsNullOrEmpty(input)) return null; // Empty string is not a character!
return input[0];
}
}
}