public void AppendMangledName(NameMangler nameMangler, Utf8StringBuilder sb) { ModuleData.AppendMangledName(nameMangler, sb); sb.Append("__"); sb.Append(EntryPointName); if (CharSetMangling != default) { sb.Append("__"); sb.Append(CharSetMangling.ToString()); } }
/// <summary> /// Return a string representation of this object. /// </summary> public override String ToString() { return(String.Concat(MediaType, "; charset=", CharSet.ToString().Replace("UTF8", "utf-8"))); }
private static string BuildSuffix(FunctionIdentity identity, CharSet charSet) { string suffix = identity.Dll + "_" + identity.Function + "_" + charSet.ToString(); return(suffix.Replace(".", "_")); }
/// <summary> /// Set the target database name that will be imported to and the default character set. If the database if not exists, it will be created. Warning: Select the exact charset as the source database, or else you might experience encoding problem while handling with unicode (non-latin) characters in future. /// </summary> /// <param name="databaseName">The name of database</param> /// <param name="charSet">The database's default character set</param> public void SetTargetDatabase(string databaseName, CharSet charSet) { SetTargetDatabase(databaseName, charSet.ToString()); }
private static string BuildSuffix(CharSet charSet) { string suffix = charSet.ToString(); return(suffix.Replace(".", "_")); }