private static string GetName(GumboTag tag) { return tag.ToString().Substring("GUMBO_TAG_".Length).ToLower(); }
public static extern IntPtr gumbo_normalized_tagname(GumboTag tag);
static string GetName(GumboTag tag) => tag.ToString().Substring("GUMBO_TAG_".Length).ToLower().Replace('_', '-');
/// <summary> /// Returns the normalized (usually all-lowercased, except for foreign content) /// tag name for an GumboTag enum. Return value is static data owned by the /// library. /// </summary> /// <param name="tag"></param> /// <returns></returns> [DllImport(LibraryName, CallingConvention = CallingConvention.Cdecl)] public static extern IntPtr gumbo_normalized_tagname(GumboTag tag);
private static string GetName(GumboTag tag) { return(tag.ToString().Substring("GUMBO_TAG_".Length).ToLower().Replace('_', '-')); }