Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

インデクサーを削除 #44

Merged
merged 1 commit into from
Jul 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions Source/Utf8Utility/Utf8String.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,29 +44,6 @@ public readonly struct Utf8String
/// </value>
public int Length => _value.Length;

/// <summary>
/// 指定されたインデックスの値を取得します。
/// </summary>
/// <param name="index">インデックス</param>
/// <returns>指定されたインデックスの値</returns>
public byte this[int index] => _value[index];

#if NET5_0_OR_GREATER
/// <summary>
/// 指定されたインデックスの値を取得します。
/// </summary>
/// <param name="index">インデックス</param>
/// <returns>指定されたインデックスの値</returns>
public ReadOnlySpan<byte> this[Index index] => _value.AsSpan(index);

/// <summary>
/// 指定された範囲の<see cref="byte"/>配列を取得します。
/// </summary>
/// <param name="range">範囲</param>
/// <returns>指定された範囲の<see cref="byte"/>配列</returns>
public ReadOnlySpan<byte> this[Range range] => _value.AsSpan(range);
#endif

/// <summary>
/// <see cref="Utf8String"/>構造体の新しいインスタンスを取得します。
/// </summary>
Expand Down
77 changes: 0 additions & 77 deletions Tests/Utf8Utility.Tests/Utf8StringIndexerTest.cs

This file was deleted.