Beispiel #1
0
 public void EncodeVithCheck(EncodeCheck encodeCheck)
 {
     if (pictureBoxEncode.Image != null)
     {
         try
         {
             encodeCheck();
         }
         catch (ArgumentException ae)
         {
             MessageBox.Show("NO RUSSIAN");
             Clipboard.SetText(richTextBoxEncode.Text);
             richTextBoxEncode.Text = null;
             MessageBox.Show("Текст скопирован в буфер обмена, к кодировке пригоден только латинский алфавит");
         }
     }
     else
     {
         MessageBox.Show("Select image first");
     }
 }
 /** ロード。
  *
  *      a_url							: URL
  *      a_post == null					: GET
  *
  */
 public static string Load(string a_url, System.Collections.Generic.List <UnityEngine.Networking.IMultipartFormSection> a_post)
 {
     byte[]             t_binary = LoadBinaryWithUrl.Load(a_url, a_post);
     EncodeCheck.Result t_result = EncodeCheck.GetEncoding(t_binary);
     return(t_result.encoding.GetString(t_binary, t_result.bomsize, t_binary.Length - t_result.bomsize));
 }
 /** ロード。
  *
  *      a_assets_path_with_extention	: 「Assets」からの相対パス。拡張子付き。
  *
  */
 public static string Load(string a_assets_path_with_extention)
 {
     byte[]             t_binary = LoadBinaryWithFullPath.Load(AssetLib.GetApplicationDataPath() + '\\' + a_assets_path_with_extention);
     EncodeCheck.Result t_result = EncodeCheck.GetEncoding(t_binary);
     return(t_result.encoding.GetString(t_binary, t_result.bomsize, t_binary.Length - t_result.bomsize));
 }
 /** ロード。
  *
  *      a_full_path_with_extention		: フルパス。拡張子付き。
  *
  */
 public static string Load(string a_full_path_with_extention)
 {
     byte[]             t_binary = LoadBinaryWithFullPath.Load(a_full_path_with_extention);
     EncodeCheck.Result t_result = EncodeCheck.GetEncoding(t_binary);
     return(t_result.encoding.GetString(t_binary, t_result.bomsize, t_binary.Length - t_result.bomsize));
 }