Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdAnsiTextIterator.cs
Go to the documentation of this file.
1//------------------------------------------------------------------------------
2// <auto-generated />
3//
4// This file was automatically generated by SWIG (http://www.swig.org).
5// Version 4.0.2
6//
7// Do not make changes to this file unless you know what you are doing--modify
8// the SWIG interface file instead.
9//------------------------------------------------------------------------------
10
11namespace Teigha.Core {
12
13using System;
14using System.Runtime.InteropServices;
15
16public class OdAnsiTextIterator : global::System.IDisposable {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 protected bool swigCMemOwn;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdAnsiTextIterator(IntPtr cPtr, bool cMemoryOwn) {
22 swigCMemOwn = cMemoryOwn;
23 swigCPtr = new HandleRef(this, cPtr);
24 }
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdAnsiTextIterator obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
31 Dispose(false);
32 }
33
34 public void Dispose() {
35 Dispose(true);
36 global::System.GC.SuppressFinalize(this);
37 }
38
39 protected virtual void Dispose(bool disposing) {
40 lock(this) {
41 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
42 if (swigCMemOwn) {
43 swigCMemOwn = false;
45 }
46 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
47 }
48 }
49 }
50
51 public static bool OdAnsiTextIteratorNotRequired(String str, OdCodePageId codepage) {
54 return ret;
55 }
56
57 public OdAnsiTextIterator(String str, OdCodePageId codepage) : this(GlobalsPINVOKE.new_OdAnsiTextIterator(str, (int)codepage), true) {
59 }
60
61 public string currPos() {
62 string ret = GlobalsPINVOKE.OdAnsiTextIterator_currPos(swigCPtr);
64 return ret;
65 }
66
67 public char __ref__() {
68// test csout
69 /*SIMPLETYPE*/
70 char ret = GlobalsPINVOKE.OdAnsiTextIterator___ref__(swigCPtr);
72 return ret;
73 }
74
75 public char nextChar() {
76// test csout
77 /*SIMPLETYPE*/
78 char ret = GlobalsPINVOKE.OdAnsiTextIterator_nextChar(swigCPtr);
80 return ret;
81 }
82
83 public int breakSafely(int len, ref string s) {
84IntPtr tmp_s = Marshal.StringToCoTaskMemUni(s);
85 IntPtr saved_s = tmp_s;
86 try {
87 int ret = GlobalsPINVOKE.OdAnsiTextIterator_breakSafely(swigCPtr, len, ref tmp_s);
89 return ret;
90 } finally {
91if (tmp_s != saved_s) s = Marshal.PtrToStringUni(tmp_s);
92 }
93 }
94
95}
96
97}
static global::System.Exception Retrieve()
static int OdAnsiTextIterator_breakSafely(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, ref IntPtr jarg3)
static string OdAnsiTextIterator_currPos(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_OdAnsiTextIterator(global::System.Runtime.InteropServices.HandleRef jarg1)
static char OdAnsiTextIterator___ref__(global::System.Runtime.InteropServices.HandleRef jarg1)
static char OdAnsiTextIterator_nextChar(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdAnsiTextIterator_OdAnsiTextIteratorNotRequired([MarshalAs(UnmanagedType.LPWStr)]String jarg1, int jarg2)
OdAnsiTextIterator(IntPtr cPtr, bool cMemoryOwn)
int breakSafely(int len, ref string s)
static bool OdAnsiTextIteratorNotRequired(String str, OdCodePageId codepage)
OdAnsiTextIterator(String str, OdCodePageId codepage)
static HandleRef getCPtr(OdAnsiTextIterator obj)
virtual void Dispose(bool disposing)