//\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
// CommonHelpers satellite library | Author: Sergei Y.Kitáev
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
using System;
using System.Globalization;

#if !WASM
namespace CommonHelpers {
#else
namespace CommonHelpers.WASM {
#endif

//**************************************************************************************************
public static partial class HDecimal {
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

public static decimal Parse(string src)
   { return HValueParser.Parse<decimal>(src); }
public static decimal Parse(string src,decimal def)
   { return HValueParser.Parse<decimal>(src,def); }

public static decimal Parse(string src,NumberStyles styles)
   { return HNumParser.Parse<decimal>(src,styles); }
public static decimal Parse(string src,NumberStyles styles,decimal def)
   { return HNumParser.Parse<decimal>(src,styles,def); }

public static decimal Parse(string src,IFormatProvider provider)
   { return HValueParser.Parse<decimal>(src,provider); }
public static decimal Parse(string src,IFormatProvider provider,decimal def)
   { return HValueParser.Parse<decimal>(src,provider,def); }

public static decimal Parse(string src,NumberStyles styles,IFormatProvider provider)
   { return HNumParser.Parse<decimal>(src,styles,provider); }
public static decimal Parse( string src, NumberStyles styles,
                                    IFormatProvider provider, decimal def )
   { return HNumParser.Parse<decimal>(src,styles,provider,def); }

//--------------------------------------------------------------------------------------------------

public static decimal ParseInvariant(string src)
   { return HNumParser.ParseInvariant<decimal>(src); }
public static decimal ParseInvariant(string src,decimal def)
   { return HNumParser.ParseInvariant<decimal>(src,def); }

public static decimal ParseInvariant(string src,NumberStyles styles)
   { return HNumParser.ParseInvariant<decimal>(src,styles); }
public static decimal ParseInvariant(string src,NumberStyles styles,decimal def)
   { return HNumParser.ParseInvariant<decimal>(src,styles,def); }

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
} // HDecimal
//**************************************************************************************************

} // CommonHelpers (.WASM)
