File tree 5 files changed +11
-9
lines changed
Tests/Utf8Utility.Tests/Text
5 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 1
1
using System . Runtime . CompilerServices ;
2
2
using System . Runtime . InteropServices ;
3
3
4
- namespace Utf8Utility . Helpers ;
4
+ namespace Utf8Utility . Text ;
5
5
6
6
/// <summary>
7
- /// Ascii関連のヘルパークラスです 。
7
+ /// Ascii関連のユーティリティクラスです 。
8
8
/// </summary>
9
9
public static class AsciiUtility
10
10
{
@@ -40,6 +40,6 @@ public static class AsciiUtility
40
40
internal static bool IsWhiteSpace ( byte value )
41
41
{
42
42
ref var table = ref MemoryMarshal . GetReference ( AsciiCharInfo ) ;
43
- return ( Unsafe . Add ( ref table , ( nint ) ( uint ) value ) & IsWhiteSpaceFlag ) != 0 ;
43
+ return ( Unsafe . Add ( ref table , ( nint ) value ) & IsWhiteSpaceFlag ) != 0 ;
44
44
}
45
45
}
Original file line number Diff line number Diff line change 1
1
using System . Runtime . CompilerServices ;
2
2
using System . Runtime . InteropServices ;
3
3
4
- namespace Utf8Utility . Helpers ;
4
+ namespace Utf8Utility . Text ;
5
5
6
6
/// <summary>
7
- /// Unicode関連のヘルパークラスです 。
7
+ /// Unicode関連のユーティリティクラスです 。
8
8
/// </summary>
9
9
public static class UnicodeUtility
10
10
{
Original file line number Diff line number Diff line change 4
4
using System . Runtime . InteropServices ;
5
5
using System . Text ;
6
6
using System . Text . Unicode ;
7
- using Utf8Utility . Helpers ;
7
+ using Utf8Utility . Text ;
8
8
9
9
namespace Utf8Utility ;
10
10
Original file line number Diff line number Diff line change 2
2
using System . Runtime . CompilerServices ;
3
3
using System . Text ;
4
4
using Microsoft . Toolkit . HighPerformance ;
5
- using Utf8Utility . Helpers ;
6
5
#if NET6_0_OR_GREATER
7
6
using System . Buffers ;
8
7
using System . Runtime . InteropServices ;
9
8
using System . Text . Unicode ;
9
+ using Utf8Utility . Text ;
10
+ #else
11
+ using Utf8Utility . Helpers ;
10
12
#endif
11
13
12
14
namespace Utf8Utility ;
Original file line number Diff line number Diff line change 1
1
using FluentAssertions ;
2
- using Utf8Utility . Helpers ;
2
+ using Utf8Utility . Text ;
3
3
using Xunit ;
4
4
5
- namespace Utf8Utility . Tests ;
5
+ namespace Utf8Utility . Tests . Text ;
6
6
7
7
public sealed class UnicodeUtilityTest
8
8
{
You can’t perform that action at this time.
0 commit comments