5
5
6
6
namespace Exceptionless . Extensions {
7
7
public static class StringExtensions {
8
- public static string ToLowerUnderscoredWords ( this string value ) {
8
+ internal static string ToLowerUnderscoredWords ( this string value ) {
9
9
var builder = new StringBuilder ( value . Length + 10 ) ;
10
10
for ( int index = 0 ; index < value . Length ; index ++ ) {
11
11
char c = value [ index ] ;
@@ -29,7 +29,7 @@ public static bool AnyWildcardMatches(this string value, IEnumerable<string> pat
29
29
return patternsToMatch . Any ( pattern => IsPatternMatch ( value , pattern , ignoreCase ) ) ;
30
30
}
31
31
32
- public static bool IsPatternMatch ( this string value , string pattern , bool ignoreCase = true ) {
32
+ internal static bool IsPatternMatch ( this string value , string pattern , bool ignoreCase = true ) {
33
33
if ( pattern == null )
34
34
return value == null ;
35
35
@@ -60,7 +60,7 @@ public static bool IsPatternMatch(this string value, string pattern, bool ignore
60
60
return String . Equals ( value , pattern , comparison ) ;
61
61
}
62
62
63
- public static string [ ] SplitAndTrim ( this string input , params char [ ] separator ) {
63
+ internal static string [ ] SplitAndTrim ( this string input , params char [ ] separator ) {
64
64
if ( String . IsNullOrEmpty ( input ) )
65
65
return new string [ 0 ] ;
66
66
@@ -71,7 +71,7 @@ public static string[] SplitAndTrim(this string input, params char[] separator)
71
71
return result ;
72
72
}
73
73
74
- public static bool ToBoolean ( this string input , bool @default = false ) {
74
+ internal static bool ToBoolean ( this string input , bool @default = false ) {
75
75
if ( String . IsNullOrEmpty ( input ) )
76
76
return @default ;
77
77
@@ -90,14 +90,14 @@ public static bool ToBoolean(this string input, bool @default = false) {
90
90
return @default ;
91
91
}
92
92
93
- public static string ToHex ( this IEnumerable < byte > bytes ) {
93
+ internal static string ToHex ( this IEnumerable < byte > bytes ) {
94
94
var sb = new StringBuilder ( ) ;
95
95
foreach ( byte b in bytes )
96
96
sb . Append ( b . ToString ( "x2" ) ) ;
97
97
return sb . ToString ( ) ;
98
98
}
99
99
100
- public static bool IsValidIdentifier ( this string value ) {
100
+ internal static bool IsValidIdentifier ( this string value ) {
101
101
if ( value == null )
102
102
return false ;
103
103
0 commit comments