init commit

This commit is contained in:
2025-10-09 09:57:24 +09:00
commit 4d551bd74f
6636 changed files with 1218703 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
namespace Org.BouncyCastle.Asn1;
public class OidTokenizer
{
private string oid;
private int index;
public bool HasMoreTokens => index != -1;
public OidTokenizer(string oid)
{
this.oid = oid;
}
public string NextToken()
{
if (index == -1)
{
return null;
}
int num = oid.IndexOf('.', index);
if (num == -1)
{
string result = oid.Substring(index);
index = -1;
return result;
}
string result2 = oid.Substring(index, num - index);
index = num + 1;
return result2;
}
}