//\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
// 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 HInt16 {
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

public static bool TryParse(string src,out Int16 dst,out HParseValueException e)
   { return HValueParser.TryParse(src,out dst,out e); }
public static bool TryParse(string src,Int16 def,out Int16 dst,out HParseValueException e)
   { return HValueParser.TryParse(src,def,out dst,out e); }

public static bool TryParse( string src, NumberStyles styles,
                             out Int16 dst, out HParseValueException e )
   { return HNumParser.TryParse(src,styles,out dst,out e); }
public static bool TryParse( string src, NumberStyles styles, Int16 def,
                             out Int16 dst, out HParseValueException e )
   { return HNumParser.TryParse(src,styles,def,out dst,out e); }

public static bool TryParse( string src, IFormatProvider provider,
                             out Int16 dst, out HParseValueException e )
   { return HValueParser.TryParse(src,provider,out dst,out e); }
public static bool TryParse( string src, IFormatProvider provider, Int16 def,
                             out Int16 dst, out HParseValueException e )
   { return HValueParser.TryParse(src,provider,def,out dst,out e); }

public static bool TryParse( string src, NumberStyles styles, IFormatProvider provider,
                             out Int16 dst, out HParseValueException e )
   { return HNumParser.TryParse(src,styles,provider,out dst,out e); }
public static bool TryParse( string src, NumberStyles styles,
                             IFormatProvider provider, Int16 def,
                             out Int16 dst, out HParseValueException e )
   { return HNumParser.TryParse(src,styles,provider,def,out dst,out e); }

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

public static bool TryParseInvariant(string src,out Int16 dst,out HParseValueException e)
   { return HNumParser.TryParseInvariant(src,out dst,out e); }
public static bool TryParseInvariant( string src, Int16 def,
                                      out Int16 dst, out HParseValueException e )
   { return HNumParser.TryParseInvariant(src,def,out dst,out e); }

public static bool TryParseInvariant( string src, NumberStyles styles,
                                      out Int16 dst, out HParseValueException e )
   { return HNumParser.TryParseInvariant(src,styles,out dst,out e); }
public static bool TryParseInvariant( string src, NumberStyles styles, Int16 def,
                                      out Int16 dst, out HParseValueException e )
   { return HNumParser.TryParseInvariant(src,styles,def,out dst,out e); }

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
} // HInt16
//**************************************************************************************************

} // CommonHelpers (.WASM)
