-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
2,412 additions
and
0 deletions.
There are no files selected for viewing
570 changes: 570 additions & 0 deletions
570
...ibHighlightSharp.Bindings/Smdn.LibHighlightSharp.Bindings/highlight-4.12/CodeGenerator.cs
Large diffs are not rendered by default.
Oops, something went wrong.
265 changes: 265 additions & 0 deletions
265
...Smdn.LibHighlightSharp.Bindings/Smdn.LibHighlightSharp.Bindings/highlight-4.12/DataDir.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,265 @@ | ||
//------------------------------------------------------------------------------ | ||
// <auto-generated /> | ||
// | ||
// This file was automatically generated by SWIG (http://www.swig.org). | ||
// Version 4.0.2 | ||
// | ||
// Do not make changes to this file unless you know what you are doing--modify | ||
// the SWIG interface file instead. | ||
//------------------------------------------------------------------------------ | ||
|
||
namespace Smdn.LibHighlightSharp.Bindings { | ||
|
||
public class DataDir : global::System.IDisposable { | ||
private global::System.Runtime.InteropServices.HandleRef swigCPtr; | ||
protected bool swigCMemOwn; | ||
|
||
internal DataDir(global::System.IntPtr cPtr, bool cMemoryOwn) { | ||
swigCMemOwn = cMemoryOwn; | ||
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); | ||
} | ||
|
||
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(DataDir obj) { | ||
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; | ||
} | ||
|
||
~DataDir() { | ||
Dispose(false); | ||
} | ||
|
||
public void Dispose() { | ||
Dispose(true); | ||
global::System.GC.SuppressFinalize(this); | ||
} | ||
|
||
protected virtual void Dispose(bool disposing) { | ||
lock(this) { | ||
if (swigCPtr.Handle != global::System.IntPtr.Zero) { | ||
if (swigCMemOwn) { | ||
swigCMemOwn = false; | ||
highlightPINVOKE.delete_DataDir(swigCPtr); | ||
} | ||
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); | ||
} | ||
} | ||
} | ||
|
||
public SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_t assocByExtension { | ||
set { | ||
highlightPINVOKE.DataDir_assocByExtension_set(swigCPtr, SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_t.getCPtr(value)); | ||
} | ||
get { | ||
global::System.IntPtr cPtr = highlightPINVOKE.DataDir_assocByExtension_get(swigCPtr); | ||
SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_t ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_t(cPtr, false); | ||
return ret; | ||
} | ||
} | ||
|
||
public SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_t assocByFilename { | ||
set { | ||
highlightPINVOKE.DataDir_assocByFilename_set(swigCPtr, SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_t.getCPtr(value)); | ||
} | ||
get { | ||
global::System.IntPtr cPtr = highlightPINVOKE.DataDir_assocByFilename_get(swigCPtr); | ||
SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_t ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_t(cPtr, false); | ||
return ret; | ||
} | ||
} | ||
|
||
public SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_t assocByShebang { | ||
set { | ||
highlightPINVOKE.DataDir_assocByShebang_set(swigCPtr, SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_t.getCPtr(value)); | ||
} | ||
get { | ||
global::System.IntPtr cPtr = highlightPINVOKE.DataDir_assocByShebang_get(swigCPtr); | ||
SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_t ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_t(cPtr, false); | ||
return ret; | ||
} | ||
} | ||
|
||
public SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_t encodingHint { | ||
set { | ||
highlightPINVOKE.DataDir_encodingHint_set(swigCPtr, SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_t.getCPtr(value)); | ||
} | ||
get { | ||
global::System.IntPtr cPtr = highlightPINVOKE.DataDir_encodingHint_get(swigCPtr); | ||
SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_t ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_t(cPtr, false); | ||
return ret; | ||
} | ||
} | ||
|
||
public static string LSB_DATA_DIR { | ||
set { | ||
highlightPINVOKE.DataDir_LSB_DATA_DIR_set(value); | ||
if (highlightPINVOKE.SWIGPendingException.Pending) throw highlightPINVOKE.SWIGPendingException.Retrieve(); | ||
} | ||
get { | ||
string ret = highlightPINVOKE.DataDir_LSB_DATA_DIR_get(); | ||
if (highlightPINVOKE.SWIGPendingException.Pending) throw highlightPINVOKE.SWIGPendingException.Retrieve(); | ||
return ret; | ||
} | ||
} | ||
|
||
public static string LSB_CFG_DIR { | ||
set { | ||
highlightPINVOKE.DataDir_LSB_CFG_DIR_set(value); | ||
if (highlightPINVOKE.SWIGPendingException.Pending) throw highlightPINVOKE.SWIGPendingException.Retrieve(); | ||
} | ||
get { | ||
string ret = highlightPINVOKE.DataDir_LSB_CFG_DIR_get(); | ||
if (highlightPINVOKE.SWIGPendingException.Pending) throw highlightPINVOKE.SWIGPendingException.Retrieve(); | ||
return ret; | ||
} | ||
} | ||
|
||
public static string LSB_DOC_DIR { | ||
set { | ||
highlightPINVOKE.DataDir_LSB_DOC_DIR_set(value); | ||
if (highlightPINVOKE.SWIGPendingException.Pending) throw highlightPINVOKE.SWIGPendingException.Retrieve(); | ||
} | ||
get { | ||
string ret = highlightPINVOKE.DataDir_LSB_DOC_DIR_get(); | ||
if (highlightPINVOKE.SWIGPendingException.Pending) throw highlightPINVOKE.SWIGPendingException.Retrieve(); | ||
return ret; | ||
} | ||
} | ||
|
||
public void initSearchDirectories(string userDefinedDir) { | ||
highlightPINVOKE.DataDir_initSearchDirectories(swigCPtr, userDefinedDir); | ||
if (highlightPINVOKE.SWIGPendingException.Pending) throw highlightPINVOKE.SWIGPendingException.Retrieve(); | ||
} | ||
|
||
public void printConfigPaths() { | ||
highlightPINVOKE.DataDir_printConfigPaths(swigCPtr); | ||
} | ||
|
||
public string getLangPath(string file) { | ||
string ret = highlightPINVOKE.DataDir_getLangPath__SWIG_0(swigCPtr, file); | ||
if (highlightPINVOKE.SWIGPendingException.Pending) throw highlightPINVOKE.SWIGPendingException.Retrieve(); | ||
return ret; | ||
} | ||
|
||
public string getThemePath() { | ||
string ret = highlightPINVOKE.DataDir_getThemePath__SWIG_0(swigCPtr); | ||
return ret; | ||
} | ||
|
||
public string getLangPath() { | ||
string ret = highlightPINVOKE.DataDir_getLangPath__SWIG_1(swigCPtr); | ||
return ret; | ||
} | ||
|
||
public string getSystemDataPath() { | ||
string ret = highlightPINVOKE.DataDir_getSystemDataPath(swigCPtr); | ||
return ret; | ||
} | ||
|
||
public string getPluginPath() { | ||
string ret = highlightPINVOKE.DataDir_getPluginPath__SWIG_0(swigCPtr); | ||
return ret; | ||
} | ||
|
||
public string getThemePath(string file, bool base16) { | ||
string ret = highlightPINVOKE.DataDir_getThemePath__SWIG_1(swigCPtr, file, base16); | ||
if (highlightPINVOKE.SWIGPendingException.Pending) throw highlightPINVOKE.SWIGPendingException.Retrieve(); | ||
return ret; | ||
} | ||
|
||
public string getThemePath(string file) { | ||
string ret = highlightPINVOKE.DataDir_getThemePath__SWIG_2(swigCPtr, file); | ||
if (highlightPINVOKE.SWIGPendingException.Pending) throw highlightPINVOKE.SWIGPendingException.Retrieve(); | ||
return ret; | ||
} | ||
|
||
public string getFiletypesConfPath(string path) { | ||
string ret = highlightPINVOKE.DataDir_getFiletypesConfPath__SWIG_0(swigCPtr, path); | ||
if (highlightPINVOKE.SWIGPendingException.Pending) throw highlightPINVOKE.SWIGPendingException.Retrieve(); | ||
return ret; | ||
} | ||
|
||
public string getFiletypesConfPath() { | ||
string ret = highlightPINVOKE.DataDir_getFiletypesConfPath__SWIG_1(swigCPtr); | ||
return ret; | ||
} | ||
|
||
public string getPluginPath(string arg0) { | ||
string ret = highlightPINVOKE.DataDir_getPluginPath__SWIG_1(swigCPtr, arg0); | ||
if (highlightPINVOKE.SWIGPendingException.Pending) throw highlightPINVOKE.SWIGPendingException.Retrieve(); | ||
return ret; | ||
} | ||
|
||
public string getI18nDir() { | ||
string ret = highlightPINVOKE.DataDir_getI18nDir(swigCPtr); | ||
return ret; | ||
} | ||
|
||
public string getExtDir() { | ||
string ret = highlightPINVOKE.DataDir_getExtDir(swigCPtr); | ||
return ret; | ||
} | ||
|
||
public string getDocDir() { | ||
string ret = highlightPINVOKE.DataDir_getDocDir(swigCPtr); | ||
return ret; | ||
} | ||
|
||
public string getEncodingHint(string arg0) { | ||
string ret = highlightPINVOKE.DataDir_getEncodingHint(swigCPtr, arg0); | ||
if (highlightPINVOKE.SWIGPendingException.Pending) throw highlightPINVOKE.SWIGPendingException.Retrieve(); | ||
return ret; | ||
} | ||
|
||
public string getFileSuffix(string fileName) { | ||
string ret = highlightPINVOKE.DataDir_getFileSuffix(swigCPtr, fileName); | ||
if (highlightPINVOKE.SWIGPendingException.Pending) throw highlightPINVOKE.SWIGPendingException.Retrieve(); | ||
return ret; | ||
} | ||
|
||
public string guessFileType(string suffix, string inputFile, bool useUserSuffix, bool forceShebangCheckStdin) { | ||
string ret = highlightPINVOKE.DataDir_guessFileType__SWIG_0(swigCPtr, suffix, inputFile, useUserSuffix, forceShebangCheckStdin); | ||
if (highlightPINVOKE.SWIGPendingException.Pending) throw highlightPINVOKE.SWIGPendingException.Retrieve(); | ||
return ret; | ||
} | ||
|
||
public string guessFileType(string suffix, string inputFile, bool useUserSuffix) { | ||
string ret = highlightPINVOKE.DataDir_guessFileType__SWIG_1(swigCPtr, suffix, inputFile, useUserSuffix); | ||
if (highlightPINVOKE.SWIGPendingException.Pending) throw highlightPINVOKE.SWIGPendingException.Retrieve(); | ||
return ret; | ||
} | ||
|
||
public string guessFileType(string suffix, string inputFile) { | ||
string ret = highlightPINVOKE.DataDir_guessFileType__SWIG_2(swigCPtr, suffix, inputFile); | ||
if (highlightPINVOKE.SWIGPendingException.Pending) throw highlightPINVOKE.SWIGPendingException.Retrieve(); | ||
return ret; | ||
} | ||
|
||
public bool loadFileTypeConfig(string name) { | ||
bool ret = highlightPINVOKE.DataDir_loadFileTypeConfig(swigCPtr, name); | ||
if (highlightPINVOKE.SWIGPendingException.Pending) throw highlightPINVOKE.SWIGPendingException.Retrieve(); | ||
return ret; | ||
} | ||
|
||
public bool loadLSPConfig(string name) { | ||
bool ret = highlightPINVOKE.DataDir_loadLSPConfig(swigCPtr, name); | ||
if (highlightPINVOKE.SWIGPendingException.Pending) throw highlightPINVOKE.SWIGPendingException.Retrieve(); | ||
return ret; | ||
} | ||
|
||
public bool profileExists(string profile) { | ||
bool ret = highlightPINVOKE.DataDir_profileExists(swigCPtr, profile); | ||
if (highlightPINVOKE.SWIGPendingException.Pending) throw highlightPINVOKE.SWIGPendingException.Retrieve(); | ||
return ret; | ||
} | ||
|
||
public SWIGTYPE_p_highlight__LSPProfile getProfile(string profile) { | ||
SWIGTYPE_p_highlight__LSPProfile ret = new SWIGTYPE_p_highlight__LSPProfile(highlightPINVOKE.DataDir_getProfile(swigCPtr, profile), false); | ||
if (highlightPINVOKE.SWIGPendingException.Pending) throw highlightPINVOKE.SWIGPendingException.Retrieve(); | ||
return ret; | ||
} | ||
|
||
public DataDir() : this(highlightPINVOKE.new_DataDir(), true) { | ||
} | ||
|
||
} | ||
|
||
} |
20 changes: 20 additions & 0 deletions
20
...mdn.LibHighlightSharp.Bindings/Smdn.LibHighlightSharp.Bindings/highlight-4.12/LSResult.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
//------------------------------------------------------------------------------ | ||
// <auto-generated /> | ||
// | ||
// This file was automatically generated by SWIG (http://www.swig.org). | ||
// Version 4.0.2 | ||
// | ||
// Do not make changes to this file unless you know what you are doing--modify | ||
// the SWIG interface file instead. | ||
//------------------------------------------------------------------------------ | ||
|
||
namespace Smdn.LibHighlightSharp.Bindings { | ||
|
||
public enum LSResult { | ||
INIT_OK, | ||
INIT_BAD_PIPE, | ||
INIT_BAD_REQUEST, | ||
CMD_ERROR | ||
} | ||
|
||
} |
20 changes: 20 additions & 0 deletions
20
...n.LibHighlightSharp.Bindings/Smdn.LibHighlightSharp.Bindings/highlight-4.12/LoadResult.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
//------------------------------------------------------------------------------ | ||
// <auto-generated /> | ||
// | ||
// This file was automatically generated by SWIG (http://www.swig.org). | ||
// Version 4.0.2 | ||
// | ||
// Do not make changes to this file unless you know what you are doing--modify | ||
// the SWIG interface file instead. | ||
//------------------------------------------------------------------------------ | ||
|
||
namespace Smdn.LibHighlightSharp.Bindings { | ||
|
||
public enum LoadResult { | ||
LOAD_OK, | ||
LOAD_FAILED, | ||
LOAD_FAILED_REGEX, | ||
LOAD_FAILED_LUA | ||
} | ||
|
||
} |
28 changes: 28 additions & 0 deletions
28
...n.LibHighlightSharp.Bindings/Smdn.LibHighlightSharp.Bindings/highlight-4.12/OutputType.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
//------------------------------------------------------------------------------ | ||
// <auto-generated /> | ||
// | ||
// This file was automatically generated by SWIG (http://www.swig.org). | ||
// Version 4.0.2 | ||
// | ||
// Do not make changes to this file unless you know what you are doing--modify | ||
// the SWIG interface file instead. | ||
//------------------------------------------------------------------------------ | ||
|
||
namespace Smdn.LibHighlightSharp.Bindings { | ||
|
||
public enum OutputType { | ||
HTML, | ||
XHTML, | ||
TEX, | ||
LATEX, | ||
RTF, | ||
ESC_ANSI, | ||
ESC_XTERM256, | ||
ESC_TRUECOLOR, | ||
SVG, | ||
BBCODE, | ||
PANGO, | ||
ODTFLAT | ||
} | ||
|
||
} |
21 changes: 21 additions & 0 deletions
21
...n.LibHighlightSharp.Bindings/Smdn.LibHighlightSharp.Bindings/highlight-4.12/ParseError.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
//------------------------------------------------------------------------------ | ||
// <auto-generated /> | ||
// | ||
// This file was automatically generated by SWIG (http://www.swig.org). | ||
// Version 4.0.2 | ||
// | ||
// Do not make changes to this file unless you know what you are doing--modify | ||
// the SWIG interface file instead. | ||
//------------------------------------------------------------------------------ | ||
|
||
namespace Smdn.LibHighlightSharp.Bindings { | ||
|
||
public enum ParseError { | ||
PARSE_OK, | ||
BAD_INPUT = 1, | ||
BAD_OUTPUT = 2, | ||
BAD_STYLE = 4, | ||
BAD_BINARY = 8 | ||
} | ||
|
||
} |
29 changes: 29 additions & 0 deletions
29
...dings/Smdn.LibHighlightSharp.Bindings/highlight-4.12/SWIGTYPE_p_Diluculum__LuaFunction.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
//------------------------------------------------------------------------------ | ||
// <auto-generated /> | ||
// | ||
// This file was automatically generated by SWIG (http://www.swig.org). | ||
// Version 4.0.2 | ||
// | ||
// Do not make changes to this file unless you know what you are doing--modify | ||
// the SWIG interface file instead. | ||
//------------------------------------------------------------------------------ | ||
|
||
namespace Smdn.LibHighlightSharp.Bindings { | ||
|
||
public class SWIGTYPE_p_Diluculum__LuaFunction { | ||
private global::System.Runtime.InteropServices.HandleRef swigCPtr; | ||
|
||
internal SWIGTYPE_p_Diluculum__LuaFunction(global::System.IntPtr cPtr, bool futureUse) { | ||
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); | ||
} | ||
|
||
protected SWIGTYPE_p_Diluculum__LuaFunction() { | ||
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); | ||
} | ||
|
||
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Diluculum__LuaFunction obj) { | ||
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; | ||
} | ||
} | ||
|
||
} |
Oops, something went wrong.