private static string GetName(GumboTag tag)
 {
     return tag.ToString().Substring("GUMBO_TAG_".Length).ToLower();
 }
Beispiel #2
0
 public static extern IntPtr gumbo_normalized_tagname(GumboTag tag);
Beispiel #3
0
 static string GetName(GumboTag tag) => tag.ToString().Substring("GUMBO_TAG_".Length).ToLower().Replace('_', '-');
Beispiel #4
0
 /// <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);
Beispiel #5
0
 private static string GetName(GumboTag tag)
 {
     return(tag.ToString().Substring("GUMBO_TAG_".Length).ToLower().Replace('_', '-'));
 }
Beispiel #6
0
 public static extern IntPtr gumbo_normalized_tagname(GumboTag tag);