mirror of
https://github.com/claunia/Claunia.Encoding.git
synced 2025-12-16 19:24:43 +00:00
Move to file-scoped namespaces.
This commit is contained in:
@@ -26,8 +26,8 @@
|
||||
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace Claunia.Encoding.Tests
|
||||
{
|
||||
namespace Claunia.Encoding.Tests;
|
||||
|
||||
[TestFixture]
|
||||
public class Atascii
|
||||
{
|
||||
@@ -127,4 +127,3 @@ namespace Claunia.Encoding.Tests
|
||||
Assert.AreEqual(_decksBytes, byteArray);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -26,8 +26,8 @@
|
||||
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace Claunia.Encoding.Tests
|
||||
{
|
||||
namespace Claunia.Encoding.Tests;
|
||||
|
||||
[TestFixture]
|
||||
public class AtariSt
|
||||
{
|
||||
@@ -258,4 +258,3 @@ namespace Claunia.Encoding.Tests
|
||||
Assert.AreEqual(SymbolsUnicode32Bytes, byteArray);*/
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -27,8 +27,8 @@
|
||||
using System;
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace Claunia.Encoding.Tests
|
||||
{
|
||||
namespace Claunia.Encoding.Tests;
|
||||
|
||||
[TestFixture]
|
||||
public class GetEncs
|
||||
{
|
||||
@@ -71,4 +71,3 @@ namespace Claunia.Encoding.Tests
|
||||
System.Text.Encoding e = Encoding.GetEncoding("lisa");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -26,8 +26,8 @@
|
||||
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace Claunia.Encoding.Tests
|
||||
{
|
||||
namespace Claunia.Encoding.Tests;
|
||||
|
||||
[TestFixture]
|
||||
public class LisaRoman
|
||||
{
|
||||
@@ -213,4 +213,3 @@ namespace Claunia.Encoding.Tests
|
||||
Assert.AreEqual(_mathematicsBytes, byteArray);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -26,8 +26,8 @@
|
||||
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace Claunia.Encoding.Tests
|
||||
{
|
||||
namespace Claunia.Encoding.Tests;
|
||||
|
||||
[TestFixture]
|
||||
public class Radix50
|
||||
{
|
||||
@@ -86,4 +86,3 @@ namespace Claunia.Encoding.Tests
|
||||
Assert.AreEqual(_sentenceBytes, byteArray);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -26,8 +26,8 @@
|
||||
|
||||
using System.Text;
|
||||
|
||||
namespace Claunia.Encoding
|
||||
{
|
||||
namespace Claunia.Encoding;
|
||||
|
||||
/// <summary>Represents an ATARI Standard Code for Information Interchange character encoding of Unicode characters.</summary>
|
||||
public class ATASCII : SingleByteEncodingWithRunes
|
||||
{
|
||||
@@ -339,4 +339,3 @@ namespace Claunia.Encoding
|
||||
_ => 0x3F
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -24,8 +24,8 @@
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
namespace Claunia.Encoding
|
||||
{
|
||||
namespace Claunia.Encoding;
|
||||
|
||||
/// <summary>Represents an Apple II character encoding of Unicode characters.</summary>
|
||||
public sealed class Apple2 : SingleByteEncoding
|
||||
{
|
||||
@@ -227,4 +227,3 @@ namespace Claunia.Encoding
|
||||
_ => 0x3F
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -26,8 +26,8 @@
|
||||
|
||||
using System.Text;
|
||||
|
||||
namespace Claunia.Encoding
|
||||
{
|
||||
namespace Claunia.Encoding;
|
||||
|
||||
/// <summary>Represents an Apple IIc character encoding of Unicode characters.</summary>
|
||||
public sealed class Apple2c : SingleByteEncodingWithRunes
|
||||
{
|
||||
@@ -357,4 +357,3 @@ namespace Claunia.Encoding
|
||||
_ => 0x3F
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -24,8 +24,8 @@
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
namespace Claunia.Encoding
|
||||
{
|
||||
namespace Claunia.Encoding;
|
||||
|
||||
/// <summary>Represents an Apple IIe character encoding of Unicode characters.</summary>
|
||||
public class Apple2e : SingleByteEncoding
|
||||
{
|
||||
@@ -288,4 +288,3 @@ namespace Claunia.Encoding
|
||||
_ => 0x3F
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -26,8 +26,8 @@
|
||||
|
||||
using System.Text;
|
||||
|
||||
namespace Claunia.Encoding
|
||||
{
|
||||
namespace Claunia.Encoding;
|
||||
|
||||
/// <summary>Represents an Apple IIgs character encoding of Unicode characters.</summary>
|
||||
public class Apple2gs : SingleByteEncodingWithRunes
|
||||
{
|
||||
@@ -324,4 +324,3 @@ namespace Claunia.Encoding
|
||||
_ => 0xBF
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -26,8 +26,8 @@
|
||||
|
||||
using System.Text;
|
||||
|
||||
namespace Claunia.Encoding
|
||||
{
|
||||
namespace Claunia.Encoding;
|
||||
|
||||
/// <summary>Represents an Atari ST character encoding of Unicode characters.</summary>
|
||||
public class AtariST : SingleByteEncodingWithRunes
|
||||
{
|
||||
@@ -448,4 +448,3 @@ namespace Claunia.Encoding
|
||||
_ => 0x3F
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -29,8 +29,8 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Claunia.Encoding
|
||||
{
|
||||
namespace Claunia.Encoding;
|
||||
|
||||
/// <summary>This class contains static instances of the supported encodings.</summary>
|
||||
public abstract class Encoding : System.Text.Encoding
|
||||
{
|
||||
@@ -122,4 +122,3 @@ namespace Claunia.Encoding
|
||||
return System.Text.Encoding.GetEncoding(name);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4,8 +4,8 @@
|
||||
|
||||
using System;
|
||||
|
||||
namespace Claunia.Encoding
|
||||
{
|
||||
namespace Claunia.Encoding;
|
||||
|
||||
/// <summary>Provides basic information about an encoding.</summary>
|
||||
public sealed class EncodingInfo
|
||||
{
|
||||
@@ -55,4 +55,3 @@ namespace Claunia.Encoding
|
||||
/// <returns>A 32-bit signed integer hash code.</returns>
|
||||
public override int GetHashCode() => CodePage;
|
||||
}
|
||||
}
|
||||
@@ -26,8 +26,8 @@
|
||||
|
||||
using System.Text;
|
||||
|
||||
namespace Claunia.Encoding
|
||||
{
|
||||
namespace Claunia.Encoding;
|
||||
|
||||
/// <summary>Represents a GEM character encoding of Unicode characters.</summary>
|
||||
public class GEM : SingleByteEncodingWithRunes
|
||||
{
|
||||
@@ -445,4 +445,3 @@ namespace Claunia.Encoding
|
||||
_ => 0x3F
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -24,8 +24,8 @@
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
namespace Claunia.Encoding
|
||||
{
|
||||
namespace Claunia.Encoding;
|
||||
|
||||
/// <summary>Represents an GEOS character encoding of Unicode characters.</summary>
|
||||
public class GEOS : SingleByteEncoding
|
||||
{
|
||||
@@ -406,4 +406,3 @@ namespace Claunia.Encoding
|
||||
_ => 0x3F
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -24,8 +24,8 @@
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
namespace Claunia.Encoding
|
||||
{
|
||||
namespace Claunia.Encoding;
|
||||
|
||||
/// <summary>Represents an Apple Lisa character encoding of Unicode characters.</summary>
|
||||
public class LisaRoman : SingleByteEncoding
|
||||
{
|
||||
@@ -380,4 +380,3 @@ namespace Claunia.Encoding
|
||||
_ => 0x3F
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -24,8 +24,8 @@
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
namespace Claunia.Encoding
|
||||
{
|
||||
namespace Claunia.Encoding;
|
||||
|
||||
/// <summary>Represents an Mac Arabic character encoding of Unicode characters.</summary>
|
||||
public class MacArabic : SingleByteEncoding
|
||||
{
|
||||
@@ -396,4 +396,3 @@ namespace Claunia.Encoding
|
||||
_ => 0x3F
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -24,8 +24,8 @@
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
namespace Claunia.Encoding
|
||||
{
|
||||
namespace Claunia.Encoding;
|
||||
|
||||
/// <summary>Represents an Mac CentralEuropean character encoding of Unicode characters.</summary>
|
||||
public class MacCentralEuropean : SingleByteEncoding
|
||||
{
|
||||
@@ -422,4 +422,3 @@ namespace Claunia.Encoding
|
||||
_ => 0x3F
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -24,8 +24,8 @@
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
namespace Claunia.Encoding
|
||||
{
|
||||
namespace Claunia.Encoding;
|
||||
|
||||
/// <summary>Represents an Mac Croatian character encoding of Unicode characters.</summary>
|
||||
public class MacCroatian : SingleByteEncoding
|
||||
{
|
||||
@@ -421,4 +421,3 @@ namespace Claunia.Encoding
|
||||
_ => 0x3F
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -24,8 +24,8 @@
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
namespace Claunia.Encoding
|
||||
{
|
||||
namespace Claunia.Encoding;
|
||||
|
||||
/// <summary>Represents an Mac Cyrillic character encoding of Unicode characters.</summary>
|
||||
public class MacCyrillic : SingleByteEncoding
|
||||
{
|
||||
@@ -422,4 +422,3 @@ namespace Claunia.Encoding
|
||||
_ => 0x3F
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -24,8 +24,8 @@
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
namespace Claunia.Encoding
|
||||
{
|
||||
namespace Claunia.Encoding;
|
||||
|
||||
/// <summary>Represents an Mac Farsi character encoding of Unicode characters.</summary>
|
||||
public class MacFarsi : SingleByteEncoding
|
||||
{
|
||||
@@ -396,4 +396,3 @@ namespace Claunia.Encoding
|
||||
_ => 0x3F
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -24,8 +24,8 @@
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
namespace Claunia.Encoding
|
||||
{
|
||||
namespace Claunia.Encoding;
|
||||
|
||||
/// <summary>Represents an Mac Greek character encoding of Unicode characters.</summary>
|
||||
public class MacGreek : SingleByteEncoding
|
||||
{
|
||||
@@ -422,4 +422,3 @@ namespace Claunia.Encoding
|
||||
_ => 0x3F
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -24,8 +24,8 @@
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
namespace Claunia.Encoding
|
||||
{
|
||||
namespace Claunia.Encoding;
|
||||
|
||||
/// <summary>Represents an Mac Hebrew character encoding of Unicode characters.</summary>
|
||||
public class MacHebrew : SingleByteEncoding
|
||||
{
|
||||
@@ -387,4 +387,3 @@ namespace Claunia.Encoding
|
||||
_ => 0x3F
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -24,8 +24,8 @@
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
namespace Claunia.Encoding
|
||||
{
|
||||
namespace Claunia.Encoding;
|
||||
|
||||
/// <summary>Represents an Apple Mac character encoding of Unicode characters.</summary>
|
||||
public class MacRoman : SingleByteEncoding
|
||||
{
|
||||
@@ -422,4 +422,3 @@ namespace Claunia.Encoding
|
||||
_ => 0x3F
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -24,8 +24,8 @@
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
namespace Claunia.Encoding
|
||||
{
|
||||
namespace Claunia.Encoding;
|
||||
|
||||
/// <summary>Represents an Apple Mac character encoding of Unicode characters.</summary>
|
||||
public class MacRomanian : SingleByteEncoding
|
||||
{
|
||||
@@ -421,4 +421,3 @@ namespace Claunia.Encoding
|
||||
_ => 0x3F
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -24,8 +24,8 @@
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
namespace Claunia.Encoding
|
||||
{
|
||||
namespace Claunia.Encoding;
|
||||
|
||||
/// <summary>Represents an Mac Turkish character encoding of Unicode characters.</summary>
|
||||
public class MacTurkish : SingleByteEncoding
|
||||
{
|
||||
@@ -421,4 +421,3 @@ namespace Claunia.Encoding
|
||||
_ => 0x3F
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -24,8 +24,8 @@
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
namespace Claunia.Encoding
|
||||
{
|
||||
namespace Claunia.Encoding;
|
||||
|
||||
/// <summary>Represents an Mac Ukrainian character encoding of Unicode characters.</summary>
|
||||
public class MacUkrainian : SingleByteEncoding
|
||||
{
|
||||
@@ -422,4 +422,3 @@ namespace Claunia.Encoding
|
||||
_ => 0x3F
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -26,8 +26,8 @@
|
||||
|
||||
using System.Text;
|
||||
|
||||
namespace Claunia.Encoding
|
||||
{
|
||||
namespace Claunia.Encoding;
|
||||
|
||||
/// <summary>
|
||||
/// Represents an Commodore PET Standard Code for Information Interchange (aka CBM ASCII) character encoding of
|
||||
/// Unicode characters.
|
||||
@@ -211,4 +211,3 @@ namespace Claunia.Encoding
|
||||
return 0x3F;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -24,8 +24,8 @@
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
namespace Claunia.Encoding
|
||||
{
|
||||
namespace Claunia.Encoding;
|
||||
|
||||
/// <summary>Class containing pangrams for several languages that can be used to test encoding.</summary>
|
||||
public static class Pangrams
|
||||
{
|
||||
@@ -130,4 +130,3 @@ namespace Claunia.Encoding
|
||||
/// <summary>A pangram that contains all (or most) Welsh characters.</summary>
|
||||
public const string WELSH = "Parciais fy jac codi baw hud llawn dŵr ger tŷ Mabon.";
|
||||
}
|
||||
}
|
||||
@@ -26,8 +26,8 @@
|
||||
|
||||
using System;
|
||||
|
||||
namespace Claunia.Encoding
|
||||
{
|
||||
namespace Claunia.Encoding;
|
||||
|
||||
/// <summary>Represents an Radix-50 (PDP-11) character encoding of Unicode characters.</summary>
|
||||
public class Radix50 : SingleByteEncoding
|
||||
{
|
||||
@@ -346,4 +346,3 @@ namespace Claunia.Encoding
|
||||
_ => 0x1C
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
|
||||
namespace Claunia.Encoding
|
||||
{
|
||||
namespace Claunia.Encoding;
|
||||
|
||||
/// <summary>
|
||||
/// Implements a class that converts to/from a single byte codepage and UTF-16 representable strings
|
||||
/// </summary>
|
||||
@@ -340,4 +340,3 @@ namespace Claunia.Encoding
|
||||
|
||||
private protected abstract byte GetByte(char character);
|
||||
}
|
||||
}
|
||||
@@ -3,8 +3,8 @@ using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Claunia.Encoding
|
||||
{
|
||||
namespace Claunia.Encoding;
|
||||
|
||||
/// <summary>
|
||||
/// Implements a class that converts to/from a single byte codepage and strings that contains elements that need
|
||||
/// surrogates in UTF-16, using runes.
|
||||
@@ -372,4 +372,3 @@ namespace Claunia.Encoding
|
||||
|
||||
private protected abstract byte GetByte(Rune character);
|
||||
}
|
||||
}
|
||||
@@ -26,8 +26,8 @@
|
||||
|
||||
using System.Text;
|
||||
|
||||
namespace Claunia.Encoding
|
||||
{
|
||||
namespace Claunia.Encoding;
|
||||
|
||||
/// <summary>Represents a ZX80 character encoding of Unicode characters.</summary>
|
||||
public class ZX80 : SingleByteEncodingWithRunes
|
||||
{
|
||||
@@ -275,4 +275,3 @@ namespace Claunia.Encoding
|
||||
_ => 0x0F
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -26,8 +26,8 @@
|
||||
|
||||
using System.Text;
|
||||
|
||||
namespace Claunia.Encoding
|
||||
{
|
||||
namespace Claunia.Encoding;
|
||||
|
||||
/// <summary>Represents a ZX81 character encoding of Unicode characters.</summary>
|
||||
public class ZX81 : SingleByteEncodingWithRunes
|
||||
{
|
||||
@@ -275,4 +275,3 @@ namespace Claunia.Encoding
|
||||
_ => 0x0F
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -24,8 +24,8 @@
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
namespace Claunia.Encoding
|
||||
{
|
||||
namespace Claunia.Encoding;
|
||||
|
||||
/// <summary>Represents an ZX Spectrum character encoding of Unicode characters.</summary>
|
||||
public class ZXSpectrum : SingleByteEncoding
|
||||
{
|
||||
@@ -276,4 +276,3 @@ namespace Claunia.Encoding
|
||||
_ => 0x3F
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user