blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
247
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
4
111
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
58
visit_date
timestamp[ns]date
2015-07-25 18:16:41
2023-09-06 10:45:08
revision_date
timestamp[ns]date
1970-01-14 14:03:36
2023-09-06 06:22:19
committer_date
timestamp[ns]date
1970-01-14 14:03:36
2023-09-06 06:22:19
github_id
int64
3.89k
689M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
25 values
gha_event_created_at
timestamp[ns]date
2012-06-07 00:51:45
2023-09-14 21:58:52
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-08-24 19:49:39
gha_language
stringclasses
159 values
src_encoding
stringclasses
34 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
7
10.5M
extension
stringclasses
111 values
filename
stringlengths
1
195
text
stringlengths
7
10.5M
9b05bef7466f0631918b7276eb04e17aa437eda8
afeedc93b8108c18eb58065d3843f69d6fcf6437
/EUD-Ops/src/EudOpsDef.cpp
79af56a397addb545fdd4eee0da4310c4f4520f0
[ "MIT" ]
permissive
TheNitesWhoSay/EUD-Ops
649a5d1f32e275ae5b38f0b1bd5e4874414668f1
99846f59bb96b3d90c071b0216fef9d407d82f1c
refs/heads/master
2022-03-30T11:36:16.470233
2018-01-01T13:52:55
2018-01-01T13:52:55
113,746,442
0
0
null
null
null
null
UTF-8
C++
false
false
1,993
cpp
EudOpsDef.cpp
#include "EudOpsDef.h" const EudOpDef EudOpDef::nullOpDef = EudOpDef(EudOp::Null, "Null", InputSet::None); const std::map<u32, EudOpDef> EudOpDef::eudOpsToDefs = { { (u32)EudOp::Null, nullOpDef }, { (u32)EudOp::SetToConstant, EudOpDef(EudOp::SetToConstant, "Set to Constant", InputSet::Constant) }, { (u32)EudOp::SetToDeaths, EudOpDef(EudOp::SetToDeaths, "Set to Deaths", InputSet::DeathCounter) }, { (u32)EudOp::CopyToDeaths, EudOpDef(EudOp::CopyToDeaths, "Copy to Deaths", InputSet::DeathCounter) }, { (u32)EudOp::CheckEqual, EudOpDef(EudOp::CheckEqual, "Check Equal", InputSet::Constant) }, { (u32)EudOp::CheckAtLeast, EudOpDef(EudOp::CheckAtLeast, "Check At Least", InputSet::Constant) }, { (u32)EudOp::CheckAtMost, EudOpDef(EudOp::CheckAtMost, "Check At Most", InputSet::Constant) }, { (u32)EudOp::CheckGreaterThan, EudOpDef(EudOp::CheckGreaterThan, "Check Greater Than", InputSet::Constant) }, { (u32)EudOp::CheckLessThan, EudOpDef(EudOp::CheckLessThan, "Check Less Than", InputSet::Constant) }, }; static const std::map<u32, int> inputSetToNumArgs; const std::map<u32, int> EudOpDef::inputSetToNumArgs = { { (u32)InputSet::None, 0 }, { (u32)InputSet::Constant, 1 }, { (u32)InputSet::DeathCounter, 2} }; std::vector<std::string> EudOpDef::Names() { std::vector<std::string> names; for (auto &entry : eudOpsToDefs) { if (entry.first != (u32)EudOp::Null) names.push_back(entry.second.eudOpName); } return names; } const EudOpDef & EudOpDef::GetDef(std::string &eudOpName) { for (auto &entry : eudOpsToDefs) { if (entry.second.eudOpName.compare(eudOpName) == 0) return entry.second; } return EudOpDef::nullOpDef; } EudOpDef::EudOpDef(const EudOp eudOp, const std::string &eudOpName, InputSet inputSet) : eudOp(eudOp), eudOpName(eudOpName), inputSet(inputSet) { } int EudOpDef::getNumArgs() { return inputSetToNumArgs.find((u32)inputSet)->second; }
12105322a9fc95502f8679d9c6fcecc2b4970670
d4a2c50a90792600c4d864fffe9c1a9d1ebd6acc
/dssf3/SAS/AcfWnd.cpp
da42c85177d651210f4afb813ad69db9bbb427ac
[]
no_license
iwasen/MyProg
3080316c3444e98d013587e92c066e278e796041
a0755a21d77647261df271ce301404a4e0294a7b
refs/heads/master
2022-12-30T00:28:07.539183
2020-10-25T06:36:27
2020-10-25T06:36:27
307,039,466
0
4
null
null
null
null
SHIFT_JIS
C++
false
false
10,912
cpp
AcfWnd.cpp
// AcfWnd.cpp : インプリメンテーション ファイル // #include "stdafx.h" #include "Sas.h" #include "AcfWnd.h" #define MOUSE_SELECT_NONE 0 #define MOUSE_SELECT_START 1 #define MOUSE_SELECT_END 2 #define MOUSE_SCROLL 3 ///////////////////////////////////////////////////////////////////////////// // CAcfWnd CAcfWnd::CAcfWnd() { m_bInitialize = FALSE; m_nMouseMode = MOUSE_SELECT_NONE; m_pCallBackFunc = NULL; m_hCursorArrow = NULL; m_bHScroll = FALSE; } BEGIN_MESSAGE_MAP(CAcfWnd, CWnd) ON_WM_PAINT() ON_WM_ERASEBKGND() ON_WM_LBUTTONDOWN() ON_WM_LBUTTONUP() ON_WM_MOUSEMOVE() ON_WM_SETCURSOR() END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CAcfWnd メッセージ ハンドラ void CAcfWnd::OnPaint() { CPaintDC dc(this); // 描画用のデバイス コンテキスト CBitmap *pBitmapOrg = m_dcMem.SelectObject(&m_bitmapMem); dc.BitBlt(0, 0, m_nWidth, m_nHeight, &m_dcMem, 0, 0, SRCCOPY); m_dcMem.SelectObject(pBitmapOrg); } BOOL CAcfWnd::OnEraseBkgnd(CDC* /*pDC*/) { return TRUE; } void CAcfWnd::Initialize(int nFontSize, LPCTSTR pTitle, PFNGRAPH pCallBackFunc, LPARAM nCallBackData) { RECT rect; if (m_bInitialize) return; m_bInitialize = TRUE; m_pCallBackFunc = pCallBackFunc; m_dwCallBackData = (DWORD)nCallBackData; GetClientRect(&rect); m_nWidth = rect.right; m_nHeight = rect.bottom; CDC *pDC = GetDC(); m_dcMem.CreateCompatibleDC(pDC); m_bitmapMem.CreateCompatibleBitmap(pDC, m_nWidth, m_nHeight); ReleaseDC(pDC); m_penData.CreatePen(PS_SOLID, 0, RGB(0, 0, 255)); m_penLine1.CreatePen(PS_DOT, 0, RGB(255, 0, 0)); m_penLine2.CreatePen(PS_DOT, 0, RGB(0, 255, 0)); m_penBlack.CreatePen(PS_SOLID, 0, RGB(0, 0, 0)); m_penGray.CreatePen(PS_SOLID, 0, RGB(128, 128, 128)); m_penLightGray.CreatePen(PS_SOLID, 0, RGB(192, 192, 192)); m_brushWhite.CreateSolidBrush(RGB(255, 255, 255)); CString str; LOGFONT font; memset(&font, 0, sizeof(font)); font.lfHeight = nFontSize; font.lfCharSet = DEFAULT_CHARSET; str.LoadString(IDS_DEFAULTFONT); strcpy_s(font.lfFaceName, str); m_Font.CreatePointFontIndirect(&font, &m_dcMem); font.lfEscapement = 900; m_Font2.CreatePointFontIndirect(&font, &m_dcMem); m_dcMem.SetBkMode(TRANSPARENT); m_dcMem.SetTextColor(RGB(64, 64, 64)); CFont *pFontOrg = m_dcMem.SelectObject(&m_Font); TEXTMETRIC tm; m_dcMem.GetTextMetrics(&tm); m_dcMem.SelectObject(pFontOrg); m_nScaleLeft = tm.tmAveCharWidth * 4 + tm.tmHeight + 5; m_nScaleTop = 10; m_nScaleRight = m_nWidth - 0; m_nScaleBottom = m_nHeight - ((tm.tmHeight + 1) * 2 + 1); m_nScaleWidth = m_nScaleRight - m_nScaleLeft; m_nScaleHeight = m_nScaleBottom - m_nScaleTop; m_Rgn.CreateRectRgn(m_nScaleLeft, m_nScaleTop, m_nScaleRight, m_nScaleBottom); m_sTitle = pTitle; m_wndRemark.Create(this); CWinApp *pWinApp = AfxGetApp(); m_hCursorArrow = pWinApp->LoadStandardCursor(IDC_ARROW); m_hCursorHScroll = pWinApp->LoadStandardCursor(IDC_SIZEWE); } void CAcfWnd::SetBitmap(double startTime, double dispTime, int nMaxLevel, int nMinLevel, int nStep, int nDiv, LPCTSTR pStr) { CRect rect; CString sText; CSize size; int i; int x, y; double step, t, t1, t2; int ns; int nLevelRange = nMaxLevel - nMinLevel; CBitmap *pBitmapOrg = m_dcMem.SelectObject(&m_bitmapMem); CPen *pPenOrg = m_dcMem.SelectObject(&m_penBlack); CFont *pFontOrg = m_dcMem.SelectObject(&m_Font); m_nScaleZero = m_nScaleTop + m_nScaleHeight * nMaxLevel / nLevelRange; rect.SetRect(0, 0, m_nWidth, m_nHeight); m_dcMem.FillRect(rect, &m_brushWhite); m_dcMem.MoveTo(m_nScaleLeft - 1, m_nScaleTop); m_dcMem.LineTo(m_nScaleLeft - 1, m_nScaleBottom); for (i = nMaxLevel; i >= nMinLevel; i -= nStep) { y = m_nScaleZero - (i * m_nScaleHeight / nLevelRange); if (i == 0) m_dcMem.SelectObject(&m_penBlack); else if (i == nMinLevel) m_dcMem.SelectObject(&m_penGray); else m_dcMem.SelectObject(&m_penLightGray); m_dcMem.MoveTo(m_nScaleLeft, y); m_dcMem.LineTo(m_nScaleRight, y); sText.Format("%g", (double)i / nDiv); size = m_dcMem.GetOutputTextExtent(sText); m_dcMem.TextOut(m_nScaleLeft - size.cx - 2, y - size.cy / 2, sText); } t1 = dispTime / 7; step = pow(10.0, floor(log10(t1))); t2 = t1 / step; if (t2 < 2) { step *= 0.5; ns = 2; } else if (t2 < 5) ns = 2; else ns = 5; for (t = floor(startTime / step) * step; t < startTime + dispTime; t += step) { x = m_nScaleLeft + int((t - startTime) * m_nScaleWidth / dispTime); if (x >= m_nScaleLeft) { if (int(t / step + 0.5) % ns == 0) { if (x > m_nScaleLeft) { m_dcMem.SelectObject(&m_penGray); m_dcMem.MoveTo(x, m_nScaleTop + 1); m_dcMem.LineTo(x, m_nScaleBottom - 1); } sText.Format("%g", t * 1000); size = m_dcMem.GetOutputTextExtent(sText); m_dcMem.TextOut(x - size.cx / 2, m_nScaleBottom + 1, sText); } else { if (x > m_nScaleLeft) { m_dcMem.SelectObject(&m_penLightGray); m_dcMem.MoveTo(x, m_nScaleTop + 1); m_dcMem.LineTo(x, m_nScaleBottom - 1); } } } } sText.LoadString(IDS_TIME); sText += " [ms]"; size = m_dcMem.GetOutputTextExtent(sText); m_dcMem.TextOut(m_nScaleLeft + (m_nScaleWidth - size.cx) / 2, m_nHeight - (size.cy + 1), sText); m_dcMem.SelectObject(&m_Font2); size = m_dcMem.GetOutputTextExtent(pStr); m_dcMem.TextOut(1, m_nScaleTop + (m_nScaleHeight + size.cx) / 2, pStr); m_dcMem.SelectObject(pBitmapOrg); m_dcMem.SelectObject(pPenOrg); m_dcMem.SelectObject(pFontOrg); } void CAcfWnd::DispGraph1(double totalTime, double startTime, double dispTime, const double *pData, int nData, double fTau1, double fPhi1, BOOL bHScroll) { int i, i2; int x; int y; double fOffset; CString str; m_bHScroll = bHScroll; str.LoadString(IDS_PHI_TAU); SetBitmap(startTime, dispTime, 10, -10, 5, 10, str); m_dcMem.SelectClipRgn(&m_Rgn); CBitmap *pBitmapOrg = m_dcMem.SelectObject(&m_bitmapMem); CPen *pPenOrg = m_dcMem.SelectObject(&m_penData); fOffset = startTime / totalTime * nData; i2 = int(fOffset); for (i = i2; i < nData - 1; i++) { x = m_nScaleLeft + int((i - fOffset) * totalTime / dispTime * m_nScaleWidth / nData + 0.5); if (x >= m_nScaleRight) break; y = m_nScaleZero - (int)(pData[i] * m_nScaleHeight / 2 + 0.5); if (i == i2) m_dcMem.MoveTo(x, y); else m_dcMem.LineTo(x, y); } if (fTau1 != 0) { m_dcMem.SelectObject(&m_penLine2); x = m_nScaleLeft + (int)((fTau1 - startTime) / dispTime * m_nScaleWidth); m_dcMem.MoveTo(x, m_nScaleTop); m_dcMem.LineTo(x, m_nScaleBottom); } if (fPhi1 != 0) { m_dcMem.SelectObject(&m_penLine1); y = m_nScaleZero - (int)(fPhi1 * m_nScaleHeight / 2); m_dcMem.MoveTo(m_nScaleLeft, y); m_dcMem.LineTo(m_nScaleRight, y); } m_dcMem.SelectObject(pBitmapOrg); m_dcMem.SelectObject(pPenOrg); m_dcMem.SelectClipRgn(NULL); if (!m_sTitle.IsEmpty()) { CString str1, str2; REMARK_INFO remark; int n = 0; remark.remarks[n].pen = &m_penData; remark.remarks[n++].text = m_sTitle; remark.remarks[n].pen = &m_penLine1; str1.LoadString(IDS_PHI1); remark.remarks[n++].text = str1; remark.remarks[n].pen = &m_penLine2; str2.LoadString(IDS_TAU1); remark.remarks[n++].text = str2; remark.nRemark = n; m_wndRemark.DispRemarks(&remark); } Invalidate(FALSE); UpdateWindow(); } void CAcfWnd::DispGraph2(double totalTime, double startTime, double dispTime, const double *pData, int nData, double fTauE, double fTauE0, int nMaxLevel, int nMinLevel, BOOL bHScroll) { int i, i2; int x; int y; int nLevelRange = nMaxLevel - nMinLevel; CString str; m_bHScroll = bHScroll; str.LoadString(IDS_PHI_TAU); SetBitmap(startTime, dispTime, nMaxLevel, nMinLevel, 5, 1, "log |" + str + "| [dB]"); m_dcMem.SelectClipRgn(&m_Rgn); CBitmap *pBitmapOrg = m_dcMem.SelectObject(&m_bitmapMem); CPen *pPenOrg = m_dcMem.SelectObject(&m_penData); i2 = int(startTime / totalTime * nData); for (i = i2; i < nData - 1; i++) { x = m_nScaleLeft + int((i - i2) * totalTime / dispTime * m_nScaleWidth / nData + 0.5); if (x >= m_nScaleRight) break; y = m_nScaleZero - (int)(pData[i] * m_nScaleHeight / nLevelRange + 0.5); if (i == i2) m_dcMem.MoveTo(x, y); else m_dcMem.LineTo(x, y); } if (fTauE != 0) { double dev = (-10 - fTauE0) / fTauE; m_dcMem.SelectObject(&m_penLine1); x = m_nScaleLeft + (int)(-startTime / dispTime * m_nScaleWidth); y = m_nScaleZero - (int)(fTauE0 * m_nScaleHeight / nLevelRange + 0.5); m_dcMem.MoveTo(x, y); x = m_nScaleLeft + (int)(((nMinLevel - fTauE0) / dev - startTime) / dispTime * m_nScaleWidth); y = m_nScaleBottom; m_dcMem.LineTo(x, y); m_dcMem.SelectObject(&m_penLine2); x = m_nScaleLeft + (int)((fTauE - startTime) / dispTime * m_nScaleWidth); m_dcMem.MoveTo(x, m_nScaleTop); m_dcMem.LineTo(x, m_nScaleBottom); } m_dcMem.SelectObject(pBitmapOrg); m_dcMem.SelectObject(pPenOrg); m_dcMem.SelectClipRgn(NULL); if (!m_sTitle.IsEmpty()) { CString str1, str2; REMARK_INFO remark; int n = 0; remark.remarks[n].pen = &m_penData; remark.remarks[n++].text = m_sTitle; remark.remarks[n].pen = &m_penLine1; str1.LoadString(IDS_REGRESSIONLINE); remark.remarks[n++].text = str1; remark.remarks[n].pen = &m_penLine2; str2.LoadString(IDS_TAUE); remark.remarks[n++].text = str2; remark.nRemark = n; m_wndRemark.DispRemarks(&remark); } Invalidate(FALSE); UpdateWindow(); } void CAcfWnd::OnLButtonDown(UINT nFlags, CPoint point) { if (m_nMouseMode == MOUSE_SELECT_NONE) { m_nScrollPos = point.x; m_nMouseMode = MOUSE_SCROLL; SetCapture(); } SetMouseCursor(); CWnd::OnLButtonDown(nFlags, point); } void CAcfWnd::OnLButtonUp(UINT nFlags, CPoint point) { if (m_nMouseMode != MOUSE_SELECT_NONE) { m_nMouseMode = MOUSE_SELECT_NONE; ReleaseCapture(); SetMouseCursor(); } CWnd::OnLButtonUp(nFlags, point); } void CAcfWnd::OnMouseMove(UINT nFlags, CPoint point) { switch (m_nMouseMode) { case MOUSE_SCROLL: m_pCallBackFunc(CC_SCROLL, m_dwCallBackData, (double)(point.x - m_nScrollPos) / m_nScaleWidth, 0); m_nScrollPos = point.x; break; } SetMouseCursor(); CWnd::OnMouseMove(nFlags, point); } BOOL CAcfWnd::OnSetCursor(CWnd* /*pWnd*/, UINT /*nHitTest*/, UINT /*message*/) { return TRUE; } void CAcfWnd::SetMouseCursor() { HCURSOR hCursor; switch (m_nMouseMode) { case MOUSE_SCROLL: if (m_bHScroll) hCursor = m_hCursorHScroll; else hCursor = m_hCursorArrow; break; default: hCursor = m_hCursorArrow; break; } ::SetCursor(hCursor); }
a6bbb0ce67934e199ed552427ea1cc98e525985e
ec3ac74fc3a9ea1c50e7bfbf0cd8f6818e01a144
/ZeroMS-Client/FriendListItem.cpp
21575b272a2f8d88dc839fa3f221c197abbb4317
[]
no_license
yetone/ZeroMS
dc7d7e01e1d5b7455522cdcc77efecf6ca465e23
3f21754a2fb9252b345d0e04a81fcf541875ec6d
refs/heads/master
2021-01-18T07:44:23.838062
2012-08-04T09:20:42
2012-08-04T09:20:52
null
0
0
null
null
null
null
UTF-8
C++
false
false
808
cpp
FriendListItem.cpp
#include <QMovie> #include "FriendListItem.h" #include "ui_FriendListItem.h" FriendListItem::FriendListItem(OUserlistItem info):ui(new Ui::FriendListItem) { ui->setupUi(this); QMovie *movie = new QMovie; QSize size(ui->avatar->width(),ui->avatar->height()); movie->setScaledSize(size); ui->avatar->setMovie(movie); operator =(info); setContentsMargins(0,0,0,0); } FriendListItem::~FriendListItem() { delete ui->avatar->movie(); delete ui; } FriendListItem &FriendListItem::operator =(OUserlistItem info) { this->info=info; if(info.avatar.isEmpty()) info.avatar=":/images/0ms2logo.png"; ui->avatar->movie()->setFileName(info.avatar); ui->avatar->movie()->start(); setUName(info.uname); setStatus(info.status); return *this; }
44fb5b184debc3a92aa3c6242be8a31113001526
9b8ed2eb05e40016395a069013402610361ee499
/Test/SocketAccept.h
e26aab907b9877a7bcfbfaea4fa43cd45af6721b
[]
no_license
singmelody/Test
6b74674cc0219189caaf365df120a4420b77cd6f
9f2d3d72627586bd07a66b2599a7106d7d6b1f1c
refs/heads/master
2020-04-07T02:50:03.334288
2017-12-31T22:26:46
2017-12-31T22:34:09
45,405,601
0
0
null
null
null
null
UTF-8
C++
false
false
952
h
SocketAccept.h
#pragma once #include "Thread.h" #include "MySocket.h" class NetManager; class SocketAccept : public MyThread { public: SocketAccept(void) : m_pMgr(NULL), m_bShouldExit(false) { } ~SocketAccept(void) { m_socket.Close(); } void Init(NetManager* pMgr, int32 nSockRcBuffSize, int32 nRcBufferSize, int32 nSockSnBufSize, int32 nSnBufferSize) { m_pMgr = pMgr; m_nSockRcBuffSize = nSockRcBuffSize; m_nSockSnBuffSize = nSockSnBufSize; m_nRcBuffSize = nRcBufferSize; m_nSnBuffSize = nSnBufferSize; } SOCKET GetSocket() const { return m_socket.GetSocket(); } void HandleClose() { m_socket.Close(); } void Accept(char* sAddr, int32 nPort, bool bSrv = false); void Exit() { m_bShouldExit = false; } protected: void Run(); Socket m_socket; SockAddr m_addr; int32 m_nSockRcBuffSize; int32 m_nSockSnBuffSize; int32 m_nRcBuffSize; int32 m_nSnBuffSize; NetManager* m_pMgr; volatile bool m_bShouldExit; };
4df7544635a29ce8958988be43eb7b0d2284ac3f
63d51a59d8889e210097053cfd41b8a6b8ffc599
/MEXorMixup.cpp
3693bbd4d4b983ee223e340ed49babe3fdad32d0
[]
no_license
shreyaa14/CS-1202
b1e3e7299ddc4ab2042b5e7e61fcdca23a5b6b55
0e6fa8d590f25d04b68f486a2717cbfc7d4db698
refs/heads/master
2023-08-11T07:17:26.437698
2021-10-04T14:10:22
2021-10-04T14:10:22
304,336,661
0
0
null
2020-10-15T13:45:56
2020-10-15T13:34:13
C++
UTF-8
C++
false
false
576
cpp
MEXorMixup.cpp
#include <bits/stdc++.h> using namespace std; const int MAX = 100007; const int MOD = 1000000007; void solve() { int a, b; cin >> a >> b; int pXor; if (a % 4 == 1) {pXor = a - 1;} else if (a % 4 == 2) {pXor = 1;} else if (a % 4 == 3) {pXor = a;} else {pXor = 0;} if (pXor == b) {cout << a << '\n';} else if ((pXor ^ b) != a) {cout << a + 1 << '\n';} else {cout << a + 2 << '\n';} } int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int tt; cin >> tt; for (int i = 1; i <= tt; i++) {solve();} //solve(); }
8b42096a7cf2360edbd81eccdcb8a3dc15069a84
ba7920d7b4f9cdae62ebfba7903341eb22babb12
/59__1__matrix__add__n__multiplicationl__operator__overloading/main.cpp
71915ea65550de488bbc1c2ea7a23453c452d77f
[]
no_license
abhisekmane98/Code12
e83e3476fda0d3d967516677c62bbdb0f94d3230
2d62ad7cd8a06486594d116e6a28452cc018a854
refs/heads/main
2023-08-31T20:41:35.046508
2021-10-02T18:50:47
2021-10-02T18:50:47
412,882,319
0
0
null
null
null
null
UTF-8
C++
false
false
68
cpp
main.cpp
#include"59.h" int main() { matrix m1; m1.display(); }
eb52ae2d706b2240f7def2f996ff01994cfc8b62
5b4ea0c588b481c1aaf19a5ad77ff2217524d9ff
/A8/Morales_Joseph_Assignment8.cpp
11536ac25610be912789cddf203e5c1a1e51ac69
[]
no_license
BiasOne/Dynamic-Arrays
11e4362b524f5b60128f986bac098f512945b8f9
3889f07002888587bcb38f49af528be4833a93d8
refs/heads/main
2023-03-04T07:55:38.152671
2021-02-15T03:03:26
2021-02-15T03:03:26
338,953,736
0
0
null
null
null
null
UTF-8
C++
false
false
6,003
cpp
Morales_Joseph_Assignment8.cpp
#include <iostream> #include <string> using namespace std; class dynamicArrayString { //Declare private variable private: string* dynamicArray; int size; int capacity; public: //Default constructor dynamicArrayString() { dynamicArray = nullptr; size = 0; capacity = 0; } //Copy constructor dynamicArrayString(const dynamicArrayString& lhs) { //size and capacity are set to the value of the array being copied dynamicArray = nullptr; delete[] dynamicArray; //size and capacity are set to the value of the array being copied size = lhs.size; capacity = lhs.capacity; //new memory is allocated using the copied capacity dynamicArray = new string[lhs.capacity]; //elements are moved into the new array for (int i = 0; i < size; i++) { dynamicArray[i] = lhs.dynamicArray[i]; } } //Assignment operator dynamicArrayString& operator=(const dynamicArrayString& rhs) { //size and capacity are set to the value of the array being copied dynamicArray = nullptr; delete[] dynamicArray; //size and capacity are set to the value of the array being copied size = rhs.size; capacity = rhs.capacity; //new memory is allocated using the copied capacity dynamicArray = new string[rhs.capacity]; //elements are moved into the new array for (int i = 0; i < size; i++) { dynamicArray[i] = rhs.dynamicArray[i]; } //allows for multiple assignments at once return *this; } //Adds an entry to the dynamic string array void addEntry(string value) { //if the array is pointing to nothing is creates memory for a single entry and adds it to the array if (dynamicArray == nullptr) { dynamicArray = new string[1]; dynamicArray[0] = value; capacity = 1; } //if the size equals capacity, create a new array with more space for the entry and copy the elements into the new array else if (size == capacity) { string* newArray = new string[capacity + 1]; for (int i = 0; i < size; i++) { newArray[i] = dynamicArray[i]; } //deletes the old array to prevent memory leaks- assigns the new array to the dynamic array - increments size and capacity newArray[size] = value; capacity++; delete[] dynamicArray; dynamicArray = newArray; } size++; } //Deletes memory at a specific index bool deleteEntry(string findMe) { //bool determines whether the entry was found and resets whenever the funtion is entered again bool found = false; //int determines the index where the entry was found int foundAt; //if the dynamic array is empty it returns false and does not search if (dynamicArray == nullptr) { return false; } //searches through each iteration of the array until an entry is found and breaks out of the for loop else { for (int i = 0; i < size; i++) { if (dynamicArray[i] == findMe) { //if entry is found - its index is stored foundAt = i; found = true; break; } } } //decreases the size of the array by 1 before adding a new element string* newArray = new string[capacity - 1]; //is only entered if a boolean value is found if (found == true) { //stores all of the elements before the location of the found entry into the new array for (int i = 0; i < size; i++) { //pushes the elements before the entry location into the array if (i < foundAt) { newArray[i] = dynamicArray[i]; } //skips over the index of the found element and copies the rest of entries into the new vector else if (i > foundAt) { newArray[i - 1] = dynamicArray[i]; } } //deletes the old array to prevent memory leaks- assigns the new array to the dynamic array - decrements size and capacity delete[] dynamicArray; capacity--; dynamicArray = newArray; } size--; return true; } //Returns dynamicArray at a specific index string getEntry(int index) { if (index >= size) { return nullptr; } else { return dynamicArray[index]; } } //Retruns the dynamicArray being pointed to string* GetdynamicArray() { return dynamicArray; } //Returns number of elements currently in the array int getSize() { return size; } //Returns the Max Capacity of the array int getCapacity() { return capacity; } //Prints all the elements in the array void print() { for (int i = 0; i < size; i++) { cout << dynamicArray[i] << endl; } } //Destructor ~dynamicArrayString() { delete[] dynamicArray; } }; int main() { dynamicArrayString dynamicArrayStringOBJ; dynamicArrayString test1; cout << "** Test1: Added 6 entries **" << endl; test1.addEntry("This"); test1.addEntry("is"); test1.addEntry("testing"); test1.addEntry("the"); test1.addEntry("add"); test1.addEntry("function"); test1.print(); cout << "** Size after adding 6 entries: " << test1.getSize() << " **" << endl; cout << endl; cout << "** Test2: Removed add and function - Added remove and function **" << endl; test1.deleteEntry("add"); test1.deleteEntry("function"); test1.addEntry("remove"); test1.addEntry("function"); test1.print(); cout << "** Size after deleting two entries and adding one: " << test1.getSize() << " **" << endl; cout << endl; cout << "** Test3: Print index 2, 3, 4 **" << endl; cout << test1.getEntry(2) << endl; cout << test1.getEntry(3) << endl; cout << test1.getEntry(4) << endl; cout << endl; dynamicArrayString test2(test1); cout << "** Test4: Array Copy **" << endl; test2.print(); cout << "** Size of copy: " << test2.getSize() << " **" << endl; cout << endl; cout << "** Test5: adding 3 entries to array copy **" << endl; test2.addEntry("This"); test2.addEntry("Is"); test2.addEntry("A"); test2.addEntry("Test"); test2.print(); cout << "** Size of copy after new entries: " << test2.getSize() << " **" << endl; cout << endl; cout << "** Priting original array for comparison" << endl; test1.print(); cout << "** Size of original: " << test1.getSize() << " **" << endl; return 0; }
a3d082fb636c9df63ceb35f66daab6d15cf7bc0d
8d5fe26b90cf4115cb6ba1c702502b507cf4f40b
/iPrintableDocumentDeal/MsOffice/Word2010/CField.h
aa8d72ba48004e7c590551cc30578d94f1b0e767
[]
no_license
radtek/vs2015PackPrj
c6c6ec475014172c1dfffab98dd03bd7e257b273
605b49fab23cb3c4a427d48080ffa5e0807d79a7
refs/heads/master
2022-04-03T19:50:37.865876
2020-01-16T10:09:37
2020-01-16T10:09:37
null
0
0
null
null
null
null
GB18030
C++
false
false
4,268
h
CField.h
// 从类型库向导中用“添加类”创建的计算机生成的 IDispatch 包装类 #import "C:\\Program Files (x86)\\Microsoft Office\\Office14\\MSWORD.OLB" no_namespace // CField 包装类 class CField : public COleDispatchDriver { public: CField(){} // 调用 COleDispatchDriver 默认构造函数 CField(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {} CField(const CField& dispatchSrc) : COleDispatchDriver(dispatchSrc) {} // 属性 public: // 操作 public: // Field 方法 public: LPDISPATCH get_Application() { LPDISPATCH result; InvokeHelper(0x3e8, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL); return result; } long get_Creator() { long result; InvokeHelper(0x3e9, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL); return result; } LPDISPATCH get_Parent() { LPDISPATCH result; InvokeHelper(0x3ea, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL); return result; } LPDISPATCH get_Code() { LPDISPATCH result; InvokeHelper(0x0, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL); return result; } void put_Code(LPDISPATCH newValue) { static BYTE parms[] = VTS_DISPATCH ; InvokeHelper(0x0, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue); } long get_Type() { long result; InvokeHelper(0x1, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL); return result; } BOOL get_Locked() { BOOL result; InvokeHelper(0x2, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL); return result; } void put_Locked(BOOL newValue) { static BYTE parms[] = VTS_BOOL ; InvokeHelper(0x2, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue); } long get_Kind() { long result; InvokeHelper(0x3, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL); return result; } LPDISPATCH get_Result() { LPDISPATCH result; InvokeHelper(0x4, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL); return result; } void put_Result(LPDISPATCH newValue) { static BYTE parms[] = VTS_DISPATCH ; InvokeHelper(0x4, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue); } CString get_Data() { CString result; InvokeHelper(0x5, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL); return result; } void put_Data(LPCTSTR newValue) { static BYTE parms[] = VTS_BSTR ; InvokeHelper(0x5, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue); } LPDISPATCH get_Next() { LPDISPATCH result; InvokeHelper(0x6, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL); return result; } LPDISPATCH get_Previous() { LPDISPATCH result; InvokeHelper(0x7, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL); return result; } long get_Index() { long result; InvokeHelper(0x8, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL); return result; } BOOL get_ShowCodes() { BOOL result; InvokeHelper(0x9, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL); return result; } void put_ShowCodes(BOOL newValue) { static BYTE parms[] = VTS_BOOL ; InvokeHelper(0x9, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue); } LPDISPATCH get_LinkFormat() { LPDISPATCH result; InvokeHelper(0xa, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL); return result; } LPDISPATCH get_OLEFormat() { LPDISPATCH result; InvokeHelper(0xb, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL); return result; } LPDISPATCH get_InlineShape() { LPDISPATCH result; InvokeHelper(0xc, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL); return result; } void Select() { InvokeHelper(0xffff, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); } BOOL Update() { BOOL result; InvokeHelper(0x65, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL); return result; } void Unlink() { InvokeHelper(0x66, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); } void UpdateSource() { InvokeHelper(0x67, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); } void DoClick() { InvokeHelper(0x68, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); } void Copy() { InvokeHelper(0x69, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); } void Cut() { InvokeHelper(0x6a, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); } void Delete() { InvokeHelper(0x6b, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); } // Field 属性 public: };
1c497a5e5b33fd134f2a1f828e3e5a496070b67a
6e29b44804b96a5266918aef8f1b1f1196be5ed1
/Montador.cpp
e4a139d028ac378c7e219e5aa4f32fbdaf4ee91b
[]
no_license
angelita/SB
a6c253bb5ab077b87ceb2167ff439c3bde6ac32f
bf5c939f7d80f1a0efad4788b847cc3b1da4bd26
refs/heads/master
2021-01-10T13:50:14.069505
2015-05-24T16:25:40
2015-05-24T16:25:40
36,149,616
0
0
null
null
null
null
UTF-8
C++
false
false
1,924
cpp
Montador.cpp
#include <iostream> #include <fstream> #include <string> #include <vector> #include "lexico.h" using namespace std; int main(int argc, char const *argv[]) { ifstream arquivo; string fileName; string line; char *c_token; char del[] = " "; char *str; Token token; vector<Token> tokens; string s_str; int lineCount = 0; list<Label> defTable; if (argc != 2) { cout << "Número inválido de argumentos!" << endl; return 0; } fileName = argv[1]; fileName += ".asm"; arquivo.open(fileName.c_str()); if (arquivo.is_open()) { // Pre processamentos // Elimina espaços em branco desnecessário e comentário while (getline(arquivo,line)) { // prepara estrutura de tokenificação str = (char*) malloc((line.length()+1)*sizeof(char)); line.copy(str, line.length()+1, 0); str[line.length()] = '\0'; c_token = strtok(str, del); tokens.clear(); // itera sobre todos tokens de uma linha while (c_token != NULL) { s_str = c_token; // get token from list if exists token = getToken(s_str); tokens.push_back(token); c_token = strtok(NULL, del); } // if it is a fixed token if(tokens[0].id >= 0) { // if token is section if(tokens[0].id == 0) { } // if token is an opperation else if(tokens[0].id == 3) { // switch } // if it is a token that shouldn't be there else { } } // it it is a label else { // put it in the defTable if there isn't there already // if there is an entry on defTable // increment refCount // add this current reference (i.e. lineCount) } free(str); for (vector<Token>::iterator it=tokens.begin(); it != tokens.end(); ++it) { cout << it->text << endl; } // set next line on tokens' list lineCount++; // verif se nao ; } arquivo.close(); } else cout << "Não foi possível abrir o arquivo" << endl; return 0; }
4b4145dc29841d3d103e1a4846f6ba8439a13cca
110323d841864ea72ba867826ec65014fe968431
/acm_503/acm_503.cpp
b41e0a18f7ea17a79b123c2a7efa2ddc2426bede
[ "MIT" ]
permissive
binghuo365/ACMTraining
f6ab86c5b0b1431f302c06a6c414ab9b408c8a88
a3cb53b052f14a44a66bd8bf4ccbe8e3d208d27f
refs/heads/master
2020-12-30T14:56:42.894429
2015-07-09T12:00:17
2015-07-09T12:00:17
38,569,775
0
0
null
null
null
null
GB18030
C++
false
false
2,126
cpp
acm_503.cpp
#include <string> #include <iostream> #include <vector> int prim(int index, int countryCount); int kruskal(int index, int countryCount); int data[30][26][26]; int main() { int inputNum = 0; int countryCount[30]; memset(data, 0, sizeof(data)); memset(countryCount, 0, sizeof(countryCount)); int index = 0; while (std::cin >> inputNum && inputNum != 0) { countryCount[index] = inputNum; for (int i = 0; i < inputNum - 1; ++i) { char a = 'A'; int b = 0; char c = 'A'; std::cin >> a; std::cin >> b; for (int j = 0; j < b*2; ++j) { if (j%2) { std::cin >> data[index][a - 'A'][c - 'A']; data[index][c - 'A'][a - 'A'] = data[index][a - 'A'][c - 'A']; } else { std::cin >> c; } } } ++index; } //开始计算 for (int i = 0; i < index; ++i) { std::cout << prim(i, countryCount[i]) << std::endl; //kruskal(i, countryCount[i]); } return 0; } int prim(int index, int countryCount) { int totalPath = 0; int lowcost[26]; //记录data[index][j][closest]的最小权值 int closest[26]; //V-S中点j在S中的最邻接顶点 bool s[26]; memset(lowcost, 0, sizeof(lowcost)); memset(closest, 0, sizeof(closest)); memset(s, 0, sizeof(s)); s[0] = true; //初始化s[i],lowcost[i],closest[i] for (int i = 1; i < countryCount; i++) { lowcost[i] = data[index][0][i]; closest[i] = 1; s[i] = false; } for (int i = 0; i < countryCount - 1; i++) { int min = 10000000; int j = 0; for (int k = 1; k < countryCount; k++)//找出V-S中使lowcost最小的顶点j { if ((lowcost[k] != 0 && lowcost[k] < min) && (!s[k])) { min = lowcost[k]; j = k; } } totalPath += lowcost[j]; s[j] = true;//将j添加到S中 for (int k = 1; k < countryCount; k++)//将j添加到S中后,修改closest和lowcost的值 { if (((data[index][j][k] != 0 && data[index][j][k] < lowcost[k]) || (lowcost[k] == 0 && data[index][j][k] > 0)) && (!s[k])) { lowcost[k] = data[index][j][k]; closest[k] = j; } } } return totalPath; } int kruskal(int index, int countryCount) { return 0; }
a4240ace68b541929f06a526d8357fc80a170638
845f6a028ec59733e8ae83621957af01e4d48584
/2.1 Maximum prodcut of 3 numbers in array.cpp
c3e6ebec32960c3e0ce8a970342a54c81f4c435d
[]
no_license
phani653/Top25-Coding-Interview-Questions
51c53870f078be0d08c0e88fca872f181520ab81
80eaa8879b85c076897e5932f0338ba30e035322
refs/heads/master
2020-03-16T15:35:59.375079
2018-05-10T03:17:44
2018-05-10T03:17:44
132,749,212
0
0
null
null
null
null
UTF-8
C++
false
false
633
cpp
2.1 Maximum prodcut of 3 numbers in array.cpp
int maximumProduct(vector<int>& nums) { int n=nums.size(); int maxA=INT_MIN, maxB=INT_MIN, maxC= INT_MIN; int minA=INT_MAX, minB=INT_MAX; for(int i=0;i<n;i++){ if(nums[i]>maxA){ maxC=maxB; maxB=maxA; maxA=nums[i]; } else if(nums[i]>maxB){ maxC=maxB; maxB=nums[i]; } else if(nums[i]>maxC) maxC=nums[i]; if(nums[i]<minA) { minB=minA; minA=nums[i]; } else if (nums[i] < minB) minB= nums[i]; } return max(maxA*maxB*maxC, maxA*minA*minB); }
8b8c9eb902b17a627271eaa2d01cd49fff5ab0fd
9a3f8c3d4afe784a34ada757b8c6cd939cac701d
/leetMinNumSwapsMakeBinStrAlt.cpp
7594b54dfb688aa408149e081b9e3ee6b3fa0a4c
[]
no_license
madhav-bits/Coding_Practice
62035a6828f47221b14b1d2a906feae35d3d81a8
f08d6403878ecafa83b3433dd7a917835b4f1e9e
refs/heads/master
2023-08-17T04:58:05.113256
2023-08-17T02:00:53
2023-08-17T02:00:53
106,217,648
1
1
null
null
null
null
UTF-8
C++
false
false
2,654
cpp
leetMinNumSwapsMakeBinStrAlt.cpp
/* * //*********************************1864. Minimum Number of Swaps to Make the Binary String Alternating.*************************************** https://leetcode.com/problems/minimum-number-of-swaps-to-make-the-binary-string-alternating/ *******************************************************************TEST CASES:************************************************************ //These are the examples I had created, tweaked and worked on. "111000" "010" "1110" "10101010100" "100110010010101100" "11011001100" "110110001100110101000" "0011101100" "01" "01100101" // Time Complexity: O(n). // Space Complexity: O(1). //********************************************************THIS IS LEET ACCEPTED CODE.*************************************************** */ //************************************************************Solution 1:************************************************************ //*****************************************************THIS IS LEET ACCEPTED CODE.*********************************************** // Time Complexity: O(n). // Space Complexity: O(1). // This algorithm is observation based. In the first iter. we calc. #ones, #zeroes, if their abs diff>1, we can't have alternate digits, so we return false. // Based on diff, we choose starting char and count mismatches while iter. the string. In case of diff=0, start can be any char, so we first calc. mismatch, // if the mismatches are less than half of string length, we reutrn mismatch/2, else rem.length/2 as char order would change now for othe starting char. // We return mismatch/2, as swapping two mismatched chars is the only way these swaps would work, any other way of swapping would be redundant. class Solution { public: int minSwaps(string s) { int ones=0; for(int i=0;i<s.length();i++) { // Calc. diff. in occur. of ones, zeroes. if(s[i]=='1') ones++; else ones--; } if(abs(ones)>1) return -1; // If abs diff>1, alternating strings not possible, so we return -1. char curr=(ones>=0)?'1':'0'; // If diff=-1,1 we know what would be first char, for diff=0, we try two start chars. int mismatch=0; for(char&ch:s) { // Iter. over array and count mismatches. if(ch!=curr) mismatch++; curr=(curr=='1')?'0':'1'; } if(ones!=0 || mismatch==0) return mismatch/2; // For diff=-1,1 strings, we return #swaps needed. return (mismatch*2<=s.length())?mismatch/2:(s.length()-mismatch)/2; // For diff=0, we return the best #swaps of the two possible starts. } };
9f90781393c2da6d76b3d5b5b959caea21d945ad
6f5ab6c58e3b31dbaf3ef15d14dcac4a69d8013f
/hackerrank/Main.cpp
86101fac591a4fee707634072ea6437970214ec8
[]
no_license
sambey04/c_code
f1cb9d96ee5f78b7219ac2656ad1424201364bb0
080fb9720f70e44c37e9fa845549bb1951dc6a79
refs/heads/master
2020-05-31T22:41:12.513839
2020-03-06T04:23:51
2020-03-06T04:23:51
190,525,768
1
0
null
null
null
null
UTF-8
C++
false
false
330
cpp
Main.cpp
#include <bits/stdc++.h> #include<cstring> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int q,len; int k,dis; //k equals string str; cin >> q; for(int p=0;p<q;p++) { cin >> str; len = str.length(); cout << str[] //if(str[len-k]-str[len-k-dis]) } return 0; }
fb419ef9fc5007b8b675302e2ab25dedb14bc542
db03de6c8991355a515c882ff5eab8451bd9611c
/helper.h
80f76fcc055b3061d2e0ee509ad329648654a378
[]
no_license
PatrickPolcuch/CPSC350Assignment5
96dc010007d7f9c375710cb683d5c77303d4e3f3
a54be47c7cc5817d0bca46dd613b6a1e56e9023a
refs/heads/main
2023-01-23T03:28:23.365461
2020-12-05T05:43:24
2020-12-05T05:43:24
318,703,671
0
0
null
null
null
null
UTF-8
C++
false
false
239
h
helper.h
//helper.h //Patrick Polcuch //2348668 //CPSC350Assignment5 //The .h file for helper.cpp #include <string> using namespace std; class helper{ public: helper(); ~helper(); static bool toFile(string s, string f); };
d9b200ef0d0cf89b687a106db0737683ca9006c6
d02da3ca64d5be81e251d8a224bb1b1f56e46912
/ARChemistre_build/Classes/Native/Bulk_System_1.cpp
adb2d063a7f07195202a379f4c51918b87e7b0bb
[]
no_license
Dotby/ARChemistre
ae0dadc598142bb8545ccf3170ed2e4d8fd4e779
d3904072305237fbb926dcf095aca5263ae7b138
refs/heads/master
2020-12-26T19:38:31.255015
2015-07-14T16:27:50
2015-07-14T16:27:50
38,375,255
0
0
null
null
null
null
UTF-8
C++
false
false
663,224
cpp
Bulk_System_1.cpp
#include "il2cpp-config.h" #include "class-internals.h" #include "codegen/il2cpp-codegen.h" #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif #include "stringLiterals.h" // System.Text.RegularExpressions.Mark #include "System_System_Text_RegularExpressions_Mark.h" #include <cstring> #include <string.h> #include <stdio.h> #ifndef _MSC_VER #include <alloca.h> #else #include <malloc.h> #endif #include <cmath> #include <limits> #include <assert.h> extern TypeInfo Mark_t1422_il2cpp_TypeInfo; // System.Text.RegularExpressions.Mark #include "System_System_Text_RegularExpressions_MarkMethodDeclarations.h" // System.Boolean #include "mscorlib_System_Boolean.h" // System.Int32 #include "mscorlib_System_Int32.h" // System.Array #include "mscorlib_System_Array.h" // System.Boolean System.Text.RegularExpressions.Mark::get_IsDefined() extern MethodInfo Mark_get_IsDefined_m7686_MethodInfo; extern "C" bool Mark_get_IsDefined_m7686 (Mark_t1422 * __this, MethodInfo* method) { int32_t G_B3_0 = 0; { int32_t L_0 = (__this->___Start_0); if ((((int32_t)L_0) < ((int32_t)0))) { goto IL_001a; } } { int32_t L_1 = (__this->___End_1); G_B3_0 = ((((int32_t)((((int32_t)L_1) < ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0); goto IL_001b; } IL_001a: { G_B3_0 = 0; } IL_001b: { return G_B3_0; } } // System.Int32 System.Text.RegularExpressions.Mark::get_Index() extern MethodInfo Mark_get_Index_m7687_MethodInfo; extern "C" int32_t Mark_get_Index_m7687 (Mark_t1422 * __this, MethodInfo* method) { int32_t G_B3_0 = 0; { int32_t L_0 = (__this->___Start_0); int32_t L_1 = (__this->___End_1); if ((((int32_t)L_0) >= ((int32_t)L_1))) { goto IL_001c; } } { int32_t L_2 = (__this->___Start_0); G_B3_0 = L_2; goto IL_0022; } IL_001c: { int32_t L_3 = (__this->___End_1); G_B3_0 = L_3; } IL_0022: { return G_B3_0; } } // System.Int32 System.Text.RegularExpressions.Mark::get_Length() extern MethodInfo Mark_get_Length_m7688_MethodInfo; extern "C" int32_t Mark_get_Length_m7688 (Mark_t1422 * __this, MethodInfo* method) { int32_t G_B3_0 = 0; { int32_t L_0 = (__this->___Start_0); int32_t L_1 = (__this->___End_1); if ((((int32_t)L_0) >= ((int32_t)L_1))) { goto IL_0023; } } { int32_t L_2 = (__this->___End_1); int32_t L_3 = (__this->___Start_0); G_B3_0 = ((int32_t)((int32_t)L_2-(int32_t)L_3)); goto IL_0030; } IL_0023: { int32_t L_4 = (__this->___Start_0); int32_t L_5 = (__this->___End_1); G_B3_0 = ((int32_t)((int32_t)L_4-(int32_t)L_5)); } IL_0030: { return G_B3_0; } } // System.Text.RegularExpressions.Interpreter/IntStack #include "System_System_Text_RegularExpressions_Interpreter_IntStack.h" #ifndef _MSC_VER #else #endif extern TypeInfo IntStack_t1423_il2cpp_TypeInfo; // System.Text.RegularExpressions.Interpreter/IntStack #include "System_System_Text_RegularExpressions_Interpreter_IntStackMethodDeclarations.h" // System.Void #include "mscorlib_System_Void.h" // System.String #include "mscorlib_System_String.h" // System.SystemException #include "mscorlib_System_SystemException.h" #include "mscorlib_ArrayTypes.h" extern TypeInfo SystemException_t1495_il2cpp_TypeInfo; extern TypeInfo Int32U5BU5D_t186_il2cpp_TypeInfo; extern TypeInfo Int32_t141_il2cpp_TypeInfo; // System.SystemException #include "mscorlib_System_SystemExceptionMethodDeclarations.h" extern Il2CppType Int32U5BU5D_t186_0_0_0; extern MethodInfo SystemException__ctor_m8177_MethodInfo; // System.Int32 System.Text.RegularExpressions.Interpreter/IntStack::Pop() extern MethodInfo IntStack_Pop_m7689_MethodInfo; extern "C" int32_t IntStack_Pop_m7689 (IntStack_t1423 * __this, MethodInfo* method) { int32_t V_0 = 0; { Int32U5BU5D_t186* L_0 = (__this->___values_0); int32_t L_1 = (__this->___count_1); int32_t L_2 = ((int32_t)((int32_t)L_1-(int32_t)1)); V_0 = L_2; __this->___count_1 = L_2; int32_t L_3 = V_0; NullCheck(L_0); IL2CPP_ARRAY_BOUNDS_CHECK(L_0, L_3); int32_t L_4 = L_3; return (*(int32_t*)(int32_t*)SZArrayLdElema(L_0, L_4)); } } // System.Void System.Text.RegularExpressions.Interpreter/IntStack::Push(System.Int32) extern MethodInfo IntStack_Push_m7690_MethodInfo; extern TypeInfo* Int32U5BU5D_t186_il2cpp_TypeInfo_var; extern "C" void IntStack_Push_m7690 (IntStack_t1423 * __this, int32_t ___value, MethodInfo* method) { static bool IntStack_Push_m7690_init; if (!IntStack_Push_m7690_init) { Int32U5BU5D_t186_il2cpp_TypeInfo_var = il2cpp_codegen_class_from_type(&Int32U5BU5D_t186_0_0_0); IntStack_Push_m7690_init = true; } int32_t V_0 = 0; Int32U5BU5D_t186* V_1 = {0}; int32_t V_2 = 0; int32_t V_3 = 0; { Int32U5BU5D_t186* L_0 = (__this->___values_0); if (L_0) { goto IL_001c; } } { __this->___values_0 = ((Int32U5BU5D_t186*)SZArrayNew(Int32U5BU5D_t186_il2cpp_TypeInfo_var, 8)); goto IL_006e; } IL_001c: { int32_t L_1 = (__this->___count_1); Int32U5BU5D_t186* L_2 = (__this->___values_0); NullCheck(L_2); if ((!(((uint32_t)L_1) == ((uint32_t)(((int32_t)(((Array_t *)L_2)->max_length))))))) { goto IL_006e; } } { Int32U5BU5D_t186* L_3 = (__this->___values_0); NullCheck(L_3); V_0 = (((int32_t)(((Array_t *)L_3)->max_length))); int32_t L_4 = V_0; int32_t L_5 = V_0; V_0 = ((int32_t)((int32_t)L_4+(int32_t)((int32_t)((int32_t)L_5>>(int32_t)1)))); int32_t L_6 = V_0; V_1 = ((Int32U5BU5D_t186*)SZArrayNew(Int32U5BU5D_t186_il2cpp_TypeInfo_var, L_6)); V_2 = 0; goto IL_005b; } IL_004c: { Int32U5BU5D_t186* L_7 = V_1; int32_t L_8 = V_2; Int32U5BU5D_t186* L_9 = (__this->___values_0); int32_t L_10 = V_2; NullCheck(L_9); IL2CPP_ARRAY_BOUNDS_CHECK(L_9, L_10); int32_t L_11 = L_10; NullCheck(L_7); IL2CPP_ARRAY_BOUNDS_CHECK(L_7, L_8); *((int32_t*)(int32_t*)SZArrayLdElema(L_7, L_8)) = (int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_9, L_11)); int32_t L_12 = V_2; V_2 = ((int32_t)((int32_t)L_12+(int32_t)1)); } IL_005b: { int32_t L_13 = V_2; int32_t L_14 = (__this->___count_1); if ((((int32_t)L_13) < ((int32_t)L_14))) { goto IL_004c; } } { Int32U5BU5D_t186* L_15 = V_1; __this->___values_0 = L_15; } IL_006e: { Int32U5BU5D_t186* L_16 = (__this->___values_0); int32_t L_17 = (__this->___count_1); int32_t L_18 = L_17; V_3 = L_18; __this->___count_1 = ((int32_t)((int32_t)L_18+(int32_t)1)); int32_t L_19 = V_3; int32_t L_20 = ___value; NullCheck(L_16); IL2CPP_ARRAY_BOUNDS_CHECK(L_16, L_19); *((int32_t*)(int32_t*)SZArrayLdElema(L_16, L_19)) = (int32_t)L_20; return; } } // System.Int32 System.Text.RegularExpressions.Interpreter/IntStack::get_Count() extern MethodInfo IntStack_get_Count_m7691_MethodInfo; extern "C" int32_t IntStack_get_Count_m7691 (IntStack_t1423 * __this, MethodInfo* method) { { int32_t L_0 = (__this->___count_1); return L_0; } } // System.Void System.Text.RegularExpressions.Interpreter/IntStack::set_Count(System.Int32) extern MethodInfo IntStack_set_Count_m7692_MethodInfo; extern "C" void IntStack_set_Count_m7692 (IntStack_t1423 * __this, int32_t ___value, MethodInfo* method) { { int32_t L_0 = ___value; int32_t L_1 = (__this->___count_1); if ((((int32_t)L_0) <= ((int32_t)L_1))) { goto IL_0017; } } { SystemException_t1495 * L_2 = (SystemException_t1495 *)il2cpp_codegen_object_new (InitializedTypeInfo(&SystemException_t1495_il2cpp_TypeInfo)); SystemException__ctor_m8177(L_2, (String_t*) &_stringLiteral862, /*hidden argument*/&SystemException__ctor_m8177_MethodInfo); il2cpp_codegen_raise_exception(L_2); } IL_0017: { int32_t L_3 = ___value; __this->___count_1 = L_3; return; } } // Conversion methods for marshalling of: System.Text.RegularExpressions.Interpreter/IntStack void IntStack_t1423_marshal(const IntStack_t1423& unmarshaled, IntStack_t1423_marshaled& marshaled) { marshaled.___values_0 = il2cpp_codegen_marshal_array<int32_t>((Il2CppCodeGenArray*)unmarshaled.___values_0); marshaled.___count_1 = unmarshaled.___count_1; } void IntStack_t1423_marshal_back(const IntStack_t1423_marshaled& marshaled, IntStack_t1423& unmarshaled) { unmarshaled.___values_0 = (Int32U5BU5D_t186*)il2cpp_codegen_marshal_array_result(&Int32_t141_il2cpp_TypeInfo, marshaled.___values_0, 1); unmarshaled.___count_1 = marshaled.___count_1; } // Conversion method for clean up from marshalling of: System.Text.RegularExpressions.Interpreter/IntStack void IntStack_t1423_marshal_cleanup(IntStack_t1423_marshaled& marshaled) { } // System.Text.RegularExpressions.Interpreter/RepeatContext #include "System_System_Text_RegularExpressions_Interpreter_RepeatCont.h" #ifndef _MSC_VER #else #endif extern TypeInfo RepeatContext_t1424_il2cpp_TypeInfo; // System.Text.RegularExpressions.Interpreter/RepeatContext #include "System_System_Text_RegularExpressions_Interpreter_RepeatContMethodDeclarations.h" // System.Object #include "mscorlib_System_ObjectMethodDeclarations.h" extern MethodInfo Object__ctor_m419_MethodInfo; // System.Void System.Text.RegularExpressions.Interpreter/RepeatContext::.ctor(System.Text.RegularExpressions.Interpreter/RepeatContext,System.Int32,System.Int32,System.Boolean,System.Int32) extern MethodInfo RepeatContext__ctor_m7693_MethodInfo; extern "C" void RepeatContext__ctor_m7693 (RepeatContext_t1424 * __this, RepeatContext_t1424 * ___previous, int32_t ___min, int32_t ___max, bool ___lazy, int32_t ___expr_pc, MethodInfo* method) { { Object__ctor_m419(__this, /*hidden argument*/&Object__ctor_m419_MethodInfo); RepeatContext_t1424 * L_0 = ___previous; __this->___previous_5 = L_0; int32_t L_1 = ___min; __this->___min_1 = L_1; int32_t L_2 = ___max; __this->___max_2 = L_2; bool L_3 = ___lazy; __this->___lazy_3 = L_3; int32_t L_4 = ___expr_pc; __this->___expr_pc_4 = L_4; __this->___start_0 = (-1); __this->___count_6 = 0; return; } } // System.Int32 System.Text.RegularExpressions.Interpreter/RepeatContext::get_Count() extern MethodInfo RepeatContext_get_Count_m7694_MethodInfo; extern "C" int32_t RepeatContext_get_Count_m7694 (RepeatContext_t1424 * __this, MethodInfo* method) { { int32_t L_0 = (__this->___count_6); return L_0; } } // System.Void System.Text.RegularExpressions.Interpreter/RepeatContext::set_Count(System.Int32) extern MethodInfo RepeatContext_set_Count_m7695_MethodInfo; extern "C" void RepeatContext_set_Count_m7695 (RepeatContext_t1424 * __this, int32_t ___value, MethodInfo* method) { { int32_t L_0 = ___value; __this->___count_6 = L_0; return; } } // System.Int32 System.Text.RegularExpressions.Interpreter/RepeatContext::get_Start() extern MethodInfo RepeatContext_get_Start_m7696_MethodInfo; extern "C" int32_t RepeatContext_get_Start_m7696 (RepeatContext_t1424 * __this, MethodInfo* method) { { int32_t L_0 = (__this->___start_0); return L_0; } } // System.Void System.Text.RegularExpressions.Interpreter/RepeatContext::set_Start(System.Int32) extern MethodInfo RepeatContext_set_Start_m7697_MethodInfo; extern "C" void RepeatContext_set_Start_m7697 (RepeatContext_t1424 * __this, int32_t ___value, MethodInfo* method) { { int32_t L_0 = ___value; __this->___start_0 = L_0; return; } } // System.Boolean System.Text.RegularExpressions.Interpreter/RepeatContext::get_IsMinimum() extern MethodInfo RepeatContext_get_IsMinimum_m7698_MethodInfo; extern "C" bool RepeatContext_get_IsMinimum_m7698 (RepeatContext_t1424 * __this, MethodInfo* method) { { int32_t L_0 = (__this->___min_1); int32_t L_1 = (__this->___count_6); return ((((int32_t)((((int32_t)L_0) > ((int32_t)L_1))? 1 : 0)) == ((int32_t)0))? 1 : 0); } } // System.Boolean System.Text.RegularExpressions.Interpreter/RepeatContext::get_IsMaximum() extern MethodInfo RepeatContext_get_IsMaximum_m7699_MethodInfo; extern "C" bool RepeatContext_get_IsMaximum_m7699 (RepeatContext_t1424 * __this, MethodInfo* method) { { int32_t L_0 = (__this->___max_2); int32_t L_1 = (__this->___count_6); return ((((int32_t)((((int32_t)L_0) > ((int32_t)L_1))? 1 : 0)) == ((int32_t)0))? 1 : 0); } } // System.Boolean System.Text.RegularExpressions.Interpreter/RepeatContext::get_IsLazy() extern MethodInfo RepeatContext_get_IsLazy_m7700_MethodInfo; extern "C" bool RepeatContext_get_IsLazy_m7700 (RepeatContext_t1424 * __this, MethodInfo* method) { { bool L_0 = (__this->___lazy_3); return L_0; } } // System.Int32 System.Text.RegularExpressions.Interpreter/RepeatContext::get_Expression() extern MethodInfo RepeatContext_get_Expression_m7701_MethodInfo; extern "C" int32_t RepeatContext_get_Expression_m7701 (RepeatContext_t1424 * __this, MethodInfo* method) { { int32_t L_0 = (__this->___expr_pc_4); return L_0; } } // System.Text.RegularExpressions.Interpreter/RepeatContext System.Text.RegularExpressions.Interpreter/RepeatContext::get_Previous() extern MethodInfo RepeatContext_get_Previous_m7702_MethodInfo; extern "C" RepeatContext_t1424 * RepeatContext_get_Previous_m7702 (RepeatContext_t1424 * __this, MethodInfo* method) { { RepeatContext_t1424 * L_0 = (__this->___previous_5); return L_0; } } // System.Text.RegularExpressions.Interpreter/Mode #include "System_System_Text_RegularExpressions_Interpreter_Mode.h" #ifndef _MSC_VER #else #endif extern TypeInfo Mode_t1425_il2cpp_TypeInfo; // System.Text.RegularExpressions.Interpreter/Mode #include "System_System_Text_RegularExpressions_Interpreter_ModeMethodDeclarations.h" // System.Text.RegularExpressions.Interpreter #include "System_System_Text_RegularExpressions_Interpreter.h" #ifndef _MSC_VER #else #endif extern TypeInfo Interpreter_t1428_il2cpp_TypeInfo; // System.Text.RegularExpressions.Interpreter #include "System_System_Text_RegularExpressions_InterpreterMethodDeclarations.h" // System.UInt16 #include "mscorlib_System_UInt16.h" // System.Text.RegularExpressions.QuickSearch #include "System_System_Text_RegularExpressions_QuickSearch.h" // System.Text.RegularExpressions.Match #include "System_System_Text_RegularExpressions_Match.h" // System.Text.RegularExpressions.Regex #include "System_System_Text_RegularExpressions_Regex.h" // System.Text.RegularExpressions.OpCode #include "System_System_Text_RegularExpressions_OpCode.h" // System.Text.RegularExpressions.OpFlags #include "System_System_Text_RegularExpressions_OpFlags.h" // System.Char #include "mscorlib_System_Char.h" // System.Text.RegularExpressions.Position #include "System_System_Text_RegularExpressions_Position.h" #include "System_ArrayTypes.h" // System.Text.RegularExpressions.Category #include "System_System_Text_RegularExpressions_Category.h" // System.Text.RegularExpressions.Group #include "System_System_Text_RegularExpressions_Group.h" // System.Text.RegularExpressions.Capture #include "System_System_Text_RegularExpressions_Capture.h" // System.Text.RegularExpressions.CaptureCollection #include "System_System_Text_RegularExpressions_CaptureCollection.h" // System.Text.RegularExpressions.BaseMachine #include "System_System_Text_RegularExpressions_BaseMachine.h" // System.Text.RegularExpressions.GroupCollection #include "System_System_Text_RegularExpressions_GroupCollection.h" extern TypeInfo Match_t1394_il2cpp_TypeInfo; extern TypeInfo QuickSearch_t1426_il2cpp_TypeInfo; extern TypeInfo Char_t389_il2cpp_TypeInfo; extern TypeInfo CharU5BU5D_t395_il2cpp_TypeInfo; extern TypeInfo String_t_il2cpp_TypeInfo; extern TypeInfo MarkU5BU5D_t1427_il2cpp_TypeInfo; extern TypeInfo Array_t_il2cpp_TypeInfo; extern TypeInfo Void_t133_il2cpp_TypeInfo; extern TypeInfo Capture_t1395_il2cpp_TypeInfo; extern TypeInfo BaseMachine_t1393_il2cpp_TypeInfo; extern TypeInfo Group_t1398_il2cpp_TypeInfo; extern TypeInfo GroupCollection_t1400_il2cpp_TypeInfo; // System.Text.RegularExpressions.BaseMachine #include "System_System_Text_RegularExpressions_BaseMachineMethodDeclarations.h" // System.Text.RegularExpressions.Match #include "System_System_Text_RegularExpressions_MatchMethodDeclarations.h" // System.String #include "mscorlib_System_StringMethodDeclarations.h" // System.Text.RegularExpressions.QuickSearch #include "System_System_Text_RegularExpressions_QuickSearchMethodDeclarations.h" // System.Char #include "mscorlib_System_CharMethodDeclarations.h" // System.Text.RegularExpressions.CategoryUtils #include "System_System_Text_RegularExpressions_CategoryUtilsMethodDeclarations.h" // System.Array #include "mscorlib_System_ArrayMethodDeclarations.h" // System.Text.RegularExpressions.Capture #include "System_System_Text_RegularExpressions_CaptureMethodDeclarations.h" // System.Text.RegularExpressions.Group #include "System_System_Text_RegularExpressions_GroupMethodDeclarations.h" // System.Text.RegularExpressions.CaptureCollection #include "System_System_Text_RegularExpressions_CaptureCollectionMethodDeclarations.h" // System.Text.RegularExpressions.GroupCollection #include "System_System_Text_RegularExpressions_GroupCollectionMethodDeclarations.h" extern Il2CppType CharU5BU5D_t395_0_0_0; extern Il2CppType MarkU5BU5D_t1427_0_0_0; extern MethodInfo BaseMachine__ctor_m7533_MethodInfo; extern MethodInfo Interpreter_ReadProgramCount_m7704_MethodInfo; extern MethodInfo Interpreter_Eval_m7707_MethodInfo; extern MethodInfo Interpreter_GenerateMatch_m7723_MethodInfo; extern MethodInfo Match_get_Empty_m7568_MethodInfo; extern MethodInfo Interpreter_ResetGroups_m7718_MethodInfo; extern MethodInfo Interpreter_TryMatch_m7709_MethodInfo; extern MethodInfo String_get_Chars_m2541_MethodInfo; extern MethodInfo Interpreter_GetString_m7712_MethodInfo; extern MethodInfo QuickSearch__ctor_m7787_MethodInfo; extern MethodInfo QuickSearch_Search_m7790_MethodInfo; extern MethodInfo QuickSearch_get_Length_m7789_MethodInfo; extern MethodInfo Interpreter_IsPosition_m7710_MethodInfo; extern MethodInfo Char_ToLower_m2600_MethodInfo; extern MethodInfo Interpreter_GetLastDefined_m7719_MethodInfo; extern MethodInfo Interpreter_EvalChar_m7708_MethodInfo; extern MethodInfo Interpreter_Open_m7713_MethodInfo; extern MethodInfo Interpreter_Close_m7714_MethodInfo; extern MethodInfo Interpreter_Balance_m7715_MethodInfo; extern MethodInfo Interpreter_Checkpoint_m7716_MethodInfo; extern MethodInfo Interpreter_Backtrack_m7717_MethodInfo; extern MethodInfo Char_ToUpper_m2598_MethodInfo; extern MethodInfo CategoryUtils_IsCategory_m7624_MethodInfo; extern MethodInfo Interpreter_Reset_m7706_MethodInfo; extern MethodInfo Interpreter_IsWordChar_m7711_MethodInfo; extern MethodInfo String__ctor_m8206_MethodInfo; extern MethodInfo Interpreter_CreateMark_m7720_MethodInfo; extern MethodInfo Array_CopyTo_m8174_MethodInfo; extern MethodInfo Capture__ctor_m7537_MethodInfo; extern MethodInfo Group_get_Captures_m7554_MethodInfo; extern MethodInfo CaptureCollection_SetValue_m7546_MethodInfo; extern MethodInfo Interpreter_GetGroupInfo_m7721_MethodInfo; extern MethodInfo Match__ctor_m7565_MethodInfo; extern MethodInfo Match__ctor_m7566_MethodInfo; extern MethodInfo Interpreter_PopulateGroup_m7722_MethodInfo; extern MethodInfo Group__ctor_m7550_MethodInfo; extern MethodInfo Match_get_Groups_m7569_MethodInfo; extern MethodInfo GroupCollection_SetValue_m7560_MethodInfo; // System.Void System.Text.RegularExpressions.Interpreter::.ctor(System.UInt16[]) extern MethodInfo Interpreter__ctor_m7703_MethodInfo; extern TypeInfo* Int32U5BU5D_t186_il2cpp_TypeInfo_var; extern "C" void Interpreter__ctor_m7703 (Interpreter_t1428 * __this, UInt16U5BU5D_t1333* ___program, MethodInfo* method) { static bool Interpreter__ctor_m7703_init; if (!Interpreter__ctor_m7703_init) { Int32U5BU5D_t186_il2cpp_TypeInfo_var = il2cpp_codegen_class_from_type(&Int32U5BU5D_t186_0_0_0); Interpreter__ctor_m7703_init = true; } IntStack_t1423 V_0 = {0}; { Initobj (InitializedTypeInfo(&IntStack_t1423_il2cpp_TypeInfo), (&V_0)); IntStack_t1423 L_0 = V_0; __this->___stack_11 = L_0; BaseMachine__ctor_m7533(__this, /*hidden argument*/&BaseMachine__ctor_m7533_MethodInfo); UInt16U5BU5D_t1333* L_1 = ___program; __this->___program_1 = L_1; __this->___qs_7 = (QuickSearch_t1426 *)NULL; int32_t L_2 = Interpreter_ReadProgramCount_m7704(__this, 1, /*hidden argument*/&Interpreter_ReadProgramCount_m7704_MethodInfo); __this->___group_count_5 = ((int32_t)((int32_t)L_2+(int32_t)1)); int32_t L_3 = Interpreter_ReadProgramCount_m7704(__this, 3, /*hidden argument*/&Interpreter_ReadProgramCount_m7704_MethodInfo); __this->___match_min_6 = L_3; __this->___program_start_2 = 7; int32_t L_4 = (__this->___group_count_5); __this->___groups_16 = ((Int32U5BU5D_t186*)SZArrayNew(Int32U5BU5D_t186_il2cpp_TypeInfo_var, L_4)); return; } } // System.Int32 System.Text.RegularExpressions.Interpreter::ReadProgramCount(System.Int32) extern "C" int32_t Interpreter_ReadProgramCount_m7704 (Interpreter_t1428 * __this, int32_t ___ptr, MethodInfo* method) { int32_t V_0 = 0; { UInt16U5BU5D_t1333* L_0 = (__this->___program_1); int32_t L_1 = ___ptr; NullCheck(L_0); IL2CPP_ARRAY_BOUNDS_CHECK(L_0, ((int32_t)((int32_t)L_1+(int32_t)1))); int32_t L_2 = ((int32_t)((int32_t)L_1+(int32_t)1)); V_0 = (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_0, L_2)); int32_t L_3 = V_0; V_0 = ((int32_t)((int32_t)L_3<<(int32_t)((int32_t)16))); int32_t L_4 = V_0; UInt16U5BU5D_t1333* L_5 = (__this->___program_1); int32_t L_6 = ___ptr; NullCheck(L_5); IL2CPP_ARRAY_BOUNDS_CHECK(L_5, L_6); int32_t L_7 = L_6; V_0 = ((int32_t)((int32_t)L_4+(int32_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_5, L_7)))); int32_t L_8 = V_0; return L_8; } } // System.Text.RegularExpressions.Match System.Text.RegularExpressions.Interpreter::Scan(System.Text.RegularExpressions.Regex,System.String,System.Int32,System.Int32) extern MethodInfo Interpreter_Scan_m7705_MethodInfo; extern "C" Match_t1394 * Interpreter_Scan_m7705 (Interpreter_t1428 * __this, Regex_t858 * ___regex, String_t* ___text, int32_t ___start, int32_t ___end, MethodInfo* method) { { String_t* L_0 = ___text; __this->___text_3 = L_0; int32_t L_1 = ___end; __this->___text_end_4 = L_1; int32_t L_2 = ___start; __this->___scan_ptr_8 = L_2; int32_t* L_3 = &(__this->___scan_ptr_8); int32_t L_4 = (__this->___program_start_2); bool L_5 = Interpreter_Eval_m7707(__this, 1, L_3, L_4, /*hidden argument*/&Interpreter_Eval_m7707_MethodInfo); if (!L_5) { goto IL_0036; } } { Regex_t858 * L_6 = ___regex; Match_t1394 * L_7 = Interpreter_GenerateMatch_m7723(__this, L_6, /*hidden argument*/&Interpreter_GenerateMatch_m7723_MethodInfo); return L_7; } IL_0036: { IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Match_t1394_il2cpp_TypeInfo)); Match_t1394 * L_8 = Match_get_Empty_m7568(NULL /*static, unused*/, /*hidden argument*/&Match_get_Empty_m7568_MethodInfo); return L_8; } } // System.Void System.Text.RegularExpressions.Interpreter::Reset() extern "C" void Interpreter_Reset_m7706 (Interpreter_t1428 * __this, MethodInfo* method) { RepeatContext_t1424 * V_0 = {0}; { Interpreter_ResetGroups_m7718(__this, /*hidden argument*/&Interpreter_ResetGroups_m7718_MethodInfo); V_0 = (RepeatContext_t1424 *)NULL; __this->___repeat_9 = (RepeatContext_t1424 *)NULL; RepeatContext_t1424 * L_0 = V_0; __this->___fast_10 = L_0; return; } } // System.Boolean System.Text.RegularExpressions.Interpreter::Eval(System.Text.RegularExpressions.Interpreter/Mode,System.Int32&,System.Int32) extern "C" bool Interpreter_Eval_m7707 (Interpreter_t1428 * __this, int32_t ___mode, int32_t* ___ref_ptr, int32_t ___pc, MethodInfo* method) { int32_t V_0 = 0; uint16_t V_1 = 0; uint16_t V_2 = {0}; uint16_t V_3 = {0}; int32_t V_4 = 0; int32_t V_5 = 0; bool V_6 = false; int32_t V_7 = 0; int32_t V_8 = 0; int32_t V_9 = 0; uint16_t V_10 = {0}; bool V_11 = false; bool V_12 = false; String_t* V_13 = {0}; bool V_14 = false; bool V_15 = false; int32_t V_16 = 0; int32_t V_17 = 0; uint16_t V_18 = 0x0; bool V_19 = false; bool V_20 = false; int32_t V_21 = 0; int32_t V_22 = 0; int32_t V_23 = 0; int32_t V_24 = 0; int32_t V_25 = 0; int32_t V_26 = 0; int32_t V_27 = 0; int32_t V_28 = 0; int32_t V_29 = 0; int32_t V_30 = 0; uint16_t V_31 = {0}; int32_t V_32 = 0; RepeatContext_t1424 * V_33 = {0}; int32_t V_34 = 0; int32_t V_35 = 0; int32_t V_36 = 0; int32_t V_37 = 0; int32_t V_38 = 0; int32_t V_39 = 0; int32_t V_40 = 0; int32_t V_41 = 0; uint16_t V_42 = 0; int32_t V_43 = 0; int32_t V_44 = 0; int32_t V_45 = 0; uint16_t V_46 = {0}; uint16_t V_47 = {0}; int32_t V_48 = 0; int32_t V_49 = 0; int32_t V_50 = 0; int32_t V_51 = 0; uint16_t V_52 = {0}; uint16_t V_53 = {0}; int32_t V_54 = {0}; int32_t G_B7_0 = 0; int32_t G_B29_0 = 0; int32_t G_B33_0 = 0; int32_t G_B48_0 = 0; int32_t G_B69_0 = 0; int32_t G_B96_0 = 0; int32_t G_B162_0 = 0; int32_t G_B162_1 = 0; Interpreter_t1428 * G_B162_2 = {0}; int32_t G_B161_0 = 0; int32_t G_B161_1 = 0; Interpreter_t1428 * G_B161_2 = {0}; int32_t G_B163_0 = 0; int32_t G_B163_1 = 0; int32_t G_B163_2 = 0; Interpreter_t1428 * G_B163_3 = {0}; { int32_t* L_0 = ___ref_ptr; V_0 = (*((int32_t*)L_0)); } IL_0003: { goto IL_0fee; } IL_0008: { UInt16U5BU5D_t1333* L_1 = (__this->___program_1); int32_t L_2 = ___pc; NullCheck(L_1); IL2CPP_ARRAY_BOUNDS_CHECK(L_1, L_2); int32_t L_3 = L_2; V_1 = (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_1, L_3)); uint16_t L_4 = V_1; V_2 = (((uint16_t)((int32_t)((int32_t)L_4&(int32_t)((int32_t)255))))); uint16_t L_5 = V_1; V_3 = (((uint16_t)((int32_t)((int32_t)L_5&(int32_t)((int32_t)65280))))); uint16_t L_6 = V_2; V_52 = L_6; uint16_t L_7 = V_52; if (L_7 == 0) { goto IL_04b8; } if (L_7 == 1) { goto IL_04bd; } if (L_7 == 2) { goto IL_04c2; } if (L_7 == 3) { goto IL_04e7; } if (L_7 == 4) { goto IL_05ab; } if (L_7 == 5) { goto IL_06ef; } if (L_7 == 6) { goto IL_06ef; } if (L_7 == 7) { goto IL_06ef; } if (L_7 == 8) { goto IL_06ef; } if (L_7 == 9) { goto IL_06ef; } if (L_7 == 10) { goto IL_070a; } if (L_7 == 11) { goto IL_073c; } if (L_7 == 12) { goto IL_0757; } if (L_7 == 13) { goto IL_07db; } if (L_7 == 14) { goto IL_0772; } if (L_7 == 15) { goto IL_07e0; } if (L_7 == 16) { goto IL_0817; } if (L_7 == 17) { goto IL_0840; } if (L_7 == 18) { goto IL_088a; } if (L_7 == 19) { goto IL_08db; } if (L_7 == 20) { goto IL_08ee; } if (L_7 == 21) { goto IL_0957; } if (L_7 == 22) { goto IL_0c6f; } if (L_7 == 23) { goto IL_0096; } if (L_7 == 24) { goto IL_0fe9; } } { goto IL_0fee; } IL_0096: { UInt16U5BU5D_t1333* L_8 = (__this->___program_1); int32_t L_9 = ___pc; NullCheck(L_8); IL2CPP_ARRAY_BOUNDS_CHECK(L_8, ((int32_t)((int32_t)L_9+(int32_t)1))); int32_t L_10 = ((int32_t)((int32_t)L_9+(int32_t)1)); V_4 = (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_8, L_10)); UInt16U5BU5D_t1333* L_11 = (__this->___program_1); int32_t L_12 = ___pc; NullCheck(L_11); IL2CPP_ARRAY_BOUNDS_CHECK(L_11, ((int32_t)((int32_t)L_12+(int32_t)2))); int32_t L_13 = ((int32_t)((int32_t)L_12+(int32_t)2)); V_5 = (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_11, L_13)); uint16_t L_14 = V_3; V_6 = ((((int32_t)((((int32_t)(((uint16_t)((int32_t)((int32_t)L_14&(int32_t)((int32_t)1024)))))) == ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0); bool L_15 = V_6; if (!L_15) { goto IL_00ce; } } { int32_t L_16 = V_0; int32_t L_17 = V_5; G_B7_0 = ((int32_t)((int32_t)L_16-(int32_t)L_17)); goto IL_00d2; } IL_00ce: { int32_t L_18 = V_0; int32_t L_19 = V_5; G_B7_0 = ((int32_t)((int32_t)L_18+(int32_t)L_19)); } IL_00d2: { V_7 = G_B7_0; int32_t L_20 = (__this->___text_end_4); int32_t L_21 = (__this->___match_min_6); int32_t L_22 = V_5; V_8 = ((int32_t)((int32_t)((int32_t)((int32_t)L_20-(int32_t)L_21))+(int32_t)L_22)); V_9 = 0; UInt16U5BU5D_t1333* L_23 = (__this->___program_1); int32_t L_24 = ___pc; NullCheck(L_23); IL2CPP_ARRAY_BOUNDS_CHECK(L_23, ((int32_t)((int32_t)L_24+(int32_t)3))); int32_t L_25 = ((int32_t)((int32_t)L_24+(int32_t)3)); V_10 = (((uint16_t)((int32_t)((int32_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_23, L_25))&(int32_t)((int32_t)255))))); uint16_t L_26 = V_10; if ((!(((uint32_t)L_26) == ((uint32_t)2)))) { goto IL_0285; } } { int32_t L_27 = V_4; if ((!(((uint32_t)L_27) == ((uint32_t)6)))) { goto IL_0285; } } { UInt16U5BU5D_t1333* L_28 = (__this->___program_1); int32_t L_29 = ___pc; NullCheck(L_28); IL2CPP_ARRAY_BOUNDS_CHECK(L_28, ((int32_t)((int32_t)L_29+(int32_t)4))); int32_t L_30 = ((int32_t)((int32_t)L_29+(int32_t)4)); V_53 = (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_28, L_30)); uint16_t L_31 = V_53; if (((int32_t)((int32_t)L_31-(int32_t)2)) == 0) { goto IL_0132; } if (((int32_t)((int32_t)L_31-(int32_t)2)) == 1) { goto IL_0165; } if (((int32_t)((int32_t)L_31-(int32_t)2)) == 2) { goto IL_0234; } } { goto IL_027b; } IL_0132: { bool L_32 = V_6; if (L_32) { goto IL_0140; } } { int32_t L_33 = V_5; if (L_33) { goto IL_0160; } } IL_0140: { bool L_34 = V_6; if (!L_34) { goto IL_014a; } } { int32_t L_35 = V_5; V_0 = L_35; } IL_014a: { int32_t L_36 = ___pc; int32_t L_37 = V_4; bool L_38 = Interpreter_TryMatch_m7709(__this, (&V_0), ((int32_t)((int32_t)L_36+(int32_t)L_37)), /*hidden argument*/&Interpreter_TryMatch_m7709_MethodInfo); if (!L_38) { goto IL_0160; } } { goto IL_0ff3; } IL_0160: { goto IL_0280; } IL_0165: { int32_t L_39 = V_7; if (L_39) { goto IL_018a; } } { V_0 = 0; int32_t L_40 = ___pc; int32_t L_41 = V_4; bool L_42 = Interpreter_TryMatch_m7709(__this, (&V_0), ((int32_t)((int32_t)L_40+(int32_t)L_41)), /*hidden argument*/&Interpreter_TryMatch_m7709_MethodInfo); if (!L_42) { goto IL_0184; } } { goto IL_0ff3; } IL_0184: { int32_t L_43 = V_7; V_7 = ((int32_t)((int32_t)L_43+(int32_t)1)); } IL_018a: { goto IL_0210; } IL_018f: { int32_t L_44 = V_7; if (!L_44) { goto IL_01ac; } } { String_t* L_45 = (__this->___text_3); int32_t L_46 = V_7; NullCheck(L_45); uint16_t L_47 = String_get_Chars_m2541(L_45, ((int32_t)((int32_t)L_46-(int32_t)1)), /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((!(((uint32_t)L_47) == ((uint32_t)((int32_t)10))))) { goto IL_01f8; } } IL_01ac: { bool L_48 = V_6; if (!L_48) { goto IL_01ce; } } { int32_t L_49 = V_7; int32_t L_50 = V_8; if ((!(((uint32_t)L_49) == ((uint32_t)L_50)))) { goto IL_01c3; } } { int32_t L_51 = V_7; G_B29_0 = L_51; goto IL_01c8; } IL_01c3: { int32_t L_52 = V_7; int32_t L_53 = V_5; G_B29_0 = ((int32_t)((int32_t)L_52+(int32_t)L_53)); } IL_01c8: { V_0 = G_B29_0; goto IL_01e2; } IL_01ce: { int32_t L_54 = V_7; if (L_54) { goto IL_01dc; } } { int32_t L_55 = V_7; G_B33_0 = L_55; goto IL_01e1; } IL_01dc: { int32_t L_56 = V_7; int32_t L_57 = V_5; G_B33_0 = ((int32_t)((int32_t)L_56-(int32_t)L_57)); } IL_01e1: { V_0 = G_B33_0; } IL_01e2: { int32_t L_58 = ___pc; int32_t L_59 = V_4; bool L_60 = Interpreter_TryMatch_m7709(__this, (&V_0), ((int32_t)((int32_t)L_58+(int32_t)L_59)), /*hidden argument*/&Interpreter_TryMatch_m7709_MethodInfo); if (!L_60) { goto IL_01f8; } } { goto IL_0ff3; } IL_01f8: { bool L_61 = V_6; if (!L_61) { goto IL_020a; } } { int32_t L_62 = V_7; V_7 = ((int32_t)((int32_t)L_62-(int32_t)1)); goto IL_0210; } IL_020a: { int32_t L_63 = V_7; V_7 = ((int32_t)((int32_t)L_63+(int32_t)1)); } IL_0210: { bool L_64 = V_6; if (!L_64) { goto IL_021f; } } { int32_t L_65 = V_7; if ((((int32_t)L_65) >= ((int32_t)0))) { goto IL_018f; } } IL_021f: { bool L_66 = V_6; if (L_66) { goto IL_022f; } } { int32_t L_67 = V_7; int32_t L_68 = V_8; if ((((int32_t)L_67) <= ((int32_t)L_68))) { goto IL_018f; } } IL_022f: { goto IL_0280; } IL_0234: { int32_t L_69 = V_7; int32_t L_70 = (__this->___scan_ptr_8); if ((!(((uint32_t)L_69) == ((uint32_t)L_70)))) { goto IL_0276; } } { bool L_71 = V_6; if (!L_71) { goto IL_0256; } } { int32_t L_72 = (__this->___scan_ptr_8); int32_t L_73 = V_5; G_B48_0 = ((int32_t)((int32_t)L_72+(int32_t)L_73)); goto IL_025f; } IL_0256: { int32_t L_74 = (__this->___scan_ptr_8); int32_t L_75 = V_5; G_B48_0 = ((int32_t)((int32_t)L_74-(int32_t)L_75)); } IL_025f: { V_0 = G_B48_0; int32_t L_76 = ___pc; int32_t L_77 = V_4; bool L_78 = Interpreter_TryMatch_m7709(__this, (&V_0), ((int32_t)((int32_t)L_76+(int32_t)L_77)), /*hidden argument*/&Interpreter_TryMatch_m7709_MethodInfo); if (!L_78) { goto IL_0276; } } { goto IL_0ff3; } IL_0276: { goto IL_0280; } IL_027b: { goto IL_0280; } IL_0280: { goto IL_04b3; } IL_0285: { QuickSearch_t1426 * L_79 = (__this->___qs_7); if (L_79) { goto IL_02ab; } } { uint16_t L_80 = V_10; if ((!(((uint32_t)L_80) == ((uint32_t)3)))) { goto IL_03d2; } } { int32_t L_81 = V_4; UInt16U5BU5D_t1333* L_82 = (__this->___program_1); int32_t L_83 = ___pc; NullCheck(L_82); IL2CPP_ARRAY_BOUNDS_CHECK(L_82, ((int32_t)((int32_t)L_83+(int32_t)4))); int32_t L_84 = ((int32_t)((int32_t)L_83+(int32_t)4)); if ((!(((uint32_t)L_81) == ((uint32_t)((int32_t)((int32_t)6+(int32_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_82, L_84)))))))) { goto IL_03d2; } } IL_02ab: { UInt16U5BU5D_t1333* L_85 = (__this->___program_1); int32_t L_86 = ___pc; NullCheck(L_85); IL2CPP_ARRAY_BOUNDS_CHECK(L_85, ((int32_t)((int32_t)L_86+(int32_t)3))); int32_t L_87 = ((int32_t)((int32_t)L_86+(int32_t)3)); V_11 = ((((int32_t)((((int32_t)(((uint16_t)((int32_t)((int32_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_85, L_87))&(int32_t)((int32_t)1024)))))) == ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0); QuickSearch_t1426 * L_88 = (__this->___qs_7); if (L_88) { goto IL_0304; } } { UInt16U5BU5D_t1333* L_89 = (__this->___program_1); int32_t L_90 = ___pc; NullCheck(L_89); IL2CPP_ARRAY_BOUNDS_CHECK(L_89, ((int32_t)((int32_t)L_90+(int32_t)3))); int32_t L_91 = ((int32_t)((int32_t)L_90+(int32_t)3)); V_12 = ((((int32_t)((((int32_t)(((uint16_t)((int32_t)((int32_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_89, L_91))&(int32_t)((int32_t)512)))))) == ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0); int32_t L_92 = ___pc; String_t* L_93 = Interpreter_GetString_m7712(__this, ((int32_t)((int32_t)L_92+(int32_t)3)), /*hidden argument*/&Interpreter_GetString_m7712_MethodInfo); V_13 = L_93; String_t* L_94 = V_13; bool L_95 = V_12; bool L_96 = V_11; IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&QuickSearch_t1426_il2cpp_TypeInfo)); QuickSearch_t1426 * L_97 = (QuickSearch_t1426 *)il2cpp_codegen_object_new (InitializedTypeInfo(&QuickSearch_t1426_il2cpp_TypeInfo)); QuickSearch__ctor_m7787(L_97, L_94, L_95, L_96, /*hidden argument*/&QuickSearch__ctor_m7787_MethodInfo); __this->___qs_7 = L_97; } IL_0304: { goto IL_03ad; } IL_0309: { bool L_98 = V_11; if (!L_98) { goto IL_0344; } } { QuickSearch_t1426 * L_99 = (__this->___qs_7); String_t* L_100 = (__this->___text_3); int32_t L_101 = V_7; int32_t L_102 = V_9; NullCheck(L_99); int32_t L_103 = QuickSearch_Search_m7790(L_99, L_100, L_101, L_102, /*hidden argument*/&QuickSearch_Search_m7790_MethodInfo); V_7 = L_103; int32_t L_104 = V_7; if ((((int32_t)L_104) == ((int32_t)(-1)))) { goto IL_033f; } } { int32_t L_105 = V_7; QuickSearch_t1426 * L_106 = (__this->___qs_7); NullCheck(L_106); int32_t L_107 = QuickSearch_get_Length_m7789(L_106, /*hidden argument*/&QuickSearch_get_Length_m7789_MethodInfo); V_7 = ((int32_t)((int32_t)L_105+(int32_t)L_107)); } IL_033f: { goto IL_035b; } IL_0344: { QuickSearch_t1426 * L_108 = (__this->___qs_7); String_t* L_109 = (__this->___text_3); int32_t L_110 = V_7; int32_t L_111 = V_8; NullCheck(L_108); int32_t L_112 = QuickSearch_Search_m7790(L_108, L_109, L_110, L_111, /*hidden argument*/&QuickSearch_Search_m7790_MethodInfo); V_7 = L_112; } IL_035b: { int32_t L_113 = V_7; if ((((int32_t)L_113) >= ((int32_t)0))) { goto IL_0368; } } { goto IL_03cd; } IL_0368: { bool L_114 = V_11; if (!L_114) { goto IL_0379; } } { int32_t L_115 = V_7; int32_t L_116 = V_5; G_B69_0 = ((int32_t)((int32_t)L_115+(int32_t)L_116)); goto IL_037e; } IL_0379: { int32_t L_117 = V_7; int32_t L_118 = V_5; G_B69_0 = ((int32_t)((int32_t)L_117-(int32_t)L_118)); } IL_037e: { V_0 = G_B69_0; int32_t L_119 = ___pc; int32_t L_120 = V_4; bool L_121 = Interpreter_TryMatch_m7709(__this, (&V_0), ((int32_t)((int32_t)L_119+(int32_t)L_120)), /*hidden argument*/&Interpreter_TryMatch_m7709_MethodInfo); if (!L_121) { goto IL_0395; } } { goto IL_0ff3; } IL_0395: { bool L_122 = V_11; if (!L_122) { goto IL_03a7; } } { int32_t L_123 = V_7; V_7 = ((int32_t)((int32_t)L_123-(int32_t)2)); goto IL_03ad; } IL_03a7: { int32_t L_124 = V_7; V_7 = ((int32_t)((int32_t)L_124+(int32_t)1)); } IL_03ad: { bool L_125 = V_6; if (!L_125) { goto IL_03bd; } } { int32_t L_126 = V_7; int32_t L_127 = V_9; if ((((int32_t)L_126) >= ((int32_t)L_127))) { goto IL_0309; } } IL_03bd: { bool L_128 = V_6; if (L_128) { goto IL_03cd; } } { int32_t L_129 = V_7; int32_t L_130 = V_8; if ((((int32_t)L_129) <= ((int32_t)L_130))) { goto IL_0309; } } IL_03cd: { goto IL_04b3; } IL_03d2: { uint16_t L_131 = V_10; if ((!(((uint32_t)L_131) == ((uint32_t)1)))) { goto IL_0435; } } { goto IL_0410; } IL_03df: { int32_t L_132 = V_7; V_0 = L_132; int32_t L_133 = ___pc; int32_t L_134 = V_4; bool L_135 = Interpreter_TryMatch_m7709(__this, (&V_0), ((int32_t)((int32_t)L_133+(int32_t)L_134)), /*hidden argument*/&Interpreter_TryMatch_m7709_MethodInfo); if (!L_135) { goto IL_03f8; } } { goto IL_0ff3; } IL_03f8: { bool L_136 = V_6; if (!L_136) { goto IL_040a; } } { int32_t L_137 = V_7; V_7 = ((int32_t)((int32_t)L_137-(int32_t)1)); goto IL_0410; } IL_040a: { int32_t L_138 = V_7; V_7 = ((int32_t)((int32_t)L_138+(int32_t)1)); } IL_0410: { bool L_139 = V_6; if (!L_139) { goto IL_0420; } } { int32_t L_140 = V_7; int32_t L_141 = V_9; if ((((int32_t)L_140) >= ((int32_t)L_141))) { goto IL_03df; } } IL_0420: { bool L_142 = V_6; if (L_142) { goto IL_0430; } } { int32_t L_143 = V_7; int32_t L_144 = V_8; if ((((int32_t)L_143) <= ((int32_t)L_144))) { goto IL_03df; } } IL_0430: { goto IL_04b3; } IL_0435: { goto IL_0493; } IL_043a: { int32_t L_145 = V_7; V_0 = L_145; int32_t L_146 = ___pc; bool L_147 = Interpreter_Eval_m7707(__this, 1, (&V_0), ((int32_t)((int32_t)L_146+(int32_t)3)), /*hidden argument*/&Interpreter_Eval_m7707_MethodInfo); if (!L_147) { goto IL_047b; } } { bool L_148 = V_6; if (!L_148) { goto IL_045f; } } { int32_t L_149 = V_7; int32_t L_150 = V_5; G_B96_0 = ((int32_t)((int32_t)L_149+(int32_t)L_150)); goto IL_0464; } IL_045f: { int32_t L_151 = V_7; int32_t L_152 = V_5; G_B96_0 = ((int32_t)((int32_t)L_151-(int32_t)L_152)); } IL_0464: { V_0 = G_B96_0; int32_t L_153 = ___pc; int32_t L_154 = V_4; bool L_155 = Interpreter_TryMatch_m7709(__this, (&V_0), ((int32_t)((int32_t)L_153+(int32_t)L_154)), /*hidden argument*/&Interpreter_TryMatch_m7709_MethodInfo); if (!L_155) { goto IL_047b; } } { goto IL_0ff3; } IL_047b: { bool L_156 = V_6; if (!L_156) { goto IL_048d; } } { int32_t L_157 = V_7; V_7 = ((int32_t)((int32_t)L_157-(int32_t)1)); goto IL_0493; } IL_048d: { int32_t L_158 = V_7; V_7 = ((int32_t)((int32_t)L_158+(int32_t)1)); } IL_0493: { bool L_159 = V_6; if (!L_159) { goto IL_04a3; } } { int32_t L_160 = V_7; int32_t L_161 = V_9; if ((((int32_t)L_160) >= ((int32_t)L_161))) { goto IL_043a; } } IL_04a3: { bool L_162 = V_6; if (L_162) { goto IL_04b3; } } { int32_t L_163 = V_7; int32_t L_164 = V_8; if ((((int32_t)L_163) <= ((int32_t)L_164))) { goto IL_043a; } } IL_04b3: { goto IL_1067; } IL_04b8: { goto IL_1067; } IL_04bd: { goto IL_0ff3; } IL_04c2: { UInt16U5BU5D_t1333* L_165 = (__this->___program_1); int32_t L_166 = ___pc; NullCheck(L_165); IL2CPP_ARRAY_BOUNDS_CHECK(L_165, ((int32_t)((int32_t)L_166+(int32_t)1))); int32_t L_167 = ((int32_t)((int32_t)L_166+(int32_t)1)); int32_t L_168 = V_0; bool L_169 = Interpreter_IsPosition_m7710(__this, (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_165, L_167)), L_168, /*hidden argument*/&Interpreter_IsPosition_m7710_MethodInfo); if (L_169) { goto IL_04dd; } } { goto IL_1067; } IL_04dd: { int32_t L_170 = ___pc; ___pc = ((int32_t)((int32_t)L_170+(int32_t)2)); goto IL_0fee; } IL_04e7: { uint16_t L_171 = V_3; V_14 = ((((int32_t)((((int32_t)(((uint16_t)((int32_t)((int32_t)L_171&(int32_t)((int32_t)1024)))))) == ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0); uint16_t L_172 = V_3; V_15 = ((((int32_t)((((int32_t)(((uint16_t)((int32_t)((int32_t)L_172&(int32_t)((int32_t)512)))))) == ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0); UInt16U5BU5D_t1333* L_173 = (__this->___program_1); int32_t L_174 = ___pc; NullCheck(L_173); IL2CPP_ARRAY_BOUNDS_CHECK(L_173, ((int32_t)((int32_t)L_174+(int32_t)1))); int32_t L_175 = ((int32_t)((int32_t)L_174+(int32_t)1)); V_16 = (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_173, L_175)); bool L_176 = V_14; if (!L_176) { goto IL_0530; } } { int32_t L_177 = V_0; int32_t L_178 = V_16; V_0 = ((int32_t)((int32_t)L_177-(int32_t)L_178)); int32_t L_179 = V_0; if ((((int32_t)L_179) >= ((int32_t)0))) { goto IL_052b; } } { goto IL_1067; } IL_052b: { goto IL_0544; } IL_0530: { int32_t L_180 = V_0; int32_t L_181 = V_16; int32_t L_182 = (__this->___text_end_4); if ((((int32_t)((int32_t)((int32_t)L_180+(int32_t)L_181))) <= ((int32_t)L_182))) { goto IL_0544; } } { goto IL_1067; } IL_0544: { int32_t L_183 = ___pc; ___pc = ((int32_t)((int32_t)L_183+(int32_t)2)); V_17 = 0; goto IL_0591; } IL_0551: { String_t* L_184 = (__this->___text_3); int32_t L_185 = V_0; int32_t L_186 = V_17; NullCheck(L_184); uint16_t L_187 = String_get_Chars_m2541(L_184, ((int32_t)((int32_t)L_185+(int32_t)L_186)), /*hidden argument*/&String_get_Chars_m2541_MethodInfo); V_18 = L_187; bool L_188 = V_15; if (!L_188) { goto IL_0572; } } { uint16_t L_189 = V_18; IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Char_t389_il2cpp_TypeInfo)); uint16_t L_190 = Char_ToLower_m2600(NULL /*static, unused*/, L_189, /*hidden argument*/&Char_ToLower_m2600_MethodInfo); V_18 = L_190; } IL_0572: { uint16_t L_191 = V_18; UInt16U5BU5D_t1333* L_192 = (__this->___program_1); int32_t L_193 = ___pc; int32_t L_194 = L_193; ___pc = ((int32_t)((int32_t)L_194+(int32_t)1)); NullCheck(L_192); IL2CPP_ARRAY_BOUNDS_CHECK(L_192, L_194); int32_t L_195 = L_194; if ((((int32_t)L_191) == ((int32_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_192, L_195))))) { goto IL_058b; } } { goto IL_1067; } IL_058b: { int32_t L_196 = V_17; V_17 = ((int32_t)((int32_t)L_196+(int32_t)1)); } IL_0591: { int32_t L_197 = V_17; int32_t L_198 = V_16; if ((((int32_t)L_197) < ((int32_t)L_198))) { goto IL_0551; } } { bool L_199 = V_14; if (L_199) { goto IL_05a6; } } { int32_t L_200 = V_0; int32_t L_201 = V_16; V_0 = ((int32_t)((int32_t)L_200+(int32_t)L_201)); } IL_05a6: { goto IL_0fee; } IL_05ab: { uint16_t L_202 = V_3; V_19 = ((((int32_t)((((int32_t)(((uint16_t)((int32_t)((int32_t)L_202&(int32_t)((int32_t)1024)))))) == ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0); uint16_t L_203 = V_3; V_20 = ((((int32_t)((((int32_t)(((uint16_t)((int32_t)((int32_t)L_203&(int32_t)((int32_t)512)))))) == ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0); UInt16U5BU5D_t1333* L_204 = (__this->___program_1); int32_t L_205 = ___pc; NullCheck(L_204); IL2CPP_ARRAY_BOUNDS_CHECK(L_204, ((int32_t)((int32_t)L_205+(int32_t)1))); int32_t L_206 = ((int32_t)((int32_t)L_205+(int32_t)1)); int32_t L_207 = Interpreter_GetLastDefined_m7719(__this, (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_204, L_206)), /*hidden argument*/&Interpreter_GetLastDefined_m7719_MethodInfo); V_21 = L_207; int32_t L_208 = V_21; if ((((int32_t)L_208) >= ((int32_t)0))) { goto IL_05ea; } } { goto IL_1067; } IL_05ea: { MarkU5BU5D_t1427* L_209 = (__this->___marks_13); int32_t L_210 = V_21; NullCheck(L_209); IL2CPP_ARRAY_BOUNDS_CHECK(L_209, L_210); int32_t L_211 = Mark_get_Index_m7687(((Mark_t1422 *)(Mark_t1422 *)SZArrayLdElema(L_209, L_210)), /*hidden argument*/&Mark_get_Index_m7687_MethodInfo); V_22 = L_211; MarkU5BU5D_t1427* L_212 = (__this->___marks_13); int32_t L_213 = V_21; NullCheck(L_212); IL2CPP_ARRAY_BOUNDS_CHECK(L_212, L_213); int32_t L_214 = Mark_get_Length_m7688(((Mark_t1422 *)(Mark_t1422 *)SZArrayLdElema(L_212, L_213)), /*hidden argument*/&Mark_get_Length_m7688_MethodInfo); V_23 = L_214; bool L_215 = V_19; if (!L_215) { goto IL_062f; } } { int32_t L_216 = V_0; int32_t L_217 = V_23; V_0 = ((int32_t)((int32_t)L_216-(int32_t)L_217)); int32_t L_218 = V_0; if ((((int32_t)L_218) >= ((int32_t)0))) { goto IL_062a; } } { goto IL_1067; } IL_062a: { goto IL_0643; } IL_062f: { int32_t L_219 = V_0; int32_t L_220 = V_23; int32_t L_221 = (__this->___text_end_4); if ((((int32_t)((int32_t)((int32_t)L_219+(int32_t)L_220))) <= ((int32_t)L_221))) { goto IL_0643; } } { goto IL_1067; } IL_0643: { int32_t L_222 = ___pc; ___pc = ((int32_t)((int32_t)L_222+(int32_t)2)); bool L_223 = V_20; if (!L_223) { goto IL_069e; } } { V_24 = 0; goto IL_0690; } IL_0657: { String_t* L_224 = (__this->___text_3); int32_t L_225 = V_0; int32_t L_226 = V_24; NullCheck(L_224); uint16_t L_227 = String_get_Chars_m2541(L_224, ((int32_t)((int32_t)L_225+(int32_t)L_226)), /*hidden argument*/&String_get_Chars_m2541_MethodInfo); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Char_t389_il2cpp_TypeInfo)); uint16_t L_228 = Char_ToLower_m2600(NULL /*static, unused*/, L_227, /*hidden argument*/&Char_ToLower_m2600_MethodInfo); String_t* L_229 = (__this->___text_3); int32_t L_230 = V_22; int32_t L_231 = V_24; NullCheck(L_229); uint16_t L_232 = String_get_Chars_m2541(L_229, ((int32_t)((int32_t)L_230+(int32_t)L_231)), /*hidden argument*/&String_get_Chars_m2541_MethodInfo); uint16_t L_233 = Char_ToLower_m2600(NULL /*static, unused*/, L_232, /*hidden argument*/&Char_ToLower_m2600_MethodInfo); if ((((int32_t)L_228) == ((int32_t)L_233))) { goto IL_068a; } } { goto IL_1067; } IL_068a: { int32_t L_234 = V_24; V_24 = ((int32_t)((int32_t)L_234+(int32_t)1)); } IL_0690: { int32_t L_235 = V_24; int32_t L_236 = V_23; if ((((int32_t)L_235) < ((int32_t)L_236))) { goto IL_0657; } } { goto IL_06de; } IL_069e: { V_25 = 0; goto IL_06d5; } IL_06a6: { String_t* L_237 = (__this->___text_3); int32_t L_238 = V_0; int32_t L_239 = V_25; NullCheck(L_237); uint16_t L_240 = String_get_Chars_m2541(L_237, ((int32_t)((int32_t)L_238+(int32_t)L_239)), /*hidden argument*/&String_get_Chars_m2541_MethodInfo); String_t* L_241 = (__this->___text_3); int32_t L_242 = V_22; int32_t L_243 = V_25; NullCheck(L_241); uint16_t L_244 = String_get_Chars_m2541(L_241, ((int32_t)((int32_t)L_242+(int32_t)L_243)), /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((((int32_t)L_240) == ((int32_t)L_244))) { goto IL_06cf; } } { goto IL_1067; } IL_06cf: { int32_t L_245 = V_25; V_25 = ((int32_t)((int32_t)L_245+(int32_t)1)); } IL_06d5: { int32_t L_246 = V_25; int32_t L_247 = V_23; if ((((int32_t)L_246) < ((int32_t)L_247))) { goto IL_06a6; } } IL_06de: { bool L_248 = V_19; if (L_248) { goto IL_06ea; } } { int32_t L_249 = V_0; int32_t L_250 = V_23; V_0 = ((int32_t)((int32_t)L_249+(int32_t)L_250)); } IL_06ea: { goto IL_0fee; } IL_06ef: { int32_t L_251 = ___mode; bool L_252 = Interpreter_EvalChar_m7708(__this, L_251, (&V_0), (&___pc), 0, /*hidden argument*/&Interpreter_EvalChar_m7708_MethodInfo); if (L_252) { goto IL_0705; } } { goto IL_1067; } IL_0705: { goto IL_0fee; } IL_070a: { int32_t L_253 = ___pc; UInt16U5BU5D_t1333* L_254 = (__this->___program_1); int32_t L_255 = ___pc; NullCheck(L_254); IL2CPP_ARRAY_BOUNDS_CHECK(L_254, ((int32_t)((int32_t)L_255+(int32_t)1))); int32_t L_256 = ((int32_t)((int32_t)L_255+(int32_t)1)); V_26 = ((int32_t)((int32_t)L_253+(int32_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_254, L_256)))); int32_t L_257 = ___pc; ___pc = ((int32_t)((int32_t)L_257+(int32_t)2)); int32_t L_258 = ___mode; bool L_259 = Interpreter_EvalChar_m7708(__this, L_258, (&V_0), (&___pc), 1, /*hidden argument*/&Interpreter_EvalChar_m7708_MethodInfo); if (L_259) { goto IL_0733; } } { goto IL_1067; } IL_0733: { int32_t L_260 = V_26; ___pc = L_260; goto IL_0fee; } IL_073c: { UInt16U5BU5D_t1333* L_261 = (__this->___program_1); int32_t L_262 = ___pc; NullCheck(L_261); IL2CPP_ARRAY_BOUNDS_CHECK(L_261, ((int32_t)((int32_t)L_262+(int32_t)1))); int32_t L_263 = ((int32_t)((int32_t)L_262+(int32_t)1)); int32_t L_264 = V_0; Interpreter_Open_m7713(__this, (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_261, L_263)), L_264, /*hidden argument*/&Interpreter_Open_m7713_MethodInfo); int32_t L_265 = ___pc; ___pc = ((int32_t)((int32_t)L_265+(int32_t)2)); goto IL_0fee; } IL_0757: { UInt16U5BU5D_t1333* L_266 = (__this->___program_1); int32_t L_267 = ___pc; NullCheck(L_266); IL2CPP_ARRAY_BOUNDS_CHECK(L_266, ((int32_t)((int32_t)L_267+(int32_t)1))); int32_t L_268 = ((int32_t)((int32_t)L_267+(int32_t)1)); int32_t L_269 = V_0; Interpreter_Close_m7714(__this, (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_266, L_268)), L_269, /*hidden argument*/&Interpreter_Close_m7714_MethodInfo); int32_t L_270 = ___pc; ___pc = ((int32_t)((int32_t)L_270+(int32_t)2)); goto IL_0fee; } IL_0772: { int32_t L_271 = V_0; V_27 = L_271; int32_t L_272 = ___pc; bool L_273 = Interpreter_Eval_m7707(__this, 1, (&V_0), ((int32_t)((int32_t)L_272+(int32_t)5)), /*hidden argument*/&Interpreter_Eval_m7707_MethodInfo); if (L_273) { goto IL_078b; } } { goto IL_1067; } IL_078b: { UInt16U5BU5D_t1333* L_274 = (__this->___program_1); int32_t L_275 = ___pc; NullCheck(L_274); IL2CPP_ARRAY_BOUNDS_CHECK(L_274, ((int32_t)((int32_t)L_275+(int32_t)1))); int32_t L_276 = ((int32_t)((int32_t)L_275+(int32_t)1)); UInt16U5BU5D_t1333* L_277 = (__this->___program_1); int32_t L_278 = ___pc; NullCheck(L_277); IL2CPP_ARRAY_BOUNDS_CHECK(L_277, ((int32_t)((int32_t)L_278+(int32_t)2))); int32_t L_279 = ((int32_t)((int32_t)L_278+(int32_t)2)); UInt16U5BU5D_t1333* L_280 = (__this->___program_1); int32_t L_281 = ___pc; NullCheck(L_280); IL2CPP_ARRAY_BOUNDS_CHECK(L_280, ((int32_t)((int32_t)L_281+(int32_t)3))); int32_t L_282 = ((int32_t)((int32_t)L_281+(int32_t)3)); G_B161_0 = ((int32_t)((*(uint16_t*)(uint16_t*)SZArrayLdElema(L_277, L_279)))); G_B161_1 = ((int32_t)((*(uint16_t*)(uint16_t*)SZArrayLdElema(L_274, L_276)))); G_B161_2 = __this; if ((!(((uint32_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_280, L_282))) == ((uint32_t)1)))) { G_B162_0 = ((int32_t)((*(uint16_t*)(uint16_t*)SZArrayLdElema(L_277, L_279)))); G_B162_1 = ((int32_t)((*(uint16_t*)(uint16_t*)SZArrayLdElema(L_274, L_276)))); G_B162_2 = __this; goto IL_07b6; } } { G_B163_0 = 1; G_B163_1 = G_B161_0; G_B163_2 = G_B161_1; G_B163_3 = G_B161_2; goto IL_07b7; } IL_07b6: { G_B163_0 = 0; G_B163_1 = G_B162_0; G_B163_2 = G_B162_1; G_B163_3 = G_B162_2; } IL_07b7: { int32_t L_283 = V_27; NullCheck(G_B163_3); bool L_284 = Interpreter_Balance_m7715(G_B163_3, G_B163_2, G_B163_1, G_B163_0, L_283, /*hidden argument*/&Interpreter_Balance_m7715_MethodInfo); if (L_284) { goto IL_07c8; } } { goto IL_1067; } IL_07c8: { int32_t L_285 = ___pc; UInt16U5BU5D_t1333* L_286 = (__this->___program_1); int32_t L_287 = ___pc; NullCheck(L_286); IL2CPP_ARRAY_BOUNDS_CHECK(L_286, ((int32_t)((int32_t)L_287+(int32_t)4))); int32_t L_288 = ((int32_t)((int32_t)L_287+(int32_t)4)); ___pc = ((int32_t)((int32_t)L_285+(int32_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_286, L_288)))); goto IL_0fee; } IL_07db: { goto IL_0ff3; } IL_07e0: { UInt16U5BU5D_t1333* L_289 = (__this->___program_1); int32_t L_290 = ___pc; NullCheck(L_289); IL2CPP_ARRAY_BOUNDS_CHECK(L_289, ((int32_t)((int32_t)L_290+(int32_t)2))); int32_t L_291 = ((int32_t)((int32_t)L_290+(int32_t)2)); int32_t L_292 = Interpreter_GetLastDefined_m7719(__this, (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_289, L_291)), /*hidden argument*/&Interpreter_GetLastDefined_m7719_MethodInfo); V_28 = L_292; int32_t L_293 = V_28; if ((((int32_t)L_293) >= ((int32_t)0))) { goto IL_080d; } } { int32_t L_294 = ___pc; UInt16U5BU5D_t1333* L_295 = (__this->___program_1); int32_t L_296 = ___pc; NullCheck(L_295); IL2CPP_ARRAY_BOUNDS_CHECK(L_295, ((int32_t)((int32_t)L_296+(int32_t)1))); int32_t L_297 = ((int32_t)((int32_t)L_296+(int32_t)1)); ___pc = ((int32_t)((int32_t)L_294+(int32_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_295, L_297)))); goto IL_0812; } IL_080d: { int32_t L_298 = ___pc; ___pc = ((int32_t)((int32_t)L_298+(int32_t)3)); } IL_0812: { goto IL_0fee; } IL_0817: { int32_t L_299 = ___pc; bool L_300 = Interpreter_Eval_m7707(__this, 1, (&V_0), ((int32_t)((int32_t)L_299+(int32_t)2)), /*hidden argument*/&Interpreter_Eval_m7707_MethodInfo); if (L_300) { goto IL_082d; } } { goto IL_1067; } IL_082d: { int32_t L_301 = ___pc; UInt16U5BU5D_t1333* L_302 = (__this->___program_1); int32_t L_303 = ___pc; NullCheck(L_302); IL2CPP_ARRAY_BOUNDS_CHECK(L_302, ((int32_t)((int32_t)L_303+(int32_t)1))); int32_t L_304 = ((int32_t)((int32_t)L_303+(int32_t)1)); ___pc = ((int32_t)((int32_t)L_301+(int32_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_302, L_304)))); goto IL_0fee; } IL_0840: { int32_t L_305 = Interpreter_Checkpoint_m7716(__this, /*hidden argument*/&Interpreter_Checkpoint_m7716_MethodInfo); V_29 = L_305; int32_t L_306 = V_0; V_30 = L_306; int32_t L_307 = ___pc; bool L_308 = Interpreter_Eval_m7707(__this, 1, (&V_30), ((int32_t)((int32_t)L_307+(int32_t)3)), /*hidden argument*/&Interpreter_Eval_m7707_MethodInfo); if (!L_308) { goto IL_086f; } } { int32_t L_309 = ___pc; UInt16U5BU5D_t1333* L_310 = (__this->___program_1); int32_t L_311 = ___pc; NullCheck(L_310); IL2CPP_ARRAY_BOUNDS_CHECK(L_310, ((int32_t)((int32_t)L_311+(int32_t)1))); int32_t L_312 = ((int32_t)((int32_t)L_311+(int32_t)1)); ___pc = ((int32_t)((int32_t)L_309+(int32_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_310, L_312)))); goto IL_0885; } IL_086f: { int32_t L_313 = V_29; Interpreter_Backtrack_m7717(__this, L_313, /*hidden argument*/&Interpreter_Backtrack_m7717_MethodInfo); int32_t L_314 = ___pc; UInt16U5BU5D_t1333* L_315 = (__this->___program_1); int32_t L_316 = ___pc; NullCheck(L_315); IL2CPP_ARRAY_BOUNDS_CHECK(L_315, ((int32_t)((int32_t)L_316+(int32_t)2))); int32_t L_317 = ((int32_t)((int32_t)L_316+(int32_t)2)); ___pc = ((int32_t)((int32_t)L_314+(int32_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_315, L_317)))); } IL_0885: { goto IL_0fee; } IL_088a: { int32_t L_318 = Interpreter_Checkpoint_m7716(__this, /*hidden argument*/&Interpreter_Checkpoint_m7716_MethodInfo); V_32 = L_318; int32_t L_319 = ___pc; bool L_320 = Interpreter_Eval_m7707(__this, 1, (&V_0), ((int32_t)((int32_t)L_319+(int32_t)2)), /*hidden argument*/&Interpreter_Eval_m7707_MethodInfo); if (!L_320) { goto IL_08a8; } } { goto IL_0ff3; } IL_08a8: { int32_t L_321 = V_32; Interpreter_Backtrack_m7717(__this, L_321, /*hidden argument*/&Interpreter_Backtrack_m7717_MethodInfo); int32_t L_322 = ___pc; UInt16U5BU5D_t1333* L_323 = (__this->___program_1); int32_t L_324 = ___pc; NullCheck(L_323); IL2CPP_ARRAY_BOUNDS_CHECK(L_323, ((int32_t)((int32_t)L_324+(int32_t)1))); int32_t L_325 = ((int32_t)((int32_t)L_324+(int32_t)1)); ___pc = ((int32_t)((int32_t)L_322+(int32_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_323, L_325)))); UInt16U5BU5D_t1333* L_326 = (__this->___program_1); int32_t L_327 = ___pc; NullCheck(L_326); IL2CPP_ARRAY_BOUNDS_CHECK(L_326, L_327); int32_t L_328 = L_327; V_31 = (((uint16_t)((int32_t)((int32_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_326, L_328))&(int32_t)((int32_t)255))))); uint16_t L_329 = V_31; if (L_329) { goto IL_088a; } } { goto IL_1067; } IL_08db: { int32_t L_330 = ___pc; UInt16U5BU5D_t1333* L_331 = (__this->___program_1); int32_t L_332 = ___pc; NullCheck(L_331); IL2CPP_ARRAY_BOUNDS_CHECK(L_331, ((int32_t)((int32_t)L_332+(int32_t)1))); int32_t L_333 = ((int32_t)((int32_t)L_332+(int32_t)1)); ___pc = ((int32_t)((int32_t)L_330+(int32_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_331, L_333)))); goto IL_0fee; } IL_08ee: { RepeatContext_t1424 * L_334 = (__this->___repeat_9); int32_t L_335 = ___pc; int32_t L_336 = Interpreter_ReadProgramCount_m7704(__this, ((int32_t)((int32_t)L_335+(int32_t)2)), /*hidden argument*/&Interpreter_ReadProgramCount_m7704_MethodInfo); int32_t L_337 = ___pc; int32_t L_338 = Interpreter_ReadProgramCount_m7704(__this, ((int32_t)((int32_t)L_337+(int32_t)4)), /*hidden argument*/&Interpreter_ReadProgramCount_m7704_MethodInfo); uint16_t L_339 = V_3; int32_t L_340 = ___pc; RepeatContext_t1424 * L_341 = (RepeatContext_t1424 *)il2cpp_codegen_object_new (InitializedTypeInfo(&RepeatContext_t1424_il2cpp_TypeInfo)); RepeatContext__ctor_m7693(L_341, L_334, L_336, L_338, ((((int32_t)((((int32_t)(((uint16_t)((int32_t)((int32_t)L_339&(int32_t)((int32_t)2048)))))) == ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0), ((int32_t)((int32_t)L_340+(int32_t)6)), /*hidden argument*/&RepeatContext__ctor_m7693_MethodInfo); __this->___repeat_9 = L_341; int32_t L_342 = ___pc; UInt16U5BU5D_t1333* L_343 = (__this->___program_1); int32_t L_344 = ___pc; NullCheck(L_343); IL2CPP_ARRAY_BOUNDS_CHECK(L_343, ((int32_t)((int32_t)L_344+(int32_t)1))); int32_t L_345 = ((int32_t)((int32_t)L_344+(int32_t)1)); bool L_346 = Interpreter_Eval_m7707(__this, 1, (&V_0), ((int32_t)((int32_t)L_342+(int32_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_343, L_345)))), /*hidden argument*/&Interpreter_Eval_m7707_MethodInfo); if (!L_346) { goto IL_0941; } } { goto IL_0ff3; } IL_0941: { RepeatContext_t1424 * L_347 = (__this->___repeat_9); NullCheck(L_347); RepeatContext_t1424 * L_348 = RepeatContext_get_Previous_m7702(L_347, /*hidden argument*/&RepeatContext_get_Previous_m7702_MethodInfo); __this->___repeat_9 = L_348; goto IL_1067; } IL_0957: { RepeatContext_t1424 * L_349 = (__this->___repeat_9); V_33 = L_349; RepeatContext_t1424 * L_350 = (__this->___deep_12); RepeatContext_t1424 * L_351 = V_33; if ((!(((Object_t*)(RepeatContext_t1424 *)L_350) == ((Object_t*)(RepeatContext_t1424 *)L_351)))) { goto IL_0971; } } { goto IL_0ff3; } IL_0971: { RepeatContext_t1424 * L_352 = V_33; NullCheck(L_352); int32_t L_353 = RepeatContext_get_Start_m7696(L_352, /*hidden argument*/&RepeatContext_get_Start_m7696_MethodInfo); V_34 = L_353; RepeatContext_t1424 * L_354 = V_33; NullCheck(L_354); int32_t L_355 = RepeatContext_get_Count_m7694(L_354, /*hidden argument*/&RepeatContext_get_Count_m7694_MethodInfo); V_35 = L_355; goto IL_09e5; } IL_0988: { RepeatContext_t1424 * L_356 = V_33; RepeatContext_t1424 * L_357 = L_356; NullCheck(L_357); int32_t L_358 = RepeatContext_get_Count_m7694(L_357, /*hidden argument*/&RepeatContext_get_Count_m7694_MethodInfo); NullCheck(L_357); RepeatContext_set_Count_m7695(L_357, ((int32_t)((int32_t)L_358+(int32_t)1)), /*hidden argument*/&RepeatContext_set_Count_m7695_MethodInfo); RepeatContext_t1424 * L_359 = V_33; int32_t L_360 = V_0; NullCheck(L_359); RepeatContext_set_Start_m7697(L_359, L_360, /*hidden argument*/&RepeatContext_set_Start_m7697_MethodInfo); RepeatContext_t1424 * L_361 = V_33; __this->___deep_12 = L_361; RepeatContext_t1424 * L_362 = V_33; NullCheck(L_362); int32_t L_363 = RepeatContext_get_Expression_m7701(L_362, /*hidden argument*/&RepeatContext_get_Expression_m7701_MethodInfo); bool L_364 = Interpreter_Eval_m7707(__this, 1, (&V_0), L_363, /*hidden argument*/&Interpreter_Eval_m7707_MethodInfo); if (L_364) { goto IL_09d3; } } { RepeatContext_t1424 * L_365 = V_33; int32_t L_366 = V_34; NullCheck(L_365); RepeatContext_set_Start_m7697(L_365, L_366, /*hidden argument*/&RepeatContext_set_Start_m7697_MethodInfo); RepeatContext_t1424 * L_367 = V_33; int32_t L_368 = V_35; NullCheck(L_367); RepeatContext_set_Count_m7695(L_367, L_368, /*hidden argument*/&RepeatContext_set_Count_m7695_MethodInfo); goto IL_1067; } IL_09d3: { RepeatContext_t1424 * L_369 = (__this->___deep_12); RepeatContext_t1424 * L_370 = V_33; if ((((Object_t*)(RepeatContext_t1424 *)L_369) == ((Object_t*)(RepeatContext_t1424 *)L_370))) { goto IL_09e5; } } { goto IL_0ff3; } IL_09e5: { RepeatContext_t1424 * L_371 = V_33; NullCheck(L_371); bool L_372 = RepeatContext_get_IsMinimum_m7698(L_371, /*hidden argument*/&RepeatContext_get_IsMinimum_m7698_MethodInfo); if (!L_372) { goto IL_0988; } } { int32_t L_373 = V_0; RepeatContext_t1424 * L_374 = V_33; NullCheck(L_374); int32_t L_375 = RepeatContext_get_Start_m7696(L_374, /*hidden argument*/&RepeatContext_get_Start_m7696_MethodInfo); if ((!(((uint32_t)L_373) == ((uint32_t)L_375)))) { goto IL_0a35; } } { RepeatContext_t1424 * L_376 = V_33; NullCheck(L_376); RepeatContext_t1424 * L_377 = RepeatContext_get_Previous_m7702(L_376, /*hidden argument*/&RepeatContext_get_Previous_m7702_MethodInfo); __this->___repeat_9 = L_377; __this->___deep_12 = (RepeatContext_t1424 *)NULL; int32_t L_378 = ___pc; bool L_379 = Interpreter_Eval_m7707(__this, 1, (&V_0), ((int32_t)((int32_t)L_378+(int32_t)1)), /*hidden argument*/&Interpreter_Eval_m7707_MethodInfo); if (!L_379) { goto IL_0a28; } } { goto IL_0ff3; } IL_0a28: { RepeatContext_t1424 * L_380 = V_33; __this->___repeat_9 = L_380; goto IL_1067; } IL_0a35: { RepeatContext_t1424 * L_381 = V_33; NullCheck(L_381); bool L_382 = RepeatContext_get_IsLazy_m7700(L_381, /*hidden argument*/&RepeatContext_get_IsLazy_m7700_MethodInfo); if (!L_382) { goto IL_0b0d; } } { goto IL_0b08; } IL_0a46: { RepeatContext_t1424 * L_383 = V_33; NullCheck(L_383); RepeatContext_t1424 * L_384 = RepeatContext_get_Previous_m7702(L_383, /*hidden argument*/&RepeatContext_get_Previous_m7702_MethodInfo); __this->___repeat_9 = L_384; __this->___deep_12 = (RepeatContext_t1424 *)NULL; int32_t L_385 = Interpreter_Checkpoint_m7716(__this, /*hidden argument*/&Interpreter_Checkpoint_m7716_MethodInfo); V_36 = L_385; int32_t L_386 = ___pc; bool L_387 = Interpreter_Eval_m7707(__this, 1, (&V_0), ((int32_t)((int32_t)L_386+(int32_t)1)), /*hidden argument*/&Interpreter_Eval_m7707_MethodInfo); if (!L_387) { goto IL_0a78; } } { goto IL_0ff3; } IL_0a78: { int32_t L_388 = V_36; Interpreter_Backtrack_m7717(__this, L_388, /*hidden argument*/&Interpreter_Backtrack_m7717_MethodInfo); RepeatContext_t1424 * L_389 = V_33; __this->___repeat_9 = L_389; RepeatContext_t1424 * L_390 = V_33; NullCheck(L_390); bool L_391 = RepeatContext_get_IsMaximum_m7699(L_390, /*hidden argument*/&RepeatContext_get_IsMaximum_m7699_MethodInfo); if (!L_391) { goto IL_0a99; } } { goto IL_1067; } IL_0a99: { RepeatContext_t1424 * L_392 = V_33; RepeatContext_t1424 * L_393 = L_392; NullCheck(L_393); int32_t L_394 = RepeatContext_get_Count_m7694(L_393, /*hidden argument*/&RepeatContext_get_Count_m7694_MethodInfo); NullCheck(L_393); RepeatContext_set_Count_m7695(L_393, ((int32_t)((int32_t)L_394+(int32_t)1)), /*hidden argument*/&RepeatContext_set_Count_m7695_MethodInfo); RepeatContext_t1424 * L_395 = V_33; int32_t L_396 = V_0; NullCheck(L_395); RepeatContext_set_Start_m7697(L_395, L_396, /*hidden argument*/&RepeatContext_set_Start_m7697_MethodInfo); RepeatContext_t1424 * L_397 = V_33; __this->___deep_12 = L_397; RepeatContext_t1424 * L_398 = V_33; NullCheck(L_398); int32_t L_399 = RepeatContext_get_Expression_m7701(L_398, /*hidden argument*/&RepeatContext_get_Expression_m7701_MethodInfo); bool L_400 = Interpreter_Eval_m7707(__this, 1, (&V_0), L_399, /*hidden argument*/&Interpreter_Eval_m7707_MethodInfo); if (L_400) { goto IL_0ae4; } } { RepeatContext_t1424 * L_401 = V_33; int32_t L_402 = V_34; NullCheck(L_401); RepeatContext_set_Start_m7697(L_401, L_402, /*hidden argument*/&RepeatContext_set_Start_m7697_MethodInfo); RepeatContext_t1424 * L_403 = V_33; int32_t L_404 = V_35; NullCheck(L_403); RepeatContext_set_Count_m7695(L_403, L_404, /*hidden argument*/&RepeatContext_set_Count_m7695_MethodInfo); goto IL_1067; } IL_0ae4: { RepeatContext_t1424 * L_405 = (__this->___deep_12); RepeatContext_t1424 * L_406 = V_33; if ((((Object_t*)(RepeatContext_t1424 *)L_405) == ((Object_t*)(RepeatContext_t1424 *)L_406))) { goto IL_0af6; } } { goto IL_0ff3; } IL_0af6: { int32_t L_407 = V_0; RepeatContext_t1424 * L_408 = V_33; NullCheck(L_408); int32_t L_409 = RepeatContext_get_Start_m7696(L_408, /*hidden argument*/&RepeatContext_get_Start_m7696_MethodInfo); if ((!(((uint32_t)L_407) == ((uint32_t)L_409)))) { goto IL_0b08; } } { goto IL_1067; } IL_0b08: { goto IL_0a46; } IL_0b0d: { IntStack_t1423 * L_410 = &(__this->___stack_11); int32_t L_411 = IntStack_get_Count_m7691(L_410, /*hidden argument*/&IntStack_get_Count_m7691_MethodInfo); V_37 = L_411; goto IL_0bd7; } IL_0b1f: { int32_t L_412 = Interpreter_Checkpoint_m7716(__this, /*hidden argument*/&Interpreter_Checkpoint_m7716_MethodInfo); V_38 = L_412; int32_t L_413 = V_0; V_39 = L_413; RepeatContext_t1424 * L_414 = V_33; NullCheck(L_414); int32_t L_415 = RepeatContext_get_Start_m7696(L_414, /*hidden argument*/&RepeatContext_get_Start_m7696_MethodInfo); V_40 = L_415; RepeatContext_t1424 * L_416 = V_33; RepeatContext_t1424 * L_417 = L_416; NullCheck(L_417); int32_t L_418 = RepeatContext_get_Count_m7694(L_417, /*hidden argument*/&RepeatContext_get_Count_m7694_MethodInfo); NullCheck(L_417); RepeatContext_set_Count_m7695(L_417, ((int32_t)((int32_t)L_418+(int32_t)1)), /*hidden argument*/&RepeatContext_set_Count_m7695_MethodInfo); RepeatContext_t1424 * L_419 = V_33; int32_t L_420 = V_0; NullCheck(L_419); RepeatContext_set_Start_m7697(L_419, L_420, /*hidden argument*/&RepeatContext_set_Start_m7697_MethodInfo); RepeatContext_t1424 * L_421 = V_33; __this->___deep_12 = L_421; RepeatContext_t1424 * L_422 = V_33; NullCheck(L_422); int32_t L_423 = RepeatContext_get_Expression_m7701(L_422, /*hidden argument*/&RepeatContext_get_Expression_m7701_MethodInfo); bool L_424 = Interpreter_Eval_m7707(__this, 1, (&V_0), L_423, /*hidden argument*/&Interpreter_Eval_m7707_MethodInfo); if (L_424) { goto IL_0b8c; } } { RepeatContext_t1424 * L_425 = V_33; RepeatContext_t1424 * L_426 = L_425; NullCheck(L_426); int32_t L_427 = RepeatContext_get_Count_m7694(L_426, /*hidden argument*/&RepeatContext_get_Count_m7694_MethodInfo); NullCheck(L_426); RepeatContext_set_Count_m7695(L_426, ((int32_t)((int32_t)L_427-(int32_t)1)), /*hidden argument*/&RepeatContext_set_Count_m7695_MethodInfo); RepeatContext_t1424 * L_428 = V_33; int32_t L_429 = V_40; NullCheck(L_428); RepeatContext_set_Start_m7697(L_428, L_429, /*hidden argument*/&RepeatContext_set_Start_m7697_MethodInfo); int32_t L_430 = V_38; Interpreter_Backtrack_m7717(__this, L_430, /*hidden argument*/&Interpreter_Backtrack_m7717_MethodInfo); goto IL_0be3; } IL_0b8c: { RepeatContext_t1424 * L_431 = (__this->___deep_12); RepeatContext_t1424 * L_432 = V_33; if ((((Object_t*)(RepeatContext_t1424 *)L_431) == ((Object_t*)(RepeatContext_t1424 *)L_432))) { goto IL_0bab; } } { IntStack_t1423 * L_433 = &(__this->___stack_11); int32_t L_434 = V_37; IntStack_set_Count_m7692(L_433, L_434, /*hidden argument*/&IntStack_set_Count_m7692_MethodInfo); goto IL_0ff3; } IL_0bab: { IntStack_t1423 * L_435 = &(__this->___stack_11); int32_t L_436 = V_38; IntStack_Push_m7690(L_435, L_436, /*hidden argument*/&IntStack_Push_m7690_MethodInfo); IntStack_t1423 * L_437 = &(__this->___stack_11); int32_t L_438 = V_39; IntStack_Push_m7690(L_437, L_438, /*hidden argument*/&IntStack_Push_m7690_MethodInfo); int32_t L_439 = V_0; RepeatContext_t1424 * L_440 = V_33; NullCheck(L_440); int32_t L_441 = RepeatContext_get_Start_m7696(L_440, /*hidden argument*/&RepeatContext_get_Start_m7696_MethodInfo); if ((!(((uint32_t)L_439) == ((uint32_t)L_441)))) { goto IL_0bd7; } } { goto IL_0be3; } IL_0bd7: { RepeatContext_t1424 * L_442 = V_33; NullCheck(L_442); bool L_443 = RepeatContext_get_IsMaximum_m7699(L_442, /*hidden argument*/&RepeatContext_get_IsMaximum_m7699_MethodInfo); if (!L_443) { goto IL_0b1f; } } IL_0be3: { RepeatContext_t1424 * L_444 = V_33; NullCheck(L_444); RepeatContext_t1424 * L_445 = RepeatContext_get_Previous_m7702(L_444, /*hidden argument*/&RepeatContext_get_Previous_m7702_MethodInfo); __this->___repeat_9 = L_445; goto IL_0c6a; } IL_0bf5: { __this->___deep_12 = (RepeatContext_t1424 *)NULL; int32_t L_446 = ___pc; bool L_447 = Interpreter_Eval_m7707(__this, 1, (&V_0), ((int32_t)((int32_t)L_446+(int32_t)1)), /*hidden argument*/&Interpreter_Eval_m7707_MethodInfo); if (!L_447) { goto IL_0c1f; } } { IntStack_t1423 * L_448 = &(__this->___stack_11); int32_t L_449 = V_37; IntStack_set_Count_m7692(L_448, L_449, /*hidden argument*/&IntStack_set_Count_m7692_MethodInfo); goto IL_0ff3; } IL_0c1f: { IntStack_t1423 * L_450 = &(__this->___stack_11); int32_t L_451 = IntStack_get_Count_m7691(L_450, /*hidden argument*/&IntStack_get_Count_m7691_MethodInfo); int32_t L_452 = V_37; if ((!(((uint32_t)L_451) == ((uint32_t)L_452)))) { goto IL_0c3e; } } { RepeatContext_t1424 * L_453 = V_33; __this->___repeat_9 = L_453; goto IL_1067; } IL_0c3e: { RepeatContext_t1424 * L_454 = V_33; RepeatContext_t1424 * L_455 = L_454; NullCheck(L_455); int32_t L_456 = RepeatContext_get_Count_m7694(L_455, /*hidden argument*/&RepeatContext_get_Count_m7694_MethodInfo); NullCheck(L_455); RepeatContext_set_Count_m7695(L_455, ((int32_t)((int32_t)L_456-(int32_t)1)), /*hidden argument*/&RepeatContext_set_Count_m7695_MethodInfo); IntStack_t1423 * L_457 = &(__this->___stack_11); int32_t L_458 = IntStack_Pop_m7689(L_457, /*hidden argument*/&IntStack_Pop_m7689_MethodInfo); V_0 = L_458; IntStack_t1423 * L_459 = &(__this->___stack_11); int32_t L_460 = IntStack_Pop_m7689(L_459, /*hidden argument*/&IntStack_Pop_m7689_MethodInfo); Interpreter_Backtrack_m7717(__this, L_460, /*hidden argument*/&Interpreter_Backtrack_m7717_MethodInfo); } IL_0c6a: { goto IL_0bf5; } IL_0c6f: { RepeatContext_t1424 * L_461 = (__this->___fast_10); int32_t L_462 = ___pc; int32_t L_463 = Interpreter_ReadProgramCount_m7704(__this, ((int32_t)((int32_t)L_462+(int32_t)2)), /*hidden argument*/&Interpreter_ReadProgramCount_m7704_MethodInfo); int32_t L_464 = ___pc; int32_t L_465 = Interpreter_ReadProgramCount_m7704(__this, ((int32_t)((int32_t)L_464+(int32_t)4)), /*hidden argument*/&Interpreter_ReadProgramCount_m7704_MethodInfo); uint16_t L_466 = V_3; int32_t L_467 = ___pc; RepeatContext_t1424 * L_468 = (RepeatContext_t1424 *)il2cpp_codegen_object_new (InitializedTypeInfo(&RepeatContext_t1424_il2cpp_TypeInfo)); RepeatContext__ctor_m7693(L_468, L_461, L_463, L_465, ((((int32_t)((((int32_t)(((uint16_t)((int32_t)((int32_t)L_466&(int32_t)((int32_t)2048)))))) == ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0), ((int32_t)((int32_t)L_467+(int32_t)6)), /*hidden argument*/&RepeatContext__ctor_m7693_MethodInfo); __this->___fast_10 = L_468; RepeatContext_t1424 * L_469 = (__this->___fast_10); int32_t L_470 = V_0; NullCheck(L_469); RepeatContext_set_Start_m7697(L_469, L_470, /*hidden argument*/&RepeatContext_set_Start_m7697_MethodInfo); int32_t L_471 = Interpreter_Checkpoint_m7716(__this, /*hidden argument*/&Interpreter_Checkpoint_m7716_MethodInfo); V_41 = L_471; int32_t L_472 = ___pc; UInt16U5BU5D_t1333* L_473 = (__this->___program_1); int32_t L_474 = ___pc; NullCheck(L_473); IL2CPP_ARRAY_BOUNDS_CHECK(L_473, ((int32_t)((int32_t)L_474+(int32_t)1))); int32_t L_475 = ((int32_t)((int32_t)L_474+(int32_t)1)); ___pc = ((int32_t)((int32_t)L_472+(int32_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_473, L_475)))); UInt16U5BU5D_t1333* L_476 = (__this->___program_1); int32_t L_477 = ___pc; NullCheck(L_476); IL2CPP_ARRAY_BOUNDS_CHECK(L_476, L_477); int32_t L_478 = L_477; V_42 = (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_476, L_478)); V_43 = (-1); V_44 = (-1); V_45 = 0; uint16_t L_479 = V_42; V_46 = (((uint16_t)((int32_t)((int32_t)L_479&(int32_t)((int32_t)255))))); uint16_t L_480 = V_46; if ((((int32_t)L_480) == ((int32_t)5))) { goto IL_0cf3; } } { uint16_t L_481 = V_46; if ((!(((uint32_t)L_481) == ((uint32_t)3)))) { goto IL_0d92; } } IL_0cf3: { uint16_t L_482 = V_42; V_47 = (((uint16_t)((int32_t)((int32_t)L_482&(int32_t)((int32_t)65280))))); uint16_t L_483 = V_47; if (!(((uint16_t)((int32_t)((int32_t)L_483&(int32_t)((int32_t)256)))))) { goto IL_0d11; } } { goto IL_0d92; } IL_0d11: { uint16_t L_484 = V_46; if ((!(((uint32_t)L_484) == ((uint32_t)3)))) { goto IL_0d4c; } } { V_48 = 0; uint16_t L_485 = V_47; if (!(((uint16_t)((int32_t)((int32_t)L_485&(int32_t)((int32_t)1024)))))) { goto IL_0d38; } } { UInt16U5BU5D_t1333* L_486 = (__this->___program_1); int32_t L_487 = ___pc; NullCheck(L_486); IL2CPP_ARRAY_BOUNDS_CHECK(L_486, ((int32_t)((int32_t)L_487+(int32_t)1))); int32_t L_488 = ((int32_t)((int32_t)L_487+(int32_t)1)); V_48 = ((int32_t)((int32_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_486, L_488))-(int32_t)1)); } IL_0d38: { UInt16U5BU5D_t1333* L_489 = (__this->___program_1); int32_t L_490 = ___pc; int32_t L_491 = V_48; NullCheck(L_489); IL2CPP_ARRAY_BOUNDS_CHECK(L_489, ((int32_t)((int32_t)((int32_t)((int32_t)L_490+(int32_t)2))+(int32_t)L_491))); int32_t L_492 = ((int32_t)((int32_t)((int32_t)((int32_t)L_490+(int32_t)2))+(int32_t)L_491)); V_43 = (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_489, L_492)); goto IL_0d58; } IL_0d4c: { UInt16U5BU5D_t1333* L_493 = (__this->___program_1); int32_t L_494 = ___pc; NullCheck(L_493); IL2CPP_ARRAY_BOUNDS_CHECK(L_493, ((int32_t)((int32_t)L_494+(int32_t)1))); int32_t L_495 = ((int32_t)((int32_t)L_494+(int32_t)1)); V_43 = (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_493, L_495)); } IL_0d58: { uint16_t L_496 = V_47; if (!(((uint16_t)((int32_t)((int32_t)L_496&(int32_t)((int32_t)512)))))) { goto IL_0d75; } } { int32_t L_497 = V_43; IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Char_t389_il2cpp_TypeInfo)); uint16_t L_498 = Char_ToUpper_m2598(NULL /*static, unused*/, (((uint16_t)L_497)), /*hidden argument*/&Char_ToUpper_m2598_MethodInfo); V_44 = L_498; goto IL_0d79; } IL_0d75: { int32_t L_499 = V_43; V_44 = L_499; } IL_0d79: { uint16_t L_500 = V_47; if (!(((uint16_t)((int32_t)((int32_t)L_500&(int32_t)((int32_t)1024)))))) { goto IL_0d8f; } } { V_45 = (-1); goto IL_0d92; } IL_0d8f: { V_45 = 0; } IL_0d92: { RepeatContext_t1424 * L_501 = (__this->___fast_10); NullCheck(L_501); bool L_502 = RepeatContext_get_IsLazy_m7700(L_501, /*hidden argument*/&RepeatContext_get_IsLazy_m7700_MethodInfo); if (!L_502) { goto IL_0ebf; } } { RepeatContext_t1424 * L_503 = (__this->___fast_10); NullCheck(L_503); bool L_504 = RepeatContext_get_IsMinimum_m7698(L_503, /*hidden argument*/&RepeatContext_get_IsMinimum_m7698_MethodInfo); if (L_504) { goto IL_0de1; } } { RepeatContext_t1424 * L_505 = (__this->___fast_10); NullCheck(L_505); int32_t L_506 = RepeatContext_get_Expression_m7701(L_505, /*hidden argument*/&RepeatContext_get_Expression_m7701_MethodInfo); bool L_507 = Interpreter_Eval_m7707(__this, 2, (&V_0), L_506, /*hidden argument*/&Interpreter_Eval_m7707_MethodInfo); if (L_507) { goto IL_0de1; } } { RepeatContext_t1424 * L_508 = (__this->___fast_10); NullCheck(L_508); RepeatContext_t1424 * L_509 = RepeatContext_get_Previous_m7702(L_508, /*hidden argument*/&RepeatContext_get_Previous_m7702_MethodInfo); __this->___fast_10 = L_509; goto IL_1067; } IL_0de1: { int32_t L_510 = V_0; int32_t L_511 = V_45; V_49 = ((int32_t)((int32_t)L_510+(int32_t)L_511)); int32_t L_512 = V_43; if ((((int32_t)L_512) < ((int32_t)0))) { goto IL_0e2c; } } { int32_t L_513 = V_49; if ((((int32_t)L_513) < ((int32_t)0))) { goto IL_0e47; } } { int32_t L_514 = V_49; int32_t L_515 = (__this->___text_end_4); if ((((int32_t)L_514) >= ((int32_t)L_515))) { goto IL_0e47; } } { int32_t L_516 = V_43; String_t* L_517 = (__this->___text_3); int32_t L_518 = V_49; NullCheck(L_517); uint16_t L_519 = String_get_Chars_m2541(L_517, L_518, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((((int32_t)L_516) == ((int32_t)L_519))) { goto IL_0e2c; } } { int32_t L_520 = V_44; String_t* L_521 = (__this->___text_3); int32_t L_522 = V_49; NullCheck(L_521); uint16_t L_523 = String_get_Chars_m2541(L_521, L_522, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((!(((uint32_t)L_520) == ((uint32_t)L_523)))) { goto IL_0e47; } } IL_0e2c: { __this->___deep_12 = (RepeatContext_t1424 *)NULL; int32_t L_524 = ___pc; bool L_525 = Interpreter_Eval_m7707(__this, 1, (&V_0), L_524, /*hidden argument*/&Interpreter_Eval_m7707_MethodInfo); if (!L_525) { goto IL_0e47; } } { goto IL_0ea9; } IL_0e47: { RepeatContext_t1424 * L_526 = (__this->___fast_10); NullCheck(L_526); bool L_527 = RepeatContext_get_IsMaximum_m7699(L_526, /*hidden argument*/&RepeatContext_get_IsMaximum_m7699_MethodInfo); if (!L_527) { goto IL_0e6d; } } { RepeatContext_t1424 * L_528 = (__this->___fast_10); NullCheck(L_528); RepeatContext_t1424 * L_529 = RepeatContext_get_Previous_m7702(L_528, /*hidden argument*/&RepeatContext_get_Previous_m7702_MethodInfo); __this->___fast_10 = L_529; goto IL_1067; } IL_0e6d: { int32_t L_530 = V_41; Interpreter_Backtrack_m7717(__this, L_530, /*hidden argument*/&Interpreter_Backtrack_m7717_MethodInfo); RepeatContext_t1424 * L_531 = (__this->___fast_10); NullCheck(L_531); int32_t L_532 = RepeatContext_get_Expression_m7701(L_531, /*hidden argument*/&RepeatContext_get_Expression_m7701_MethodInfo); bool L_533 = Interpreter_Eval_m7707(__this, 2, (&V_0), L_532, /*hidden argument*/&Interpreter_Eval_m7707_MethodInfo); if (L_533) { goto IL_0ea4; } } { RepeatContext_t1424 * L_534 = (__this->___fast_10); NullCheck(L_534); RepeatContext_t1424 * L_535 = RepeatContext_get_Previous_m7702(L_534, /*hidden argument*/&RepeatContext_get_Previous_m7702_MethodInfo); __this->___fast_10 = L_535; goto IL_1067; } IL_0ea4: { goto IL_0de1; } IL_0ea9: { RepeatContext_t1424 * L_536 = (__this->___fast_10); NullCheck(L_536); RepeatContext_t1424 * L_537 = RepeatContext_get_Previous_m7702(L_536, /*hidden argument*/&RepeatContext_get_Previous_m7702_MethodInfo); __this->___fast_10 = L_537; goto IL_0ff3; } IL_0ebf: { RepeatContext_t1424 * L_538 = (__this->___fast_10); NullCheck(L_538); int32_t L_539 = RepeatContext_get_Expression_m7701(L_538, /*hidden argument*/&RepeatContext_get_Expression_m7701_MethodInfo); bool L_540 = Interpreter_Eval_m7707(__this, 2, (&V_0), L_539, /*hidden argument*/&Interpreter_Eval_m7707_MethodInfo); if (L_540) { goto IL_0eee; } } { RepeatContext_t1424 * L_541 = (__this->___fast_10); NullCheck(L_541); RepeatContext_t1424 * L_542 = RepeatContext_get_Previous_m7702(L_541, /*hidden argument*/&RepeatContext_get_Previous_m7702_MethodInfo); __this->___fast_10 = L_542; goto IL_1067; } IL_0eee: { RepeatContext_t1424 * L_543 = (__this->___fast_10); NullCheck(L_543); int32_t L_544 = RepeatContext_get_Count_m7694(L_543, /*hidden argument*/&RepeatContext_get_Count_m7694_MethodInfo); if ((((int32_t)L_544) <= ((int32_t)0))) { goto IL_0f1f; } } { int32_t L_545 = V_0; RepeatContext_t1424 * L_546 = (__this->___fast_10); NullCheck(L_546); int32_t L_547 = RepeatContext_get_Start_m7696(L_546, /*hidden argument*/&RepeatContext_get_Start_m7696_MethodInfo); RepeatContext_t1424 * L_548 = (__this->___fast_10); NullCheck(L_548); int32_t L_549 = RepeatContext_get_Count_m7694(L_548, /*hidden argument*/&RepeatContext_get_Count_m7694_MethodInfo); V_50 = ((int32_t)((int32_t)((int32_t)((int32_t)L_545-(int32_t)L_547))/(int32_t)L_549)); goto IL_0f22; } IL_0f1f: { V_50 = 0; } IL_0f22: { int32_t L_550 = V_0; int32_t L_551 = V_45; V_51 = ((int32_t)((int32_t)L_550+(int32_t)L_551)); int32_t L_552 = V_43; if ((((int32_t)L_552) < ((int32_t)0))) { goto IL_0f6d; } } { int32_t L_553 = V_51; if ((((int32_t)L_553) < ((int32_t)0))) { goto IL_0f88; } } { int32_t L_554 = V_51; int32_t L_555 = (__this->___text_end_4); if ((((int32_t)L_554) >= ((int32_t)L_555))) { goto IL_0f88; } } { int32_t L_556 = V_43; String_t* L_557 = (__this->___text_3); int32_t L_558 = V_51; NullCheck(L_557); uint16_t L_559 = String_get_Chars_m2541(L_557, L_558, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((((int32_t)L_556) == ((int32_t)L_559))) { goto IL_0f6d; } } { int32_t L_560 = V_44; String_t* L_561 = (__this->___text_3); int32_t L_562 = V_51; NullCheck(L_561); uint16_t L_563 = String_get_Chars_m2541(L_561, L_562, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((!(((uint32_t)L_560) == ((uint32_t)L_563)))) { goto IL_0f88; } } IL_0f6d: { __this->___deep_12 = (RepeatContext_t1424 *)NULL; int32_t L_564 = ___pc; bool L_565 = Interpreter_Eval_m7707(__this, 1, (&V_0), L_564, /*hidden argument*/&Interpreter_Eval_m7707_MethodInfo); if (!L_565) { goto IL_0f88; } } { goto IL_0fd3; } IL_0f88: { RepeatContext_t1424 * L_566 = (__this->___fast_10); RepeatContext_t1424 * L_567 = L_566; NullCheck(L_567); int32_t L_568 = RepeatContext_get_Count_m7694(L_567, /*hidden argument*/&RepeatContext_get_Count_m7694_MethodInfo); NullCheck(L_567); RepeatContext_set_Count_m7695(L_567, ((int32_t)((int32_t)L_568-(int32_t)1)), /*hidden argument*/&RepeatContext_set_Count_m7695_MethodInfo); RepeatContext_t1424 * L_569 = (__this->___fast_10); NullCheck(L_569); bool L_570 = RepeatContext_get_IsMinimum_m7698(L_569, /*hidden argument*/&RepeatContext_get_IsMinimum_m7698_MethodInfo); if (L_570) { goto IL_0fc1; } } { RepeatContext_t1424 * L_571 = (__this->___fast_10); NullCheck(L_571); RepeatContext_t1424 * L_572 = RepeatContext_get_Previous_m7702(L_571, /*hidden argument*/&RepeatContext_get_Previous_m7702_MethodInfo); __this->___fast_10 = L_572; goto IL_1067; } IL_0fc1: { int32_t L_573 = V_0; int32_t L_574 = V_50; V_0 = ((int32_t)((int32_t)L_573-(int32_t)L_574)); int32_t L_575 = V_41; Interpreter_Backtrack_m7717(__this, L_575, /*hidden argument*/&Interpreter_Backtrack_m7717_MethodInfo); goto IL_0f22; } IL_0fd3: { RepeatContext_t1424 * L_576 = (__this->___fast_10); NullCheck(L_576); RepeatContext_t1424 * L_577 = RepeatContext_get_Previous_m7702(L_576, /*hidden argument*/&RepeatContext_get_Previous_m7702_MethodInfo); __this->___fast_10 = L_577; goto IL_0ff3; } IL_0fe9: { goto IL_1067; } IL_0fee: { goto IL_0008; } IL_0ff3: { int32_t* L_578 = ___ref_ptr; int32_t L_579 = V_0; *((int32_t*)(L_578)) = (int32_t)L_579; int32_t L_580 = ___mode; V_54 = L_580; int32_t L_581 = V_54; if ((((int32_t)L_581) == ((int32_t)1))) { goto IL_100e; } } { int32_t L_582 = V_54; if ((((int32_t)L_582) == ((int32_t)2))) { goto IL_1010; } } { goto IL_1067; } IL_100e: { return 1; } IL_1010: { RepeatContext_t1424 * L_583 = (__this->___fast_10); RepeatContext_t1424 * L_584 = L_583; NullCheck(L_584); int32_t L_585 = RepeatContext_get_Count_m7694(L_584, /*hidden argument*/&RepeatContext_get_Count_m7694_MethodInfo); NullCheck(L_584); RepeatContext_set_Count_m7695(L_584, ((int32_t)((int32_t)L_585+(int32_t)1)), /*hidden argument*/&RepeatContext_set_Count_m7695_MethodInfo); RepeatContext_t1424 * L_586 = (__this->___fast_10); NullCheck(L_586); bool L_587 = RepeatContext_get_IsMaximum_m7699(L_586, /*hidden argument*/&RepeatContext_get_IsMaximum_m7699_MethodInfo); if (L_587) { goto IL_1053; } } { RepeatContext_t1424 * L_588 = (__this->___fast_10); NullCheck(L_588); bool L_589 = RepeatContext_get_IsLazy_m7700(L_588, /*hidden argument*/&RepeatContext_get_IsLazy_m7700_MethodInfo); if (!L_589) { goto IL_1055; } } { RepeatContext_t1424 * L_590 = (__this->___fast_10); NullCheck(L_590); bool L_591 = RepeatContext_get_IsMinimum_m7698(L_590, /*hidden argument*/&RepeatContext_get_IsMinimum_m7698_MethodInfo); if (!L_591) { goto IL_1055; } } IL_1053: { return 1; } IL_1055: { RepeatContext_t1424 * L_592 = (__this->___fast_10); NullCheck(L_592); int32_t L_593 = RepeatContext_get_Expression_m7701(L_592, /*hidden argument*/&RepeatContext_get_Expression_m7701_MethodInfo); ___pc = L_593; goto IL_0003; } IL_1067: { int32_t L_594 = ___mode; V_54 = L_594; int32_t L_595 = V_54; if ((((int32_t)L_595) == ((int32_t)1))) { goto IL_107f; } } { int32_t L_596 = V_54; if ((((int32_t)L_596) == ((int32_t)2))) { goto IL_1081; } } { goto IL_10b2; } IL_107f: { return 0; } IL_1081: { RepeatContext_t1424 * L_597 = (__this->___fast_10); NullCheck(L_597); bool L_598 = RepeatContext_get_IsLazy_m7700(L_597, /*hidden argument*/&RepeatContext_get_IsLazy_m7700_MethodInfo); if (L_598) { goto IL_10a3; } } { RepeatContext_t1424 * L_599 = (__this->___fast_10); NullCheck(L_599); bool L_600 = RepeatContext_get_IsMinimum_m7698(L_599, /*hidden argument*/&RepeatContext_get_IsMinimum_m7698_MethodInfo); if (!L_600) { goto IL_10a3; } } { return 1; } IL_10a3: { int32_t* L_601 = ___ref_ptr; RepeatContext_t1424 * L_602 = (__this->___fast_10); NullCheck(L_602); int32_t L_603 = RepeatContext_get_Start_m7696(L_602, /*hidden argument*/&RepeatContext_get_Start_m7696_MethodInfo); *((int32_t*)(L_601)) = (int32_t)L_603; return 0; } IL_10b2: { return 0; } } // System.Boolean System.Text.RegularExpressions.Interpreter::EvalChar(System.Text.RegularExpressions.Interpreter/Mode,System.Int32&,System.Int32&,System.Boolean) extern "C" bool Interpreter_EvalChar_m7708 (Interpreter_t1428 * __this, int32_t ___mode, int32_t* ___ptr, int32_t* ___pc, bool ___multi, MethodInfo* method) { bool V_0 = false; uint16_t V_1 = 0x0; bool V_2 = false; bool V_3 = false; uint16_t V_4 = 0; uint16_t V_5 = {0}; uint16_t V_6 = {0}; int32_t V_7 = 0; int32_t V_8 = 0; int32_t V_9 = 0; int32_t V_10 = 0; int32_t V_11 = 0; int32_t V_12 = 0; int32_t V_13 = 0; uint16_t V_14 = {0}; { V_0 = 0; V_1 = 0; } IL_0004: { UInt16U5BU5D_t1333* L_0 = (__this->___program_1); int32_t* L_1 = ___pc; NullCheck(L_0); IL2CPP_ARRAY_BOUNDS_CHECK(L_0, (*((int32_t*)L_1))); int32_t L_2 = (*((int32_t*)L_1)); V_4 = (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_0, L_2)); uint16_t L_3 = V_4; V_5 = (((uint16_t)((int32_t)((int32_t)L_3&(int32_t)((int32_t)255))))); uint16_t L_4 = V_4; V_6 = (((uint16_t)((int32_t)((int32_t)L_4&(int32_t)((int32_t)65280))))); int32_t* L_5 = ___pc; int32_t* L_6 = ___pc; *((int32_t*)(L_5)) = (int32_t)((int32_t)((int32_t)(*((int32_t*)L_6))+(int32_t)1)); uint16_t L_7 = V_6; V_3 = ((((int32_t)((((int32_t)(((uint16_t)((int32_t)((int32_t)L_7&(int32_t)((int32_t)512)))))) == ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0); bool L_8 = V_0; if (L_8) { goto IL_00aa; } } { uint16_t L_9 = V_6; if (!(((uint16_t)((int32_t)((int32_t)L_9&(int32_t)((int32_t)1024)))))) { goto IL_0075; } } { int32_t* L_10 = ___ptr; if ((((int32_t)(*((int32_t*)L_10))) > ((int32_t)0))) { goto IL_0059; } } { return 0; } IL_0059: { String_t* L_11 = (__this->___text_3); int32_t* L_12 = ___ptr; int32_t* L_13 = ___ptr; int32_t L_14 = ((int32_t)((int32_t)(*((int32_t*)L_13))-(int32_t)1)); V_13 = L_14; *((int32_t*)(L_12)) = (int32_t)L_14; int32_t L_15 = V_13; NullCheck(L_11); uint16_t L_16 = String_get_Chars_m2541(L_11, L_15, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); V_1 = L_16; goto IL_009b; } IL_0075: { int32_t* L_17 = ___ptr; int32_t L_18 = (__this->___text_end_4); if ((((int32_t)(*((int32_t*)L_17))) < ((int32_t)L_18))) { goto IL_0084; } } { return 0; } IL_0084: { String_t* L_19 = (__this->___text_3); int32_t* L_20 = ___ptr; int32_t* L_21 = ___ptr; int32_t L_22 = (*((int32_t*)L_21)); V_13 = L_22; *((int32_t*)(L_20)) = (int32_t)((int32_t)((int32_t)L_22+(int32_t)1)); int32_t L_23 = V_13; NullCheck(L_19); uint16_t L_24 = String_get_Chars_m2541(L_19, L_23, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); V_1 = L_24; } IL_009b: { bool L_25 = V_3; if (!L_25) { goto IL_00a8; } } { uint16_t L_26 = V_1; IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Char_t389_il2cpp_TypeInfo)); uint16_t L_27 = Char_ToLower_m2600(NULL /*static, unused*/, L_26, /*hidden argument*/&Char_ToLower_m2600_MethodInfo); V_1 = L_27; } IL_00a8: { V_0 = 1; } IL_00aa: { uint16_t L_28 = V_6; V_2 = ((((int32_t)((((int32_t)(((uint16_t)((int32_t)((int32_t)L_28&(int32_t)((int32_t)256)))))) == ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0); uint16_t L_29 = V_5; V_14 = L_29; uint16_t L_30 = V_14; if (L_30 == 0) { goto IL_00f4; } if (L_30 == 1) { goto IL_00f2; } if (L_30 == 2) { goto IL_0221; } if (L_30 == 3) { goto IL_0221; } if (L_30 == 4) { goto IL_0221; } if (L_30 == 5) { goto IL_00f6; } if (L_30 == 6) { goto IL_0118; } if (L_30 == 7) { goto IL_013f; } if (L_30 == 8) { goto IL_0166; } if (L_30 == 9) { goto IL_01a8; } } { goto IL_0221; } IL_00f2: { return 1; } IL_00f4: { return 0; } IL_00f6: { uint16_t L_31 = V_1; UInt16U5BU5D_t1333* L_32 = (__this->___program_1); int32_t* L_33 = ___pc; int32_t* L_34 = ___pc; int32_t L_35 = (*((int32_t*)L_34)); V_13 = L_35; *((int32_t*)(L_33)) = (int32_t)((int32_t)((int32_t)L_35+(int32_t)1)); int32_t L_36 = V_13; NullCheck(L_32); IL2CPP_ARRAY_BOUNDS_CHECK(L_32, L_36); int32_t L_37 = L_36; if ((!(((uint32_t)L_31) == ((uint32_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_32, L_37)))))) { goto IL_0113; } } { bool L_38 = V_2; return ((((int32_t)L_38) == ((int32_t)0))? 1 : 0); } IL_0113: { goto IL_0221; } IL_0118: { UInt16U5BU5D_t1333* L_39 = (__this->___program_1); int32_t* L_40 = ___pc; int32_t* L_41 = ___pc; int32_t L_42 = (*((int32_t*)L_41)); V_13 = L_42; *((int32_t*)(L_40)) = (int32_t)((int32_t)((int32_t)L_42+(int32_t)1)); int32_t L_43 = V_13; NullCheck(L_39); IL2CPP_ARRAY_BOUNDS_CHECK(L_39, L_43); int32_t L_44 = L_43; uint16_t L_45 = V_1; bool L_46 = CategoryUtils_IsCategory_m7624(NULL /*static, unused*/, (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_39, L_44)), L_45, /*hidden argument*/&CategoryUtils_IsCategory_m7624_MethodInfo); if (!L_46) { goto IL_013a; } } { bool L_47 = V_2; return ((((int32_t)L_47) == ((int32_t)0))? 1 : 0); } IL_013a: { goto IL_0221; } IL_013f: { UInt16U5BU5D_t1333* L_48 = (__this->___program_1); int32_t* L_49 = ___pc; int32_t* L_50 = ___pc; int32_t L_51 = (*((int32_t*)L_50)); V_13 = L_51; *((int32_t*)(L_49)) = (int32_t)((int32_t)((int32_t)L_51+(int32_t)1)); int32_t L_52 = V_13; NullCheck(L_48); IL2CPP_ARRAY_BOUNDS_CHECK(L_48, L_52); int32_t L_53 = L_52; uint16_t L_54 = V_1; bool L_55 = CategoryUtils_IsCategory_m7624(NULL /*static, unused*/, (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_48, L_53)), L_54, /*hidden argument*/&CategoryUtils_IsCategory_m7624_MethodInfo); if (L_55) { goto IL_0161; } } { bool L_56 = V_2; return ((((int32_t)L_56) == ((int32_t)0))? 1 : 0); } IL_0161: { goto IL_0221; } IL_0166: { UInt16U5BU5D_t1333* L_57 = (__this->___program_1); int32_t* L_58 = ___pc; int32_t* L_59 = ___pc; int32_t L_60 = (*((int32_t*)L_59)); V_13 = L_60; *((int32_t*)(L_58)) = (int32_t)((int32_t)((int32_t)L_60+(int32_t)1)); int32_t L_61 = V_13; NullCheck(L_57); IL2CPP_ARRAY_BOUNDS_CHECK(L_57, L_61); int32_t L_62 = L_61; V_7 = (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_57, L_62)); UInt16U5BU5D_t1333* L_63 = (__this->___program_1); int32_t* L_64 = ___pc; int32_t* L_65 = ___pc; int32_t L_66 = (*((int32_t*)L_65)); V_13 = L_66; *((int32_t*)(L_64)) = (int32_t)((int32_t)((int32_t)L_66+(int32_t)1)); int32_t L_67 = V_13; NullCheck(L_63); IL2CPP_ARRAY_BOUNDS_CHECK(L_63, L_67); int32_t L_68 = L_67; V_8 = (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_63, L_68)); int32_t L_69 = V_7; uint16_t L_70 = V_1; if ((((int32_t)L_69) > ((int32_t)L_70))) { goto IL_01a3; } } { uint16_t L_71 = V_1; int32_t L_72 = V_8; if ((((int32_t)L_71) > ((int32_t)L_72))) { goto IL_01a3; } } { bool L_73 = V_2; return ((((int32_t)L_73) == ((int32_t)0))? 1 : 0); } IL_01a3: { goto IL_0221; } IL_01a8: { UInt16U5BU5D_t1333* L_74 = (__this->___program_1); int32_t* L_75 = ___pc; int32_t* L_76 = ___pc; int32_t L_77 = (*((int32_t*)L_76)); V_13 = L_77; *((int32_t*)(L_75)) = (int32_t)((int32_t)((int32_t)L_77+(int32_t)1)); int32_t L_78 = V_13; NullCheck(L_74); IL2CPP_ARRAY_BOUNDS_CHECK(L_74, L_78); int32_t L_79 = L_78; V_9 = (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_74, L_79)); UInt16U5BU5D_t1333* L_80 = (__this->___program_1); int32_t* L_81 = ___pc; int32_t* L_82 = ___pc; int32_t L_83 = (*((int32_t*)L_82)); V_13 = L_83; *((int32_t*)(L_81)) = (int32_t)((int32_t)((int32_t)L_83+(int32_t)1)); int32_t L_84 = V_13; NullCheck(L_80); IL2CPP_ARRAY_BOUNDS_CHECK(L_80, L_84); int32_t L_85 = L_84; V_10 = (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_80, L_85)); int32_t* L_86 = ___pc; V_11 = (*((int32_t*)L_86)); int32_t* L_87 = ___pc; int32_t* L_88 = ___pc; int32_t L_89 = V_10; *((int32_t*)(L_87)) = (int32_t)((int32_t)((int32_t)(*((int32_t*)L_88))+(int32_t)L_89)); uint16_t L_90 = V_1; int32_t L_91 = V_9; V_12 = ((int32_t)((int32_t)L_90-(int32_t)L_91)); int32_t L_92 = V_12; if ((((int32_t)L_92) < ((int32_t)0))) { goto IL_01f4; } } { int32_t L_93 = V_12; int32_t L_94 = V_10; if ((((int32_t)L_93) < ((int32_t)((int32_t)((int32_t)L_94<<(int32_t)4))))) { goto IL_01f9; } } IL_01f4: { goto IL_0221; } IL_01f9: { UInt16U5BU5D_t1333* L_95 = (__this->___program_1); int32_t L_96 = V_11; int32_t L_97 = V_12; NullCheck(L_95); IL2CPP_ARRAY_BOUNDS_CHECK(L_95, ((int32_t)((int32_t)L_96+(int32_t)((int32_t)((int32_t)L_97>>(int32_t)4))))); int32_t L_98 = ((int32_t)((int32_t)L_96+(int32_t)((int32_t)((int32_t)L_97>>(int32_t)4)))); int32_t L_99 = V_12; if (!((int32_t)((int32_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_95, L_98))&(int32_t)((int32_t)((int32_t)1<<(int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_99&(int32_t)((int32_t)15)))&(int32_t)((int32_t)31)))))))) { goto IL_021c; } } { bool L_100 = V_2; return ((((int32_t)L_100) == ((int32_t)0))? 1 : 0); } IL_021c: { goto IL_0221; } IL_0221: { bool L_101 = ___multi; if (L_101) { goto IL_0004; } } { bool L_102 = V_2; return L_102; } } // System.Boolean System.Text.RegularExpressions.Interpreter::TryMatch(System.Int32&,System.Int32) extern "C" bool Interpreter_TryMatch_m7709 (Interpreter_t1428 * __this, int32_t* ___ref_ptr, int32_t ___pc, MethodInfo* method) { int32_t V_0 = 0; { Interpreter_Reset_m7706(__this, /*hidden argument*/&Interpreter_Reset_m7706_MethodInfo); int32_t* L_0 = ___ref_ptr; V_0 = (*((int32_t*)L_0)); MarkU5BU5D_t1427* L_1 = (__this->___marks_13); Int32U5BU5D_t186* L_2 = (__this->___groups_16); NullCheck(L_2); IL2CPP_ARRAY_BOUNDS_CHECK(L_2, 0); int32_t L_3 = 0; NullCheck(L_1); IL2CPP_ARRAY_BOUNDS_CHECK(L_1, (*(int32_t*)(int32_t*)SZArrayLdElema(L_2, L_3))); int32_t L_4 = V_0; ((Mark_t1422 *)(Mark_t1422 *)SZArrayLdElema(L_1, (*(int32_t*)(int32_t*)SZArrayLdElema(L_2, L_3))))->___Start_0 = L_4; int32_t L_5 = ___pc; bool L_6 = Interpreter_Eval_m7707(__this, 1, (&V_0), L_5, /*hidden argument*/&Interpreter_Eval_m7707_MethodInfo); if (!L_6) { goto IL_004f; } } { MarkU5BU5D_t1427* L_7 = (__this->___marks_13); Int32U5BU5D_t186* L_8 = (__this->___groups_16); NullCheck(L_8); IL2CPP_ARRAY_BOUNDS_CHECK(L_8, 0); int32_t L_9 = 0; NullCheck(L_7); IL2CPP_ARRAY_BOUNDS_CHECK(L_7, (*(int32_t*)(int32_t*)SZArrayLdElema(L_8, L_9))); int32_t L_10 = V_0; ((Mark_t1422 *)(Mark_t1422 *)SZArrayLdElema(L_7, (*(int32_t*)(int32_t*)SZArrayLdElema(L_8, L_9))))->___End_1 = L_10; int32_t* L_11 = ___ref_ptr; int32_t L_12 = V_0; *((int32_t*)(L_11)) = (int32_t)L_12; return 1; } IL_004f: { return 0; } } // System.Boolean System.Text.RegularExpressions.Interpreter::IsPosition(System.Text.RegularExpressions.Position,System.Int32) extern "C" bool Interpreter_IsPosition_m7710 (Interpreter_t1428 * __this, uint16_t ___pos, int32_t ___ptr, MethodInfo* method) { uint16_t V_0 = {0}; int32_t G_B6_0 = 0; int32_t G_B12_0 = 0; int32_t G_B14_0 = 0; int32_t G_B18_0 = 0; { uint16_t L_0 = ___pos; V_0 = L_0; uint16_t L_1 = V_0; if (((int32_t)((int32_t)L_1-(int32_t)1)) == 0) { goto IL_0033; } if (((int32_t)((int32_t)L_1-(int32_t)1)) == 1) { goto IL_0033; } if (((int32_t)((int32_t)L_1-(int32_t)1)) == 2) { goto IL_0038; } if (((int32_t)((int32_t)L_1-(int32_t)1)) == 3) { goto IL_0054; } if (((int32_t)((int32_t)L_1-(int32_t)1)) == 4) { goto IL_005e; } if (((int32_t)((int32_t)L_1-(int32_t)1)) == 5) { goto IL_00af; } if (((int32_t)((int32_t)L_1-(int32_t)1)) == 6) { goto IL_008f; } if (((int32_t)((int32_t)L_1-(int32_t)1)) == 7) { goto IL_00b9; } if (((int32_t)((int32_t)L_1-(int32_t)1)) == 8) { goto IL_012c; } } { goto IL_01a2; } IL_0033: { int32_t L_2 = ___ptr; return ((((int32_t)L_2) == ((int32_t)0))? 1 : 0); } IL_0038: { int32_t L_3 = ___ptr; if (!L_3) { goto IL_0052; } } { String_t* L_4 = (__this->___text_3); int32_t L_5 = ___ptr; NullCheck(L_4); uint16_t L_6 = String_get_Chars_m2541(L_4, ((int32_t)((int32_t)L_5-(int32_t)1)), /*hidden argument*/&String_get_Chars_m2541_MethodInfo); G_B6_0 = ((((int32_t)L_6) == ((int32_t)((int32_t)10)))? 1 : 0); goto IL_0053; } IL_0052: { G_B6_0 = 1; } IL_0053: { return G_B6_0; } IL_0054: { int32_t L_7 = ___ptr; int32_t L_8 = (__this->___scan_ptr_8); return ((((int32_t)L_7) == ((int32_t)L_8))? 1 : 0); } IL_005e: { int32_t L_9 = ___ptr; int32_t L_10 = (__this->___text_end_4); if ((((int32_t)L_9) == ((int32_t)L_10))) { goto IL_008d; } } { int32_t L_11 = ___ptr; int32_t L_12 = (__this->___text_end_4); if ((!(((uint32_t)L_11) == ((uint32_t)((int32_t)((int32_t)L_12-(int32_t)1)))))) { goto IL_008a; } } { String_t* L_13 = (__this->___text_3); int32_t L_14 = ___ptr; NullCheck(L_13); uint16_t L_15 = String_get_Chars_m2541(L_13, L_14, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); G_B12_0 = ((((int32_t)L_15) == ((int32_t)((int32_t)10)))? 1 : 0); goto IL_008b; } IL_008a: { G_B12_0 = 0; } IL_008b: { G_B14_0 = G_B12_0; goto IL_008e; } IL_008d: { G_B14_0 = 1; } IL_008e: { return G_B14_0; } IL_008f: { int32_t L_16 = ___ptr; int32_t L_17 = (__this->___text_end_4); if ((((int32_t)L_16) == ((int32_t)L_17))) { goto IL_00ad; } } { String_t* L_18 = (__this->___text_3); int32_t L_19 = ___ptr; NullCheck(L_18); uint16_t L_20 = String_get_Chars_m2541(L_18, L_19, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); G_B18_0 = ((((int32_t)L_20) == ((int32_t)((int32_t)10)))? 1 : 0); goto IL_00ae; } IL_00ad: { G_B18_0 = 1; } IL_00ae: { return G_B18_0; } IL_00af: { int32_t L_21 = ___ptr; int32_t L_22 = (__this->___text_end_4); return ((((int32_t)L_21) == ((int32_t)L_22))? 1 : 0); } IL_00b9: { int32_t L_23 = (__this->___text_end_4); if (L_23) { goto IL_00c6; } } { return 0; } IL_00c6: { int32_t L_24 = ___ptr; if (L_24) { goto IL_00df; } } { String_t* L_25 = (__this->___text_3); int32_t L_26 = ___ptr; NullCheck(L_25); uint16_t L_27 = String_get_Chars_m2541(L_25, L_26, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); bool L_28 = Interpreter_IsWordChar_m7711(__this, L_27, /*hidden argument*/&Interpreter_IsWordChar_m7711_MethodInfo); return L_28; } IL_00df: { int32_t L_29 = ___ptr; int32_t L_30 = (__this->___text_end_4); if ((!(((uint32_t)L_29) == ((uint32_t)L_30)))) { goto IL_0100; } } { String_t* L_31 = (__this->___text_3); int32_t L_32 = ___ptr; NullCheck(L_31); uint16_t L_33 = String_get_Chars_m2541(L_31, ((int32_t)((int32_t)L_32-(int32_t)1)), /*hidden argument*/&String_get_Chars_m2541_MethodInfo); bool L_34 = Interpreter_IsWordChar_m7711(__this, L_33, /*hidden argument*/&Interpreter_IsWordChar_m7711_MethodInfo); return L_34; } IL_0100: { String_t* L_35 = (__this->___text_3); int32_t L_36 = ___ptr; NullCheck(L_35); uint16_t L_37 = String_get_Chars_m2541(L_35, L_36, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); bool L_38 = Interpreter_IsWordChar_m7711(__this, L_37, /*hidden argument*/&Interpreter_IsWordChar_m7711_MethodInfo); String_t* L_39 = (__this->___text_3); int32_t L_40 = ___ptr; NullCheck(L_39); uint16_t L_41 = String_get_Chars_m2541(L_39, ((int32_t)((int32_t)L_40-(int32_t)1)), /*hidden argument*/&String_get_Chars_m2541_MethodInfo); bool L_42 = Interpreter_IsWordChar_m7711(__this, L_41, /*hidden argument*/&Interpreter_IsWordChar_m7711_MethodInfo); return ((((int32_t)((((int32_t)L_38) == ((int32_t)L_42))? 1 : 0)) == ((int32_t)0))? 1 : 0); } IL_012c: { int32_t L_43 = (__this->___text_end_4); if (L_43) { goto IL_0139; } } { return 0; } IL_0139: { int32_t L_44 = ___ptr; if (L_44) { goto IL_0155; } } { String_t* L_45 = (__this->___text_3); int32_t L_46 = ___ptr; NullCheck(L_45); uint16_t L_47 = String_get_Chars_m2541(L_45, L_46, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); bool L_48 = Interpreter_IsWordChar_m7711(__this, L_47, /*hidden argument*/&Interpreter_IsWordChar_m7711_MethodInfo); return ((((int32_t)L_48) == ((int32_t)0))? 1 : 0); } IL_0155: { int32_t L_49 = ___ptr; int32_t L_50 = (__this->___text_end_4); if ((!(((uint32_t)L_49) == ((uint32_t)L_50)))) { goto IL_0179; } } { String_t* L_51 = (__this->___text_3); int32_t L_52 = ___ptr; NullCheck(L_51); uint16_t L_53 = String_get_Chars_m2541(L_51, ((int32_t)((int32_t)L_52-(int32_t)1)), /*hidden argument*/&String_get_Chars_m2541_MethodInfo); bool L_54 = Interpreter_IsWordChar_m7711(__this, L_53, /*hidden argument*/&Interpreter_IsWordChar_m7711_MethodInfo); return ((((int32_t)L_54) == ((int32_t)0))? 1 : 0); } IL_0179: { String_t* L_55 = (__this->___text_3); int32_t L_56 = ___ptr; NullCheck(L_55); uint16_t L_57 = String_get_Chars_m2541(L_55, L_56, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); bool L_58 = Interpreter_IsWordChar_m7711(__this, L_57, /*hidden argument*/&Interpreter_IsWordChar_m7711_MethodInfo); String_t* L_59 = (__this->___text_3); int32_t L_60 = ___ptr; NullCheck(L_59); uint16_t L_61 = String_get_Chars_m2541(L_59, ((int32_t)((int32_t)L_60-(int32_t)1)), /*hidden argument*/&String_get_Chars_m2541_MethodInfo); bool L_62 = Interpreter_IsWordChar_m7711(__this, L_61, /*hidden argument*/&Interpreter_IsWordChar_m7711_MethodInfo); return ((((int32_t)L_58) == ((int32_t)L_62))? 1 : 0); } IL_01a2: { return 0; } } // System.Boolean System.Text.RegularExpressions.Interpreter::IsWordChar(System.Char) extern "C" bool Interpreter_IsWordChar_m7711 (Interpreter_t1428 * __this, uint16_t ___c, MethodInfo* method) { { uint16_t L_0 = ___c; bool L_1 = CategoryUtils_IsCategory_m7624(NULL /*static, unused*/, 3, L_0, /*hidden argument*/&CategoryUtils_IsCategory_m7624_MethodInfo); return L_1; } } // System.String System.Text.RegularExpressions.Interpreter::GetString(System.Int32) extern TypeInfo* CharU5BU5D_t395_il2cpp_TypeInfo_var; extern "C" String_t* Interpreter_GetString_m7712 (Interpreter_t1428 * __this, int32_t ___pc, MethodInfo* method) { static bool Interpreter_GetString_m7712_init; if (!Interpreter_GetString_m7712_init) { CharU5BU5D_t395_il2cpp_TypeInfo_var = il2cpp_codegen_class_from_type(&CharU5BU5D_t395_0_0_0); Interpreter_GetString_m7712_init = true; } int32_t V_0 = 0; int32_t V_1 = 0; CharU5BU5D_t395* V_2 = {0}; int32_t V_3 = 0; { UInt16U5BU5D_t1333* L_0 = (__this->___program_1); int32_t L_1 = ___pc; NullCheck(L_0); IL2CPP_ARRAY_BOUNDS_CHECK(L_0, ((int32_t)((int32_t)L_1+(int32_t)1))); int32_t L_2 = ((int32_t)((int32_t)L_1+(int32_t)1)); V_0 = (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_0, L_2)); int32_t L_3 = ___pc; V_1 = ((int32_t)((int32_t)L_3+(int32_t)2)); int32_t L_4 = V_0; V_2 = ((CharU5BU5D_t395*)SZArrayNew(CharU5BU5D_t395_il2cpp_TypeInfo_var, L_4)); V_3 = 0; goto IL_0030; } IL_001d: { CharU5BU5D_t395* L_5 = V_2; int32_t L_6 = V_3; UInt16U5BU5D_t1333* L_7 = (__this->___program_1); int32_t L_8 = V_1; int32_t L_9 = L_8; V_1 = ((int32_t)((int32_t)L_9+(int32_t)1)); NullCheck(L_7); IL2CPP_ARRAY_BOUNDS_CHECK(L_7, L_9); int32_t L_10 = L_9; NullCheck(L_5); IL2CPP_ARRAY_BOUNDS_CHECK(L_5, L_6); *((uint16_t*)(uint16_t*)SZArrayLdElema(L_5, L_6)) = (uint16_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_7, L_10)); int32_t L_11 = V_3; V_3 = ((int32_t)((int32_t)L_11+(int32_t)1)); } IL_0030: { int32_t L_12 = V_3; int32_t L_13 = V_0; if ((((int32_t)L_12) < ((int32_t)L_13))) { goto IL_001d; } } { CharU5BU5D_t395* L_14 = V_2; IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); String_t* L_15 = (String_t*)il2cpp_codegen_object_new ((&String_t_il2cpp_TypeInfo)); L_15 = String_CreateString_m8207(L_15, L_14, /*hidden argument*/&String__ctor_m8206_MethodInfo); return L_15; } } // System.Void System.Text.RegularExpressions.Interpreter::Open(System.Int32,System.Int32) extern "C" void Interpreter_Open_m7713 (Interpreter_t1428 * __this, int32_t ___gid, int32_t ___ptr, MethodInfo* method) { int32_t V_0 = 0; { Int32U5BU5D_t186* L_0 = (__this->___groups_16); int32_t L_1 = ___gid; NullCheck(L_0); IL2CPP_ARRAY_BOUNDS_CHECK(L_0, L_1); int32_t L_2 = L_1; V_0 = (*(int32_t*)(int32_t*)SZArrayLdElema(L_0, L_2)); int32_t L_3 = V_0; int32_t L_4 = (__this->___mark_start_14); if ((((int32_t)L_3) < ((int32_t)L_4))) { goto IL_002b; } } { MarkU5BU5D_t1427* L_5 = (__this->___marks_13); int32_t L_6 = V_0; NullCheck(L_5); IL2CPP_ARRAY_BOUNDS_CHECK(L_5, L_6); bool L_7 = Mark_get_IsDefined_m7686(((Mark_t1422 *)(Mark_t1422 *)SZArrayLdElema(L_5, L_6)), /*hidden argument*/&Mark_get_IsDefined_m7686_MethodInfo); if (!L_7) { goto IL_003c; } } IL_002b: { int32_t L_8 = V_0; int32_t L_9 = Interpreter_CreateMark_m7720(__this, L_8, /*hidden argument*/&Interpreter_CreateMark_m7720_MethodInfo); V_0 = L_9; Int32U5BU5D_t186* L_10 = (__this->___groups_16); int32_t L_11 = ___gid; int32_t L_12 = V_0; NullCheck(L_10); IL2CPP_ARRAY_BOUNDS_CHECK(L_10, L_11); *((int32_t*)(int32_t*)SZArrayLdElema(L_10, L_11)) = (int32_t)L_12; } IL_003c: { MarkU5BU5D_t1427* L_13 = (__this->___marks_13); int32_t L_14 = V_0; NullCheck(L_13); IL2CPP_ARRAY_BOUNDS_CHECK(L_13, L_14); int32_t L_15 = ___ptr; ((Mark_t1422 *)(Mark_t1422 *)SZArrayLdElema(L_13, L_14))->___Start_0 = L_15; return; } } // System.Void System.Text.RegularExpressions.Interpreter::Close(System.Int32,System.Int32) extern "C" void Interpreter_Close_m7714 (Interpreter_t1428 * __this, int32_t ___gid, int32_t ___ptr, MethodInfo* method) { { MarkU5BU5D_t1427* L_0 = (__this->___marks_13); Int32U5BU5D_t186* L_1 = (__this->___groups_16); int32_t L_2 = ___gid; NullCheck(L_1); IL2CPP_ARRAY_BOUNDS_CHECK(L_1, L_2); int32_t L_3 = L_2; NullCheck(L_0); IL2CPP_ARRAY_BOUNDS_CHECK(L_0, (*(int32_t*)(int32_t*)SZArrayLdElema(L_1, L_3))); int32_t L_4 = ___ptr; ((Mark_t1422 *)(Mark_t1422 *)SZArrayLdElema(L_0, (*(int32_t*)(int32_t*)SZArrayLdElema(L_1, L_3))))->___End_1 = L_4; return; } } // System.Boolean System.Text.RegularExpressions.Interpreter::Balance(System.Int32,System.Int32,System.Boolean,System.Int32) extern "C" bool Interpreter_Balance_m7715 (Interpreter_t1428 * __this, int32_t ___gid, int32_t ___balance_gid, bool ___capture, int32_t ___ptr, MethodInfo* method) { int32_t V_0 = 0; { Int32U5BU5D_t186* L_0 = (__this->___groups_16); int32_t L_1 = ___balance_gid; NullCheck(L_0); IL2CPP_ARRAY_BOUNDS_CHECK(L_0, L_1); int32_t L_2 = L_1; V_0 = (*(int32_t*)(int32_t*)SZArrayLdElema(L_0, L_2)); int32_t L_3 = V_0; if ((((int32_t)L_3) == ((int32_t)(-1)))) { goto IL_0027; } } { MarkU5BU5D_t1427* L_4 = (__this->___marks_13); int32_t L_5 = V_0; NullCheck(L_4); IL2CPP_ARRAY_BOUNDS_CHECK(L_4, L_5); int32_t L_6 = Mark_get_Index_m7687(((Mark_t1422 *)(Mark_t1422 *)SZArrayLdElema(L_4, L_5)), /*hidden argument*/&Mark_get_Index_m7687_MethodInfo); if ((((int32_t)L_6) >= ((int32_t)0))) { goto IL_0029; } } IL_0027: { return 0; } IL_0029: { int32_t L_7 = ___gid; if ((((int32_t)L_7) <= ((int32_t)0))) { goto IL_0069; } } { bool L_8 = ___capture; if (!L_8) { goto IL_0069; } } { int32_t L_9 = ___gid; MarkU5BU5D_t1427* L_10 = (__this->___marks_13); int32_t L_11 = V_0; NullCheck(L_10); IL2CPP_ARRAY_BOUNDS_CHECK(L_10, L_11); int32_t L_12 = Mark_get_Index_m7687(((Mark_t1422 *)(Mark_t1422 *)SZArrayLdElema(L_10, L_11)), /*hidden argument*/&Mark_get_Index_m7687_MethodInfo); MarkU5BU5D_t1427* L_13 = (__this->___marks_13); int32_t L_14 = V_0; NullCheck(L_13); IL2CPP_ARRAY_BOUNDS_CHECK(L_13, L_14); int32_t L_15 = Mark_get_Length_m7688(((Mark_t1422 *)(Mark_t1422 *)SZArrayLdElema(L_13, L_14)), /*hidden argument*/&Mark_get_Length_m7688_MethodInfo); Interpreter_Open_m7713(__this, L_9, ((int32_t)((int32_t)L_12+(int32_t)L_15)), /*hidden argument*/&Interpreter_Open_m7713_MethodInfo); int32_t L_16 = ___gid; int32_t L_17 = ___ptr; Interpreter_Close_m7714(__this, L_16, L_17, /*hidden argument*/&Interpreter_Close_m7714_MethodInfo); } IL_0069: { Int32U5BU5D_t186* L_18 = (__this->___groups_16); int32_t L_19 = ___balance_gid; MarkU5BU5D_t1427* L_20 = (__this->___marks_13); int32_t L_21 = V_0; NullCheck(L_20); IL2CPP_ARRAY_BOUNDS_CHECK(L_20, L_21); int32_t L_22 = (((Mark_t1422 *)(Mark_t1422 *)SZArrayLdElema(L_20, L_21))->___Previous_2); NullCheck(L_18); IL2CPP_ARRAY_BOUNDS_CHECK(L_18, L_19); *((int32_t*)(int32_t*)SZArrayLdElema(L_18, L_19)) = (int32_t)L_22; return 1; } } // System.Int32 System.Text.RegularExpressions.Interpreter::Checkpoint() extern "C" int32_t Interpreter_Checkpoint_m7716 (Interpreter_t1428 * __this, MethodInfo* method) { { int32_t L_0 = (__this->___mark_end_15); __this->___mark_start_14 = L_0; int32_t L_1 = (__this->___mark_start_14); return L_1; } } // System.Void System.Text.RegularExpressions.Interpreter::Backtrack(System.Int32) extern "C" void Interpreter_Backtrack_m7717 (Interpreter_t1428 * __this, int32_t ___cp, MethodInfo* method) { int32_t V_0 = 0; int32_t V_1 = 0; { V_0 = 0; goto IL_003b; } IL_0007: { Int32U5BU5D_t186* L_0 = (__this->___groups_16); int32_t L_1 = V_0; NullCheck(L_0); IL2CPP_ARRAY_BOUNDS_CHECK(L_0, L_1); int32_t L_2 = L_1; V_1 = (*(int32_t*)(int32_t*)SZArrayLdElema(L_0, L_2)); goto IL_0027; } IL_0015: { MarkU5BU5D_t1427* L_3 = (__this->___marks_13); int32_t L_4 = V_1; NullCheck(L_3); IL2CPP_ARRAY_BOUNDS_CHECK(L_3, L_4); int32_t L_5 = (((Mark_t1422 *)(Mark_t1422 *)SZArrayLdElema(L_3, L_4))->___Previous_2); V_1 = L_5; } IL_0027: { int32_t L_6 = ___cp; int32_t L_7 = V_1; if ((((int32_t)L_6) <= ((int32_t)L_7))) { goto IL_0015; } } { Int32U5BU5D_t186* L_8 = (__this->___groups_16); int32_t L_9 = V_0; int32_t L_10 = V_1; NullCheck(L_8); IL2CPP_ARRAY_BOUNDS_CHECK(L_8, L_9); *((int32_t*)(int32_t*)SZArrayLdElema(L_8, L_9)) = (int32_t)L_10; int32_t L_11 = V_0; V_0 = ((int32_t)((int32_t)L_11+(int32_t)1)); } IL_003b: { int32_t L_12 = V_0; Int32U5BU5D_t186* L_13 = (__this->___groups_16); NullCheck(L_13); if ((((int32_t)L_12) < ((int32_t)(((int32_t)(((Array_t *)L_13)->max_length)))))) { goto IL_0007; } } { return; } } // System.Void System.Text.RegularExpressions.Interpreter::ResetGroups() extern TypeInfo* MarkU5BU5D_t1427_il2cpp_TypeInfo_var; extern "C" void Interpreter_ResetGroups_m7718 (Interpreter_t1428 * __this, MethodInfo* method) { static bool Interpreter_ResetGroups_m7718_init; if (!Interpreter_ResetGroups_m7718_init) { MarkU5BU5D_t1427_il2cpp_TypeInfo_var = il2cpp_codegen_class_from_type(&MarkU5BU5D_t1427_0_0_0); Interpreter_ResetGroups_m7718_init = true; } int32_t V_0 = 0; int32_t V_1 = 0; { Int32U5BU5D_t186* L_0 = (__this->___groups_16); NullCheck(L_0); V_0 = (((int32_t)(((Array_t *)L_0)->max_length))); MarkU5BU5D_t1427* L_1 = (__this->___marks_13); if (L_1) { goto IL_0023; } } { int32_t L_2 = V_0; __this->___marks_13 = ((MarkU5BU5D_t1427*)SZArrayNew(MarkU5BU5D_t1427_il2cpp_TypeInfo_var, ((int32_t)((int32_t)L_2*(int32_t)((int32_t)10))))); } IL_0023: { V_1 = 0; goto IL_006d; } IL_002a: { Int32U5BU5D_t186* L_3 = (__this->___groups_16); int32_t L_4 = V_1; int32_t L_5 = V_1; NullCheck(L_3); IL2CPP_ARRAY_BOUNDS_CHECK(L_3, L_4); *((int32_t*)(int32_t*)SZArrayLdElema(L_3, L_4)) = (int32_t)L_5; MarkU5BU5D_t1427* L_6 = (__this->___marks_13); int32_t L_7 = V_1; NullCheck(L_6); IL2CPP_ARRAY_BOUNDS_CHECK(L_6, L_7); ((Mark_t1422 *)(Mark_t1422 *)SZArrayLdElema(L_6, L_7))->___Start_0 = (-1); MarkU5BU5D_t1427* L_8 = (__this->___marks_13); int32_t L_9 = V_1; NullCheck(L_8); IL2CPP_ARRAY_BOUNDS_CHECK(L_8, L_9); ((Mark_t1422 *)(Mark_t1422 *)SZArrayLdElema(L_8, L_9))->___End_1 = (-1); MarkU5BU5D_t1427* L_10 = (__this->___marks_13); int32_t L_11 = V_1; NullCheck(L_10); IL2CPP_ARRAY_BOUNDS_CHECK(L_10, L_11); ((Mark_t1422 *)(Mark_t1422 *)SZArrayLdElema(L_10, L_11))->___Previous_2 = (-1); int32_t L_12 = V_1; V_1 = ((int32_t)((int32_t)L_12+(int32_t)1)); } IL_006d: { int32_t L_13 = V_1; int32_t L_14 = V_0; if ((((int32_t)L_13) < ((int32_t)L_14))) { goto IL_002a; } } { __this->___mark_start_14 = 0; int32_t L_15 = V_0; __this->___mark_end_15 = L_15; return; } } // System.Int32 System.Text.RegularExpressions.Interpreter::GetLastDefined(System.Int32) extern "C" int32_t Interpreter_GetLastDefined_m7719 (Interpreter_t1428 * __this, int32_t ___gid, MethodInfo* method) { int32_t V_0 = 0; { Int32U5BU5D_t186* L_0 = (__this->___groups_16); int32_t L_1 = ___gid; NullCheck(L_0); IL2CPP_ARRAY_BOUNDS_CHECK(L_0, L_1); int32_t L_2 = L_1; V_0 = (*(int32_t*)(int32_t*)SZArrayLdElema(L_0, L_2)); goto IL_0020; } IL_000e: { MarkU5BU5D_t1427* L_3 = (__this->___marks_13); int32_t L_4 = V_0; NullCheck(L_3); IL2CPP_ARRAY_BOUNDS_CHECK(L_3, L_4); int32_t L_5 = (((Mark_t1422 *)(Mark_t1422 *)SZArrayLdElema(L_3, L_4))->___Previous_2); V_0 = L_5; } IL_0020: { int32_t L_6 = V_0; if ((((int32_t)L_6) < ((int32_t)0))) { goto IL_003d; } } { MarkU5BU5D_t1427* L_7 = (__this->___marks_13); int32_t L_8 = V_0; NullCheck(L_7); IL2CPP_ARRAY_BOUNDS_CHECK(L_7, L_8); bool L_9 = Mark_get_IsDefined_m7686(((Mark_t1422 *)(Mark_t1422 *)SZArrayLdElema(L_7, L_8)), /*hidden argument*/&Mark_get_IsDefined_m7686_MethodInfo); if (!L_9) { goto IL_000e; } } IL_003d: { int32_t L_10 = V_0; return L_10; } } // System.Int32 System.Text.RegularExpressions.Interpreter::CreateMark(System.Int32) extern TypeInfo* MarkU5BU5D_t1427_il2cpp_TypeInfo_var; extern "C" int32_t Interpreter_CreateMark_m7720 (Interpreter_t1428 * __this, int32_t ___previous, MethodInfo* method) { static bool Interpreter_CreateMark_m7720_init; if (!Interpreter_CreateMark_m7720_init) { MarkU5BU5D_t1427_il2cpp_TypeInfo_var = il2cpp_codegen_class_from_type(&MarkU5BU5D_t1427_0_0_0); Interpreter_CreateMark_m7720_init = true; } MarkU5BU5D_t1427* V_0 = {0}; int32_t V_1 = 0; int32_t V_2 = 0; { int32_t L_0 = (__this->___mark_end_15); MarkU5BU5D_t1427* L_1 = (__this->___marks_13); NullCheck(L_1); if ((!(((uint32_t)L_0) == ((uint32_t)(((int32_t)(((Array_t *)L_1)->max_length))))))) { goto IL_0037; } } { MarkU5BU5D_t1427* L_2 = (__this->___marks_13); NullCheck(L_2); V_0 = ((MarkU5BU5D_t1427*)SZArrayNew(MarkU5BU5D_t1427_il2cpp_TypeInfo_var, ((int32_t)((int32_t)(((int32_t)(((Array_t *)L_2)->max_length)))*(int32_t)2)))); MarkU5BU5D_t1427* L_3 = (__this->___marks_13); MarkU5BU5D_t1427* L_4 = V_0; NullCheck(L_3); VirtActionInvoker2< Array_t *, int32_t >::Invoke(&Array_CopyTo_m8174_MethodInfo, L_3, (Array_t *)(Array_t *)L_4, 0); MarkU5BU5D_t1427* L_5 = V_0; __this->___marks_13 = L_5; } IL_0037: { int32_t L_6 = (__this->___mark_end_15); int32_t L_7 = L_6; V_2 = L_7; __this->___mark_end_15 = ((int32_t)((int32_t)L_7+(int32_t)1)); int32_t L_8 = V_2; V_1 = L_8; MarkU5BU5D_t1427* L_9 = (__this->___marks_13); int32_t L_10 = V_1; NullCheck(L_9); IL2CPP_ARRAY_BOUNDS_CHECK(L_9, L_10); MarkU5BU5D_t1427* L_11 = (__this->___marks_13); int32_t L_12 = V_1; NullCheck(L_11); IL2CPP_ARRAY_BOUNDS_CHECK(L_11, L_12); int32_t L_13 = (-1); V_2 = L_13; ((Mark_t1422 *)(Mark_t1422 *)SZArrayLdElema(L_11, L_12))->___End_1 = L_13; int32_t L_14 = V_2; ((Mark_t1422 *)(Mark_t1422 *)SZArrayLdElema(L_9, L_10))->___Start_0 = L_14; MarkU5BU5D_t1427* L_15 = (__this->___marks_13); int32_t L_16 = V_1; NullCheck(L_15); IL2CPP_ARRAY_BOUNDS_CHECK(L_15, L_16); int32_t L_17 = ___previous; ((Mark_t1422 *)(Mark_t1422 *)SZArrayLdElema(L_15, L_16))->___Previous_2 = L_17; int32_t L_18 = V_1; return L_18; } } // System.Void System.Text.RegularExpressions.Interpreter::GetGroupInfo(System.Int32,System.Int32&,System.Int32&) extern "C" void Interpreter_GetGroupInfo_m7721 (Interpreter_t1428 * __this, int32_t ___gid, int32_t* ___first_mark_index, int32_t* ___n_caps, MethodInfo* method) { int32_t V_0 = 0; { int32_t* L_0 = ___first_mark_index; *((int32_t*)(L_0)) = (int32_t)(-1); int32_t* L_1 = ___n_caps; *((int32_t*)(L_1)) = (int32_t)0; Int32U5BU5D_t186* L_2 = (__this->___groups_16); int32_t L_3 = ___gid; NullCheck(L_2); IL2CPP_ARRAY_BOUNDS_CHECK(L_2, L_3); int32_t L_4 = L_3; V_0 = (*(int32_t*)(int32_t*)SZArrayLdElema(L_2, L_4)); goto IL_0052; } IL_0014: { MarkU5BU5D_t1427* L_5 = (__this->___marks_13); int32_t L_6 = V_0; NullCheck(L_5); IL2CPP_ARRAY_BOUNDS_CHECK(L_5, L_6); bool L_7 = Mark_get_IsDefined_m7686(((Mark_t1422 *)(Mark_t1422 *)SZArrayLdElema(L_5, L_6)), /*hidden argument*/&Mark_get_IsDefined_m7686_MethodInfo); if (L_7) { goto IL_002f; } } { goto IL_0040; } IL_002f: { int32_t* L_8 = ___first_mark_index; if ((((int32_t)(*((int32_t*)L_8))) >= ((int32_t)0))) { goto IL_003a; } } { int32_t* L_9 = ___first_mark_index; int32_t L_10 = V_0; *((int32_t*)(L_9)) = (int32_t)L_10; } IL_003a: { int32_t* L_11 = ___n_caps; int32_t* L_12 = ___n_caps; *((int32_t*)(L_11)) = (int32_t)((int32_t)((int32_t)(*((int32_t*)L_12))+(int32_t)1)); } IL_0040: { MarkU5BU5D_t1427* L_13 = (__this->___marks_13); int32_t L_14 = V_0; NullCheck(L_13); IL2CPP_ARRAY_BOUNDS_CHECK(L_13, L_14); int32_t L_15 = (((Mark_t1422 *)(Mark_t1422 *)SZArrayLdElema(L_13, L_14))->___Previous_2); V_0 = L_15; } IL_0052: { int32_t L_16 = V_0; if ((((int32_t)L_16) >= ((int32_t)0))) { goto IL_0014; } } { return; } } // System.Void System.Text.RegularExpressions.Interpreter::PopulateGroup(System.Text.RegularExpressions.Group,System.Int32,System.Int32) extern "C" void Interpreter_PopulateGroup_m7722 (Interpreter_t1428 * __this, Group_t1398 * ___g, int32_t ___first_mark_index, int32_t ___n_caps, MethodInfo* method) { int32_t V_0 = 0; int32_t V_1 = 0; Capture_t1395 * V_2 = {0}; { V_0 = 1; MarkU5BU5D_t1427* L_0 = (__this->___marks_13); int32_t L_1 = ___first_mark_index; NullCheck(L_0); IL2CPP_ARRAY_BOUNDS_CHECK(L_0, L_1); int32_t L_2 = (((Mark_t1422 *)(Mark_t1422 *)SZArrayLdElema(L_0, L_1))->___Previous_2); V_1 = L_2; goto IL_0089; } IL_0019: { MarkU5BU5D_t1427* L_3 = (__this->___marks_13); int32_t L_4 = V_1; NullCheck(L_3); IL2CPP_ARRAY_BOUNDS_CHECK(L_3, L_4); bool L_5 = Mark_get_IsDefined_m7686(((Mark_t1422 *)(Mark_t1422 *)SZArrayLdElema(L_3, L_4)), /*hidden argument*/&Mark_get_IsDefined_m7686_MethodInfo); if (L_5) { goto IL_0034; } } { goto IL_0077; } IL_0034: { String_t* L_6 = (__this->___text_3); MarkU5BU5D_t1427* L_7 = (__this->___marks_13); int32_t L_8 = V_1; NullCheck(L_7); IL2CPP_ARRAY_BOUNDS_CHECK(L_7, L_8); int32_t L_9 = Mark_get_Index_m7687(((Mark_t1422 *)(Mark_t1422 *)SZArrayLdElema(L_7, L_8)), /*hidden argument*/&Mark_get_Index_m7687_MethodInfo); MarkU5BU5D_t1427* L_10 = (__this->___marks_13); int32_t L_11 = V_1; NullCheck(L_10); IL2CPP_ARRAY_BOUNDS_CHECK(L_10, L_11); int32_t L_12 = Mark_get_Length_m7688(((Mark_t1422 *)(Mark_t1422 *)SZArrayLdElema(L_10, L_11)), /*hidden argument*/&Mark_get_Length_m7688_MethodInfo); Capture_t1395 * L_13 = (Capture_t1395 *)il2cpp_codegen_object_new (InitializedTypeInfo(&Capture_t1395_il2cpp_TypeInfo)); Capture__ctor_m7537(L_13, L_6, L_9, L_12, /*hidden argument*/&Capture__ctor_m7537_MethodInfo); V_2 = L_13; Group_t1398 * L_14 = ___g; NullCheck(L_14); CaptureCollection_t1397 * L_15 = Group_get_Captures_m7554(L_14, /*hidden argument*/&Group_get_Captures_m7554_MethodInfo); Capture_t1395 * L_16 = V_2; int32_t L_17 = ___n_caps; int32_t L_18 = V_0; NullCheck(L_15); CaptureCollection_SetValue_m7546(L_15, L_16, ((int32_t)((int32_t)((int32_t)((int32_t)L_17-(int32_t)1))-(int32_t)L_18)), /*hidden argument*/&CaptureCollection_SetValue_m7546_MethodInfo); int32_t L_19 = V_0; V_0 = ((int32_t)((int32_t)L_19+(int32_t)1)); } IL_0077: { MarkU5BU5D_t1427* L_20 = (__this->___marks_13); int32_t L_21 = V_1; NullCheck(L_20); IL2CPP_ARRAY_BOUNDS_CHECK(L_20, L_21); int32_t L_22 = (((Mark_t1422 *)(Mark_t1422 *)SZArrayLdElema(L_20, L_21))->___Previous_2); V_1 = L_22; } IL_0089: { int32_t L_23 = V_1; if ((((int32_t)L_23) >= ((int32_t)0))) { goto IL_0019; } } { return; } } // System.Text.RegularExpressions.Match System.Text.RegularExpressions.Interpreter::GenerateMatch(System.Text.RegularExpressions.Regex) extern "C" Match_t1394 * Interpreter_GenerateMatch_m7723 (Interpreter_t1428 * __this, Regex_t858 * ___regex, MethodInfo* method) { int32_t V_0 = 0; int32_t V_1 = 0; Group_t1398 * V_2 = {0}; Match_t1394 * V_3 = {0}; int32_t V_4 = 0; { Interpreter_GetGroupInfo_m7721(__this, 0, (&V_1), (&V_0), /*hidden argument*/&Interpreter_GetGroupInfo_m7721_MethodInfo); bool L_0 = (__this->___needs_groups_or_captures_0); if (L_0) { goto IL_004d; } } { Regex_t858 * L_1 = ___regex; String_t* L_2 = (__this->___text_3); int32_t L_3 = (__this->___text_end_4); MarkU5BU5D_t1427* L_4 = (__this->___marks_13); int32_t L_5 = V_1; NullCheck(L_4); IL2CPP_ARRAY_BOUNDS_CHECK(L_4, L_5); int32_t L_6 = Mark_get_Index_m7687(((Mark_t1422 *)(Mark_t1422 *)SZArrayLdElema(L_4, L_5)), /*hidden argument*/&Mark_get_Index_m7687_MethodInfo); MarkU5BU5D_t1427* L_7 = (__this->___marks_13); int32_t L_8 = V_1; NullCheck(L_7); IL2CPP_ARRAY_BOUNDS_CHECK(L_7, L_8); int32_t L_9 = Mark_get_Length_m7688(((Mark_t1422 *)(Mark_t1422 *)SZArrayLdElema(L_7, L_8)), /*hidden argument*/&Mark_get_Length_m7688_MethodInfo); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Match_t1394_il2cpp_TypeInfo)); Match_t1394 * L_10 = (Match_t1394 *)il2cpp_codegen_object_new (InitializedTypeInfo(&Match_t1394_il2cpp_TypeInfo)); Match__ctor_m7565(L_10, L_1, __this, L_2, L_3, 0, L_6, L_9, /*hidden argument*/&Match__ctor_m7565_MethodInfo); return L_10; } IL_004d: { Regex_t858 * L_11 = ___regex; String_t* L_12 = (__this->___text_3); int32_t L_13 = (__this->___text_end_4); Int32U5BU5D_t186* L_14 = (__this->___groups_16); NullCheck(L_14); MarkU5BU5D_t1427* L_15 = (__this->___marks_13); int32_t L_16 = V_1; NullCheck(L_15); IL2CPP_ARRAY_BOUNDS_CHECK(L_15, L_16); int32_t L_17 = Mark_get_Index_m7687(((Mark_t1422 *)(Mark_t1422 *)SZArrayLdElema(L_15, L_16)), /*hidden argument*/&Mark_get_Index_m7687_MethodInfo); MarkU5BU5D_t1427* L_18 = (__this->___marks_13); int32_t L_19 = V_1; NullCheck(L_18); IL2CPP_ARRAY_BOUNDS_CHECK(L_18, L_19); int32_t L_20 = Mark_get_Length_m7688(((Mark_t1422 *)(Mark_t1422 *)SZArrayLdElema(L_18, L_19)), /*hidden argument*/&Mark_get_Length_m7688_MethodInfo); int32_t L_21 = V_0; IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Match_t1394_il2cpp_TypeInfo)); Match_t1394 * L_22 = (Match_t1394 *)il2cpp_codegen_object_new (InitializedTypeInfo(&Match_t1394_il2cpp_TypeInfo)); Match__ctor_m7566(L_22, L_11, __this, L_12, L_13, (((int32_t)(((Array_t *)L_14)->max_length))), L_17, L_20, L_21, /*hidden argument*/&Match__ctor_m7566_MethodInfo); V_3 = L_22; Match_t1394 * L_23 = V_3; int32_t L_24 = V_1; int32_t L_25 = V_0; Interpreter_PopulateGroup_m7722(__this, L_23, L_24, L_25, /*hidden argument*/&Interpreter_PopulateGroup_m7722_MethodInfo); V_4 = 1; goto IL_0107; } IL_009d: { int32_t L_26 = V_4; Interpreter_GetGroupInfo_m7721(__this, L_26, (&V_1), (&V_0), /*hidden argument*/&Interpreter_GetGroupInfo_m7721_MethodInfo); int32_t L_27 = V_1; if ((((int32_t)L_27) >= ((int32_t)0))) { goto IL_00bb; } } { IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Group_t1398_il2cpp_TypeInfo)); Group_t1398 * L_28 = ((Group_t1398_StaticFields*)InitializedTypeInfo(&Group_t1398_il2cpp_TypeInfo)->static_fields)->___Fail_3; V_2 = L_28; goto IL_00f3; } IL_00bb: { String_t* L_29 = (__this->___text_3); MarkU5BU5D_t1427* L_30 = (__this->___marks_13); int32_t L_31 = V_1; NullCheck(L_30); IL2CPP_ARRAY_BOUNDS_CHECK(L_30, L_31); int32_t L_32 = Mark_get_Index_m7687(((Mark_t1422 *)(Mark_t1422 *)SZArrayLdElema(L_30, L_31)), /*hidden argument*/&Mark_get_Index_m7687_MethodInfo); MarkU5BU5D_t1427* L_33 = (__this->___marks_13); int32_t L_34 = V_1; NullCheck(L_33); IL2CPP_ARRAY_BOUNDS_CHECK(L_33, L_34); int32_t L_35 = Mark_get_Length_m7688(((Mark_t1422 *)(Mark_t1422 *)SZArrayLdElema(L_33, L_34)), /*hidden argument*/&Mark_get_Length_m7688_MethodInfo); int32_t L_36 = V_0; IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Group_t1398_il2cpp_TypeInfo)); Group_t1398 * L_37 = (Group_t1398 *)il2cpp_codegen_object_new (InitializedTypeInfo(&Group_t1398_il2cpp_TypeInfo)); Group__ctor_m7550(L_37, L_29, L_32, L_35, L_36, /*hidden argument*/&Group__ctor_m7550_MethodInfo); V_2 = L_37; Group_t1398 * L_38 = V_2; int32_t L_39 = V_1; int32_t L_40 = V_0; Interpreter_PopulateGroup_m7722(__this, L_38, L_39, L_40, /*hidden argument*/&Interpreter_PopulateGroup_m7722_MethodInfo); } IL_00f3: { Match_t1394 * L_41 = V_3; NullCheck(L_41); GroupCollection_t1400 * L_42 = (GroupCollection_t1400 *)VirtFuncInvoker0< GroupCollection_t1400 * >::Invoke(&Match_get_Groups_m7569_MethodInfo, L_41); Group_t1398 * L_43 = V_2; int32_t L_44 = V_4; NullCheck(L_42); GroupCollection_SetValue_m7560(L_42, L_43, L_44, /*hidden argument*/&GroupCollection_SetValue_m7560_MethodInfo); int32_t L_45 = V_4; V_4 = ((int32_t)((int32_t)L_45+(int32_t)1)); } IL_0107: { int32_t L_46 = V_4; Int32U5BU5D_t186* L_47 = (__this->___groups_16); NullCheck(L_47); if ((((int32_t)L_46) < ((int32_t)(((int32_t)(((Array_t *)L_47)->max_length)))))) { goto IL_009d; } } { Match_t1394 * L_48 = V_3; return L_48; } } // System.Text.RegularExpressions.Interval #include "System_System_Text_RegularExpressions_Interval.h" #ifndef _MSC_VER #else #endif extern TypeInfo Interval_t1429_il2cpp_TypeInfo; // System.Text.RegularExpressions.Interval #include "System_System_Text_RegularExpressions_IntervalMethodDeclarations.h" // System.Object #include "mscorlib_System_Object.h" extern MethodInfo Interval_get_IsEmpty_m7728_MethodInfo; extern MethodInfo Interval_Contains_m7733_MethodInfo; // System.Void System.Text.RegularExpressions.Interval::.ctor(System.Int32,System.Int32) extern MethodInfo Interval__ctor_m7724_MethodInfo; extern "C" void Interval__ctor_m7724 (Interval_t1429 * __this, int32_t ___low, int32_t ___high, MethodInfo* method) { int32_t V_0 = 0; { int32_t L_0 = ___low; int32_t L_1 = ___high; if ((((int32_t)L_0) <= ((int32_t)L_1))) { goto IL_000f; } } { int32_t L_2 = ___low; V_0 = L_2; int32_t L_3 = ___high; ___low = L_3; int32_t L_4 = V_0; ___high = L_4; } IL_000f: { int32_t L_5 = ___low; __this->___low_0 = L_5; int32_t L_6 = ___high; __this->___high_1 = L_6; __this->___contiguous_2 = 1; return; } } // System.Text.RegularExpressions.Interval System.Text.RegularExpressions.Interval::get_Empty() extern MethodInfo Interval_get_Empty_m7725_MethodInfo; extern "C" Interval_t1429 Interval_get_Empty_m7725 (Object_t * __this /* static, unused */, MethodInfo* method) { Interval_t1429 V_0 = {0}; { (&V_0)->___low_0 = 0; int32_t L_0 = ((&V_0)->___low_0); (&V_0)->___high_1 = ((int32_t)((int32_t)L_0-(int32_t)1)); (&V_0)->___contiguous_2 = 1; Interval_t1429 L_1 = V_0; return L_1; } } // System.Boolean System.Text.RegularExpressions.Interval::get_IsDiscontiguous() extern MethodInfo Interval_get_IsDiscontiguous_m7726_MethodInfo; extern "C" bool Interval_get_IsDiscontiguous_m7726 (Interval_t1429 * __this, MethodInfo* method) { { bool L_0 = (__this->___contiguous_2); return ((((int32_t)L_0) == ((int32_t)0))? 1 : 0); } } // System.Boolean System.Text.RegularExpressions.Interval::get_IsSingleton() extern MethodInfo Interval_get_IsSingleton_m7727_MethodInfo; extern "C" bool Interval_get_IsSingleton_m7727 (Interval_t1429 * __this, MethodInfo* method) { int32_t G_B3_0 = 0; { bool L_0 = (__this->___contiguous_2); if (!L_0) { goto IL_001b; } } { int32_t L_1 = (__this->___low_0); int32_t L_2 = (__this->___high_1); G_B3_0 = ((((int32_t)L_1) == ((int32_t)L_2))? 1 : 0); goto IL_001c; } IL_001b: { G_B3_0 = 0; } IL_001c: { return G_B3_0; } } // System.Boolean System.Text.RegularExpressions.Interval::get_IsEmpty() extern "C" bool Interval_get_IsEmpty_m7728 (Interval_t1429 * __this, MethodInfo* method) { { int32_t L_0 = (__this->___low_0); int32_t L_1 = (__this->___high_1); return ((((int32_t)L_0) > ((int32_t)L_1))? 1 : 0); } } // System.Int32 System.Text.RegularExpressions.Interval::get_Size() extern MethodInfo Interval_get_Size_m7729_MethodInfo; extern "C" int32_t Interval_get_Size_m7729 (Interval_t1429 * __this, MethodInfo* method) { { bool L_0 = Interval_get_IsEmpty_m7728(__this, /*hidden argument*/&Interval_get_IsEmpty_m7728_MethodInfo); if (!L_0) { goto IL_000d; } } { return 0; } IL_000d: { int32_t L_1 = (__this->___high_1); int32_t L_2 = (__this->___low_0); return ((int32_t)((int32_t)((int32_t)((int32_t)L_1-(int32_t)L_2))+(int32_t)1)); } } // System.Boolean System.Text.RegularExpressions.Interval::IsDisjoint(System.Text.RegularExpressions.Interval) extern MethodInfo Interval_IsDisjoint_m7730_MethodInfo; extern "C" bool Interval_IsDisjoint_m7730 (Interval_t1429 * __this, Interval_t1429 ___i, MethodInfo* method) { int32_t G_B6_0 = 0; { bool L_0 = Interval_get_IsEmpty_m7728(__this, /*hidden argument*/&Interval_get_IsEmpty_m7728_MethodInfo); if (L_0) { goto IL_0017; } } { bool L_1 = Interval_get_IsEmpty_m7728((&___i), /*hidden argument*/&Interval_get_IsEmpty_m7728_MethodInfo); if (!L_1) { goto IL_0019; } } IL_0017: { return 1; } IL_0019: { int32_t L_2 = (__this->___low_0); int32_t L_3 = ((&___i)->___high_1); if ((((int32_t)L_2) > ((int32_t)L_3))) { goto IL_003f; } } { int32_t L_4 = ((&___i)->___low_0); int32_t L_5 = (__this->___high_1); G_B6_0 = ((((int32_t)((((int32_t)L_4) > ((int32_t)L_5))? 1 : 0)) == ((int32_t)0))? 1 : 0); goto IL_0040; } IL_003f: { G_B6_0 = 0; } IL_0040: { return ((((int32_t)G_B6_0) == ((int32_t)0))? 1 : 0); } } // System.Boolean System.Text.RegularExpressions.Interval::IsAdjacent(System.Text.RegularExpressions.Interval) extern MethodInfo Interval_IsAdjacent_m7731_MethodInfo; extern "C" bool Interval_IsAdjacent_m7731 (Interval_t1429 * __this, Interval_t1429 ___i, MethodInfo* method) { int32_t G_B6_0 = 0; { bool L_0 = Interval_get_IsEmpty_m7728(__this, /*hidden argument*/&Interval_get_IsEmpty_m7728_MethodInfo); if (L_0) { goto IL_0017; } } { bool L_1 = Interval_get_IsEmpty_m7728((&___i), /*hidden argument*/&Interval_get_IsEmpty_m7728_MethodInfo); if (!L_1) { goto IL_0019; } } IL_0017: { return 0; } IL_0019: { int32_t L_2 = (__this->___low_0); int32_t L_3 = ((&___i)->___high_1); if ((((int32_t)L_2) == ((int32_t)((int32_t)((int32_t)L_3+(int32_t)1))))) { goto IL_0040; } } { int32_t L_4 = (__this->___high_1); int32_t L_5 = ((&___i)->___low_0); G_B6_0 = ((((int32_t)L_4) == ((int32_t)((int32_t)((int32_t)L_5-(int32_t)1))))? 1 : 0); goto IL_0041; } IL_0040: { G_B6_0 = 1; } IL_0041: { return G_B6_0; } } // System.Boolean System.Text.RegularExpressions.Interval::Contains(System.Text.RegularExpressions.Interval) extern MethodInfo Interval_Contains_m7732_MethodInfo; extern "C" bool Interval_Contains_m7732 (Interval_t1429 * __this, Interval_t1429 ___i, MethodInfo* method) { int32_t G_B8_0 = 0; { bool L_0 = Interval_get_IsEmpty_m7728(__this, /*hidden argument*/&Interval_get_IsEmpty_m7728_MethodInfo); if (L_0) { goto IL_0019; } } { bool L_1 = Interval_get_IsEmpty_m7728((&___i), /*hidden argument*/&Interval_get_IsEmpty_m7728_MethodInfo); if (!L_1) { goto IL_0019; } } { return 1; } IL_0019: { bool L_2 = Interval_get_IsEmpty_m7728(__this, /*hidden argument*/&Interval_get_IsEmpty_m7728_MethodInfo); if (!L_2) { goto IL_0026; } } { return 0; } IL_0026: { int32_t L_3 = (__this->___low_0); int32_t L_4 = ((&___i)->___low_0); if ((((int32_t)L_3) > ((int32_t)L_4))) { goto IL_004c; } } { int32_t L_5 = ((&___i)->___high_1); int32_t L_6 = (__this->___high_1); G_B8_0 = ((((int32_t)((((int32_t)L_5) > ((int32_t)L_6))? 1 : 0)) == ((int32_t)0))? 1 : 0); goto IL_004d; } IL_004c: { G_B8_0 = 0; } IL_004d: { return G_B8_0; } } // System.Boolean System.Text.RegularExpressions.Interval::Contains(System.Int32) extern "C" bool Interval_Contains_m7733 (Interval_t1429 * __this, int32_t ___i, MethodInfo* method) { int32_t G_B3_0 = 0; { int32_t L_0 = (__this->___low_0); int32_t L_1 = ___i; if ((((int32_t)L_0) > ((int32_t)L_1))) { goto IL_001a; } } { int32_t L_2 = ___i; int32_t L_3 = (__this->___high_1); G_B3_0 = ((((int32_t)((((int32_t)L_2) > ((int32_t)L_3))? 1 : 0)) == ((int32_t)0))? 1 : 0); goto IL_001b; } IL_001a: { G_B3_0 = 0; } IL_001b: { return G_B3_0; } } // System.Boolean System.Text.RegularExpressions.Interval::Intersects(System.Text.RegularExpressions.Interval) extern MethodInfo Interval_Intersects_m7734_MethodInfo; extern "C" bool Interval_Intersects_m7734 (Interval_t1429 * __this, Interval_t1429 ___i, MethodInfo* method) { int32_t G_B8_0 = 0; int32_t G_B10_0 = 0; { bool L_0 = Interval_get_IsEmpty_m7728(__this, /*hidden argument*/&Interval_get_IsEmpty_m7728_MethodInfo); if (L_0) { goto IL_0017; } } { bool L_1 = Interval_get_IsEmpty_m7728((&___i), /*hidden argument*/&Interval_get_IsEmpty_m7728_MethodInfo); if (!L_1) { goto IL_0019; } } IL_0017: { return 0; } IL_0019: { int32_t L_2 = ((&___i)->___low_0); bool L_3 = Interval_Contains_m7733(__this, L_2, /*hidden argument*/&Interval_Contains_m7733_MethodInfo); if (!L_3) { goto IL_003d; } } { int32_t L_4 = ((&___i)->___high_1); bool L_5 = Interval_Contains_m7733(__this, L_4, /*hidden argument*/&Interval_Contains_m7733_MethodInfo); if (!L_5) { goto IL_0064; } } IL_003d: { int32_t L_6 = ((&___i)->___high_1); bool L_7 = Interval_Contains_m7733(__this, L_6, /*hidden argument*/&Interval_Contains_m7733_MethodInfo); if (!L_7) { goto IL_0061; } } { int32_t L_8 = ((&___i)->___low_0); bool L_9 = Interval_Contains_m7733(__this, L_8, /*hidden argument*/&Interval_Contains_m7733_MethodInfo); G_B8_0 = ((((int32_t)L_9) == ((int32_t)0))? 1 : 0); goto IL_0062; } IL_0061: { G_B8_0 = 0; } IL_0062: { G_B10_0 = G_B8_0; goto IL_0065; } IL_0064: { G_B10_0 = 1; } IL_0065: { return G_B10_0; } } // System.Void System.Text.RegularExpressions.Interval::Merge(System.Text.RegularExpressions.Interval) extern MethodInfo Interval_Merge_m7735_MethodInfo; extern "C" void Interval_Merge_m7735 (Interval_t1429 * __this, Interval_t1429 ___i, MethodInfo* method) { { bool L_0 = Interval_get_IsEmpty_m7728((&___i), /*hidden argument*/&Interval_get_IsEmpty_m7728_MethodInfo); if (!L_0) { goto IL_000d; } } { return; } IL_000d: { bool L_1 = Interval_get_IsEmpty_m7728(__this, /*hidden argument*/&Interval_get_IsEmpty_m7728_MethodInfo); if (!L_1) { goto IL_0032; } } { int32_t L_2 = ((&___i)->___low_0); __this->___low_0 = L_2; int32_t L_3 = ((&___i)->___high_1); __this->___high_1 = L_3; } IL_0032: { int32_t L_4 = ((&___i)->___low_0); int32_t L_5 = (__this->___low_0); if ((((int32_t)L_4) >= ((int32_t)L_5))) { goto IL_0051; } } { int32_t L_6 = ((&___i)->___low_0); __this->___low_0 = L_6; } IL_0051: { int32_t L_7 = ((&___i)->___high_1); int32_t L_8 = (__this->___high_1); if ((((int32_t)L_7) <= ((int32_t)L_8))) { goto IL_0070; } } { int32_t L_9 = ((&___i)->___high_1); __this->___high_1 = L_9; } IL_0070: { return; } } // System.Int32 System.Text.RegularExpressions.Interval::CompareTo(System.Object) extern MethodInfo Interval_CompareTo_m7736_MethodInfo; extern "C" int32_t Interval_CompareTo_m7736 (Interval_t1429 * __this, Object_t * ___o, MethodInfo* method) { Interval_t1429 V_0 = {0}; { int32_t L_0 = (__this->___low_0); Object_t * L_1 = ___o; V_0 = ((*(Interval_t1429 *)((Interval_t1429 *)UnBox (L_1, InitializedTypeInfo(&Interval_t1429_il2cpp_TypeInfo))))); int32_t L_2 = ((&V_0)->___low_0); return ((int32_t)((int32_t)L_0-(int32_t)L_2)); } } // Conversion methods for marshalling of: System.Text.RegularExpressions.Interval void Interval_t1429_marshal(const Interval_t1429& unmarshaled, Interval_t1429_marshaled& marshaled) { marshaled.___low_0 = unmarshaled.___low_0; marshaled.___high_1 = unmarshaled.___high_1; marshaled.___contiguous_2 = unmarshaled.___contiguous_2; } void Interval_t1429_marshal_back(const Interval_t1429_marshaled& marshaled, Interval_t1429& unmarshaled) { unmarshaled.___low_0 = marshaled.___low_0; unmarshaled.___high_1 = marshaled.___high_1; unmarshaled.___contiguous_2 = marshaled.___contiguous_2; } // Conversion method for clean up from marshalling of: System.Text.RegularExpressions.Interval void Interval_t1429_marshal_cleanup(Interval_t1429_marshaled& marshaled) { } // System.Text.RegularExpressions.IntervalCollection/Enumerator #include "System_System_Text_RegularExpressions_IntervalCollection_Enu.h" #ifndef _MSC_VER #else #endif extern TypeInfo Enumerator_t1431_il2cpp_TypeInfo; // System.Text.RegularExpressions.IntervalCollection/Enumerator #include "System_System_Text_RegularExpressions_IntervalCollection_EnuMethodDeclarations.h" // System.InvalidOperationException #include "mscorlib_System_InvalidOperationException.h" extern TypeInfo ICollection_t1268_il2cpp_TypeInfo; extern TypeInfo InvalidOperationException_t1471_il2cpp_TypeInfo; extern TypeInfo IList_t1430_il2cpp_TypeInfo; extern TypeInfo Object_t_il2cpp_TypeInfo; // System.InvalidOperationException #include "mscorlib_System_InvalidOperationExceptionMethodDeclarations.h" extern MethodInfo ICollection_get_Count_m7973_MethodInfo; extern MethodInfo InvalidOperationException__ctor_m7992_MethodInfo; extern MethodInfo IList_get_Item_m8208_MethodInfo; extern MethodInfo Enumerator_Reset_m7740_MethodInfo; // System.Void System.Text.RegularExpressions.IntervalCollection/Enumerator::.ctor(System.Collections.IList) extern MethodInfo Enumerator__ctor_m7737_MethodInfo; extern "C" void Enumerator__ctor_m7737 (Enumerator_t1431 * __this, Object_t * ___list, MethodInfo* method) { { Object__ctor_m419(__this, /*hidden argument*/&Object__ctor_m419_MethodInfo); Object_t * L_0 = ___list; __this->___list_0 = L_0; VirtActionInvoker0::Invoke(&Enumerator_Reset_m7740_MethodInfo, __this); return; } } // System.Object System.Text.RegularExpressions.IntervalCollection/Enumerator::get_Current() extern MethodInfo Enumerator_get_Current_m7738_MethodInfo; extern "C" Object_t * Enumerator_get_Current_m7738 (Enumerator_t1431 * __this, MethodInfo* method) { { int32_t L_0 = (__this->___ptr_1); Object_t * L_1 = (__this->___list_0); NullCheck(L_1); int32_t L_2 = (int32_t)InterfaceFuncInvoker0< int32_t >::Invoke(&ICollection_get_Count_m7973_MethodInfo, L_1); if ((((int32_t)L_0) < ((int32_t)L_2))) { goto IL_001c; } } { InvalidOperationException_t1471 * L_3 = (InvalidOperationException_t1471 *)il2cpp_codegen_object_new (InitializedTypeInfo(&InvalidOperationException_t1471_il2cpp_TypeInfo)); InvalidOperationException__ctor_m7992(L_3, /*hidden argument*/&InvalidOperationException__ctor_m7992_MethodInfo); il2cpp_codegen_raise_exception(L_3); } IL_001c: { Object_t * L_4 = (__this->___list_0); int32_t L_5 = (__this->___ptr_1); NullCheck(L_4); Object_t * L_6 = (Object_t *)InterfaceFuncInvoker1< Object_t *, int32_t >::Invoke(&IList_get_Item_m8208_MethodInfo, L_4, L_5); return L_6; } } // System.Boolean System.Text.RegularExpressions.IntervalCollection/Enumerator::MoveNext() extern MethodInfo Enumerator_MoveNext_m7739_MethodInfo; extern "C" bool Enumerator_MoveNext_m7739 (Enumerator_t1431 * __this, MethodInfo* method) { int32_t V_0 = 0; { int32_t L_0 = (__this->___ptr_1); Object_t * L_1 = (__this->___list_0); NullCheck(L_1); int32_t L_2 = (int32_t)InterfaceFuncInvoker0< int32_t >::Invoke(&ICollection_get_Count_m7973_MethodInfo, L_1); if ((((int32_t)L_0) <= ((int32_t)L_2))) { goto IL_001c; } } { InvalidOperationException_t1471 * L_3 = (InvalidOperationException_t1471 *)il2cpp_codegen_object_new (InitializedTypeInfo(&InvalidOperationException_t1471_il2cpp_TypeInfo)); InvalidOperationException__ctor_m7992(L_3, /*hidden argument*/&InvalidOperationException__ctor_m7992_MethodInfo); il2cpp_codegen_raise_exception(L_3); } IL_001c: { int32_t L_4 = (__this->___ptr_1); int32_t L_5 = ((int32_t)((int32_t)L_4+(int32_t)1)); V_0 = L_5; __this->___ptr_1 = L_5; int32_t L_6 = V_0; Object_t * L_7 = (__this->___list_0); NullCheck(L_7); int32_t L_8 = (int32_t)InterfaceFuncInvoker0< int32_t >::Invoke(&ICollection_get_Count_m7973_MethodInfo, L_7); return ((((int32_t)L_6) < ((int32_t)L_8))? 1 : 0); } } // System.Void System.Text.RegularExpressions.IntervalCollection/Enumerator::Reset() extern "C" void Enumerator_Reset_m7740 (Enumerator_t1431 * __this, MethodInfo* method) { { __this->___ptr_1 = (-1); return; } } // System.Text.RegularExpressions.IntervalCollection/CostDelegate #include "System_System_Text_RegularExpressions_IntervalCollection_Cos.h" #ifndef _MSC_VER #else #endif extern TypeInfo CostDelegate_t1432_il2cpp_TypeInfo; // System.Text.RegularExpressions.IntervalCollection/CostDelegate #include "System_System_Text_RegularExpressions_IntervalCollection_CosMethodDeclarations.h" // System.IntPtr #include "mscorlib_System_IntPtr.h" // System.Double #include "mscorlib_System_Double.h" // System.AsyncCallback #include "mscorlib_System_AsyncCallback.h" // System.Void System.Text.RegularExpressions.IntervalCollection/CostDelegate::.ctor(System.Object,System.IntPtr) extern MethodInfo CostDelegate__ctor_m7741_MethodInfo; extern "C" void CostDelegate__ctor_m7741 (CostDelegate_t1432 * __this, Object_t * ___object, IntPtr_t ___method, MethodInfo* method) { __this->___method_ptr_0 = (methodPointerType)((MethodInfo*)___method.___m_value_0)->method; __this->___method_3 = ___method; __this->___m_target_2 = ___object; } // System.Double System.Text.RegularExpressions.IntervalCollection/CostDelegate::Invoke(System.Text.RegularExpressions.Interval) extern MethodInfo CostDelegate_Invoke_m7742_MethodInfo; extern "C" double CostDelegate_Invoke_m7742 (CostDelegate_t1432 * __this, Interval_t1429 ___i, MethodInfo* method) { if(__this->___prev_9 != NULL) { CostDelegate_Invoke_m7742((CostDelegate_t1432 *)__this->___prev_9,___i, method); } il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found((MethodInfo*)(__this->___method_3.___m_value_0)); bool ___methodIsStatic = MethodIsStatic((MethodInfo*)(__this->___method_3.___m_value_0)); if (__this->___m_target_2 != NULL && ___methodIsStatic) { typedef double (*FunctionPointerType) (Object_t *, Object_t * __this, Interval_t1429 ___i, MethodInfo* method); return ((FunctionPointerType)__this->___method_ptr_0)(NULL,__this->___m_target_2,___i,(MethodInfo*)(__this->___method_3.___m_value_0)); } typedef double (*FunctionPointerType) (Object_t * __this, Interval_t1429 ___i, MethodInfo* method); return ((FunctionPointerType)__this->___method_ptr_0)(__this->___m_target_2,___i,(MethodInfo*)(__this->___method_3.___m_value_0)); } extern TypeInfo Interval_t1429_il2cpp_TypeInfo; extern "C" double pinvoke_delegate_wrapper_CostDelegate_t1432(Il2CppObject* delegate, Interval_t1429 ___i) { typedef double (STDCALL *native_function_ptr_type)(Interval_t1429_marshaled); native_function_ptr_type _il2cpp_pinvoke_func = ((native_function_ptr_type)((Il2CppDelegate*)delegate)->method->method); // Marshaling of parameter '___i' to native representation Interval_t1429_marshaled ____i_marshaled = { 0 }; Interval_t1429_marshal(___i, ____i_marshaled); // Native function invocation and marshaling of return value back from native representation double _return_value = _il2cpp_pinvoke_func(____i_marshaled); // Marshaling cleanup of parameter '___i' native representation Interval_t1429_marshal_cleanup(____i_marshaled); return _return_value; } // System.IAsyncResult System.Text.RegularExpressions.IntervalCollection/CostDelegate::BeginInvoke(System.Text.RegularExpressions.Interval,System.AsyncCallback,System.Object) extern MethodInfo CostDelegate_BeginInvoke_m7743_MethodInfo; extern "C" Object_t * CostDelegate_BeginInvoke_m7743 (CostDelegate_t1432 * __this, Interval_t1429 ___i, AsyncCallback_t244 * ___callback, Object_t * ___object, MethodInfo* method) { void *__d_args[2] = {0}; __d_args[0] = Box(InitializedTypeInfo(&Interval_t1429_il2cpp_TypeInfo), &___i); return (Object_t *)il2cpp_delegate_begin_invoke((Il2CppDelegate*)__this, __d_args, (Il2CppDelegate*)___callback, (Il2CppObject*)___object); } // System.Double System.Text.RegularExpressions.IntervalCollection/CostDelegate::EndInvoke(System.IAsyncResult) extern MethodInfo CostDelegate_EndInvoke_m7744_MethodInfo; extern "C" double CostDelegate_EndInvoke_m7744 (CostDelegate_t1432 * __this, Object_t * ___result, MethodInfo* method) { Il2CppObject *__result = il2cpp_delegate_end_invoke((Il2CppAsyncResult*) ___result, 0); return *(double*)UnBox ((Il2CppCodeGenObject*)__result); } // System.Text.RegularExpressions.IntervalCollection #include "System_System_Text_RegularExpressions_IntervalCollection.h" #ifndef _MSC_VER #else #endif extern TypeInfo IntervalCollection_t1433_il2cpp_TypeInfo; // System.Text.RegularExpressions.IntervalCollection #include "System_System_Text_RegularExpressions_IntervalCollectionMethodDeclarations.h" // System.Collections.ArrayList #include "mscorlib_System_Collections_ArrayList.h" extern TypeInfo ArrayList_t1304_il2cpp_TypeInfo; extern TypeInfo Double_t939_il2cpp_TypeInfo; extern TypeInfo IEnumerator_t26_il2cpp_TypeInfo; extern TypeInfo Boolean_t147_il2cpp_TypeInfo; extern TypeInfo IDisposable_t153_il2cpp_TypeInfo; // System.Collections.ArrayList #include "mscorlib_System_Collections_ArrayListMethodDeclarations.h" extern MethodInfo ArrayList_get_Item_m7996_MethodInfo; extern MethodInfo ArrayList_get_Count_m7994_MethodInfo; extern MethodInfo ArrayList__ctor_m7998_MethodInfo; extern MethodInfo ArrayList_Add_m8008_MethodInfo; extern MethodInfo ArrayList_Sort_m8209_MethodInfo; extern MethodInfo ArrayList_set_Item_m8203_MethodInfo; extern MethodInfo ArrayList_RemoveAt_m8210_MethodInfo; extern MethodInfo IntervalCollection__ctor_m7745_MethodInfo; extern MethodInfo IntervalCollection_Normalize_m7748_MethodInfo; extern MethodInfo IntervalCollection_get_Count_m7751_MethodInfo; extern MethodInfo IntervalCollection_Optimize_m7750_MethodInfo; extern MethodInfo IntervalCollection_get_Item_m7746_MethodInfo; extern MethodInfo IntervalCollection_Add_m7747_MethodInfo; extern MethodInfo ArrayList_GetEnumerator_m7999_MethodInfo; extern MethodInfo IEnumerator_get_Current_m6898_MethodInfo; extern MethodInfo Array_get_Length_m7989_MethodInfo; extern MethodInfo Array_SetValue_m7990_MethodInfo; extern MethodInfo IEnumerator_MoveNext_m692_MethodInfo; extern MethodInfo IDisposable_Dispose_m486_MethodInfo; // System.Void System.Text.RegularExpressions.IntervalCollection::.ctor() extern "C" void IntervalCollection__ctor_m7745 (IntervalCollection_t1433 * __this, MethodInfo* method) { { Object__ctor_m419(__this, /*hidden argument*/&Object__ctor_m419_MethodInfo); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&ArrayList_t1304_il2cpp_TypeInfo)); ArrayList_t1304 * L_0 = (ArrayList_t1304 *)il2cpp_codegen_object_new (InitializedTypeInfo(&ArrayList_t1304_il2cpp_TypeInfo)); ArrayList__ctor_m7998(L_0, /*hidden argument*/&ArrayList__ctor_m7998_MethodInfo); __this->___intervals_0 = L_0; return; } } // System.Text.RegularExpressions.Interval System.Text.RegularExpressions.IntervalCollection::get_Item(System.Int32) extern "C" Interval_t1429 IntervalCollection_get_Item_m7746 (IntervalCollection_t1433 * __this, int32_t ___i, MethodInfo* method) { { ArrayList_t1304 * L_0 = (__this->___intervals_0); int32_t L_1 = ___i; NullCheck(L_0); Object_t * L_2 = (Object_t *)VirtFuncInvoker1< Object_t *, int32_t >::Invoke(&ArrayList_get_Item_m7996_MethodInfo, L_0, L_1); return ((*(Interval_t1429 *)((Interval_t1429 *)UnBox (L_2, InitializedTypeInfo(&Interval_t1429_il2cpp_TypeInfo))))); } } // System.Void System.Text.RegularExpressions.IntervalCollection::Add(System.Text.RegularExpressions.Interval) extern "C" void IntervalCollection_Add_m7747 (IntervalCollection_t1433 * __this, Interval_t1429 ___i, MethodInfo* method) { { ArrayList_t1304 * L_0 = (__this->___intervals_0); Interval_t1429 L_1 = ___i; Interval_t1429 L_2 = L_1; Object_t * L_3 = Box(InitializedTypeInfo(&Interval_t1429_il2cpp_TypeInfo), &L_2); NullCheck(L_0); VirtFuncInvoker1< int32_t, Object_t * >::Invoke(&ArrayList_Add_m8008_MethodInfo, L_0, L_3); return; } } // System.Void System.Text.RegularExpressions.IntervalCollection::Normalize() extern "C" void IntervalCollection_Normalize_m7748 (IntervalCollection_t1433 * __this, MethodInfo* method) { int32_t V_0 = 0; Interval_t1429 V_1 = {0}; Interval_t1429 V_2 = {0}; { ArrayList_t1304 * L_0 = (__this->___intervals_0); NullCheck(L_0); VirtActionInvoker0::Invoke(&ArrayList_Sort_m8209_MethodInfo, L_0); V_0 = 0; goto IL_0083; } IL_0012: { ArrayList_t1304 * L_1 = (__this->___intervals_0); int32_t L_2 = V_0; NullCheck(L_1); Object_t * L_3 = (Object_t *)VirtFuncInvoker1< Object_t *, int32_t >::Invoke(&ArrayList_get_Item_m7996_MethodInfo, L_1, L_2); V_1 = ((*(Interval_t1429 *)((Interval_t1429 *)UnBox (L_3, InitializedTypeInfo(&Interval_t1429_il2cpp_TypeInfo))))); ArrayList_t1304 * L_4 = (__this->___intervals_0); int32_t L_5 = V_0; NullCheck(L_4); Object_t * L_6 = (Object_t *)VirtFuncInvoker1< Object_t *, int32_t >::Invoke(&ArrayList_get_Item_m7996_MethodInfo, L_4, ((int32_t)((int32_t)L_5+(int32_t)1))); V_2 = ((*(Interval_t1429 *)((Interval_t1429 *)UnBox (L_6, InitializedTypeInfo(&Interval_t1429_il2cpp_TypeInfo))))); Interval_t1429 L_7 = V_2; bool L_8 = Interval_IsDisjoint_m7730((&V_1), L_7, /*hidden argument*/&Interval_IsDisjoint_m7730_MethodInfo); if (!L_8) { goto IL_0052; } } { Interval_t1429 L_9 = V_2; bool L_10 = Interval_IsAdjacent_m7731((&V_1), L_9, /*hidden argument*/&Interval_IsAdjacent_m7731_MethodInfo); if (!L_10) { goto IL_007f; } } IL_0052: { Interval_t1429 L_11 = V_2; Interval_Merge_m7735((&V_1), L_11, /*hidden argument*/&Interval_Merge_m7735_MethodInfo); ArrayList_t1304 * L_12 = (__this->___intervals_0); int32_t L_13 = V_0; Interval_t1429 L_14 = V_1; Interval_t1429 L_15 = L_14; Object_t * L_16 = Box(InitializedTypeInfo(&Interval_t1429_il2cpp_TypeInfo), &L_15); NullCheck(L_12); VirtActionInvoker2< int32_t, Object_t * >::Invoke(&ArrayList_set_Item_m8203_MethodInfo, L_12, L_13, L_16); ArrayList_t1304 * L_17 = (__this->___intervals_0); int32_t L_18 = V_0; NullCheck(L_17); VirtActionInvoker1< int32_t >::Invoke(&ArrayList_RemoveAt_m8210_MethodInfo, L_17, ((int32_t)((int32_t)L_18+(int32_t)1))); goto IL_0083; } IL_007f: { int32_t L_19 = V_0; V_0 = ((int32_t)((int32_t)L_19+(int32_t)1)); } IL_0083: { int32_t L_20 = V_0; ArrayList_t1304 * L_21 = (__this->___intervals_0); NullCheck(L_21); int32_t L_22 = (int32_t)VirtFuncInvoker0< int32_t >::Invoke(&ArrayList_get_Count_m7994_MethodInfo, L_21); if ((((int32_t)L_20) < ((int32_t)((int32_t)((int32_t)L_22-(int32_t)1))))) { goto IL_0012; } } { return; } } // System.Text.RegularExpressions.IntervalCollection System.Text.RegularExpressions.IntervalCollection::GetMetaCollection(System.Text.RegularExpressions.IntervalCollection/CostDelegate) extern MethodInfo IntervalCollection_GetMetaCollection_m7749_MethodInfo; extern "C" IntervalCollection_t1433 * IntervalCollection_GetMetaCollection_m7749 (IntervalCollection_t1433 * __this, CostDelegate_t1432 * ___cost_del, MethodInfo* method) { IntervalCollection_t1433 * V_0 = {0}; { IntervalCollection_t1433 * L_0 = (IntervalCollection_t1433 *)il2cpp_codegen_object_new (InitializedTypeInfo(&IntervalCollection_t1433_il2cpp_TypeInfo)); IntervalCollection__ctor_m7745(L_0, /*hidden argument*/&IntervalCollection__ctor_m7745_MethodInfo); V_0 = L_0; IntervalCollection_Normalize_m7748(__this, /*hidden argument*/&IntervalCollection_Normalize_m7748_MethodInfo); int32_t L_1 = (int32_t)VirtFuncInvoker0< int32_t >::Invoke(&IntervalCollection_get_Count_m7751_MethodInfo, __this); IntervalCollection_t1433 * L_2 = V_0; CostDelegate_t1432 * L_3 = ___cost_del; IntervalCollection_Optimize_m7750(__this, 0, ((int32_t)((int32_t)L_1-(int32_t)1)), L_2, L_3, /*hidden argument*/&IntervalCollection_Optimize_m7750_MethodInfo); IntervalCollection_t1433 * L_4 = V_0; NullCheck(L_4); ArrayList_t1304 * L_5 = (L_4->___intervals_0); NullCheck(L_5); VirtActionInvoker0::Invoke(&ArrayList_Sort_m8209_MethodInfo, L_5); IntervalCollection_t1433 * L_6 = V_0; return L_6; } } // System.Void System.Text.RegularExpressions.IntervalCollection::Optimize(System.Int32,System.Int32,System.Text.RegularExpressions.IntervalCollection,System.Text.RegularExpressions.IntervalCollection/CostDelegate) extern "C" void IntervalCollection_Optimize_m7750 (IntervalCollection_t1433 * __this, int32_t ___begin, int32_t ___end, IntervalCollection_t1433 * ___meta, CostDelegate_t1432 * ___cost_del, MethodInfo* method) { Interval_t1429 V_0 = {0}; int32_t V_1 = 0; int32_t V_2 = 0; double V_3 = 0.0; int32_t V_4 = 0; double V_5 = 0.0; int32_t V_6 = 0; double V_7 = 0.0; int32_t V_8 = 0; Interval_t1429 V_9 = {0}; Interval_t1429 V_10 = {0}; Interval_t1429 V_11 = {0}; Interval_t1429 V_12 = {0}; { (&V_0)->___contiguous_2 = 0; V_1 = (-1); V_2 = (-1); V_3 = (0.0); int32_t L_0 = ___begin; V_4 = L_0; goto IL_00ae; } IL_001e: { int32_t L_1 = V_4; Interval_t1429 L_2 = IntervalCollection_get_Item_m7746(__this, L_1, /*hidden argument*/&IntervalCollection_get_Item_m7746_MethodInfo); V_9 = L_2; int32_t L_3 = ((&V_9)->___low_0); (&V_0)->___low_0 = L_3; V_5 = (0.0); int32_t L_4 = V_4; V_6 = L_4; goto IL_00a0; } IL_004a: { int32_t L_5 = V_6; Interval_t1429 L_6 = IntervalCollection_get_Item_m7746(__this, L_5, /*hidden argument*/&IntervalCollection_get_Item_m7746_MethodInfo); V_10 = L_6; int32_t L_7 = ((&V_10)->___high_1); (&V_0)->___high_1 = L_7; double L_8 = V_5; CostDelegate_t1432 * L_9 = ___cost_del; int32_t L_10 = V_6; Interval_t1429 L_11 = IntervalCollection_get_Item_m7746(__this, L_10, /*hidden argument*/&IntervalCollection_get_Item_m7746_MethodInfo); NullCheck(L_9); double L_12 = (double)VirtFuncInvoker1< double, Interval_t1429 >::Invoke(&CostDelegate_Invoke_m7742_MethodInfo, L_9, L_11); V_5 = ((double)((double)L_8+(double)L_12)); CostDelegate_t1432 * L_13 = ___cost_del; Interval_t1429 L_14 = V_0; NullCheck(L_13); double L_15 = (double)VirtFuncInvoker1< double, Interval_t1429 >::Invoke(&CostDelegate_Invoke_m7742_MethodInfo, L_13, L_14); V_7 = L_15; double L_16 = V_7; double L_17 = V_5; if ((!(((double)L_16) < ((double)L_17)))) { goto IL_009a; } } { double L_18 = V_5; double L_19 = V_3; if ((!(((double)L_18) > ((double)L_19)))) { goto IL_009a; } } { int32_t L_20 = V_4; V_1 = L_20; int32_t L_21 = V_6; V_2 = L_21; double L_22 = V_5; V_3 = L_22; } IL_009a: { int32_t L_23 = V_6; V_6 = ((int32_t)((int32_t)L_23+(int32_t)1)); } IL_00a0: { int32_t L_24 = V_6; int32_t L_25 = ___end; if ((((int32_t)L_24) <= ((int32_t)L_25))) { goto IL_004a; } } { int32_t L_26 = V_4; V_4 = ((int32_t)((int32_t)L_26+(int32_t)1)); } IL_00ae: { int32_t L_27 = V_4; int32_t L_28 = ___end; if ((((int32_t)L_27) <= ((int32_t)L_28))) { goto IL_001e; } } { int32_t L_29 = V_1; if ((((int32_t)L_29) >= ((int32_t)0))) { goto IL_00e6; } } { int32_t L_30 = ___begin; V_8 = L_30; goto IL_00d9; } IL_00c5: { IntervalCollection_t1433 * L_31 = ___meta; int32_t L_32 = V_8; Interval_t1429 L_33 = IntervalCollection_get_Item_m7746(__this, L_32, /*hidden argument*/&IntervalCollection_get_Item_m7746_MethodInfo); NullCheck(L_31); IntervalCollection_Add_m7747(L_31, L_33, /*hidden argument*/&IntervalCollection_Add_m7747_MethodInfo); int32_t L_34 = V_8; V_8 = ((int32_t)((int32_t)L_34+(int32_t)1)); } IL_00d9: { int32_t L_35 = V_8; int32_t L_36 = ___end; if ((((int32_t)L_35) <= ((int32_t)L_36))) { goto IL_00c5; } } { goto IL_0143; } IL_00e6: { int32_t L_37 = V_1; Interval_t1429 L_38 = IntervalCollection_get_Item_m7746(__this, L_37, /*hidden argument*/&IntervalCollection_get_Item_m7746_MethodInfo); V_11 = L_38; int32_t L_39 = ((&V_11)->___low_0); (&V_0)->___low_0 = L_39; int32_t L_40 = V_2; Interval_t1429 L_41 = IntervalCollection_get_Item_m7746(__this, L_40, /*hidden argument*/&IntervalCollection_get_Item_m7746_MethodInfo); V_12 = L_41; int32_t L_42 = ((&V_12)->___high_1); (&V_0)->___high_1 = L_42; IntervalCollection_t1433 * L_43 = ___meta; Interval_t1429 L_44 = V_0; NullCheck(L_43); IntervalCollection_Add_m7747(L_43, L_44, /*hidden argument*/&IntervalCollection_Add_m7747_MethodInfo); int32_t L_45 = V_1; int32_t L_46 = ___begin; if ((((int32_t)L_45) <= ((int32_t)L_46))) { goto IL_012f; } } { int32_t L_47 = ___begin; int32_t L_48 = V_1; IntervalCollection_t1433 * L_49 = ___meta; CostDelegate_t1432 * L_50 = ___cost_del; IntervalCollection_Optimize_m7750(__this, L_47, ((int32_t)((int32_t)L_48-(int32_t)1)), L_49, L_50, /*hidden argument*/&IntervalCollection_Optimize_m7750_MethodInfo); } IL_012f: { int32_t L_51 = V_2; int32_t L_52 = ___end; if ((((int32_t)L_51) >= ((int32_t)L_52))) { goto IL_0143; } } { int32_t L_53 = V_2; int32_t L_54 = ___end; IntervalCollection_t1433 * L_55 = ___meta; CostDelegate_t1432 * L_56 = ___cost_del; IntervalCollection_Optimize_m7750(__this, ((int32_t)((int32_t)L_53+(int32_t)1)), L_54, L_55, L_56, /*hidden argument*/&IntervalCollection_Optimize_m7750_MethodInfo); } IL_0143: { return; } } // System.Int32 System.Text.RegularExpressions.IntervalCollection::get_Count() extern "C" int32_t IntervalCollection_get_Count_m7751 (IntervalCollection_t1433 * __this, MethodInfo* method) { { ArrayList_t1304 * L_0 = (__this->___intervals_0); NullCheck(L_0); int32_t L_1 = (int32_t)VirtFuncInvoker0< int32_t >::Invoke(&ArrayList_get_Count_m7994_MethodInfo, L_0); return L_1; } } // System.Boolean System.Text.RegularExpressions.IntervalCollection::get_IsSynchronized() extern MethodInfo IntervalCollection_get_IsSynchronized_m7752_MethodInfo; extern "C" bool IntervalCollection_get_IsSynchronized_m7752 (IntervalCollection_t1433 * __this, MethodInfo* method) { { return 0; } } // System.Object System.Text.RegularExpressions.IntervalCollection::get_SyncRoot() extern MethodInfo IntervalCollection_get_SyncRoot_m7753_MethodInfo; extern "C" Object_t * IntervalCollection_get_SyncRoot_m7753 (IntervalCollection_t1433 * __this, MethodInfo* method) { { ArrayList_t1304 * L_0 = (__this->___intervals_0); return L_0; } } // System.Void System.Text.RegularExpressions.IntervalCollection::CopyTo(System.Array,System.Int32) extern MethodInfo IntervalCollection_CopyTo_m7754_MethodInfo; extern "C" void IntervalCollection_CopyTo_m7754 (IntervalCollection_t1433 * __this, Array_t * ___array, int32_t ___index, MethodInfo* method) { Interval_t1429 V_0 = {0}; Object_t * V_1 = {0}; Object_t * V_2 = {0}; Exception_t154 * __last_unhandled_exception = 0; NO_UNUSED_WARNING (__last_unhandled_exception); Exception_t154 * __exception_local = 0; NO_UNUSED_WARNING (__exception_local); int32_t __leave_target = 0; NO_UNUSED_WARNING (__leave_target); { ArrayList_t1304 * L_0 = (__this->___intervals_0); NullCheck(L_0); Object_t * L_1 = (Object_t *)VirtFuncInvoker0< Object_t * >::Invoke(&ArrayList_GetEnumerator_m7999_MethodInfo, L_0); V_1 = L_1; } IL_000c: try { // begin try (depth: 1) { goto IL_0040; } IL_0011: { Object_t * L_2 = V_1; NullCheck(L_2); Object_t * L_3 = (Object_t *)InterfaceFuncInvoker0< Object_t * >::Invoke(&IEnumerator_get_Current_m6898_MethodInfo, L_2); V_0 = ((*(Interval_t1429 *)((Interval_t1429 *)UnBox (L_3, InitializedTypeInfo(&Interval_t1429_il2cpp_TypeInfo))))); int32_t L_4 = ___index; Array_t * L_5 = ___array; NullCheck(L_5); int32_t L_6 = Array_get_Length_m7989(L_5, /*hidden argument*/&Array_get_Length_m7989_MethodInfo); if ((((int32_t)L_4) <= ((int32_t)L_6))) { goto IL_002e; } } IL_0029: { goto IL_004b; } IL_002e: { Array_t * L_7 = ___array; Interval_t1429 L_8 = V_0; Interval_t1429 L_9 = L_8; Object_t * L_10 = Box(InitializedTypeInfo(&Interval_t1429_il2cpp_TypeInfo), &L_9); int32_t L_11 = ___index; int32_t L_12 = L_11; ___index = ((int32_t)((int32_t)L_12+(int32_t)1)); NullCheck(L_7); Array_SetValue_m7990(L_7, L_10, L_12, /*hidden argument*/&Array_SetValue_m7990_MethodInfo); } IL_0040: { Object_t * L_13 = V_1; NullCheck(L_13); bool L_14 = (bool)InterfaceFuncInvoker0< bool >::Invoke(&IEnumerator_MoveNext_m692_MethodInfo, L_13); if (L_14) { goto IL_0011; } } IL_004b: { IL2CPP_LEAVE(0x62, FINALLY_0050); } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { __last_unhandled_exception = (Exception_t154 *)e.ex; goto FINALLY_0050; } FINALLY_0050: { // begin finally (depth: 1) { Object_t * L_15 = V_1; V_2 = ((Object_t *)IsInst(L_15, InitializedTypeInfo(&IDisposable_t153_il2cpp_TypeInfo))); Object_t * L_16 = V_2; if (L_16) { goto IL_005b; } } IL_005a: { IL2CPP_END_FINALLY(80) } IL_005b: { Object_t * L_17 = V_2; NullCheck(L_17); InterfaceActionInvoker0::Invoke(&IDisposable_Dispose_m486_MethodInfo, L_17); IL2CPP_END_FINALLY(80) } } // end finally (depth: 1) IL2CPP_CLEANUP(80) { IL2CPP_JUMP_TBL(0x62, IL_0062) IL2CPP_RETHROW_IF_UNHANDLED(Exception_t154 *) } IL_0062: { return; } } // System.Collections.IEnumerator System.Text.RegularExpressions.IntervalCollection::GetEnumerator() extern MethodInfo IntervalCollection_GetEnumerator_m7755_MethodInfo; extern "C" Object_t * IntervalCollection_GetEnumerator_m7755 (IntervalCollection_t1433 * __this, MethodInfo* method) { { ArrayList_t1304 * L_0 = (__this->___intervals_0); Enumerator_t1431 * L_1 = (Enumerator_t1431 *)il2cpp_codegen_object_new (InitializedTypeInfo(&Enumerator_t1431_il2cpp_TypeInfo)); Enumerator__ctor_m7737(L_1, L_0, /*hidden argument*/&Enumerator__ctor_m7737_MethodInfo); return L_1; } } // System.Text.RegularExpressions.Syntax.Parser #include "System_System_Text_RegularExpressions_Syntax_Parser.h" #ifndef _MSC_VER #else #endif extern TypeInfo Parser_t1434_il2cpp_TypeInfo; // System.Text.RegularExpressions.Syntax.Parser #include "System_System_Text_RegularExpressions_Syntax_ParserMethodDeclarations.h" // System.Collections.Hashtable #include "mscorlib_System_Collections_Hashtable.h" // System.Text.RegularExpressions.Syntax.RegularExpression #include "System_System_Text_RegularExpressions_Syntax_RegularExpressi.h" // System.Text.RegularExpressions.RegexOptions #include "System_System_Text_RegularExpressions_RegexOptions.h" // System.Text.RegularExpressions.Syntax.Group #include "System_System_Text_RegularExpressions_Syntax_Group.h" // System.Text.RegularExpressions.Syntax.Assertion #include "System_System_Text_RegularExpressions_Syntax_Assertion.h" // System.ArgumentException #include "mscorlib_System_ArgumentException.h" // System.Text.RegularExpressions.Syntax.CapturingGroup #include "System_System_Text_RegularExpressions_Syntax_CapturingGroup.h" // System.Text.RegularExpressions.Syntax.Alternation #include "System_System_Text_RegularExpressions_Syntax_Alternation.h" // System.Text.RegularExpressions.Syntax.Expression #include "System_System_Text_RegularExpressions_Syntax_Expression.h" // System.Text.RegularExpressions.Syntax.Repetition #include "System_System_Text_RegularExpressions_Syntax_Repetition.h" // System.Text.RegularExpressions.Syntax.PositionAssertion #include "System_System_Text_RegularExpressions_Syntax_PositionAsserti.h" // System.Text.RegularExpressions.Syntax.CharacterClass #include "System_System_Text_RegularExpressions_Syntax_CharacterClass.h" // System.Text.RegularExpressions.Syntax.Literal #include "System_System_Text_RegularExpressions_Syntax_Literal.h" // System.Text.RegularExpressions.Syntax.ExpressionAssertion #include "System_System_Text_RegularExpressions_Syntax_ExpressionAsser.h" // System.Text.RegularExpressions.Syntax.BalancingGroup #include "System_System_Text_RegularExpressions_Syntax_BalancingGroup.h" // System.Text.RegularExpressions.Syntax.NonBacktrackingGroup #include "System_System_Text_RegularExpressions_Syntax_NonBacktracking.h" // System.Text.RegularExpressions.Syntax.CaptureAssertion #include "System_System_Text_RegularExpressions_Syntax_CaptureAssertio.h" // System.Text.RegularExpressions.Syntax.Reference #include "System_System_Text_RegularExpressions_Syntax_Reference.h" // System.Text.RegularExpressions.Syntax.BackslashNumber #include "System_System_Text_RegularExpressions_Syntax_BackslashNumber.h" // System.Globalization.UnicodeCategory #include "mscorlib_System_Globalization_UnicodeCategory.h" extern TypeInfo Hashtable_t1291_il2cpp_TypeInfo; extern TypeInfo RegularExpression_t1435_il2cpp_TypeInfo; extern TypeInfo IndexOutOfRangeException_t1160_il2cpp_TypeInfo; extern TypeInfo CapturingGroup_t1444_il2cpp_TypeInfo; extern TypeInfo Group_t1436_il2cpp_TypeInfo; extern TypeInfo PositionAssertion_t1451_il2cpp_TypeInfo; extern TypeInfo CharacterClass_t1454_il2cpp_TypeInfo; extern TypeInfo Literal_t1448_il2cpp_TypeInfo; extern TypeInfo Alternation_t1450_il2cpp_TypeInfo; extern TypeInfo Repetition_t1447_il2cpp_TypeInfo; extern TypeInfo NonBacktrackingGroup_t1446_il2cpp_TypeInfo; extern TypeInfo ExpressionAssertion_t1439_il2cpp_TypeInfo; extern TypeInfo BalancingGroup_t1445_il2cpp_TypeInfo; extern TypeInfo CaptureAssertion_t1449_il2cpp_TypeInfo; extern TypeInfo ObjectU5BU5D_t164_il2cpp_TypeInfo; extern TypeInfo BackslashNumber_t1453_il2cpp_TypeInfo; extern TypeInfo Reference_t1452_il2cpp_TypeInfo; extern TypeInfo ArgumentException_t521_il2cpp_TypeInfo; extern TypeInfo IEnumerable_t587_il2cpp_TypeInfo; extern TypeInfo Expression_t1438_il2cpp_TypeInfo; // System.Collections.Hashtable #include "mscorlib_System_Collections_HashtableMethodDeclarations.h" // System.Int32 #include "mscorlib_System_Int32MethodDeclarations.h" // System.Text.RegularExpressions.Syntax.RegularExpression #include "System_System_Text_RegularExpressions_Syntax_RegularExpressiMethodDeclarations.h" // System.Text.RegularExpressions.Syntax.CapturingGroup #include "System_System_Text_RegularExpressions_Syntax_CapturingGroupMethodDeclarations.h" // System.Text.RegularExpressions.Syntax.Group #include "System_System_Text_RegularExpressions_Syntax_GroupMethodDeclarations.h" // System.Text.RegularExpressions.Syntax.PositionAssertion #include "System_System_Text_RegularExpressions_Syntax_PositionAssertiMethodDeclarations.h" // System.Text.RegularExpressions.Syntax.CharacterClass #include "System_System_Text_RegularExpressions_Syntax_CharacterClassMethodDeclarations.h" // System.Text.RegularExpressions.Syntax.Literal #include "System_System_Text_RegularExpressions_Syntax_LiteralMethodDeclarations.h" // System.Text.RegularExpressions.Syntax.Assertion #include "System_System_Text_RegularExpressions_Syntax_AssertionMethodDeclarations.h" // System.Text.RegularExpressions.Syntax.Alternation #include "System_System_Text_RegularExpressions_Syntax_AlternationMethodDeclarations.h" // System.Text.RegularExpressions.Syntax.Repetition #include "System_System_Text_RegularExpressions_Syntax_RepetitionMethodDeclarations.h" // System.Text.RegularExpressions.Syntax.NonBacktrackingGroup #include "System_System_Text_RegularExpressions_Syntax_NonBacktrackingMethodDeclarations.h" // System.Text.RegularExpressions.Syntax.ExpressionAssertion #include "System_System_Text_RegularExpressions_Syntax_ExpressionAsserMethodDeclarations.h" // System.Text.RegularExpressions.Syntax.BalancingGroup #include "System_System_Text_RegularExpressions_Syntax_BalancingGroupMethodDeclarations.h" // System.Text.RegularExpressions.Syntax.CaptureAssertion #include "System_System_Text_RegularExpressions_Syntax_CaptureAssertioMethodDeclarations.h" // System.Text.RegularExpressions.Syntax.BackslashNumber #include "System_System_Text_RegularExpressions_Syntax_BackslashNumberMethodDeclarations.h" // System.Text.RegularExpressions.Syntax.Reference #include "System_System_Text_RegularExpressions_Syntax_ReferenceMethodDeclarations.h" // System.ArgumentException #include "mscorlib_System_ArgumentExceptionMethodDeclarations.h" extern Il2CppType ObjectU5BU5D_t164_0_0_0; extern MethodInfo Hashtable__ctor_m8183_MethodInfo; extern MethodInfo Parser_ParseNumber_m7760_MethodInfo; extern MethodInfo Parser_ParseDigit_m7776_MethodInfo; extern MethodInfo String_get_Length_m694_MethodInfo; extern MethodInfo Char_IsDigit_m8197_MethodInfo; extern MethodInfo Int32_ToString_m6944_MethodInfo; extern MethodInfo Parser_IsNameChar_m7774_MethodInfo; extern MethodInfo String_Substring_m2542_MethodInfo; extern MethodInfo ArrayList_Clear_m8153_MethodInfo; extern MethodInfo Hashtable_Clear_m8211_MethodInfo; extern MethodInfo RegularExpression__ctor_m7811_MethodInfo; extern MethodInfo Parser_ParseGroup_m7764_MethodInfo; extern MethodInfo Parser_ResolveReferences_m7778_MethodInfo; extern MethodInfo RegularExpression_set_GroupCount_m7812_MethodInfo; extern MethodInfo Parser_NewParseException_m7786_MethodInfo; extern MethodInfo Hashtable_Add_m8007_MethodInfo; extern MethodInfo CapturingGroup_get_Name_m7817_MethodInfo; extern MethodInfo CapturingGroup_get_Index_m7815_MethodInfo; extern MethodInfo Hashtable_Contains_m8194_MethodInfo; extern MethodInfo Hashtable_get_Item_m8006_MethodInfo; extern MethodInfo Group__ctor_m7806_MethodInfo; extern MethodInfo Parser_IsIgnorePatternWhitespace_m7784_MethodInfo; extern MethodInfo Parser_ConsumeWhitespace_m7777_MethodInfo; extern MethodInfo Parser_IsMultiline_m7781_MethodInfo; extern MethodInfo PositionAssertion__ctor_m7865_MethodInfo; extern MethodInfo Parser_IsSingleline_m7783_MethodInfo; extern MethodInfo CharacterClass__ctor_m7881_MethodInfo; extern MethodInfo Parser_ParseEscape_m7772_MethodInfo; extern MethodInfo Parser_ParseSpecial_m7771_MethodInfo; extern MethodInfo Parser_ParseCharacterClass_m7768_MethodInfo; extern MethodInfo Parser_IsIgnoreCase_m7780_MethodInfo; extern MethodInfo Parser_ParseGroupingConstruct_m7765_MethodInfo; extern MethodInfo Literal__ctor_m7859_MethodInfo; extern MethodInfo Group_AppendExpression_m7807_MethodInfo; extern MethodInfo Assertion_get_TrueExpression_m7837_MethodInfo; extern MethodInfo Assertion_set_TrueExpression_m7838_MethodInfo; extern MethodInfo Assertion_get_FalseExpression_m7839_MethodInfo; extern MethodInfo Assertion_set_FalseExpression_m7840_MethodInfo; extern MethodInfo Alternation__ctor_m7854_MethodInfo; extern MethodInfo Alternation_AddAlternative_m7856_MethodInfo; extern MethodInfo Parser_ParseRepetitionBounds_m7769_MethodInfo; extern MethodInfo Repetition__ctor_m7829_MethodInfo; extern MethodInfo Char_ToString_m2567_MethodInfo; extern MethodInfo Repetition_set_Expression_m7831_MethodInfo; extern MethodInfo String_Concat_m495_MethodInfo; extern MethodInfo Parser_IsExplicitCapture_m7782_MethodInfo; extern MethodInfo CapturingGroup__ctor_m7814_MethodInfo; extern MethodInfo NonBacktrackingGroup__ctor_m7826_MethodInfo; extern MethodInfo Parser_ParseOptions_m7767_MethodInfo; extern MethodInfo ExpressionAssertion__ctor_m7847_MethodInfo; extern MethodInfo Parser_ParseAssertionType_m7766_MethodInfo; extern MethodInfo ExpressionAssertion_set_TestExpression_m7851_MethodInfo; extern MethodInfo Parser_ParseName_m7773_MethodInfo; extern MethodInfo CapturingGroup_set_Name_m7818_MethodInfo; extern MethodInfo BalancingGroup__ctor_m7823_MethodInfo; extern MethodInfo CapturingGroup_get_IsNamed_m7819_MethodInfo; extern MethodInfo ExpressionAssertion_set_Negate_m7849_MethodInfo; extern MethodInfo ExpressionAssertion_set_Reverse_m7848_MethodInfo; extern MethodInfo CaptureAssertion__ctor_m7842_MethodInfo; extern MethodInfo Parser_IsECMAScript_m7785_MethodInfo; extern MethodInfo CharacterClass__ctor_m7880_MethodInfo; extern MethodInfo CharacterClass_AddCharacter_m7884_MethodInfo; extern MethodInfo CharacterClass_AddCategory_m7883_MethodInfo; extern MethodInfo Parser_ParseUnicodeCategory_m7770_MethodInfo; extern MethodInfo String_Concat_m621_MethodInfo; extern MethodInfo CharacterClass_AddRange_m7885_MethodInfo; extern MethodInfo Parser_ParseNumber_m7775_MethodInfo; extern MethodInfo Parser_ParseName_m7761_MethodInfo; extern MethodInfo CategoryUtils_CategoryFromName_m7623_MethodInfo; extern MethodInfo String_Concat_m554_MethodInfo; extern MethodInfo BackslashNumber__ctor_m7877_MethodInfo; extern MethodInfo Reference__ctor_m7870_MethodInfo; extern MethodInfo String_Format_m2378_MethodInfo; extern MethodInfo ArgumentException__ctor_m7991_MethodInfo; extern MethodInfo Parser_ParseOctal_m7758_MethodInfo; extern MethodInfo Parser_ParseHex_m7759_MethodInfo; extern MethodInfo Char_GetUnicodeCategory_m8199_MethodInfo; extern MethodInfo Char_IsLetterOrDigit_m8196_MethodInfo; extern MethodInfo Char_IsWhiteSpace_m8198_MethodInfo; extern MethodInfo CapturingGroup_set_Index_m7816_MethodInfo; extern MethodInfo Parser_ParseDecimal_m7757_MethodInfo; extern MethodInfo ArrayList__ctor_m8155_MethodInfo; extern MethodInfo Parser_HandleExplicitNumericGroups_m7779_MethodInfo; extern MethodInfo Hashtable_get_Keys_m8212_MethodInfo; extern MethodInfo IEnumerable_GetEnumerator_m8128_MethodInfo; extern MethodInfo BackslashNumber_ResolveReference_m7878_MethodInfo; extern MethodInfo Reference_set_CapturingGroup_m7872_MethodInfo; extern MethodInfo CaptureAssertion_set_CapturingGroup_m7843_MethodInfo; extern MethodInfo BalancingGroup_set_Balance_m7824_MethodInfo; extern MethodInfo String_Concat_m4768_MethodInfo; // System.Void System.Text.RegularExpressions.Syntax.Parser::.ctor() extern MethodInfo Parser__ctor_m7756_MethodInfo; extern "C" void Parser__ctor_m7756 (Parser_t1434 * __this, MethodInfo* method) { { Object__ctor_m419(__this, /*hidden argument*/&Object__ctor_m419_MethodInfo); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&ArrayList_t1304_il2cpp_TypeInfo)); ArrayList_t1304 * L_0 = (ArrayList_t1304 *)il2cpp_codegen_object_new (InitializedTypeInfo(&ArrayList_t1304_il2cpp_TypeInfo)); ArrayList__ctor_m7998(L_0, /*hidden argument*/&ArrayList__ctor_m7998_MethodInfo); __this->___caps_2 = L_0; IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Hashtable_t1291_il2cpp_TypeInfo)); Hashtable_t1291 * L_1 = (Hashtable_t1291 *)il2cpp_codegen_object_new (InitializedTypeInfo(&Hashtable_t1291_il2cpp_TypeInfo)); Hashtable__ctor_m8183(L_1, /*hidden argument*/&Hashtable__ctor_m8183_MethodInfo); __this->___refs_3 = L_1; return; } } // System.Int32 System.Text.RegularExpressions.Syntax.Parser::ParseDecimal(System.String,System.Int32&) extern "C" int32_t Parser_ParseDecimal_m7757 (Object_t * __this /* static, unused */, String_t* ___str, int32_t* ___ptr, MethodInfo* method) { { String_t* L_0 = ___str; int32_t* L_1 = ___ptr; int32_t L_2 = Parser_ParseNumber_m7760(NULL /*static, unused*/, L_0, L_1, ((int32_t)10), 1, ((int32_t)2147483647), /*hidden argument*/&Parser_ParseNumber_m7760_MethodInfo); return L_2; } } // System.Int32 System.Text.RegularExpressions.Syntax.Parser::ParseOctal(System.String,System.Int32&) extern "C" int32_t Parser_ParseOctal_m7758 (Object_t * __this /* static, unused */, String_t* ___str, int32_t* ___ptr, MethodInfo* method) { { String_t* L_0 = ___str; int32_t* L_1 = ___ptr; int32_t L_2 = Parser_ParseNumber_m7760(NULL /*static, unused*/, L_0, L_1, 8, 1, 3, /*hidden argument*/&Parser_ParseNumber_m7760_MethodInfo); return L_2; } } // System.Int32 System.Text.RegularExpressions.Syntax.Parser::ParseHex(System.String,System.Int32&,System.Int32) extern "C" int32_t Parser_ParseHex_m7759 (Object_t * __this /* static, unused */, String_t* ___str, int32_t* ___ptr, int32_t ___digits, MethodInfo* method) { { String_t* L_0 = ___str; int32_t* L_1 = ___ptr; int32_t L_2 = ___digits; int32_t L_3 = ___digits; int32_t L_4 = Parser_ParseNumber_m7760(NULL /*static, unused*/, L_0, L_1, ((int32_t)16), L_2, L_3, /*hidden argument*/&Parser_ParseNumber_m7760_MethodInfo); return L_4; } } // System.Int32 System.Text.RegularExpressions.Syntax.Parser::ParseNumber(System.String,System.Int32&,System.Int32,System.Int32,System.Int32) extern "C" int32_t Parser_ParseNumber_m7760 (Object_t * __this /* static, unused */, String_t* ___str, int32_t* ___ptr, int32_t ___b, int32_t ___min, int32_t ___max, MethodInfo* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; { int32_t* L_0 = ___ptr; V_0 = (*((int32_t*)L_0)); V_1 = 0; V_2 = 0; int32_t L_1 = ___max; int32_t L_2 = ___min; if ((((int32_t)L_1) >= ((int32_t)L_2))) { goto IL_0016; } } { ___max = ((int32_t)2147483647); } IL_0016: { goto IL_0048; } IL_001b: { String_t* L_3 = ___str; int32_t L_4 = V_0; int32_t L_5 = L_4; V_0 = ((int32_t)((int32_t)L_5+(int32_t)1)); NullCheck(L_3); uint16_t L_6 = String_get_Chars_m2541(L_3, L_5, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); int32_t L_7 = ___b; int32_t L_8 = V_2; int32_t L_9 = Parser_ParseDigit_m7776(NULL /*static, unused*/, L_6, L_7, L_8, /*hidden argument*/&Parser_ParseDigit_m7776_MethodInfo); V_3 = L_9; int32_t L_10 = V_3; if ((((int32_t)L_10) >= ((int32_t)0))) { goto IL_003e; } } { int32_t L_11 = V_0; V_0 = ((int32_t)((int32_t)L_11-(int32_t)1)); goto IL_005c; } IL_003e: { int32_t L_12 = V_1; int32_t L_13 = ___b; int32_t L_14 = V_3; V_1 = ((int32_t)((int32_t)((int32_t)((int32_t)L_12*(int32_t)L_13))+(int32_t)L_14)); int32_t L_15 = V_2; V_2 = ((int32_t)((int32_t)L_15+(int32_t)1)); } IL_0048: { int32_t L_16 = V_2; int32_t L_17 = ___max; if ((((int32_t)L_16) >= ((int32_t)L_17))) { goto IL_005c; } } { int32_t L_18 = V_0; String_t* L_19 = ___str; NullCheck(L_19); int32_t L_20 = String_get_Length_m694(L_19, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((((int32_t)L_18) < ((int32_t)L_20))) { goto IL_001b; } } IL_005c: { int32_t L_21 = V_2; int32_t L_22 = ___min; if ((((int32_t)L_21) >= ((int32_t)L_22))) { goto IL_0065; } } { return (-1); } IL_0065: { int32_t* L_23 = ___ptr; int32_t L_24 = V_0; *((int32_t*)(L_23)) = (int32_t)L_24; int32_t L_25 = V_1; return L_25; } } // System.String System.Text.RegularExpressions.Syntax.Parser::ParseName(System.String,System.Int32&) extern "C" String_t* Parser_ParseName_m7761 (Object_t * __this /* static, unused */, String_t* ___str, int32_t* ___ptr, MethodInfo* method) { int32_t V_0 = 0; int32_t V_1 = 0; { String_t* L_0 = ___str; int32_t* L_1 = ___ptr; NullCheck(L_0); uint16_t L_2 = String_get_Chars_m2541(L_0, (*((int32_t*)L_1)), /*hidden argument*/&String_get_Chars_m2541_MethodInfo); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Char_t389_il2cpp_TypeInfo)); bool L_3 = Char_IsDigit_m8197(NULL /*static, unused*/, L_2, /*hidden argument*/&Char_IsDigit_m8197_MethodInfo); if (!L_3) { goto IL_002f; } } { String_t* L_4 = ___str; int32_t* L_5 = ___ptr; int32_t L_6 = Parser_ParseNumber_m7760(NULL /*static, unused*/, L_4, L_5, ((int32_t)10), 1, 0, /*hidden argument*/&Parser_ParseNumber_m7760_MethodInfo); V_0 = L_6; int32_t L_7 = V_0; if ((((int32_t)L_7) <= ((int32_t)0))) { goto IL_002d; } } { String_t* L_8 = Int32_ToString_m6944((&V_0), /*hidden argument*/&Int32_ToString_m6944_MethodInfo); return L_8; } IL_002d: { return (String_t*)NULL; } IL_002f: { int32_t* L_9 = ___ptr; V_1 = (*((int32_t*)L_9)); goto IL_0054; } IL_0037: { String_t* L_10 = ___str; int32_t* L_11 = ___ptr; NullCheck(L_10); uint16_t L_12 = String_get_Chars_m2541(L_10, (*((int32_t*)L_11)), /*hidden argument*/&String_get_Chars_m2541_MethodInfo); bool L_13 = Parser_IsNameChar_m7774(NULL /*static, unused*/, L_12, /*hidden argument*/&Parser_IsNameChar_m7774_MethodInfo); if (L_13) { goto IL_004e; } } { goto IL_0059; } IL_004e: { int32_t* L_14 = ___ptr; int32_t* L_15 = ___ptr; *((int32_t*)(L_14)) = (int32_t)((int32_t)((int32_t)(*((int32_t*)L_15))+(int32_t)1)); } IL_0054: { goto IL_0037; } IL_0059: { int32_t* L_16 = ___ptr; int32_t L_17 = V_1; if ((((int32_t)((int32_t)((int32_t)(*((int32_t*)L_16))-(int32_t)L_17))) <= ((int32_t)0))) { goto IL_006f; } } { String_t* L_18 = ___str; int32_t L_19 = V_1; int32_t* L_20 = ___ptr; int32_t L_21 = V_1; NullCheck(L_18); String_t* L_22 = String_Substring_m2542(L_18, L_19, ((int32_t)((int32_t)(*((int32_t*)L_20))-(int32_t)L_21)), /*hidden argument*/&String_Substring_m2542_MethodInfo); return L_22; } IL_006f: { return (String_t*)NULL; } } // System.Text.RegularExpressions.Syntax.RegularExpression System.Text.RegularExpressions.Syntax.Parser::ParseRegularExpression(System.String,System.Text.RegularExpressions.RegexOptions) extern MethodInfo Parser_ParseRegularExpression_m7762_MethodInfo; extern "C" RegularExpression_t1435 * Parser_ParseRegularExpression_m7762 (Parser_t1434 * __this, String_t* ___pattern, int32_t ___options, MethodInfo* method) { RegularExpression_t1435 * V_0 = {0}; RegularExpression_t1435 * V_1 = {0}; Exception_t154 * __last_unhandled_exception = 0; NO_UNUSED_WARNING (__last_unhandled_exception); Exception_t154 * __exception_local = 0; NO_UNUSED_WARNING (__exception_local); int32_t __leave_target = 0; NO_UNUSED_WARNING (__leave_target); { String_t* L_0 = ___pattern; __this->___pattern_0 = L_0; __this->___ptr_1 = 0; ArrayList_t1304 * L_1 = (__this->___caps_2); NullCheck(L_1); VirtActionInvoker0::Invoke(&ArrayList_Clear_m8153_MethodInfo, L_1); Hashtable_t1291 * L_2 = (__this->___refs_3); NullCheck(L_2); VirtActionInvoker0::Invoke(&Hashtable_Clear_m8211_MethodInfo, L_2); __this->___num_groups_4 = 0; } IL_002b: try { // begin try (depth: 1) { RegularExpression_t1435 * L_3 = (RegularExpression_t1435 *)il2cpp_codegen_object_new (InitializedTypeInfo(&RegularExpression_t1435_il2cpp_TypeInfo)); RegularExpression__ctor_m7811(L_3, /*hidden argument*/&RegularExpression__ctor_m7811_MethodInfo); V_0 = L_3; RegularExpression_t1435 * L_4 = V_0; int32_t L_5 = ___options; Parser_ParseGroup_m7764(__this, L_4, L_5, (Assertion_t1437 *)NULL, /*hidden argument*/&Parser_ParseGroup_m7764_MethodInfo); Parser_ResolveReferences_m7778(__this, /*hidden argument*/&Parser_ResolveReferences_m7778_MethodInfo); RegularExpression_t1435 * L_6 = V_0; int32_t L_7 = (__this->___num_groups_4); NullCheck(L_6); RegularExpression_set_GroupCount_m7812(L_6, L_7, /*hidden argument*/&RegularExpression_set_GroupCount_m7812_MethodInfo); RegularExpression_t1435 * L_8 = V_0; V_1 = L_8; goto IL_006a; } IL_0053: { ; // IL_0053: leave IL_006a } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { __exception_local = (Exception_t154 *)e.ex; if(il2cpp_codegen_class_is_assignable_from (&IndexOutOfRangeException_t1160_il2cpp_TypeInfo, e.ex->object.klass)) goto CATCH_0058; throw e; } CATCH_0058: { // begin catch(System.IndexOutOfRangeException) ArgumentException_t521 * L_9 = Parser_NewParseException_m7786(__this, (String_t*) &_stringLiteral863, /*hidden argument*/&Parser_NewParseException_m7786_MethodInfo); il2cpp_codegen_raise_exception(L_9); goto IL_006a; } // end catch (depth: 1) IL_006a: { RegularExpression_t1435 * L_10 = V_1; return L_10; } } // System.Int32 System.Text.RegularExpressions.Syntax.Parser::GetMapping(System.Collections.Hashtable) extern MethodInfo Parser_GetMapping_m7763_MethodInfo; extern "C" int32_t Parser_GetMapping_m7763 (Parser_t1434 * __this, Hashtable_t1291 * ___mapping, MethodInfo* method) { int32_t V_0 = 0; int32_t V_1 = 0; CapturingGroup_t1444 * V_2 = {0}; String_t* V_3 = {0}; int32_t V_4 = 0; String_t* G_B4_0 = {0}; { ArrayList_t1304 * L_0 = (__this->___caps_2); NullCheck(L_0); int32_t L_1 = (int32_t)VirtFuncInvoker0< int32_t >::Invoke(&ArrayList_get_Count_m7994_MethodInfo, L_0); V_0 = L_1; Hashtable_t1291 * L_2 = ___mapping; int32_t L_3 = 0; Object_t * L_4 = Box(InitializedTypeInfo(&Int32_t141_il2cpp_TypeInfo), &L_3); NullCheck(L_2); VirtActionInvoker2< Object_t *, Object_t * >::Invoke(&Hashtable_Add_m8007_MethodInfo, L_2, (String_t*) &_stringLiteral406, L_4); V_1 = 0; goto IL_00a5; } IL_0024: { ArrayList_t1304 * L_5 = (__this->___caps_2); int32_t L_6 = V_1; NullCheck(L_5); Object_t * L_7 = (Object_t *)VirtFuncInvoker1< Object_t *, int32_t >::Invoke(&ArrayList_get_Item_m7996_MethodInfo, L_5, L_6); V_2 = ((CapturingGroup_t1444 *)Castclass(L_7, InitializedTypeInfo(&CapturingGroup_t1444_il2cpp_TypeInfo))); CapturingGroup_t1444 * L_8 = V_2; NullCheck(L_8); String_t* L_9 = CapturingGroup_get_Name_m7817(L_8, /*hidden argument*/&CapturingGroup_get_Name_m7817_MethodInfo); if (!L_9) { goto IL_004c; } } { CapturingGroup_t1444 * L_10 = V_2; NullCheck(L_10); String_t* L_11 = CapturingGroup_get_Name_m7817(L_10, /*hidden argument*/&CapturingGroup_get_Name_m7817_MethodInfo); G_B4_0 = L_11; goto IL_005b; } IL_004c: { CapturingGroup_t1444 * L_12 = V_2; NullCheck(L_12); int32_t L_13 = CapturingGroup_get_Index_m7815(L_12, /*hidden argument*/&CapturingGroup_get_Index_m7815_MethodInfo); V_4 = L_13; String_t* L_14 = Int32_ToString_m6944((&V_4), /*hidden argument*/&Int32_ToString_m6944_MethodInfo); G_B4_0 = L_14; } IL_005b: { V_3 = G_B4_0; Hashtable_t1291 * L_15 = ___mapping; String_t* L_16 = V_3; NullCheck(L_15); bool L_17 = (bool)VirtFuncInvoker1< bool, Object_t * >::Invoke(&Hashtable_Contains_m8194_MethodInfo, L_15, L_16); if (!L_17) { goto IL_008f; } } { Hashtable_t1291 * L_18 = ___mapping; String_t* L_19 = V_3; NullCheck(L_18); Object_t * L_20 = (Object_t *)VirtFuncInvoker1< Object_t *, Object_t * >::Invoke(&Hashtable_get_Item_m8006_MethodInfo, L_18, L_19); CapturingGroup_t1444 * L_21 = V_2; NullCheck(L_21); int32_t L_22 = CapturingGroup_get_Index_m7815(L_21, /*hidden argument*/&CapturingGroup_get_Index_m7815_MethodInfo); if ((((int32_t)((*(int32_t*)((int32_t*)UnBox (L_20, InitializedTypeInfo(&Int32_t141_il2cpp_TypeInfo)))))) == ((int32_t)L_22))) { goto IL_008a; } } { SystemException_t1495 * L_23 = (SystemException_t1495 *)il2cpp_codegen_object_new (InitializedTypeInfo(&SystemException_t1495_il2cpp_TypeInfo)); SystemException__ctor_m8177(L_23, (String_t*) &_stringLiteral864, /*hidden argument*/&SystemException__ctor_m8177_MethodInfo); il2cpp_codegen_raise_exception(L_23); } IL_008a: { goto IL_00a1; } IL_008f: { Hashtable_t1291 * L_24 = ___mapping; String_t* L_25 = V_3; CapturingGroup_t1444 * L_26 = V_2; NullCheck(L_26); int32_t L_27 = CapturingGroup_get_Index_m7815(L_26, /*hidden argument*/&CapturingGroup_get_Index_m7815_MethodInfo); int32_t L_28 = L_27; Object_t * L_29 = Box(InitializedTypeInfo(&Int32_t141_il2cpp_TypeInfo), &L_28); NullCheck(L_24); VirtActionInvoker2< Object_t *, Object_t * >::Invoke(&Hashtable_Add_m8007_MethodInfo, L_24, L_25, L_29); } IL_00a1: { int32_t L_30 = V_1; V_1 = ((int32_t)((int32_t)L_30+(int32_t)1)); } IL_00a5: { int32_t L_31 = V_1; int32_t L_32 = V_0; if ((((int32_t)L_31) < ((int32_t)L_32))) { goto IL_0024; } } { int32_t L_33 = (__this->___gap_5); return L_33; } } // System.Void System.Text.RegularExpressions.Syntax.Parser::ParseGroup(System.Text.RegularExpressions.Syntax.Group,System.Text.RegularExpressions.RegexOptions,System.Text.RegularExpressions.Syntax.Assertion) extern "C" void Parser_ParseGroup_m7764 (Parser_t1434 * __this, Group_t1436 * ___group, int32_t ___options, Assertion_t1437 * ___assertion, MethodInfo* method) { bool V_0 = false; Alternation_t1450 * V_1 = {0}; String_t* V_2 = {0}; Group_t1436 * V_3 = {0}; Expression_t1438 * V_4 = {0}; bool V_5 = false; uint16_t V_6 = 0x0; uint16_t V_7 = {0}; uint16_t V_8 = {0}; uint16_t V_9 = {0}; int32_t V_10 = 0; bool V_11 = false; uint16_t V_12 = 0x0; int32_t V_13 = 0; int32_t V_14 = 0; bool V_15 = false; bool V_16 = false; int32_t V_17 = 0; Repetition_t1447 * V_18 = {0}; int32_t V_19 = 0; uint16_t V_20 = 0x0; int32_t G_B11_0 = 0; int32_t G_B15_0 = 0; int32_t G_B19_0 = 0; { Group_t1436 * L_0 = ___group; V_0 = ((!(((Object_t*)(RegularExpression_t1435 *)((RegularExpression_t1435 *)IsInst(L_0, InitializedTypeInfo(&RegularExpression_t1435_il2cpp_TypeInfo)))) <= ((Object_t*)(Object_t *)NULL)))? 1 : 0); V_1 = (Alternation_t1450 *)NULL; V_2 = (String_t*)NULL; Group_t1436 * L_1 = (Group_t1436 *)il2cpp_codegen_object_new (InitializedTypeInfo(&Group_t1436_il2cpp_TypeInfo)); Group__ctor_m7806(L_1, /*hidden argument*/&Group__ctor_m7806_MethodInfo); V_3 = L_1; V_4 = (Expression_t1438 *)NULL; V_5 = 0; } IL_001a: { int32_t L_2 = ___options; bool L_3 = Parser_IsIgnorePatternWhitespace_m7784(NULL /*static, unused*/, L_2, /*hidden argument*/&Parser_IsIgnorePatternWhitespace_m7784_MethodInfo); Parser_ConsumeWhitespace_m7777(__this, L_3, /*hidden argument*/&Parser_ConsumeWhitespace_m7777_MethodInfo); int32_t L_4 = (__this->___ptr_1); String_t* L_5 = (__this->___pattern_0); NullCheck(L_5); int32_t L_6 = String_get_Length_m694(L_5, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((((int32_t)L_4) < ((int32_t)L_6))) { goto IL_0041; } } { goto IL_0484; } IL_0041: { String_t* L_7 = (__this->___pattern_0); int32_t L_8 = (__this->___ptr_1); int32_t L_9 = L_8; V_19 = L_9; __this->___ptr_1 = ((int32_t)((int32_t)L_9+(int32_t)1)); int32_t L_10 = V_19; NullCheck(L_7); uint16_t L_11 = String_get_Chars_m2541(L_7, L_10, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); V_6 = L_11; uint16_t L_12 = V_6; V_20 = L_12; uint16_t L_13 = V_20; if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)36))) == 0) { goto IL_00ee; } if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)36))) == 1) { goto IL_009b; } if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)36))) == 2) { goto IL_009b; } if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)36))) == 3) { goto IL_009b; } if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)36))) == 4) { goto IL_0190; } if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)36))) == 5) { goto IL_01da; } if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)36))) == 6) { goto IL_025f; } if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)36))) == 7) { goto IL_025f; } if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)36))) == 8) { goto IL_009b; } if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)36))) == 9) { goto IL_009b; } if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)36))) == 10) { goto IL_0110; } } IL_009b: { uint16_t L_14 = V_20; if (((int32_t)((int32_t)L_14-(int32_t)((int32_t)91))) == 0) { goto IL_0182; } if (((int32_t)((int32_t)L_14-(int32_t)((int32_t)91))) == 1) { goto IL_0133; } if (((int32_t)((int32_t)L_14-(int32_t)((int32_t)91))) == 2) { goto IL_00b5; } if (((int32_t)((int32_t)L_14-(int32_t)((int32_t)91))) == 3) { goto IL_00cc; } } IL_00b5: { uint16_t L_15 = V_20; if ((((int32_t)L_15) == ((int32_t)((int32_t)63)))) { goto IL_025f; } } { uint16_t L_16 = V_20; if ((((int32_t)L_16) == ((int32_t)((int32_t)124)))) { goto IL_01e2; } } { goto IL_026b; } IL_00cc: { int32_t L_17 = ___options; bool L_18 = Parser_IsMultiline_m7781(NULL /*static, unused*/, L_17, /*hidden argument*/&Parser_IsMultiline_m7781_MethodInfo); if (!L_18) { goto IL_00dd; } } { G_B11_0 = 3; goto IL_00de; } IL_00dd: { G_B11_0 = 1; } IL_00de: { V_7 = G_B11_0; uint16_t L_19 = V_7; PositionAssertion_t1451 * L_20 = (PositionAssertion_t1451 *)il2cpp_codegen_object_new (InitializedTypeInfo(&PositionAssertion_t1451_il2cpp_TypeInfo)); PositionAssertion__ctor_m7865(L_20, L_19, /*hidden argument*/&PositionAssertion__ctor_m7865_MethodInfo); V_4 = L_20; goto IL_0270; } IL_00ee: { int32_t L_21 = ___options; bool L_22 = Parser_IsMultiline_m7781(NULL /*static, unused*/, L_21, /*hidden argument*/&Parser_IsMultiline_m7781_MethodInfo); if (!L_22) { goto IL_00ff; } } { G_B15_0 = 7; goto IL_0100; } IL_00ff: { G_B15_0 = 5; } IL_0100: { V_8 = G_B15_0; uint16_t L_23 = V_8; PositionAssertion_t1451 * L_24 = (PositionAssertion_t1451 *)il2cpp_codegen_object_new (InitializedTypeInfo(&PositionAssertion_t1451_il2cpp_TypeInfo)); PositionAssertion__ctor_m7865(L_24, L_23, /*hidden argument*/&PositionAssertion__ctor_m7865_MethodInfo); V_4 = L_24; goto IL_0270; } IL_0110: { int32_t L_25 = ___options; bool L_26 = Parser_IsSingleline_m7783(NULL /*static, unused*/, L_25, /*hidden argument*/&Parser_IsSingleline_m7783_MethodInfo); if (!L_26) { goto IL_0121; } } { G_B19_0 = 2; goto IL_0122; } IL_0121: { G_B19_0 = 1; } IL_0122: { V_9 = G_B19_0; uint16_t L_27 = V_9; IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&CharacterClass_t1454_il2cpp_TypeInfo)); CharacterClass_t1454 * L_28 = (CharacterClass_t1454 *)il2cpp_codegen_object_new (InitializedTypeInfo(&CharacterClass_t1454_il2cpp_TypeInfo)); CharacterClass__ctor_m7881(L_28, L_27, 0, /*hidden argument*/&CharacterClass__ctor_m7881_MethodInfo); V_4 = L_28; goto IL_0270; } IL_0133: { int32_t L_29 = Parser_ParseEscape_m7772(__this, /*hidden argument*/&Parser_ParseEscape_m7772_MethodInfo); V_10 = L_29; int32_t L_30 = V_10; if ((((int32_t)L_30) < ((int32_t)0))) { goto IL_014d; } } { int32_t L_31 = V_10; V_6 = (((uint16_t)L_31)); goto IL_017d; } IL_014d: { int32_t L_32 = ___options; Expression_t1438 * L_33 = Parser_ParseSpecial_m7771(__this, L_32, /*hidden argument*/&Parser_ParseSpecial_m7771_MethodInfo); V_4 = L_33; Expression_t1438 * L_34 = V_4; if (L_34) { goto IL_017d; } } { String_t* L_35 = (__this->___pattern_0); int32_t L_36 = (__this->___ptr_1); int32_t L_37 = L_36; V_19 = L_37; __this->___ptr_1 = ((int32_t)((int32_t)L_37+(int32_t)1)); int32_t L_38 = V_19; NullCheck(L_35); uint16_t L_39 = String_get_Chars_m2541(L_35, L_38, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); V_6 = L_39; } IL_017d: { goto IL_0270; } IL_0182: { int32_t L_40 = ___options; Expression_t1438 * L_41 = Parser_ParseCharacterClass_m7768(__this, L_40, /*hidden argument*/&Parser_ParseCharacterClass_m7768_MethodInfo); V_4 = L_41; goto IL_0270; } IL_0190: { int32_t L_42 = ___options; bool L_43 = Parser_IsIgnoreCase_m7780(NULL /*static, unused*/, L_42, /*hidden argument*/&Parser_IsIgnoreCase_m7780_MethodInfo); V_11 = L_43; Expression_t1438 * L_44 = Parser_ParseGroupingConstruct_m7765(__this, (&___options), /*hidden argument*/&Parser_ParseGroupingConstruct_m7765_MethodInfo); V_4 = L_44; Expression_t1438 * L_45 = V_4; if (L_45) { goto IL_01d5; } } { String_t* L_46 = V_2; if (!L_46) { goto IL_01d0; } } { int32_t L_47 = ___options; bool L_48 = Parser_IsIgnoreCase_m7780(NULL /*static, unused*/, L_47, /*hidden argument*/&Parser_IsIgnoreCase_m7780_MethodInfo); bool L_49 = V_11; if ((((int32_t)L_48) == ((int32_t)L_49))) { goto IL_01d0; } } { Group_t1436 * L_50 = V_3; String_t* L_51 = V_2; int32_t L_52 = ___options; bool L_53 = Parser_IsIgnoreCase_m7780(NULL /*static, unused*/, L_52, /*hidden argument*/&Parser_IsIgnoreCase_m7780_MethodInfo); Literal_t1448 * L_54 = (Literal_t1448 *)il2cpp_codegen_object_new (InitializedTypeInfo(&Literal_t1448_il2cpp_TypeInfo)); Literal__ctor_m7859(L_54, L_51, L_53, /*hidden argument*/&Literal__ctor_m7859_MethodInfo); NullCheck(L_50); Group_AppendExpression_m7807(L_50, L_54, /*hidden argument*/&Group_AppendExpression_m7807_MethodInfo); V_2 = (String_t*)NULL; } IL_01d0: { goto IL_001a; } IL_01d5: { goto IL_0270; } IL_01da: { V_5 = 1; goto IL_0484; } IL_01e2: { String_t* L_55 = V_2; if (!L_55) { goto IL_01fc; } } { Group_t1436 * L_56 = V_3; String_t* L_57 = V_2; int32_t L_58 = ___options; bool L_59 = Parser_IsIgnoreCase_m7780(NULL /*static, unused*/, L_58, /*hidden argument*/&Parser_IsIgnoreCase_m7780_MethodInfo); Literal_t1448 * L_60 = (Literal_t1448 *)il2cpp_codegen_object_new (InitializedTypeInfo(&Literal_t1448_il2cpp_TypeInfo)); Literal__ctor_m7859(L_60, L_57, L_59, /*hidden argument*/&Literal__ctor_m7859_MethodInfo); NullCheck(L_56); Group_AppendExpression_m7807(L_56, L_60, /*hidden argument*/&Group_AppendExpression_m7807_MethodInfo); V_2 = (String_t*)NULL; } IL_01fc: { Assertion_t1437 * L_61 = ___assertion; if (!L_61) { goto IL_0241; } } { Assertion_t1437 * L_62 = ___assertion; NullCheck(L_62); Expression_t1438 * L_63 = Assertion_get_TrueExpression_m7837(L_62, /*hidden argument*/&Assertion_get_TrueExpression_m7837_MethodInfo); if (L_63) { goto IL_0219; } } { Assertion_t1437 * L_64 = ___assertion; Group_t1436 * L_65 = V_3; NullCheck(L_64); Assertion_set_TrueExpression_m7838(L_64, L_65, /*hidden argument*/&Assertion_set_TrueExpression_m7838_MethodInfo); goto IL_023c; } IL_0219: { Assertion_t1437 * L_66 = ___assertion; NullCheck(L_66); Expression_t1438 * L_67 = Assertion_get_FalseExpression_m7839(L_66, /*hidden argument*/&Assertion_get_FalseExpression_m7839_MethodInfo); if (L_67) { goto IL_0230; } } { Assertion_t1437 * L_68 = ___assertion; Group_t1436 * L_69 = V_3; NullCheck(L_68); Assertion_set_FalseExpression_m7840(L_68, L_69, /*hidden argument*/&Assertion_set_FalseExpression_m7840_MethodInfo); goto IL_023c; } IL_0230: { ArgumentException_t521 * L_70 = Parser_NewParseException_m7786(__this, (String_t*) &_stringLiteral865, /*hidden argument*/&Parser_NewParseException_m7786_MethodInfo); il2cpp_codegen_raise_exception(L_70); } IL_023c: { goto IL_0254; } IL_0241: { Alternation_t1450 * L_71 = V_1; if (L_71) { goto IL_024d; } } { Alternation_t1450 * L_72 = (Alternation_t1450 *)il2cpp_codegen_object_new (InitializedTypeInfo(&Alternation_t1450_il2cpp_TypeInfo)); Alternation__ctor_m7854(L_72, /*hidden argument*/&Alternation__ctor_m7854_MethodInfo); V_1 = L_72; } IL_024d: { Alternation_t1450 * L_73 = V_1; Group_t1436 * L_74 = V_3; NullCheck(L_73); Alternation_AddAlternative_m7856(L_73, L_74, /*hidden argument*/&Alternation_AddAlternative_m7856_MethodInfo); } IL_0254: { Group_t1436 * L_75 = (Group_t1436 *)il2cpp_codegen_object_new (InitializedTypeInfo(&Group_t1436_il2cpp_TypeInfo)); Group__ctor_m7806(L_75, /*hidden argument*/&Group__ctor_m7806_MethodInfo); V_3 = L_75; goto IL_001a; } IL_025f: { ArgumentException_t521 * L_76 = Parser_NewParseException_m7786(__this, (String_t*) &_stringLiteral866, /*hidden argument*/&Parser_NewParseException_m7786_MethodInfo); il2cpp_codegen_raise_exception(L_76); } IL_026b: { goto IL_0270; } IL_0270: { int32_t L_77 = ___options; bool L_78 = Parser_IsIgnorePatternWhitespace_m7784(NULL /*static, unused*/, L_77, /*hidden argument*/&Parser_IsIgnorePatternWhitespace_m7784_MethodInfo); Parser_ConsumeWhitespace_m7777(__this, L_78, /*hidden argument*/&Parser_ConsumeWhitespace_m7777_MethodInfo); int32_t L_79 = (__this->___ptr_1); String_t* L_80 = (__this->___pattern_0); NullCheck(L_80); int32_t L_81 = String_get_Length_m694(L_80, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((((int32_t)L_79) >= ((int32_t)L_81))) { goto IL_0413; } } { String_t* L_82 = (__this->___pattern_0); int32_t L_83 = (__this->___ptr_1); NullCheck(L_82); uint16_t L_84 = String_get_Chars_m2541(L_82, L_83, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); V_12 = L_84; V_13 = 0; V_14 = 0; V_15 = 0; V_16 = 0; uint16_t L_85 = V_12; if ((((int32_t)L_85) == ((int32_t)((int32_t)63)))) { goto IL_02cc; } } { uint16_t L_86 = V_12; if ((((int32_t)L_86) == ((int32_t)((int32_t)42)))) { goto IL_02cc; } } { uint16_t L_87 = V_12; if ((!(((uint32_t)L_87) == ((uint32_t)((int32_t)43))))) { goto IL_032f; } } IL_02cc: { int32_t L_88 = (__this->___ptr_1); __this->___ptr_1 = ((int32_t)((int32_t)L_88+(int32_t)1)); V_16 = 1; uint16_t L_89 = V_12; V_20 = L_89; uint16_t L_90 = V_20; if ((((int32_t)L_90) == ((int32_t)((int32_t)42)))) { goto IL_030c; } } { uint16_t L_91 = V_20; if ((((int32_t)L_91) == ((int32_t)((int32_t)43)))) { goto IL_031b; } } { uint16_t L_92 = V_20; if ((((int32_t)L_92) == ((int32_t)((int32_t)63)))) { goto IL_0301; } } { goto IL_032a; } IL_0301: { V_13 = 0; V_14 = 1; goto IL_032a; } IL_030c: { V_13 = 0; V_14 = ((int32_t)2147483647); goto IL_032a; } IL_031b: { V_13 = 1; V_14 = ((int32_t)2147483647); goto IL_032a; } IL_032a: { goto IL_0382; } IL_032f: { uint16_t L_93 = V_12; if ((!(((uint32_t)L_93) == ((uint32_t)((int32_t)123))))) { goto IL_0382; } } { int32_t L_94 = (__this->___ptr_1); String_t* L_95 = (__this->___pattern_0); NullCheck(L_95); int32_t L_96 = String_get_Length_m694(L_95, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((((int32_t)((int32_t)((int32_t)L_94+(int32_t)1))) >= ((int32_t)L_96))) { goto IL_0382; } } { int32_t L_97 = (__this->___ptr_1); V_17 = L_97; int32_t L_98 = (__this->___ptr_1); __this->___ptr_1 = ((int32_t)((int32_t)L_98+(int32_t)1)); int32_t L_99 = ___options; bool L_100 = Parser_ParseRepetitionBounds_m7769(__this, (&V_13), (&V_14), L_99, /*hidden argument*/&Parser_ParseRepetitionBounds_m7769_MethodInfo); V_16 = L_100; bool L_101 = V_16; if (L_101) { goto IL_0382; } } { int32_t L_102 = V_17; __this->___ptr_1 = L_102; } IL_0382: { bool L_103 = V_16; if (!L_103) { goto IL_0413; } } { int32_t L_104 = ___options; bool L_105 = Parser_IsIgnorePatternWhitespace_m7784(NULL /*static, unused*/, L_104, /*hidden argument*/&Parser_IsIgnorePatternWhitespace_m7784_MethodInfo); Parser_ConsumeWhitespace_m7777(__this, L_105, /*hidden argument*/&Parser_ConsumeWhitespace_m7777_MethodInfo); int32_t L_106 = (__this->___ptr_1); String_t* L_107 = (__this->___pattern_0); NullCheck(L_107); int32_t L_108 = String_get_Length_m694(L_107, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((((int32_t)L_106) >= ((int32_t)L_108))) { goto IL_03d4; } } { String_t* L_109 = (__this->___pattern_0); int32_t L_110 = (__this->___ptr_1); NullCheck(L_109); uint16_t L_111 = String_get_Chars_m2541(L_109, L_110, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((!(((uint32_t)L_111) == ((uint32_t)((int32_t)63))))) { goto IL_03d4; } } { int32_t L_112 = (__this->___ptr_1); __this->___ptr_1 = ((int32_t)((int32_t)L_112+(int32_t)1)); V_15 = 1; } IL_03d4: { int32_t L_113 = V_13; int32_t L_114 = V_14; bool L_115 = V_15; Repetition_t1447 * L_116 = (Repetition_t1447 *)il2cpp_codegen_object_new (InitializedTypeInfo(&Repetition_t1447_il2cpp_TypeInfo)); Repetition__ctor_m7829(L_116, L_113, L_114, L_115, /*hidden argument*/&Repetition__ctor_m7829_MethodInfo); V_18 = L_116; Expression_t1438 * L_117 = V_4; if (L_117) { goto IL_0406; } } { Repetition_t1447 * L_118 = V_18; String_t* L_119 = Char_ToString_m2567((&V_6), /*hidden argument*/&Char_ToString_m2567_MethodInfo); int32_t L_120 = ___options; bool L_121 = Parser_IsIgnoreCase_m7780(NULL /*static, unused*/, L_120, /*hidden argument*/&Parser_IsIgnoreCase_m7780_MethodInfo); Literal_t1448 * L_122 = (Literal_t1448 *)il2cpp_codegen_object_new (InitializedTypeInfo(&Literal_t1448_il2cpp_TypeInfo)); Literal__ctor_m7859(L_122, L_119, L_121, /*hidden argument*/&Literal__ctor_m7859_MethodInfo); NullCheck(L_118); Repetition_set_Expression_m7831(L_118, L_122, /*hidden argument*/&Repetition_set_Expression_m7831_MethodInfo); goto IL_040f; } IL_0406: { Repetition_t1447 * L_123 = V_18; Expression_t1438 * L_124 = V_4; NullCheck(L_123); Repetition_set_Expression_m7831(L_123, L_124, /*hidden argument*/&Repetition_set_Expression_m7831_MethodInfo); } IL_040f: { Repetition_t1447 * L_125 = V_18; V_4 = L_125; } IL_0413: { Expression_t1438 * L_126 = V_4; if (L_126) { goto IL_0439; } } { String_t* L_127 = V_2; if (L_127) { goto IL_0426; } } { IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); String_t* L_128 = ((String_t_StaticFields*)(&String_t_il2cpp_TypeInfo)->static_fields)->___Empty_2; V_2 = L_128; } IL_0426: { String_t* L_129 = V_2; uint16_t L_130 = V_6; uint16_t L_131 = L_130; Object_t * L_132 = Box(InitializedTypeInfo(&Char_t389_il2cpp_TypeInfo), &L_131); IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); String_t* L_133 = String_Concat_m495(NULL /*static, unused*/, L_129, L_132, /*hidden argument*/&String_Concat_m495_MethodInfo); V_2 = L_133; goto IL_045e; } IL_0439: { String_t* L_134 = V_2; if (!L_134) { goto IL_0453; } } { Group_t1436 * L_135 = V_3; String_t* L_136 = V_2; int32_t L_137 = ___options; bool L_138 = Parser_IsIgnoreCase_m7780(NULL /*static, unused*/, L_137, /*hidden argument*/&Parser_IsIgnoreCase_m7780_MethodInfo); Literal_t1448 * L_139 = (Literal_t1448 *)il2cpp_codegen_object_new (InitializedTypeInfo(&Literal_t1448_il2cpp_TypeInfo)); Literal__ctor_m7859(L_139, L_136, L_138, /*hidden argument*/&Literal__ctor_m7859_MethodInfo); NullCheck(L_135); Group_AppendExpression_m7807(L_135, L_139, /*hidden argument*/&Group_AppendExpression_m7807_MethodInfo); V_2 = (String_t*)NULL; } IL_0453: { Group_t1436 * L_140 = V_3; Expression_t1438 * L_141 = V_4; NullCheck(L_140); Group_AppendExpression_m7807(L_140, L_141, /*hidden argument*/&Group_AppendExpression_m7807_MethodInfo); V_4 = (Expression_t1438 *)NULL; } IL_045e: { bool L_142 = V_0; if (!L_142) { goto IL_047f; } } { int32_t L_143 = (__this->___ptr_1); String_t* L_144 = (__this->___pattern_0); NullCheck(L_144); int32_t L_145 = String_get_Length_m694(L_144, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((((int32_t)L_143) < ((int32_t)L_145))) { goto IL_047f; } } { goto IL_0484; } IL_047f: { goto IL_001a; } IL_0484: { bool L_146 = V_0; if (!L_146) { goto IL_049d; } } { bool L_147 = V_5; if (!L_147) { goto IL_049d; } } { ArgumentException_t521 * L_148 = Parser_NewParseException_m7786(__this, (String_t*) &_stringLiteral867, /*hidden argument*/&Parser_NewParseException_m7786_MethodInfo); il2cpp_codegen_raise_exception(L_148); } IL_049d: { bool L_149 = V_0; if (L_149) { goto IL_04b6; } } { bool L_150 = V_5; if (L_150) { goto IL_04b6; } } { ArgumentException_t521 * L_151 = Parser_NewParseException_m7786(__this, (String_t*) &_stringLiteral868, /*hidden argument*/&Parser_NewParseException_m7786_MethodInfo); il2cpp_codegen_raise_exception(L_151); } IL_04b6: { String_t* L_152 = V_2; if (!L_152) { goto IL_04ce; } } { Group_t1436 * L_153 = V_3; String_t* L_154 = V_2; int32_t L_155 = ___options; bool L_156 = Parser_IsIgnoreCase_m7780(NULL /*static, unused*/, L_155, /*hidden argument*/&Parser_IsIgnoreCase_m7780_MethodInfo); Literal_t1448 * L_157 = (Literal_t1448 *)il2cpp_codegen_object_new (InitializedTypeInfo(&Literal_t1448_il2cpp_TypeInfo)); Literal__ctor_m7859(L_157, L_154, L_156, /*hidden argument*/&Literal__ctor_m7859_MethodInfo); NullCheck(L_153); Group_AppendExpression_m7807(L_153, L_157, /*hidden argument*/&Group_AppendExpression_m7807_MethodInfo); } IL_04ce: { Assertion_t1437 * L_158 = ___assertion; if (!L_158) { goto IL_04fe; } } { Assertion_t1437 * L_159 = ___assertion; NullCheck(L_159); Expression_t1438 * L_160 = Assertion_get_TrueExpression_m7837(L_159, /*hidden argument*/&Assertion_get_TrueExpression_m7837_MethodInfo); if (L_160) { goto IL_04eb; } } { Assertion_t1437 * L_161 = ___assertion; Group_t1436 * L_162 = V_3; NullCheck(L_161); Assertion_set_TrueExpression_m7838(L_161, L_162, /*hidden argument*/&Assertion_set_TrueExpression_m7838_MethodInfo); goto IL_04f2; } IL_04eb: { Assertion_t1437 * L_163 = ___assertion; Group_t1436 * L_164 = V_3; NullCheck(L_163); Assertion_set_FalseExpression_m7840(L_163, L_164, /*hidden argument*/&Assertion_set_FalseExpression_m7840_MethodInfo); } IL_04f2: { Group_t1436 * L_165 = ___group; Assertion_t1437 * L_166 = ___assertion; NullCheck(L_165); Group_AppendExpression_m7807(L_165, L_166, /*hidden argument*/&Group_AppendExpression_m7807_MethodInfo); goto IL_051e; } IL_04fe: { Alternation_t1450 * L_167 = V_1; if (!L_167) { goto IL_0517; } } { Alternation_t1450 * L_168 = V_1; Group_t1436 * L_169 = V_3; NullCheck(L_168); Alternation_AddAlternative_m7856(L_168, L_169, /*hidden argument*/&Alternation_AddAlternative_m7856_MethodInfo); Group_t1436 * L_170 = ___group; Alternation_t1450 * L_171 = V_1; NullCheck(L_170); Group_AppendExpression_m7807(L_170, L_171, /*hidden argument*/&Group_AppendExpression_m7807_MethodInfo); goto IL_051e; } IL_0517: { Group_t1436 * L_172 = ___group; Group_t1436 * L_173 = V_3; NullCheck(L_172); Group_AppendExpression_m7807(L_172, L_173, /*hidden argument*/&Group_AppendExpression_m7807_MethodInfo); } IL_051e: { return; } } // System.Text.RegularExpressions.Syntax.Expression System.Text.RegularExpressions.Syntax.Parser::ParseGroupingConstruct(System.Text.RegularExpressions.RegexOptions&) extern "C" Expression_t1438 * Parser_ParseGroupingConstruct_m7765 (Parser_t1434 * __this, int32_t* ___options, MethodInfo* method) { Group_t1436 * V_0 = {0}; Group_t1436 * V_1 = {0}; Group_t1436 * V_2 = {0}; int32_t V_3 = {0}; Group_t1436 * V_4 = {0}; ExpressionAssertion_t1439 * V_5 = {0}; Group_t1436 * V_6 = {0}; uint16_t V_7 = 0x0; String_t* V_8 = {0}; CapturingGroup_t1444 * V_9 = {0}; String_t* V_10 = {0}; BalancingGroup_t1445 * V_11 = {0}; Assertion_t1437 * V_12 = {0}; int32_t V_13 = 0; String_t* V_14 = {0}; ExpressionAssertion_t1439 * V_15 = {0}; Group_t1436 * V_16 = {0}; Group_t1436 * V_17 = {0}; uint16_t V_18 = 0x0; int32_t V_19 = 0; { String_t* L_0 = (__this->___pattern_0); int32_t L_1 = (__this->___ptr_1); NullCheck(L_0); uint16_t L_2 = String_get_Chars_m2541(L_0, L_1, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((((int32_t)L_2) == ((int32_t)((int32_t)63)))) { goto IL_004e; } } { int32_t* L_3 = ___options; bool L_4 = Parser_IsExplicitCapture_m7782(NULL /*static, unused*/, (*((int32_t*)L_3)), /*hidden argument*/&Parser_IsExplicitCapture_m7782_MethodInfo); if (!L_4) { goto IL_002f; } } { Group_t1436 * L_5 = (Group_t1436 *)il2cpp_codegen_object_new (InitializedTypeInfo(&Group_t1436_il2cpp_TypeInfo)); Group__ctor_m7806(L_5, /*hidden argument*/&Group__ctor_m7806_MethodInfo); V_0 = L_5; goto IL_0042; } IL_002f: { CapturingGroup_t1444 * L_6 = (CapturingGroup_t1444 *)il2cpp_codegen_object_new (InitializedTypeInfo(&CapturingGroup_t1444_il2cpp_TypeInfo)); CapturingGroup__ctor_m7814(L_6, /*hidden argument*/&CapturingGroup__ctor_m7814_MethodInfo); V_0 = L_6; ArrayList_t1304 * L_7 = (__this->___caps_2); Group_t1436 * L_8 = V_0; NullCheck(L_7); VirtFuncInvoker1< int32_t, Object_t * >::Invoke(&ArrayList_Add_m8008_MethodInfo, L_7, L_8); } IL_0042: { Group_t1436 * L_9 = V_0; int32_t* L_10 = ___options; Parser_ParseGroup_m7764(__this, L_9, (*((int32_t*)L_10)), (Assertion_t1437 *)NULL, /*hidden argument*/&Parser_ParseGroup_m7764_MethodInfo); Group_t1436 * L_11 = V_0; return L_11; } IL_004e: { int32_t L_12 = (__this->___ptr_1); __this->___ptr_1 = ((int32_t)((int32_t)L_12+(int32_t)1)); String_t* L_13 = (__this->___pattern_0); int32_t L_14 = (__this->___ptr_1); NullCheck(L_13); uint16_t L_15 = String_get_Chars_m2541(L_13, L_14, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); V_18 = L_15; uint16_t L_16 = V_18; if (((int32_t)((int32_t)L_16-(int32_t)((int32_t)33))) == 0) { goto IL_01e5; } if (((int32_t)((int32_t)L_16-(int32_t)((int32_t)33))) == 1) { goto IL_0099; } if (((int32_t)((int32_t)L_16-(int32_t)((int32_t)33))) == 2) { goto IL_0482; } if (((int32_t)((int32_t)L_16-(int32_t)((int32_t)33))) == 3) { goto IL_0099; } if (((int32_t)((int32_t)L_16-(int32_t)((int32_t)33))) == 4) { goto IL_0099; } if (((int32_t)((int32_t)L_16-(int32_t)((int32_t)33))) == 5) { goto IL_0099; } if (((int32_t)((int32_t)L_16-(int32_t)((int32_t)33))) == 6) { goto IL_021c; } if (((int32_t)((int32_t)L_16-(int32_t)((int32_t)33))) == 7) { goto IL_0376; } } IL_0099: { uint16_t L_17 = V_18; if (((int32_t)((int32_t)L_17-(int32_t)((int32_t)105))) == 0) { goto IL_0139; } if (((int32_t)((int32_t)L_17-(int32_t)((int32_t)105))) == 1) { goto IL_00bb; } if (((int32_t)((int32_t)L_17-(int32_t)((int32_t)105))) == 2) { goto IL_00bb; } if (((int32_t)((int32_t)L_17-(int32_t)((int32_t)105))) == 3) { goto IL_00bb; } if (((int32_t)((int32_t)L_17-(int32_t)((int32_t)105))) == 4) { goto IL_0139; } if (((int32_t)((int32_t)L_17-(int32_t)((int32_t)105))) == 5) { goto IL_0139; } } IL_00bb: { uint16_t L_18 = V_18; if (((int32_t)((int32_t)L_18-(int32_t)((int32_t)58))) == 0) { goto IL_00f9; } if (((int32_t)((int32_t)L_18-(int32_t)((int32_t)58))) == 1) { goto IL_00d9; } if (((int32_t)((int32_t)L_18-(int32_t)((int32_t)58))) == 2) { goto IL_01e5; } if (((int32_t)((int32_t)L_18-(int32_t)((int32_t)58))) == 3) { goto IL_01e5; } if (((int32_t)((int32_t)L_18-(int32_t)((int32_t)58))) == 4) { goto IL_0119; } } IL_00d9: { uint16_t L_19 = V_18; if ((((int32_t)L_19) == ((int32_t)((int32_t)45)))) { goto IL_0139; } } { uint16_t L_20 = V_18; if ((((int32_t)L_20) == ((int32_t)((int32_t)115)))) { goto IL_0139; } } { uint16_t L_21 = V_18; if ((((int32_t)L_21) == ((int32_t)((int32_t)120)))) { goto IL_0139; } } { goto IL_04de; } IL_00f9: { int32_t L_22 = (__this->___ptr_1); __this->___ptr_1 = ((int32_t)((int32_t)L_22+(int32_t)1)); Group_t1436 * L_23 = (Group_t1436 *)il2cpp_codegen_object_new (InitializedTypeInfo(&Group_t1436_il2cpp_TypeInfo)); Group__ctor_m7806(L_23, /*hidden argument*/&Group__ctor_m7806_MethodInfo); V_1 = L_23; Group_t1436 * L_24 = V_1; int32_t* L_25 = ___options; Parser_ParseGroup_m7764(__this, L_24, (*((int32_t*)L_25)), (Assertion_t1437 *)NULL, /*hidden argument*/&Parser_ParseGroup_m7764_MethodInfo); Group_t1436 * L_26 = V_1; return L_26; } IL_0119: { int32_t L_27 = (__this->___ptr_1); __this->___ptr_1 = ((int32_t)((int32_t)L_27+(int32_t)1)); NonBacktrackingGroup_t1446 * L_28 = (NonBacktrackingGroup_t1446 *)il2cpp_codegen_object_new (InitializedTypeInfo(&NonBacktrackingGroup_t1446_il2cpp_TypeInfo)); NonBacktrackingGroup__ctor_m7826(L_28, /*hidden argument*/&NonBacktrackingGroup__ctor_m7826_MethodInfo); V_2 = L_28; Group_t1436 * L_29 = V_2; int32_t* L_30 = ___options; Parser_ParseGroup_m7764(__this, L_29, (*((int32_t*)L_30)), (Assertion_t1437 *)NULL, /*hidden argument*/&Parser_ParseGroup_m7764_MethodInfo); Group_t1436 * L_31 = V_2; return L_31; } IL_0139: { int32_t* L_32 = ___options; V_3 = (*((int32_t*)L_32)); Parser_ParseOptions_m7767(__this, (&V_3), 0, /*hidden argument*/&Parser_ParseOptions_m7767_MethodInfo); String_t* L_33 = (__this->___pattern_0); int32_t L_34 = (__this->___ptr_1); NullCheck(L_33); uint16_t L_35 = String_get_Chars_m2541(L_33, L_34, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((!(((uint32_t)L_35) == ((uint32_t)((int32_t)45))))) { goto IL_0174; } } { int32_t L_36 = (__this->___ptr_1); __this->___ptr_1 = ((int32_t)((int32_t)L_36+(int32_t)1)); Parser_ParseOptions_m7767(__this, (&V_3), 1, /*hidden argument*/&Parser_ParseOptions_m7767_MethodInfo); } IL_0174: { String_t* L_37 = (__this->___pattern_0); int32_t L_38 = (__this->___ptr_1); NullCheck(L_37); uint16_t L_39 = String_get_Chars_m2541(L_37, L_38, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((!(((uint32_t)L_39) == ((uint32_t)((int32_t)58))))) { goto IL_01ae; } } { int32_t L_40 = (__this->___ptr_1); __this->___ptr_1 = ((int32_t)((int32_t)L_40+(int32_t)1)); Group_t1436 * L_41 = (Group_t1436 *)il2cpp_codegen_object_new (InitializedTypeInfo(&Group_t1436_il2cpp_TypeInfo)); Group__ctor_m7806(L_41, /*hidden argument*/&Group__ctor_m7806_MethodInfo); V_4 = L_41; Group_t1436 * L_42 = V_4; int32_t L_43 = V_3; Parser_ParseGroup_m7764(__this, L_42, L_43, (Assertion_t1437 *)NULL, /*hidden argument*/&Parser_ParseGroup_m7764_MethodInfo); Group_t1436 * L_44 = V_4; return L_44; } IL_01ae: { String_t* L_45 = (__this->___pattern_0); int32_t L_46 = (__this->___ptr_1); NullCheck(L_45); uint16_t L_47 = String_get_Chars_m2541(L_45, L_46, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((!(((uint32_t)L_47) == ((uint32_t)((int32_t)41))))) { goto IL_01d9; } } { int32_t L_48 = (__this->___ptr_1); __this->___ptr_1 = ((int32_t)((int32_t)L_48+(int32_t)1)); int32_t* L_49 = ___options; int32_t L_50 = V_3; *((int32_t*)(L_49)) = (int32_t)L_50; return (Expression_t1438 *)NULL; } IL_01d9: { ArgumentException_t521 * L_51 = Parser_NewParseException_m7786(__this, (String_t*) &_stringLiteral869, /*hidden argument*/&Parser_NewParseException_m7786_MethodInfo); il2cpp_codegen_raise_exception(L_51); } IL_01e5: { ExpressionAssertion_t1439 * L_52 = (ExpressionAssertion_t1439 *)il2cpp_codegen_object_new (InitializedTypeInfo(&ExpressionAssertion_t1439_il2cpp_TypeInfo)); ExpressionAssertion__ctor_m7847(L_52, /*hidden argument*/&ExpressionAssertion__ctor_m7847_MethodInfo); V_5 = L_52; ExpressionAssertion_t1439 * L_53 = V_5; bool L_54 = Parser_ParseAssertionType_m7766(__this, L_53, /*hidden argument*/&Parser_ParseAssertionType_m7766_MethodInfo); if (L_54) { goto IL_01fe; } } { goto IL_021c; } IL_01fe: { Group_t1436 * L_55 = (Group_t1436 *)il2cpp_codegen_object_new (InitializedTypeInfo(&Group_t1436_il2cpp_TypeInfo)); Group__ctor_m7806(L_55, /*hidden argument*/&Group__ctor_m7806_MethodInfo); V_6 = L_55; Group_t1436 * L_56 = V_6; int32_t* L_57 = ___options; Parser_ParseGroup_m7764(__this, L_56, (*((int32_t*)L_57)), (Assertion_t1437 *)NULL, /*hidden argument*/&Parser_ParseGroup_m7764_MethodInfo); ExpressionAssertion_t1439 * L_58 = V_5; Group_t1436 * L_59 = V_6; NullCheck(L_58); ExpressionAssertion_set_TestExpression_m7851(L_58, L_59, /*hidden argument*/&ExpressionAssertion_set_TestExpression_m7851_MethodInfo); ExpressionAssertion_t1439 * L_60 = V_5; return L_60; } IL_021c: { String_t* L_61 = (__this->___pattern_0); int32_t L_62 = (__this->___ptr_1); NullCheck(L_61); uint16_t L_63 = String_get_Chars_m2541(L_61, L_62, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((!(((uint32_t)L_63) == ((uint32_t)((int32_t)60))))) { goto IL_023d; } } { V_7 = ((int32_t)62); goto IL_0241; } IL_023d: { V_7 = ((int32_t)39); } IL_0241: { int32_t L_64 = (__this->___ptr_1); __this->___ptr_1 = ((int32_t)((int32_t)L_64+(int32_t)1)); String_t* L_65 = Parser_ParseName_m7773(__this, /*hidden argument*/&Parser_ParseName_m7773_MethodInfo); V_8 = L_65; String_t* L_66 = (__this->___pattern_0); int32_t L_67 = (__this->___ptr_1); NullCheck(L_66); uint16_t L_68 = String_get_Chars_m2541(L_66, L_67, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); uint16_t L_69 = V_7; if ((!(((uint32_t)L_68) == ((uint32_t)L_69)))) { goto IL_02bc; } } { String_t* L_70 = V_8; if (L_70) { goto IL_0282; } } { ArgumentException_t521 * L_71 = Parser_NewParseException_m7786(__this, (String_t*) &_stringLiteral870, /*hidden argument*/&Parser_NewParseException_m7786_MethodInfo); il2cpp_codegen_raise_exception(L_71); } IL_0282: { int32_t L_72 = (__this->___ptr_1); __this->___ptr_1 = ((int32_t)((int32_t)L_72+(int32_t)1)); CapturingGroup_t1444 * L_73 = (CapturingGroup_t1444 *)il2cpp_codegen_object_new (InitializedTypeInfo(&CapturingGroup_t1444_il2cpp_TypeInfo)); CapturingGroup__ctor_m7814(L_73, /*hidden argument*/&CapturingGroup__ctor_m7814_MethodInfo); V_9 = L_73; CapturingGroup_t1444 * L_74 = V_9; String_t* L_75 = V_8; NullCheck(L_74); CapturingGroup_set_Name_m7818(L_74, L_75, /*hidden argument*/&CapturingGroup_set_Name_m7818_MethodInfo); ArrayList_t1304 * L_76 = (__this->___caps_2); CapturingGroup_t1444 * L_77 = V_9; NullCheck(L_76); VirtFuncInvoker1< int32_t, Object_t * >::Invoke(&ArrayList_Add_m8008_MethodInfo, L_76, L_77); CapturingGroup_t1444 * L_78 = V_9; int32_t* L_79 = ___options; Parser_ParseGroup_m7764(__this, L_78, (*((int32_t*)L_79)), (Assertion_t1437 *)NULL, /*hidden argument*/&Parser_ParseGroup_m7764_MethodInfo); CapturingGroup_t1444 * L_80 = V_9; return L_80; } IL_02bc: { String_t* L_81 = (__this->___pattern_0); int32_t L_82 = (__this->___ptr_1); NullCheck(L_81); uint16_t L_83 = String_get_Chars_m2541(L_81, L_82, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((!(((uint32_t)L_83) == ((uint32_t)((int32_t)45))))) { goto IL_036a; } } { int32_t L_84 = (__this->___ptr_1); __this->___ptr_1 = ((int32_t)((int32_t)L_84+(int32_t)1)); String_t* L_85 = Parser_ParseName_m7773(__this, /*hidden argument*/&Parser_ParseName_m7773_MethodInfo); V_10 = L_85; String_t* L_86 = V_10; if (!L_86) { goto IL_0309; } } { String_t* L_87 = (__this->___pattern_0); int32_t L_88 = (__this->___ptr_1); NullCheck(L_87); uint16_t L_89 = String_get_Chars_m2541(L_87, L_88, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); uint16_t L_90 = V_7; if ((((int32_t)L_89) == ((int32_t)L_90))) { goto IL_0315; } } IL_0309: { ArgumentException_t521 * L_91 = Parser_NewParseException_m7786(__this, (String_t*) &_stringLiteral871, /*hidden argument*/&Parser_NewParseException_m7786_MethodInfo); il2cpp_codegen_raise_exception(L_91); } IL_0315: { int32_t L_92 = (__this->___ptr_1); __this->___ptr_1 = ((int32_t)((int32_t)L_92+(int32_t)1)); BalancingGroup_t1445 * L_93 = (BalancingGroup_t1445 *)il2cpp_codegen_object_new (InitializedTypeInfo(&BalancingGroup_t1445_il2cpp_TypeInfo)); BalancingGroup__ctor_m7823(L_93, /*hidden argument*/&BalancingGroup__ctor_m7823_MethodInfo); V_11 = L_93; BalancingGroup_t1445 * L_94 = V_11; String_t* L_95 = V_8; NullCheck(L_94); CapturingGroup_set_Name_m7818(L_94, L_95, /*hidden argument*/&CapturingGroup_set_Name_m7818_MethodInfo); BalancingGroup_t1445 * L_96 = V_11; NullCheck(L_96); bool L_97 = CapturingGroup_get_IsNamed_m7819(L_96, /*hidden argument*/&CapturingGroup_get_IsNamed_m7819_MethodInfo); if (!L_97) { goto IL_034d; } } { ArrayList_t1304 * L_98 = (__this->___caps_2); BalancingGroup_t1445 * L_99 = V_11; NullCheck(L_98); VirtFuncInvoker1< int32_t, Object_t * >::Invoke(&ArrayList_Add_m8008_MethodInfo, L_98, L_99); } IL_034d: { Hashtable_t1291 * L_100 = (__this->___refs_3); BalancingGroup_t1445 * L_101 = V_11; String_t* L_102 = V_10; NullCheck(L_100); VirtActionInvoker2< Object_t *, Object_t * >::Invoke(&Hashtable_Add_m8007_MethodInfo, L_100, L_101, L_102); BalancingGroup_t1445 * L_103 = V_11; int32_t* L_104 = ___options; Parser_ParseGroup_m7764(__this, L_103, (*((int32_t*)L_104)), (Assertion_t1437 *)NULL, /*hidden argument*/&Parser_ParseGroup_m7764_MethodInfo); BalancingGroup_t1445 * L_105 = V_11; return L_105; } IL_036a: { ArgumentException_t521 * L_106 = Parser_NewParseException_m7786(__this, (String_t*) &_stringLiteral870, /*hidden argument*/&Parser_NewParseException_m7786_MethodInfo); il2cpp_codegen_raise_exception(L_106); } IL_0376: { int32_t L_107 = (__this->___ptr_1); __this->___ptr_1 = ((int32_t)((int32_t)L_107+(int32_t)1)); int32_t L_108 = (__this->___ptr_1); V_13 = L_108; String_t* L_109 = Parser_ParseName_m7773(__this, /*hidden argument*/&Parser_ParseName_m7773_MethodInfo); V_14 = L_109; String_t* L_110 = V_14; if (!L_110) { goto IL_03b3; } } { String_t* L_111 = (__this->___pattern_0); int32_t L_112 = (__this->___ptr_1); NullCheck(L_111); uint16_t L_113 = String_get_Chars_m2541(L_111, L_112, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((((int32_t)L_113) == ((int32_t)((int32_t)41)))) { goto IL_043a; } } IL_03b3: { int32_t L_114 = V_13; __this->___ptr_1 = L_114; ExpressionAssertion_t1439 * L_115 = (ExpressionAssertion_t1439 *)il2cpp_codegen_object_new (InitializedTypeInfo(&ExpressionAssertion_t1439_il2cpp_TypeInfo)); ExpressionAssertion__ctor_m7847(L_115, /*hidden argument*/&ExpressionAssertion__ctor_m7847_MethodInfo); V_15 = L_115; String_t* L_116 = (__this->___pattern_0); int32_t L_117 = (__this->___ptr_1); NullCheck(L_116); uint16_t L_118 = String_get_Chars_m2541(L_116, L_117, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((!(((uint32_t)L_118) == ((uint32_t)((int32_t)63))))) { goto IL_0406; } } { int32_t L_119 = (__this->___ptr_1); __this->___ptr_1 = ((int32_t)((int32_t)L_119+(int32_t)1)); ExpressionAssertion_t1439 * L_120 = V_15; bool L_121 = Parser_ParseAssertionType_m7766(__this, L_120, /*hidden argument*/&Parser_ParseAssertionType_m7766_MethodInfo); if (L_121) { goto IL_0401; } } { ArgumentException_t521 * L_122 = Parser_NewParseException_m7786(__this, (String_t*) &_stringLiteral872, /*hidden argument*/&Parser_NewParseException_m7786_MethodInfo); il2cpp_codegen_raise_exception(L_122); } IL_0401: { goto IL_0416; } IL_0406: { ExpressionAssertion_t1439 * L_123 = V_15; NullCheck(L_123); ExpressionAssertion_set_Negate_m7849(L_123, 0, /*hidden argument*/&ExpressionAssertion_set_Negate_m7849_MethodInfo); ExpressionAssertion_t1439 * L_124 = V_15; NullCheck(L_124); ExpressionAssertion_set_Reverse_m7848(L_124, 0, /*hidden argument*/&ExpressionAssertion_set_Reverse_m7848_MethodInfo); } IL_0416: { Group_t1436 * L_125 = (Group_t1436 *)il2cpp_codegen_object_new (InitializedTypeInfo(&Group_t1436_il2cpp_TypeInfo)); Group__ctor_m7806(L_125, /*hidden argument*/&Group__ctor_m7806_MethodInfo); V_16 = L_125; Group_t1436 * L_126 = V_16; int32_t* L_127 = ___options; Parser_ParseGroup_m7764(__this, L_126, (*((int32_t*)L_127)), (Assertion_t1437 *)NULL, /*hidden argument*/&Parser_ParseGroup_m7764_MethodInfo); ExpressionAssertion_t1439 * L_128 = V_15; Group_t1436 * L_129 = V_16; NullCheck(L_128); ExpressionAssertion_set_TestExpression_m7851(L_128, L_129, /*hidden argument*/&ExpressionAssertion_set_TestExpression_m7851_MethodInfo); ExpressionAssertion_t1439 * L_130 = V_15; V_12 = L_130; goto IL_046c; } IL_043a: { int32_t L_131 = (__this->___ptr_1); __this->___ptr_1 = ((int32_t)((int32_t)L_131+(int32_t)1)); String_t* L_132 = V_14; int32_t* L_133 = ___options; bool L_134 = Parser_IsIgnoreCase_m7780(NULL /*static, unused*/, (*((int32_t*)L_133)), /*hidden argument*/&Parser_IsIgnoreCase_m7780_MethodInfo); Literal_t1448 * L_135 = (Literal_t1448 *)il2cpp_codegen_object_new (InitializedTypeInfo(&Literal_t1448_il2cpp_TypeInfo)); Literal__ctor_m7859(L_135, L_132, L_134, /*hidden argument*/&Literal__ctor_m7859_MethodInfo); CaptureAssertion_t1449 * L_136 = (CaptureAssertion_t1449 *)il2cpp_codegen_object_new (InitializedTypeInfo(&CaptureAssertion_t1449_il2cpp_TypeInfo)); CaptureAssertion__ctor_m7842(L_136, L_135, /*hidden argument*/&CaptureAssertion__ctor_m7842_MethodInfo); V_12 = L_136; Hashtable_t1291 * L_137 = (__this->___refs_3); Assertion_t1437 * L_138 = V_12; String_t* L_139 = V_14; NullCheck(L_137); VirtActionInvoker2< Object_t *, Object_t * >::Invoke(&Hashtable_Add_m8007_MethodInfo, L_137, L_138, L_139); } IL_046c: { Group_t1436 * L_140 = (Group_t1436 *)il2cpp_codegen_object_new (InitializedTypeInfo(&Group_t1436_il2cpp_TypeInfo)); Group__ctor_m7806(L_140, /*hidden argument*/&Group__ctor_m7806_MethodInfo); V_17 = L_140; Group_t1436 * L_141 = V_17; int32_t* L_142 = ___options; Assertion_t1437 * L_143 = V_12; Parser_ParseGroup_m7764(__this, L_141, (*((int32_t*)L_142)), L_143, /*hidden argument*/&Parser_ParseGroup_m7764_MethodInfo); Group_t1436 * L_144 = V_17; return L_144; } IL_0482: { int32_t L_145 = (__this->___ptr_1); __this->___ptr_1 = ((int32_t)((int32_t)L_145+(int32_t)1)); goto IL_04b7; } IL_0495: { int32_t L_146 = (__this->___ptr_1); String_t* L_147 = (__this->___pattern_0); NullCheck(L_147); int32_t L_148 = String_get_Length_m694(L_147, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((((int32_t)L_146) < ((int32_t)L_148))) { goto IL_04b7; } } { ArgumentException_t521 * L_149 = Parser_NewParseException_m7786(__this, (String_t*) &_stringLiteral873, /*hidden argument*/&Parser_NewParseException_m7786_MethodInfo); il2cpp_codegen_raise_exception(L_149); } IL_04b7: { String_t* L_150 = (__this->___pattern_0); int32_t L_151 = (__this->___ptr_1); int32_t L_152 = L_151; V_19 = L_152; __this->___ptr_1 = ((int32_t)((int32_t)L_152+(int32_t)1)); int32_t L_153 = V_19; NullCheck(L_150); uint16_t L_154 = String_get_Chars_m2541(L_150, L_153, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((!(((uint32_t)L_154) == ((uint32_t)((int32_t)41))))) { goto IL_0495; } } { return (Expression_t1438 *)NULL; } IL_04de: { ArgumentException_t521 * L_155 = Parser_NewParseException_m7786(__this, (String_t*) &_stringLiteral874, /*hidden argument*/&Parser_NewParseException_m7786_MethodInfo); il2cpp_codegen_raise_exception(L_155); } } // System.Boolean System.Text.RegularExpressions.Syntax.Parser::ParseAssertionType(System.Text.RegularExpressions.Syntax.ExpressionAssertion) extern "C" bool Parser_ParseAssertionType_m7766 (Parser_t1434 * __this, ExpressionAssertion_t1439 * ___assertion, MethodInfo* method) { uint16_t V_0 = 0x0; { String_t* L_0 = (__this->___pattern_0); int32_t L_1 = (__this->___ptr_1); NullCheck(L_0); uint16_t L_2 = String_get_Chars_m2541(L_0, L_1, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((!(((uint32_t)L_2) == ((uint32_t)((int32_t)60))))) { goto IL_0075; } } { String_t* L_3 = (__this->___pattern_0); int32_t L_4 = (__this->___ptr_1); NullCheck(L_3); uint16_t L_5 = String_get_Chars_m2541(L_3, ((int32_t)((int32_t)L_4+(int32_t)1)), /*hidden argument*/&String_get_Chars_m2541_MethodInfo); V_0 = L_5; uint16_t L_6 = V_0; if ((((int32_t)L_6) == ((int32_t)((int32_t)33)))) { goto IL_004d; } } { uint16_t L_7 = V_0; if ((((int32_t)L_7) == ((int32_t)((int32_t)61)))) { goto IL_0041; } } { goto IL_0059; } IL_0041: { ExpressionAssertion_t1439 * L_8 = ___assertion; NullCheck(L_8); ExpressionAssertion_set_Negate_m7849(L_8, 0, /*hidden argument*/&ExpressionAssertion_set_Negate_m7849_MethodInfo); goto IL_005b; } IL_004d: { ExpressionAssertion_t1439 * L_9 = ___assertion; NullCheck(L_9); ExpressionAssertion_set_Negate_m7849(L_9, 1, /*hidden argument*/&ExpressionAssertion_set_Negate_m7849_MethodInfo); goto IL_005b; } IL_0059: { return 0; } IL_005b: { ExpressionAssertion_t1439 * L_10 = ___assertion; NullCheck(L_10); ExpressionAssertion_set_Reverse_m7848(L_10, 1, /*hidden argument*/&ExpressionAssertion_set_Reverse_m7848_MethodInfo); int32_t L_11 = (__this->___ptr_1); __this->___ptr_1 = ((int32_t)((int32_t)L_11+(int32_t)2)); goto IL_00cb; } IL_0075: { String_t* L_12 = (__this->___pattern_0); int32_t L_13 = (__this->___ptr_1); NullCheck(L_12); uint16_t L_14 = String_get_Chars_m2541(L_12, L_13, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); V_0 = L_14; uint16_t L_15 = V_0; if ((((int32_t)L_15) == ((int32_t)((int32_t)33)))) { goto IL_00a8; } } { uint16_t L_16 = V_0; if ((((int32_t)L_16) == ((int32_t)((int32_t)61)))) { goto IL_009c; } } { goto IL_00b4; } IL_009c: { ExpressionAssertion_t1439 * L_17 = ___assertion; NullCheck(L_17); ExpressionAssertion_set_Negate_m7849(L_17, 0, /*hidden argument*/&ExpressionAssertion_set_Negate_m7849_MethodInfo); goto IL_00b6; } IL_00a8: { ExpressionAssertion_t1439 * L_18 = ___assertion; NullCheck(L_18); ExpressionAssertion_set_Negate_m7849(L_18, 1, /*hidden argument*/&ExpressionAssertion_set_Negate_m7849_MethodInfo); goto IL_00b6; } IL_00b4: { return 0; } IL_00b6: { ExpressionAssertion_t1439 * L_19 = ___assertion; NullCheck(L_19); ExpressionAssertion_set_Reverse_m7848(L_19, 0, /*hidden argument*/&ExpressionAssertion_set_Reverse_m7848_MethodInfo); int32_t L_20 = (__this->___ptr_1); __this->___ptr_1 = ((int32_t)((int32_t)L_20+(int32_t)1)); } IL_00cb: { return 1; } } // System.Void System.Text.RegularExpressions.Syntax.Parser::ParseOptions(System.Text.RegularExpressions.RegexOptions&,System.Boolean) extern "C" void Parser_ParseOptions_m7767 (Parser_t1434 * __this, int32_t* ___options, bool ___negate, MethodInfo* method) { uint16_t V_0 = 0x0; { goto IL_00ef; } IL_0005: { String_t* L_0 = (__this->___pattern_0); int32_t L_1 = (__this->___ptr_1); NullCheck(L_0); uint16_t L_2 = String_get_Chars_m2541(L_0, L_1, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); V_0 = L_2; uint16_t L_3 = V_0; if (((int32_t)((int32_t)L_3-(int32_t)((int32_t)105))) == 0) { goto IL_004d; } if (((int32_t)((int32_t)L_3-(int32_t)((int32_t)105))) == 1) { goto IL_0038; } if (((int32_t)((int32_t)L_3-(int32_t)((int32_t)105))) == 2) { goto IL_0038; } if (((int32_t)((int32_t)L_3-(int32_t)((int32_t)105))) == 3) { goto IL_0038; } if (((int32_t)((int32_t)L_3-(int32_t)((int32_t)105))) == 4) { goto IL_006a; } if (((int32_t)((int32_t)L_3-(int32_t)((int32_t)105))) == 5) { goto IL_0087; } } IL_0038: { uint16_t L_4 = V_0; if ((((int32_t)L_4) == ((int32_t)((int32_t)115)))) { goto IL_00a4; } } { uint16_t L_5 = V_0; if ((((int32_t)L_5) == ((int32_t)((int32_t)120)))) { goto IL_00c2; } } { goto IL_00e0; } IL_004d: { bool L_6 = ___negate; if (!L_6) { goto IL_005f; } } { int32_t* L_7 = ___options; int32_t* L_8 = ___options; *((int32_t*)(L_7)) = (int32_t)((int32_t)((int32_t)(*((int32_t*)L_8))&(int32_t)((int32_t)-2))); goto IL_0065; } IL_005f: { int32_t* L_9 = ___options; int32_t* L_10 = ___options; *((int32_t*)(L_9)) = (int32_t)((int32_t)((int32_t)(*((int32_t*)L_10))|(int32_t)1)); } IL_0065: { goto IL_00e1; } IL_006a: { bool L_11 = ___negate; if (!L_11) { goto IL_007c; } } { int32_t* L_12 = ___options; int32_t* L_13 = ___options; *((int32_t*)(L_12)) = (int32_t)((int32_t)((int32_t)(*((int32_t*)L_13))&(int32_t)((int32_t)-3))); goto IL_0082; } IL_007c: { int32_t* L_14 = ___options; int32_t* L_15 = ___options; *((int32_t*)(L_14)) = (int32_t)((int32_t)((int32_t)(*((int32_t*)L_15))|(int32_t)2)); } IL_0082: { goto IL_00e1; } IL_0087: { bool L_16 = ___negate; if (!L_16) { goto IL_0099; } } { int32_t* L_17 = ___options; int32_t* L_18 = ___options; *((int32_t*)(L_17)) = (int32_t)((int32_t)((int32_t)(*((int32_t*)L_18))&(int32_t)((int32_t)-5))); goto IL_009f; } IL_0099: { int32_t* L_19 = ___options; int32_t* L_20 = ___options; *((int32_t*)(L_19)) = (int32_t)((int32_t)((int32_t)(*((int32_t*)L_20))|(int32_t)4)); } IL_009f: { goto IL_00e1; } IL_00a4: { bool L_21 = ___negate; if (!L_21) { goto IL_00b6; } } { int32_t* L_22 = ___options; int32_t* L_23 = ___options; *((int32_t*)(L_22)) = (int32_t)((int32_t)((int32_t)(*((int32_t*)L_23))&(int32_t)((int32_t)-17))); goto IL_00bd; } IL_00b6: { int32_t* L_24 = ___options; int32_t* L_25 = ___options; *((int32_t*)(L_24)) = (int32_t)((int32_t)((int32_t)(*((int32_t*)L_25))|(int32_t)((int32_t)16))); } IL_00bd: { goto IL_00e1; } IL_00c2: { bool L_26 = ___negate; if (!L_26) { goto IL_00d4; } } { int32_t* L_27 = ___options; int32_t* L_28 = ___options; *((int32_t*)(L_27)) = (int32_t)((int32_t)((int32_t)(*((int32_t*)L_28))&(int32_t)((int32_t)-33))); goto IL_00db; } IL_00d4: { int32_t* L_29 = ___options; int32_t* L_30 = ___options; *((int32_t*)(L_29)) = (int32_t)((int32_t)((int32_t)(*((int32_t*)L_30))|(int32_t)((int32_t)32))); } IL_00db: { goto IL_00e1; } IL_00e0: { return; } IL_00e1: { int32_t L_31 = (__this->___ptr_1); __this->___ptr_1 = ((int32_t)((int32_t)L_31+(int32_t)1)); } IL_00ef: { goto IL_0005; } } // System.Text.RegularExpressions.Syntax.Expression System.Text.RegularExpressions.Syntax.Parser::ParseCharacterClass(System.Text.RegularExpressions.RegexOptions) extern TypeInfo* ObjectU5BU5D_t164_il2cpp_TypeInfo_var; extern "C" Expression_t1438 * Parser_ParseCharacterClass_m7768 (Parser_t1434 * __this, int32_t ___options, MethodInfo* method) { static bool Parser_ParseCharacterClass_m7768_init; if (!Parser_ParseCharacterClass_m7768_init) { ObjectU5BU5D_t164_il2cpp_TypeInfo_var = il2cpp_codegen_class_from_type(&ObjectU5BU5D_t164_0_0_0); Parser_ParseCharacterClass_m7768_init = true; } bool V_0 = false; bool V_1 = false; CharacterClass_t1454 * V_2 = {0}; int32_t V_3 = 0; int32_t V_4 = 0; bool V_5 = false; bool V_6 = false; int32_t V_7 = 0; CharacterClass_t1454 * G_B24_0 = {0}; CharacterClass_t1454 * G_B23_0 = {0}; int32_t G_B25_0 = 0; CharacterClass_t1454 * G_B25_1 = {0}; CharacterClass_t1454 * G_B28_0 = {0}; CharacterClass_t1454 * G_B27_0 = {0}; int32_t G_B29_0 = 0; CharacterClass_t1454 * G_B29_1 = {0}; CharacterClass_t1454 * G_B32_0 = {0}; CharacterClass_t1454 * G_B31_0 = {0}; int32_t G_B33_0 = 0; CharacterClass_t1454 * G_B33_1 = {0}; { V_0 = 0; String_t* L_0 = (__this->___pattern_0); int32_t L_1 = (__this->___ptr_1); NullCheck(L_0); uint16_t L_2 = String_get_Chars_m2541(L_0, L_1, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((!(((uint32_t)L_2) == ((uint32_t)((int32_t)94))))) { goto IL_002a; } } { V_0 = 1; int32_t L_3 = (__this->___ptr_1); __this->___ptr_1 = ((int32_t)((int32_t)L_3+(int32_t)1)); } IL_002a: { int32_t L_4 = ___options; bool L_5 = Parser_IsECMAScript_m7785(NULL /*static, unused*/, L_4, /*hidden argument*/&Parser_IsECMAScript_m7785_MethodInfo); V_1 = L_5; bool L_6 = V_0; int32_t L_7 = ___options; bool L_8 = Parser_IsIgnoreCase_m7780(NULL /*static, unused*/, L_7, /*hidden argument*/&Parser_IsIgnoreCase_m7780_MethodInfo); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&CharacterClass_t1454_il2cpp_TypeInfo)); CharacterClass_t1454 * L_9 = (CharacterClass_t1454 *)il2cpp_codegen_object_new (InitializedTypeInfo(&CharacterClass_t1454_il2cpp_TypeInfo)); CharacterClass__ctor_m7880(L_9, L_6, L_8, /*hidden argument*/&CharacterClass__ctor_m7880_MethodInfo); V_2 = L_9; String_t* L_10 = (__this->___pattern_0); int32_t L_11 = (__this->___ptr_1); NullCheck(L_10); uint16_t L_12 = String_get_Chars_m2541(L_10, L_11, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((!(((uint32_t)L_12) == ((uint32_t)((int32_t)93))))) { goto IL_006c; } } { CharacterClass_t1454 * L_13 = V_2; NullCheck(L_13); CharacterClass_AddCharacter_m7884(L_13, ((int32_t)93), /*hidden argument*/&CharacterClass_AddCharacter_m7884_MethodInfo); int32_t L_14 = (__this->___ptr_1); __this->___ptr_1 = ((int32_t)((int32_t)L_14+(int32_t)1)); } IL_006c: { V_3 = (-1); V_4 = (-1); V_5 = 0; V_6 = 0; goto IL_027f; } IL_007c: { String_t* L_15 = (__this->___pattern_0); int32_t L_16 = (__this->___ptr_1); int32_t L_17 = L_16; V_7 = L_17; __this->___ptr_1 = ((int32_t)((int32_t)L_17+(int32_t)1)); int32_t L_18 = V_7; NullCheck(L_15); uint16_t L_19 = String_get_Chars_m2541(L_15, L_18, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); V_3 = L_19; int32_t L_20 = V_3; if ((!(((uint32_t)L_20) == ((uint32_t)((int32_t)93))))) { goto IL_00ab; } } { V_6 = 1; goto IL_0295; } IL_00ab: { int32_t L_21 = V_3; if ((!(((uint32_t)L_21) == ((uint32_t)((int32_t)45))))) { goto IL_00ca; } } { int32_t L_22 = V_4; if ((((int32_t)L_22) < ((int32_t)0))) { goto IL_00ca; } } { bool L_23 = V_5; if (L_23) { goto IL_00ca; } } { V_5 = 1; goto IL_027f; } IL_00ca: { int32_t L_24 = V_3; if ((!(((uint32_t)L_24) == ((uint32_t)((int32_t)92))))) { goto IL_0212; } } { int32_t L_25 = Parser_ParseEscape_m7772(__this, /*hidden argument*/&Parser_ParseEscape_m7772_MethodInfo); V_3 = L_25; int32_t L_26 = V_3; if ((((int32_t)L_26) < ((int32_t)0))) { goto IL_00e5; } } { goto IL_0212; } IL_00e5: { String_t* L_27 = (__this->___pattern_0); int32_t L_28 = (__this->___ptr_1); int32_t L_29 = L_28; V_7 = L_29; __this->___ptr_1 = ((int32_t)((int32_t)L_29+(int32_t)1)); int32_t L_30 = V_7; NullCheck(L_27); uint16_t L_31 = String_get_Chars_m2541(L_27, L_30, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); V_3 = L_31; int32_t L_32 = V_3; V_7 = L_32; int32_t L_33 = V_7; if (((int32_t)((int32_t)L_33-(int32_t)((int32_t)80))) == 0) { goto IL_01d1; } if (((int32_t)((int32_t)L_33-(int32_t)((int32_t)80))) == 1) { goto IL_0121; } if (((int32_t)((int32_t)L_33-(int32_t)((int32_t)80))) == 2) { goto IL_0121; } if (((int32_t)((int32_t)L_33-(int32_t)((int32_t)80))) == 3) { goto IL_01b3; } } IL_0121: { int32_t L_34 = V_7; if (((int32_t)((int32_t)L_34-(int32_t)((int32_t)112))) == 0) { goto IL_01d1; } if (((int32_t)((int32_t)L_34-(int32_t)((int32_t)112))) == 1) { goto IL_013b; } if (((int32_t)((int32_t)L_34-(int32_t)((int32_t)112))) == 2) { goto IL_013b; } if (((int32_t)((int32_t)L_34-(int32_t)((int32_t)112))) == 3) { goto IL_01b3; } } IL_013b: { int32_t L_35 = V_7; if (((int32_t)((int32_t)L_35-(int32_t)((int32_t)98))) == 0) { goto IL_0171; } if (((int32_t)((int32_t)L_35-(int32_t)((int32_t)98))) == 1) { goto IL_0151; } if (((int32_t)((int32_t)L_35-(int32_t)((int32_t)98))) == 2) { goto IL_0178; } } IL_0151: { int32_t L_36 = V_7; if ((((int32_t)L_36) == ((int32_t)((int32_t)68)))) { goto IL_0178; } } { int32_t L_37 = V_7; if ((((int32_t)L_37) == ((int32_t)((int32_t)87)))) { goto IL_0196; } } { int32_t L_38 = V_7; if ((((int32_t)L_38) == ((int32_t)((int32_t)119)))) { goto IL_0196; } } { goto IL_01e7; } IL_0171: { V_3 = 8; goto IL_0212; } IL_0178: { CharacterClass_t1454 * L_39 = V_2; bool L_40 = V_1; G_B23_0 = L_39; if (!L_40) { G_B24_0 = L_39; goto IL_0186; } } { G_B25_0 = ((int32_t)9); G_B25_1 = G_B23_0; goto IL_0187; } IL_0186: { G_B25_0 = 4; G_B25_1 = G_B24_0; } IL_0187: { int32_t L_41 = V_3; NullCheck(G_B25_1); CharacterClass_AddCategory_m7883(G_B25_1, G_B25_0, ((((int32_t)L_41) == ((int32_t)((int32_t)68)))? 1 : 0), /*hidden argument*/&CharacterClass_AddCategory_m7883_MethodInfo); goto IL_01ec; } IL_0196: { CharacterClass_t1454 * L_42 = V_2; bool L_43 = V_1; G_B27_0 = L_42; if (!L_43) { G_B28_0 = L_42; goto IL_01a3; } } { G_B29_0 = 8; G_B29_1 = G_B27_0; goto IL_01a4; } IL_01a3: { G_B29_0 = 3; G_B29_1 = G_B28_0; } IL_01a4: { int32_t L_44 = V_3; NullCheck(G_B29_1); CharacterClass_AddCategory_m7883(G_B29_1, G_B29_0, ((((int32_t)L_44) == ((int32_t)((int32_t)87)))? 1 : 0), /*hidden argument*/&CharacterClass_AddCategory_m7883_MethodInfo); goto IL_01ec; } IL_01b3: { CharacterClass_t1454 * L_45 = V_2; bool L_46 = V_1; G_B31_0 = L_45; if (!L_46) { G_B32_0 = L_45; goto IL_01c1; } } { G_B33_0 = ((int32_t)10); G_B33_1 = G_B31_0; goto IL_01c2; } IL_01c1: { G_B33_0 = 5; G_B33_1 = G_B32_0; } IL_01c2: { int32_t L_47 = V_3; NullCheck(G_B33_1); CharacterClass_AddCategory_m7883(G_B33_1, G_B33_0, ((((int32_t)L_47) == ((int32_t)((int32_t)83)))? 1 : 0), /*hidden argument*/&CharacterClass_AddCategory_m7883_MethodInfo); goto IL_01ec; } IL_01d1: { CharacterClass_t1454 * L_48 = V_2; uint16_t L_49 = Parser_ParseUnicodeCategory_m7770(__this, /*hidden argument*/&Parser_ParseUnicodeCategory_m7770_MethodInfo); int32_t L_50 = V_3; NullCheck(L_48); CharacterClass_AddCategory_m7883(L_48, L_49, ((((int32_t)L_50) == ((int32_t)((int32_t)80)))? 1 : 0), /*hidden argument*/&CharacterClass_AddCategory_m7883_MethodInfo); goto IL_01ec; } IL_01e7: { goto IL_0212; } IL_01ec: { bool L_51 = V_5; if (!L_51) { goto IL_020a; } } { int32_t L_52 = V_3; int32_t L_53 = L_52; Object_t * L_54 = Box(InitializedTypeInfo(&Int32_t141_il2cpp_TypeInfo), &L_53); IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); String_t* L_55 = String_Concat_m495(NULL /*static, unused*/, (String_t*) &_stringLiteral875, L_54, /*hidden argument*/&String_Concat_m495_MethodInfo); ArgumentException_t521 * L_56 = Parser_NewParseException_m7786(__this, L_55, /*hidden argument*/&Parser_NewParseException_m7786_MethodInfo); il2cpp_codegen_raise_exception(L_56); } IL_020a: { V_4 = (-1); goto IL_027f; } IL_0212: { bool L_57 = V_5; if (!L_57) { goto IL_0274; } } { int32_t L_58 = V_3; int32_t L_59 = V_4; if ((((int32_t)L_58) >= ((int32_t)L_59))) { goto IL_025e; } } { ObjectU5BU5D_t164* L_60 = ((ObjectU5BU5D_t164*)SZArrayNew(ObjectU5BU5D_t164_il2cpp_TypeInfo_var, 5)); NullCheck(L_60); IL2CPP_ARRAY_BOUNDS_CHECK(L_60, 0); ArrayElementTypeCheck (L_60, (String_t*) &_stringLiteral550); *((Object_t **)(Object_t **)SZArrayLdElema(L_60, 0)) = (Object_t *)(String_t*) &_stringLiteral550; ObjectU5BU5D_t164* L_61 = L_60; int32_t L_62 = V_4; int32_t L_63 = L_62; Object_t * L_64 = Box(InitializedTypeInfo(&Int32_t141_il2cpp_TypeInfo), &L_63); NullCheck(L_61); IL2CPP_ARRAY_BOUNDS_CHECK(L_61, 1); ArrayElementTypeCheck (L_61, L_64); *((Object_t **)(Object_t **)SZArrayLdElema(L_61, 1)) = (Object_t *)L_64; ObjectU5BU5D_t164* L_65 = L_61; NullCheck(L_65); IL2CPP_ARRAY_BOUNDS_CHECK(L_65, 2); ArrayElementTypeCheck (L_65, (String_t*) &_stringLiteral433); *((Object_t **)(Object_t **)SZArrayLdElema(L_65, 2)) = (Object_t *)(String_t*) &_stringLiteral433; ObjectU5BU5D_t164* L_66 = L_65; int32_t L_67 = V_3; int32_t L_68 = L_67; Object_t * L_69 = Box(InitializedTypeInfo(&Int32_t141_il2cpp_TypeInfo), &L_68); NullCheck(L_66); IL2CPP_ARRAY_BOUNDS_CHECK(L_66, 3); ArrayElementTypeCheck (L_66, L_69); *((Object_t **)(Object_t **)SZArrayLdElema(L_66, 3)) = (Object_t *)L_69; ObjectU5BU5D_t164* L_70 = L_66; NullCheck(L_70); IL2CPP_ARRAY_BOUNDS_CHECK(L_70, 4); ArrayElementTypeCheck (L_70, (String_t*) &_stringLiteral876); *((Object_t **)(Object_t **)SZArrayLdElema(L_70, 4)) = (Object_t *)(String_t*) &_stringLiteral876; IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); String_t* L_71 = String_Concat_m621(NULL /*static, unused*/, L_70, /*hidden argument*/&String_Concat_m621_MethodInfo); ArgumentException_t521 * L_72 = Parser_NewParseException_m7786(__this, L_71, /*hidden argument*/&Parser_NewParseException_m7786_MethodInfo); il2cpp_codegen_raise_exception(L_72); } IL_025e: { CharacterClass_t1454 * L_73 = V_2; int32_t L_74 = V_4; int32_t L_75 = V_3; NullCheck(L_73); CharacterClass_AddRange_m7885(L_73, (((uint16_t)L_74)), (((uint16_t)L_75)), /*hidden argument*/&CharacterClass_AddRange_m7885_MethodInfo); V_4 = (-1); V_5 = 0; goto IL_027f; } IL_0274: { CharacterClass_t1454 * L_76 = V_2; int32_t L_77 = V_3; NullCheck(L_76); CharacterClass_AddCharacter_m7884(L_76, (((uint16_t)L_77)), /*hidden argument*/&CharacterClass_AddCharacter_m7884_MethodInfo); int32_t L_78 = V_3; V_4 = L_78; } IL_027f: { int32_t L_79 = (__this->___ptr_1); String_t* L_80 = (__this->___pattern_0); NullCheck(L_80); int32_t L_81 = String_get_Length_m694(L_80, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((((int32_t)L_79) < ((int32_t)L_81))) { goto IL_007c; } } IL_0295: { bool L_82 = V_6; if (L_82) { goto IL_02a8; } } { ArgumentException_t521 * L_83 = Parser_NewParseException_m7786(__this, (String_t*) &_stringLiteral877, /*hidden argument*/&Parser_NewParseException_m7786_MethodInfo); il2cpp_codegen_raise_exception(L_83); } IL_02a8: { bool L_84 = V_5; if (!L_84) { goto IL_02b7; } } { CharacterClass_t1454 * L_85 = V_2; NullCheck(L_85); CharacterClass_AddCharacter_m7884(L_85, ((int32_t)45), /*hidden argument*/&CharacterClass_AddCharacter_m7884_MethodInfo); } IL_02b7: { CharacterClass_t1454 * L_86 = V_2; return L_86; } } // System.Boolean System.Text.RegularExpressions.Syntax.Parser::ParseRepetitionBounds(System.Int32&,System.Int32&,System.Text.RegularExpressions.RegexOptions) extern "C" bool Parser_ParseRepetitionBounds_m7769 (Parser_t1434 * __this, int32_t* ___min, int32_t* ___max, int32_t ___options, MethodInfo* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; uint16_t V_3 = 0x0; { int32_t* L_0 = ___min; int32_t* L_1 = ___max; int32_t L_2 = 0; V_2 = L_2; *((int32_t*)(L_1)) = (int32_t)L_2; int32_t L_3 = V_2; *((int32_t*)(L_0)) = (int32_t)L_3; int32_t L_4 = ___options; bool L_5 = Parser_IsIgnorePatternWhitespace_m7784(NULL /*static, unused*/, L_4, /*hidden argument*/&Parser_IsIgnorePatternWhitespace_m7784_MethodInfo); Parser_ConsumeWhitespace_m7777(__this, L_5, /*hidden argument*/&Parser_ConsumeWhitespace_m7777_MethodInfo); String_t* L_6 = (__this->___pattern_0); int32_t L_7 = (__this->___ptr_1); NullCheck(L_6); uint16_t L_8 = String_get_Chars_m2541(L_6, L_7, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((!(((uint32_t)L_8) == ((uint32_t)((int32_t)44))))) { goto IL_0033; } } { V_0 = (-1); goto IL_004a; } IL_0033: { int32_t L_9 = Parser_ParseNumber_m7775(__this, ((int32_t)10), 1, 0, /*hidden argument*/&Parser_ParseNumber_m7775_MethodInfo); V_0 = L_9; int32_t L_10 = ___options; bool L_11 = Parser_IsIgnorePatternWhitespace_m7784(NULL /*static, unused*/, L_10, /*hidden argument*/&Parser_IsIgnorePatternWhitespace_m7784_MethodInfo); Parser_ConsumeWhitespace_m7777(__this, L_11, /*hidden argument*/&Parser_ConsumeWhitespace_m7777_MethodInfo); } IL_004a: { String_t* L_12 = (__this->___pattern_0); int32_t L_13 = (__this->___ptr_1); int32_t L_14 = L_13; V_2 = L_14; __this->___ptr_1 = ((int32_t)((int32_t)L_14+(int32_t)1)); int32_t L_15 = V_2; NullCheck(L_12); uint16_t L_16 = String_get_Chars_m2541(L_12, L_15, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); V_3 = L_16; uint16_t L_17 = V_3; if ((((int32_t)L_17) == ((int32_t)((int32_t)44)))) { goto IL_0083; } } { uint16_t L_18 = V_3; if ((((int32_t)L_18) == ((int32_t)((int32_t)125)))) { goto IL_007c; } } { goto IL_00d0; } IL_007c: { int32_t L_19 = V_0; V_1 = L_19; goto IL_00d2; } IL_0083: { int32_t L_20 = ___options; bool L_21 = Parser_IsIgnorePatternWhitespace_m7784(NULL /*static, unused*/, L_20, /*hidden argument*/&Parser_IsIgnorePatternWhitespace_m7784_MethodInfo); Parser_ConsumeWhitespace_m7777(__this, L_21, /*hidden argument*/&Parser_ConsumeWhitespace_m7777_MethodInfo); int32_t L_22 = Parser_ParseNumber_m7775(__this, ((int32_t)10), 1, 0, /*hidden argument*/&Parser_ParseNumber_m7775_MethodInfo); V_1 = L_22; int32_t L_23 = ___options; bool L_24 = Parser_IsIgnorePatternWhitespace_m7784(NULL /*static, unused*/, L_23, /*hidden argument*/&Parser_IsIgnorePatternWhitespace_m7784_MethodInfo); Parser_ConsumeWhitespace_m7777(__this, L_24, /*hidden argument*/&Parser_ConsumeWhitespace_m7777_MethodInfo); String_t* L_25 = (__this->___pattern_0); int32_t L_26 = (__this->___ptr_1); int32_t L_27 = L_26; V_2 = L_27; __this->___ptr_1 = ((int32_t)((int32_t)L_27+(int32_t)1)); int32_t L_28 = V_2; NullCheck(L_25); uint16_t L_29 = String_get_Chars_m2541(L_25, L_28, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((((int32_t)L_29) == ((int32_t)((int32_t)125)))) { goto IL_00cb; } } { return 0; } IL_00cb: { goto IL_00d2; } IL_00d0: { return 0; } IL_00d2: { int32_t L_30 = V_0; if ((((int32_t)L_30) > ((int32_t)((int32_t)2147483647)))) { goto IL_00e8; } } { int32_t L_31 = V_1; if ((((int32_t)L_31) <= ((int32_t)((int32_t)2147483647)))) { goto IL_00f4; } } IL_00e8: { ArgumentException_t521 * L_32 = Parser_NewParseException_m7786(__this, (String_t*) &_stringLiteral878, /*hidden argument*/&Parser_NewParseException_m7786_MethodInfo); il2cpp_codegen_raise_exception(L_32); } IL_00f4: { int32_t L_33 = V_1; if ((((int32_t)L_33) < ((int32_t)0))) { goto IL_010e; } } { int32_t L_34 = V_1; int32_t L_35 = V_0; if ((((int32_t)L_34) >= ((int32_t)L_35))) { goto IL_010e; } } { ArgumentException_t521 * L_36 = Parser_NewParseException_m7786(__this, (String_t*) &_stringLiteral879, /*hidden argument*/&Parser_NewParseException_m7786_MethodInfo); il2cpp_codegen_raise_exception(L_36); } IL_010e: { int32_t* L_37 = ___min; int32_t L_38 = V_0; *((int32_t*)(L_37)) = (int32_t)L_38; int32_t L_39 = V_1; if ((((int32_t)L_39) <= ((int32_t)0))) { goto IL_0120; } } { int32_t* L_40 = ___max; int32_t L_41 = V_1; *((int32_t*)(L_40)) = (int32_t)L_41; goto IL_0127; } IL_0120: { int32_t* L_42 = ___max; *((int32_t*)(L_42)) = (int32_t)((int32_t)2147483647); } IL_0127: { return 1; } } // System.Text.RegularExpressions.Category System.Text.RegularExpressions.Syntax.Parser::ParseUnicodeCategory() extern "C" uint16_t Parser_ParseUnicodeCategory_m7770 (Parser_t1434 * __this, MethodInfo* method) { String_t* V_0 = {0}; uint16_t V_1 = {0}; int32_t V_2 = 0; { String_t* L_0 = (__this->___pattern_0); int32_t L_1 = (__this->___ptr_1); int32_t L_2 = L_1; V_2 = L_2; __this->___ptr_1 = ((int32_t)((int32_t)L_2+(int32_t)1)); int32_t L_3 = V_2; NullCheck(L_0); uint16_t L_4 = String_get_Chars_m2541(L_0, L_3, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((((int32_t)L_4) == ((int32_t)((int32_t)123)))) { goto IL_002f; } } { ArgumentException_t521 * L_5 = Parser_NewParseException_m7786(__this, (String_t*) &_stringLiteral880, /*hidden argument*/&Parser_NewParseException_m7786_MethodInfo); il2cpp_codegen_raise_exception(L_5); } IL_002f: { String_t* L_6 = (__this->___pattern_0); int32_t* L_7 = &(__this->___ptr_1); String_t* L_8 = Parser_ParseName_m7761(NULL /*static, unused*/, L_6, L_7, /*hidden argument*/&Parser_ParseName_m7761_MethodInfo); V_0 = L_8; String_t* L_9 = V_0; if (L_9) { goto IL_0053; } } { ArgumentException_t521 * L_10 = Parser_NewParseException_m7786(__this, (String_t*) &_stringLiteral880, /*hidden argument*/&Parser_NewParseException_m7786_MethodInfo); il2cpp_codegen_raise_exception(L_10); } IL_0053: { String_t* L_11 = V_0; uint16_t L_12 = CategoryUtils_CategoryFromName_m7623(NULL /*static, unused*/, L_11, /*hidden argument*/&CategoryUtils_CategoryFromName_m7623_MethodInfo); V_1 = L_12; uint16_t L_13 = V_1; if (L_13) { goto IL_0077; } } { String_t* L_14 = V_0; IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); String_t* L_15 = String_Concat_m554(NULL /*static, unused*/, (String_t*) &_stringLiteral881, L_14, (String_t*) &_stringLiteral402, /*hidden argument*/&String_Concat_m554_MethodInfo); ArgumentException_t521 * L_16 = Parser_NewParseException_m7786(__this, L_15, /*hidden argument*/&Parser_NewParseException_m7786_MethodInfo); il2cpp_codegen_raise_exception(L_16); } IL_0077: { String_t* L_17 = (__this->___pattern_0); int32_t L_18 = (__this->___ptr_1); int32_t L_19 = L_18; V_2 = L_19; __this->___ptr_1 = ((int32_t)((int32_t)L_19+(int32_t)1)); int32_t L_20 = V_2; NullCheck(L_17); uint16_t L_21 = String_get_Chars_m2541(L_17, L_20, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((((int32_t)L_21) == ((int32_t)((int32_t)125)))) { goto IL_00a6; } } { ArgumentException_t521 * L_22 = Parser_NewParseException_m7786(__this, (String_t*) &_stringLiteral880, /*hidden argument*/&Parser_NewParseException_m7786_MethodInfo); il2cpp_codegen_raise_exception(L_22); } IL_00a6: { uint16_t L_23 = V_1; return L_23; } } // System.Text.RegularExpressions.Syntax.Expression System.Text.RegularExpressions.Syntax.Parser::ParseSpecial(System.Text.RegularExpressions.RegexOptions) extern "C" Expression_t1438 * Parser_ParseSpecial_m7771 (Parser_t1434 * __this, int32_t ___options, MethodInfo* method) { int32_t V_0 = 0; bool V_1 = false; Expression_t1438 * V_2 = {0}; int32_t V_3 = 0; Reference_t1452 * V_4 = {0}; uint16_t V_5 = 0x0; String_t* V_6 = {0}; Reference_t1452 * V_7 = {0}; int32_t V_8 = 0; uint16_t V_9 = 0x0; int32_t G_B11_0 = 0; int32_t G_B15_0 = 0; int32_t G_B19_0 = 0; int32_t G_B24_0 = 0; int32_t G_B28_0 = 0; int32_t G_B32_0 = 0; { int32_t L_0 = (__this->___ptr_1); V_0 = L_0; int32_t L_1 = ___options; bool L_2 = Parser_IsECMAScript_m7785(NULL /*static, unused*/, L_1, /*hidden argument*/&Parser_IsECMAScript_m7785_MethodInfo); V_1 = L_2; V_2 = (Expression_t1438 *)NULL; String_t* L_3 = (__this->___pattern_0); int32_t L_4 = (__this->___ptr_1); int32_t L_5 = L_4; V_8 = L_5; __this->___ptr_1 = ((int32_t)((int32_t)L_5+(int32_t)1)); int32_t L_6 = V_8; NullCheck(L_3); uint16_t L_7 = String_get_Chars_m2541(L_3, L_6, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); V_9 = L_7; uint16_t L_8 = V_9; if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 0) { goto IL_0229; } if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 1) { goto IL_0229; } if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 2) { goto IL_0229; } if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 3) { goto IL_0229; } if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 4) { goto IL_0229; } if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 5) { goto IL_0229; } if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 6) { goto IL_0229; } if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 7) { goto IL_0229; } if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 8) { goto IL_0229; } if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 9) { goto IL_0096; } if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 10) { goto IL_0096; } if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 11) { goto IL_0096; } if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 12) { goto IL_0096; } if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 13) { goto IL_0096; } if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 14) { goto IL_0096; } if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 15) { goto IL_0096; } if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 16) { goto IL_01e0; } if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 17) { goto IL_021c; } if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 18) { goto IL_0096; } if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 19) { goto IL_0181; } if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 20) { goto IL_0096; } if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 21) { goto IL_0096; } if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 22) { goto IL_0204; } } IL_0096: { uint16_t L_9 = V_9; if (((int32_t)((int32_t)L_9-(int32_t)((int32_t)80))) == 0) { goto IL_01ce; } if (((int32_t)((int32_t)L_9-(int32_t)((int32_t)80))) == 1) { goto IL_00b0; } if (((int32_t)((int32_t)L_9-(int32_t)((int32_t)80))) == 2) { goto IL_00b0; } if (((int32_t)((int32_t)L_9-(int32_t)((int32_t)80))) == 3) { goto IL_01b4; } } IL_00b0: { uint16_t L_10 = V_9; if (((int32_t)((int32_t)L_10-(int32_t)((int32_t)87))) == 0) { goto IL_019b; } if (((int32_t)((int32_t)L_10-(int32_t)((int32_t)87))) == 1) { goto IL_00ca; } if (((int32_t)((int32_t)L_10-(int32_t)((int32_t)87))) == 2) { goto IL_00ca; } if (((int32_t)((int32_t)L_10-(int32_t)((int32_t)87))) == 3) { goto IL_01ec; } } IL_00ca: { uint16_t L_11 = V_9; if (((int32_t)((int32_t)L_11-(int32_t)((int32_t)112))) == 0) { goto IL_016f; } if (((int32_t)((int32_t)L_11-(int32_t)((int32_t)112))) == 1) { goto IL_00e4; } if (((int32_t)((int32_t)L_11-(int32_t)((int32_t)112))) == 2) { goto IL_00e4; } if (((int32_t)((int32_t)L_11-(int32_t)((int32_t)112))) == 3) { goto IL_0155; } } IL_00e4: { uint16_t L_12 = V_9; if (((int32_t)((int32_t)L_12-(int32_t)((int32_t)119))) == 0) { goto IL_013c; } if (((int32_t)((int32_t)L_12-(int32_t)((int32_t)119))) == 1) { goto IL_00fe; } if (((int32_t)((int32_t)L_12-(int32_t)((int32_t)119))) == 2) { goto IL_00fe; } if (((int32_t)((int32_t)L_12-(int32_t)((int32_t)119))) == 3) { goto IL_01f8; } } IL_00fe: { uint16_t L_13 = V_9; if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)98))) == 0) { goto IL_0210; } if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)98))) == 1) { goto IL_0114; } if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)98))) == 2) { goto IL_0122; } } IL_0114: { uint16_t L_14 = V_9; if ((((int32_t)L_14) == ((int32_t)((int32_t)107)))) { goto IL_027c; } } { goto IL_0328; } IL_0122: { bool L_15 = V_1; if (!L_15) { goto IL_012f; } } { G_B11_0 = ((int32_t)9); goto IL_0130; } IL_012f: { G_B11_0 = 4; } IL_0130: { IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&CharacterClass_t1454_il2cpp_TypeInfo)); CharacterClass_t1454 * L_16 = (CharacterClass_t1454 *)il2cpp_codegen_object_new (InitializedTypeInfo(&CharacterClass_t1454_il2cpp_TypeInfo)); CharacterClass__ctor_m7881(L_16, G_B11_0, 0, /*hidden argument*/&CharacterClass__ctor_m7881_MethodInfo); V_2 = L_16; goto IL_032f; } IL_013c: { bool L_17 = V_1; if (!L_17) { goto IL_0148; } } { G_B15_0 = 8; goto IL_0149; } IL_0148: { G_B15_0 = 3; } IL_0149: { IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&CharacterClass_t1454_il2cpp_TypeInfo)); CharacterClass_t1454 * L_18 = (CharacterClass_t1454 *)il2cpp_codegen_object_new (InitializedTypeInfo(&CharacterClass_t1454_il2cpp_TypeInfo)); CharacterClass__ctor_m7881(L_18, G_B15_0, 0, /*hidden argument*/&CharacterClass__ctor_m7881_MethodInfo); V_2 = L_18; goto IL_032f; } IL_0155: { bool L_19 = V_1; if (!L_19) { goto IL_0162; } } { G_B19_0 = ((int32_t)10); goto IL_0163; } IL_0162: { G_B19_0 = 5; } IL_0163: { IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&CharacterClass_t1454_il2cpp_TypeInfo)); CharacterClass_t1454 * L_20 = (CharacterClass_t1454 *)il2cpp_codegen_object_new (InitializedTypeInfo(&CharacterClass_t1454_il2cpp_TypeInfo)); CharacterClass__ctor_m7881(L_20, G_B19_0, 0, /*hidden argument*/&CharacterClass__ctor_m7881_MethodInfo); V_2 = L_20; goto IL_032f; } IL_016f: { uint16_t L_21 = Parser_ParseUnicodeCategory_m7770(__this, /*hidden argument*/&Parser_ParseUnicodeCategory_m7770_MethodInfo); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&CharacterClass_t1454_il2cpp_TypeInfo)); CharacterClass_t1454 * L_22 = (CharacterClass_t1454 *)il2cpp_codegen_object_new (InitializedTypeInfo(&CharacterClass_t1454_il2cpp_TypeInfo)); CharacterClass__ctor_m7881(L_22, L_21, 0, /*hidden argument*/&CharacterClass__ctor_m7881_MethodInfo); V_2 = L_22; goto IL_032f; } IL_0181: { bool L_23 = V_1; if (!L_23) { goto IL_018e; } } { G_B24_0 = ((int32_t)9); goto IL_018f; } IL_018e: { G_B24_0 = 4; } IL_018f: { IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&CharacterClass_t1454_il2cpp_TypeInfo)); CharacterClass_t1454 * L_24 = (CharacterClass_t1454 *)il2cpp_codegen_object_new (InitializedTypeInfo(&CharacterClass_t1454_il2cpp_TypeInfo)); CharacterClass__ctor_m7881(L_24, G_B24_0, 1, /*hidden argument*/&CharacterClass__ctor_m7881_MethodInfo); V_2 = L_24; goto IL_032f; } IL_019b: { bool L_25 = V_1; if (!L_25) { goto IL_01a7; } } { G_B28_0 = 8; goto IL_01a8; } IL_01a7: { G_B28_0 = 3; } IL_01a8: { IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&CharacterClass_t1454_il2cpp_TypeInfo)); CharacterClass_t1454 * L_26 = (CharacterClass_t1454 *)il2cpp_codegen_object_new (InitializedTypeInfo(&CharacterClass_t1454_il2cpp_TypeInfo)); CharacterClass__ctor_m7881(L_26, G_B28_0, 1, /*hidden argument*/&CharacterClass__ctor_m7881_MethodInfo); V_2 = L_26; goto IL_032f; } IL_01b4: { bool L_27 = V_1; if (!L_27) { goto IL_01c1; } } { G_B32_0 = ((int32_t)10); goto IL_01c2; } IL_01c1: { G_B32_0 = 5; } IL_01c2: { IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&CharacterClass_t1454_il2cpp_TypeInfo)); CharacterClass_t1454 * L_28 = (CharacterClass_t1454 *)il2cpp_codegen_object_new (InitializedTypeInfo(&CharacterClass_t1454_il2cpp_TypeInfo)); CharacterClass__ctor_m7881(L_28, G_B32_0, 1, /*hidden argument*/&CharacterClass__ctor_m7881_MethodInfo); V_2 = L_28; goto IL_032f; } IL_01ce: { uint16_t L_29 = Parser_ParseUnicodeCategory_m7770(__this, /*hidden argument*/&Parser_ParseUnicodeCategory_m7770_MethodInfo); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&CharacterClass_t1454_il2cpp_TypeInfo)); CharacterClass_t1454 * L_30 = (CharacterClass_t1454 *)il2cpp_codegen_object_new (InitializedTypeInfo(&CharacterClass_t1454_il2cpp_TypeInfo)); CharacterClass__ctor_m7881(L_30, L_29, 1, /*hidden argument*/&CharacterClass__ctor_m7881_MethodInfo); V_2 = L_30; goto IL_032f; } IL_01e0: { PositionAssertion_t1451 * L_31 = (PositionAssertion_t1451 *)il2cpp_codegen_object_new (InitializedTypeInfo(&PositionAssertion_t1451_il2cpp_TypeInfo)); PositionAssertion__ctor_m7865(L_31, 2, /*hidden argument*/&PositionAssertion__ctor_m7865_MethodInfo); V_2 = L_31; goto IL_032f; } IL_01ec: { PositionAssertion_t1451 * L_32 = (PositionAssertion_t1451 *)il2cpp_codegen_object_new (InitializedTypeInfo(&PositionAssertion_t1451_il2cpp_TypeInfo)); PositionAssertion__ctor_m7865(L_32, 5, /*hidden argument*/&PositionAssertion__ctor_m7865_MethodInfo); V_2 = L_32; goto IL_032f; } IL_01f8: { PositionAssertion_t1451 * L_33 = (PositionAssertion_t1451 *)il2cpp_codegen_object_new (InitializedTypeInfo(&PositionAssertion_t1451_il2cpp_TypeInfo)); PositionAssertion__ctor_m7865(L_33, 6, /*hidden argument*/&PositionAssertion__ctor_m7865_MethodInfo); V_2 = L_33; goto IL_032f; } IL_0204: { PositionAssertion_t1451 * L_34 = (PositionAssertion_t1451 *)il2cpp_codegen_object_new (InitializedTypeInfo(&PositionAssertion_t1451_il2cpp_TypeInfo)); PositionAssertion__ctor_m7865(L_34, 4, /*hidden argument*/&PositionAssertion__ctor_m7865_MethodInfo); V_2 = L_34; goto IL_032f; } IL_0210: { PositionAssertion_t1451 * L_35 = (PositionAssertion_t1451 *)il2cpp_codegen_object_new (InitializedTypeInfo(&PositionAssertion_t1451_il2cpp_TypeInfo)); PositionAssertion__ctor_m7865(L_35, 8, /*hidden argument*/&PositionAssertion__ctor_m7865_MethodInfo); V_2 = L_35; goto IL_032f; } IL_021c: { PositionAssertion_t1451 * L_36 = (PositionAssertion_t1451 *)il2cpp_codegen_object_new (InitializedTypeInfo(&PositionAssertion_t1451_il2cpp_TypeInfo)); PositionAssertion__ctor_m7865(L_36, ((int32_t)9), /*hidden argument*/&PositionAssertion__ctor_m7865_MethodInfo); V_2 = L_36; goto IL_032f; } IL_0229: { int32_t L_37 = (__this->___ptr_1); __this->___ptr_1 = ((int32_t)((int32_t)L_37-(int32_t)1)); int32_t L_38 = Parser_ParseNumber_m7775(__this, ((int32_t)10), 1, 0, /*hidden argument*/&Parser_ParseNumber_m7775_MethodInfo); V_3 = L_38; int32_t L_39 = V_3; if ((((int32_t)L_39) >= ((int32_t)0))) { goto IL_0252; } } { int32_t L_40 = V_0; __this->___ptr_1 = L_40; return (Expression_t1438 *)NULL; } IL_0252: { int32_t L_41 = ___options; bool L_42 = Parser_IsIgnoreCase_m7780(NULL /*static, unused*/, L_41, /*hidden argument*/&Parser_IsIgnoreCase_m7780_MethodInfo); bool L_43 = V_1; BackslashNumber_t1453 * L_44 = (BackslashNumber_t1453 *)il2cpp_codegen_object_new (InitializedTypeInfo(&BackslashNumber_t1453_il2cpp_TypeInfo)); BackslashNumber__ctor_m7877(L_44, L_42, L_43, /*hidden argument*/&BackslashNumber__ctor_m7877_MethodInfo); V_4 = L_44; Hashtable_t1291 * L_45 = (__this->___refs_3); Reference_t1452 * L_46 = V_4; String_t* L_47 = Int32_ToString_m6944((&V_3), /*hidden argument*/&Int32_ToString_m6944_MethodInfo); NullCheck(L_45); VirtActionInvoker2< Object_t *, Object_t * >::Invoke(&Hashtable_Add_m8007_MethodInfo, L_45, L_46, L_47); Reference_t1452 * L_48 = V_4; V_2 = L_48; goto IL_032f; } IL_027c: { String_t* L_49 = (__this->___pattern_0); int32_t L_50 = (__this->___ptr_1); int32_t L_51 = L_50; V_8 = L_51; __this->___ptr_1 = ((int32_t)((int32_t)L_51+(int32_t)1)); int32_t L_52 = V_8; NullCheck(L_49); uint16_t L_53 = String_get_Chars_m2541(L_49, L_52, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); V_5 = L_53; uint16_t L_54 = V_5; if ((!(((uint32_t)L_54) == ((uint32_t)((int32_t)60))))) { goto IL_02ae; } } { V_5 = ((int32_t)62); goto IL_02c3; } IL_02ae: { uint16_t L_55 = V_5; if ((((int32_t)L_55) == ((int32_t)((int32_t)39)))) { goto IL_02c3; } } { ArgumentException_t521 * L_56 = Parser_NewParseException_m7786(__this, (String_t*) &_stringLiteral882, /*hidden argument*/&Parser_NewParseException_m7786_MethodInfo); il2cpp_codegen_raise_exception(L_56); } IL_02c3: { String_t* L_57 = Parser_ParseName_m7773(__this, /*hidden argument*/&Parser_ParseName_m7773_MethodInfo); V_6 = L_57; String_t* L_58 = V_6; if (!L_58) { goto IL_02ea; } } { String_t* L_59 = (__this->___pattern_0); int32_t L_60 = (__this->___ptr_1); NullCheck(L_59); uint16_t L_61 = String_get_Chars_m2541(L_59, L_60, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); uint16_t L_62 = V_5; if ((((int32_t)L_61) == ((int32_t)L_62))) { goto IL_02f6; } } IL_02ea: { ArgumentException_t521 * L_63 = Parser_NewParseException_m7786(__this, (String_t*) &_stringLiteral882, /*hidden argument*/&Parser_NewParseException_m7786_MethodInfo); il2cpp_codegen_raise_exception(L_63); } IL_02f6: { int32_t L_64 = (__this->___ptr_1); __this->___ptr_1 = ((int32_t)((int32_t)L_64+(int32_t)1)); int32_t L_65 = ___options; bool L_66 = Parser_IsIgnoreCase_m7780(NULL /*static, unused*/, L_65, /*hidden argument*/&Parser_IsIgnoreCase_m7780_MethodInfo); Reference_t1452 * L_67 = (Reference_t1452 *)il2cpp_codegen_object_new (InitializedTypeInfo(&Reference_t1452_il2cpp_TypeInfo)); Reference__ctor_m7870(L_67, L_66, /*hidden argument*/&Reference__ctor_m7870_MethodInfo); V_7 = L_67; Hashtable_t1291 * L_68 = (__this->___refs_3); Reference_t1452 * L_69 = V_7; String_t* L_70 = V_6; NullCheck(L_68); VirtActionInvoker2< Object_t *, Object_t * >::Invoke(&Hashtable_Add_m8007_MethodInfo, L_68, L_69, L_70); Reference_t1452 * L_71 = V_7; V_2 = L_71; goto IL_032f; } IL_0328: { V_2 = (Expression_t1438 *)NULL; goto IL_032f; } IL_032f: { Expression_t1438 * L_72 = V_2; if (L_72) { goto IL_033c; } } { int32_t L_73 = V_0; __this->___ptr_1 = L_73; } IL_033c: { Expression_t1438 * L_74 = V_2; return L_74; } } // System.Int32 System.Text.RegularExpressions.Syntax.Parser::ParseEscape() extern "C" int32_t Parser_ParseEscape_m7772 (Parser_t1434 * __this, MethodInfo* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; int32_t V_4 = 0; uint16_t V_5 = 0x0; { int32_t L_0 = (__this->___ptr_1); V_0 = L_0; int32_t L_1 = V_0; String_t* L_2 = (__this->___pattern_0); NullCheck(L_2); int32_t L_3 = String_get_Length_m694(L_2, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((((int32_t)L_1) < ((int32_t)L_3))) { goto IL_0034; } } { String_t* L_4 = (__this->___pattern_0); IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); String_t* L_5 = String_Format_m2378(NULL /*static, unused*/, (String_t*) &_stringLiteral883, L_4, /*hidden argument*/&String_Format_m2378_MethodInfo); String_t* L_6 = (__this->___pattern_0); ArgumentException_t521 * L_7 = (ArgumentException_t521 *)il2cpp_codegen_object_new (InitializedTypeInfo(&ArgumentException_t521_il2cpp_TypeInfo)); ArgumentException__ctor_m7991(L_7, L_5, L_6, /*hidden argument*/&ArgumentException__ctor_m7991_MethodInfo); il2cpp_codegen_raise_exception(L_7); } IL_0034: { String_t* L_8 = (__this->___pattern_0); int32_t L_9 = (__this->___ptr_1); int32_t L_10 = L_9; V_4 = L_10; __this->___ptr_1 = ((int32_t)((int32_t)L_10+(int32_t)1)); int32_t L_11 = V_4; NullCheck(L_8); uint16_t L_12 = String_get_Chars_m2541(L_8, L_11, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); V_5 = L_12; uint16_t L_13 = V_5; if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)110))) == 0) { goto IL_00d1; } if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)110))) == 1) { goto IL_008a; } if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)110))) == 2) { goto IL_008a; } if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)110))) == 3) { goto IL_008a; } if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)110))) == 4) { goto IL_00c8; } if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)110))) == 5) { goto IL_008a; } if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)110))) == 6) { goto IL_00c5; } if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)110))) == 7) { goto IL_0140; } if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)110))) == 8) { goto IL_00cb; } if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)110))) == 9) { goto IL_008a; } if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)110))) == 10) { goto IL_0118; } } IL_008a: { uint16_t L_14 = V_5; if (((int32_t)((int32_t)L_14-(int32_t)((int32_t)97))) == 0) { goto IL_00c3; } if (((int32_t)((int32_t)L_14-(int32_t)((int32_t)97))) == 1) { goto IL_00ac; } if (((int32_t)((int32_t)L_14-(int32_t)((int32_t)97))) == 2) { goto IL_0168; } if (((int32_t)((int32_t)L_14-(int32_t)((int32_t)97))) == 3) { goto IL_00ac; } if (((int32_t)((int32_t)L_14-(int32_t)((int32_t)97))) == 4) { goto IL_00d4; } if (((int32_t)((int32_t)L_14-(int32_t)((int32_t)97))) == 5) { goto IL_00ce; } } IL_00ac: { uint16_t L_15 = V_5; if ((((int32_t)L_15) == ((int32_t)((int32_t)48)))) { goto IL_00da; } } { uint16_t L_16 = V_5; if ((((int32_t)L_16) == ((int32_t)((int32_t)92)))) { goto IL_00d7; } } { goto IL_01a8; } IL_00c3: { return 7; } IL_00c5: { return ((int32_t)9); } IL_00c8: { return ((int32_t)13); } IL_00cb: { return ((int32_t)11); } IL_00ce: { return ((int32_t)12); } IL_00d1: { return ((int32_t)10); } IL_00d4: { return ((int32_t)27); } IL_00d7: { return ((int32_t)92); } IL_00da: { int32_t L_17 = (__this->___ptr_1); __this->___ptr_1 = ((int32_t)((int32_t)L_17-(int32_t)1)); int32_t L_18 = (__this->___ptr_1); V_2 = L_18; String_t* L_19 = (__this->___pattern_0); int32_t* L_20 = &(__this->___ptr_1); int32_t L_21 = Parser_ParseOctal_m7758(NULL /*static, unused*/, L_19, L_20, /*hidden argument*/&Parser_ParseOctal_m7758_MethodInfo); V_3 = L_21; int32_t L_22 = V_3; if ((!(((uint32_t)L_22) == ((uint32_t)(-1))))) { goto IL_0116; } } { int32_t L_23 = V_2; int32_t L_24 = (__this->___ptr_1); if ((!(((uint32_t)L_23) == ((uint32_t)L_24)))) { goto IL_0116; } } { return 0; } IL_0116: { int32_t L_25 = V_3; return L_25; } IL_0118: { String_t* L_26 = (__this->___pattern_0); int32_t* L_27 = &(__this->___ptr_1); int32_t L_28 = Parser_ParseHex_m7759(NULL /*static, unused*/, L_26, L_27, 2, /*hidden argument*/&Parser_ParseHex_m7759_MethodInfo); V_1 = L_28; int32_t L_29 = V_1; if ((((int32_t)L_29) >= ((int32_t)0))) { goto IL_013e; } } { ArgumentException_t521 * L_30 = Parser_NewParseException_m7786(__this, (String_t*) &_stringLiteral884, /*hidden argument*/&Parser_NewParseException_m7786_MethodInfo); il2cpp_codegen_raise_exception(L_30); } IL_013e: { int32_t L_31 = V_1; return L_31; } IL_0140: { String_t* L_32 = (__this->___pattern_0); int32_t* L_33 = &(__this->___ptr_1); int32_t L_34 = Parser_ParseHex_m7759(NULL /*static, unused*/, L_32, L_33, 4, /*hidden argument*/&Parser_ParseHex_m7759_MethodInfo); V_1 = L_34; int32_t L_35 = V_1; if ((((int32_t)L_35) >= ((int32_t)0))) { goto IL_0166; } } { ArgumentException_t521 * L_36 = Parser_NewParseException_m7786(__this, (String_t*) &_stringLiteral884, /*hidden argument*/&Parser_NewParseException_m7786_MethodInfo); il2cpp_codegen_raise_exception(L_36); } IL_0166: { int32_t L_37 = V_1; return L_37; } IL_0168: { String_t* L_38 = (__this->___pattern_0); int32_t L_39 = (__this->___ptr_1); int32_t L_40 = L_39; V_4 = L_40; __this->___ptr_1 = ((int32_t)((int32_t)L_40+(int32_t)1)); int32_t L_41 = V_4; NullCheck(L_38); uint16_t L_42 = String_get_Chars_m2541(L_38, L_41, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); V_1 = L_42; int32_t L_43 = V_1; if ((((int32_t)L_43) < ((int32_t)((int32_t)64)))) { goto IL_019c; } } { int32_t L_44 = V_1; if ((((int32_t)L_44) > ((int32_t)((int32_t)95)))) { goto IL_019c; } } { int32_t L_45 = V_1; return ((int32_t)((int32_t)L_45-(int32_t)((int32_t)64))); } IL_019c: { ArgumentException_t521 * L_46 = Parser_NewParseException_m7786(__this, (String_t*) &_stringLiteral885, /*hidden argument*/&Parser_NewParseException_m7786_MethodInfo); il2cpp_codegen_raise_exception(L_46); } IL_01a8: { int32_t L_47 = V_0; __this->___ptr_1 = L_47; return (-1); } } // System.String System.Text.RegularExpressions.Syntax.Parser::ParseName() extern "C" String_t* Parser_ParseName_m7773 (Parser_t1434 * __this, MethodInfo* method) { { String_t* L_0 = (__this->___pattern_0); int32_t* L_1 = &(__this->___ptr_1); String_t* L_2 = Parser_ParseName_m7761(NULL /*static, unused*/, L_0, L_1, /*hidden argument*/&Parser_ParseName_m7761_MethodInfo); return L_2; } } // System.Boolean System.Text.RegularExpressions.Syntax.Parser::IsNameChar(System.Char) extern "C" bool Parser_IsNameChar_m7774 (Object_t * __this /* static, unused */, uint16_t ___c, MethodInfo* method) { int32_t V_0 = {0}; { uint16_t L_0 = ___c; IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Char_t389_il2cpp_TypeInfo)); int32_t L_1 = Char_GetUnicodeCategory_m8199(NULL /*static, unused*/, L_0, /*hidden argument*/&Char_GetUnicodeCategory_m8199_MethodInfo); V_0 = L_1; int32_t L_2 = V_0; if ((!(((uint32_t)L_2) == ((uint32_t)3)))) { goto IL_0010; } } { return 0; } IL_0010: { int32_t L_3 = V_0; if ((!(((uint32_t)L_3) == ((uint32_t)((int32_t)18))))) { goto IL_001a; } } { return 1; } IL_001a: { uint16_t L_4 = ___c; IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Char_t389_il2cpp_TypeInfo)); bool L_5 = Char_IsLetterOrDigit_m8196(NULL /*static, unused*/, L_4, /*hidden argument*/&Char_IsLetterOrDigit_m8196_MethodInfo); return L_5; } } // System.Int32 System.Text.RegularExpressions.Syntax.Parser::ParseNumber(System.Int32,System.Int32,System.Int32) extern "C" int32_t Parser_ParseNumber_m7775 (Parser_t1434 * __this, int32_t ___b, int32_t ___min, int32_t ___max, MethodInfo* method) { { String_t* L_0 = (__this->___pattern_0); int32_t* L_1 = &(__this->___ptr_1); int32_t L_2 = ___b; int32_t L_3 = ___min; int32_t L_4 = ___max; int32_t L_5 = Parser_ParseNumber_m7760(NULL /*static, unused*/, L_0, L_1, L_2, L_3, L_4, /*hidden argument*/&Parser_ParseNumber_m7760_MethodInfo); return L_5; } } // System.Int32 System.Text.RegularExpressions.Syntax.Parser::ParseDigit(System.Char,System.Int32,System.Int32) extern "C" int32_t Parser_ParseDigit_m7776 (Object_t * __this /* static, unused */, uint16_t ___c, int32_t ___b, int32_t ___n, MethodInfo* method) { int32_t V_0 = 0; { int32_t L_0 = ___b; V_0 = L_0; int32_t L_1 = V_0; if (((int32_t)((int32_t)L_1-(int32_t)8)) == 0) { goto IL_0023; } if (((int32_t)((int32_t)L_1-(int32_t)8)) == 1) { goto IL_0016; } if (((int32_t)((int32_t)L_1-(int32_t)8)) == 2) { goto IL_003a; } } IL_0016: { int32_t L_2 = V_0; if ((((int32_t)L_2) == ((int32_t)((int32_t)16)))) { goto IL_0051; } } { goto IL_0098; } IL_0023: { uint16_t L_3 = ___c; if ((((int32_t)L_3) < ((int32_t)((int32_t)48)))) { goto IL_0038; } } { uint16_t L_4 = ___c; if ((((int32_t)L_4) > ((int32_t)((int32_t)55)))) { goto IL_0038; } } { uint16_t L_5 = ___c; return ((int32_t)((int32_t)L_5-(int32_t)((int32_t)48))); } IL_0038: { return (-1); } IL_003a: { uint16_t L_6 = ___c; if ((((int32_t)L_6) < ((int32_t)((int32_t)48)))) { goto IL_004f; } } { uint16_t L_7 = ___c; if ((((int32_t)L_7) > ((int32_t)((int32_t)57)))) { goto IL_004f; } } { uint16_t L_8 = ___c; return ((int32_t)((int32_t)L_8-(int32_t)((int32_t)48))); } IL_004f: { return (-1); } IL_0051: { uint16_t L_9 = ___c; if ((((int32_t)L_9) < ((int32_t)((int32_t)48)))) { goto IL_0066; } } { uint16_t L_10 = ___c; if ((((int32_t)L_10) > ((int32_t)((int32_t)57)))) { goto IL_0066; } } { uint16_t L_11 = ___c; return ((int32_t)((int32_t)L_11-(int32_t)((int32_t)48))); } IL_0066: { uint16_t L_12 = ___c; if ((((int32_t)L_12) < ((int32_t)((int32_t)97)))) { goto IL_007e; } } { uint16_t L_13 = ___c; if ((((int32_t)L_13) > ((int32_t)((int32_t)102)))) { goto IL_007e; } } { uint16_t L_14 = ___c; return ((int32_t)((int32_t)((int32_t)((int32_t)((int32_t)10)+(int32_t)L_14))-(int32_t)((int32_t)97))); } IL_007e: { uint16_t L_15 = ___c; if ((((int32_t)L_15) < ((int32_t)((int32_t)65)))) { goto IL_0096; } } { uint16_t L_16 = ___c; if ((((int32_t)L_16) > ((int32_t)((int32_t)70)))) { goto IL_0096; } } { uint16_t L_17 = ___c; return ((int32_t)((int32_t)((int32_t)((int32_t)((int32_t)10)+(int32_t)L_17))-(int32_t)((int32_t)65))); } IL_0096: { return (-1); } IL_0098: { return (-1); } } // System.Void System.Text.RegularExpressions.Syntax.Parser::ConsumeWhitespace(System.Boolean) extern "C" void Parser_ConsumeWhitespace_m7777 (Parser_t1434 * __this, bool ___ignore, MethodInfo* method) { int32_t V_0 = 0; { goto IL_0188; } IL_0005: { String_t* L_0 = (__this->___pattern_0); int32_t L_1 = (__this->___ptr_1); NullCheck(L_0); uint16_t L_2 = String_get_Chars_m2541(L_0, L_1, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((!(((uint32_t)L_2) == ((uint32_t)((int32_t)40))))) { goto IL_00bc; } } { int32_t L_3 = (__this->___ptr_1); String_t* L_4 = (__this->___pattern_0); NullCheck(L_4); int32_t L_5 = String_get_Length_m694(L_4, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((((int32_t)((int32_t)((int32_t)L_3+(int32_t)3))) < ((int32_t)L_5))) { goto IL_0036; } } { return; } IL_0036: { String_t* L_6 = (__this->___pattern_0); int32_t L_7 = (__this->___ptr_1); NullCheck(L_6); uint16_t L_8 = String_get_Chars_m2541(L_6, ((int32_t)((int32_t)L_7+(int32_t)1)), /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((!(((uint32_t)L_8) == ((uint32_t)((int32_t)63))))) { goto IL_006a; } } { String_t* L_9 = (__this->___pattern_0); int32_t L_10 = (__this->___ptr_1); NullCheck(L_9); uint16_t L_11 = String_get_Chars_m2541(L_9, ((int32_t)((int32_t)L_10+(int32_t)2)), /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((((int32_t)L_11) == ((int32_t)((int32_t)35)))) { goto IL_006b; } } IL_006a: { return; } IL_006b: { int32_t L_12 = (__this->___ptr_1); __this->___ptr_1 = ((int32_t)((int32_t)L_12+(int32_t)3)); goto IL_007e; } IL_007e: { int32_t L_13 = (__this->___ptr_1); String_t* L_14 = (__this->___pattern_0); NullCheck(L_14); int32_t L_15 = String_get_Length_m694(L_14, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((((int32_t)L_13) >= ((int32_t)L_15))) { goto IL_00b7; } } { String_t* L_16 = (__this->___pattern_0); int32_t L_17 = (__this->___ptr_1); int32_t L_18 = L_17; V_0 = L_18; __this->___ptr_1 = ((int32_t)((int32_t)L_18+(int32_t)1)); int32_t L_19 = V_0; NullCheck(L_16); uint16_t L_20 = String_get_Chars_m2541(L_16, L_19, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((!(((uint32_t)L_20) == ((uint32_t)((int32_t)41))))) { goto IL_007e; } } IL_00b7: { goto IL_0188; } IL_00bc: { bool L_21 = ___ignore; if (!L_21) { goto IL_011d; } } { String_t* L_22 = (__this->___pattern_0); int32_t L_23 = (__this->___ptr_1); NullCheck(L_22); uint16_t L_24 = String_get_Chars_m2541(L_22, L_23, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((!(((uint32_t)L_24) == ((uint32_t)((int32_t)35))))) { goto IL_011d; } } { goto IL_00df; } IL_00df: { int32_t L_25 = (__this->___ptr_1); String_t* L_26 = (__this->___pattern_0); NullCheck(L_26); int32_t L_27 = String_get_Length_m694(L_26, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((((int32_t)L_25) >= ((int32_t)L_27))) { goto IL_0118; } } { String_t* L_28 = (__this->___pattern_0); int32_t L_29 = (__this->___ptr_1); int32_t L_30 = L_29; V_0 = L_30; __this->___ptr_1 = ((int32_t)((int32_t)L_30+(int32_t)1)); int32_t L_31 = V_0; NullCheck(L_28); uint16_t L_32 = String_get_Chars_m2541(L_28, L_31, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((!(((uint32_t)L_32) == ((uint32_t)((int32_t)10))))) { goto IL_00df; } } IL_0118: { goto IL_0188; } IL_011d: { bool L_33 = ___ignore; if (!L_33) { goto IL_0187; } } { String_t* L_34 = (__this->___pattern_0); int32_t L_35 = (__this->___ptr_1); NullCheck(L_34); uint16_t L_36 = String_get_Chars_m2541(L_34, L_35, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Char_t389_il2cpp_TypeInfo)); bool L_37 = Char_IsWhiteSpace_m8198(NULL /*static, unused*/, L_36, /*hidden argument*/&Char_IsWhiteSpace_m8198_MethodInfo); if (!L_37) { goto IL_0187; } } { goto IL_0151; } IL_0143: { int32_t L_38 = (__this->___ptr_1); __this->___ptr_1 = ((int32_t)((int32_t)L_38+(int32_t)1)); } IL_0151: { int32_t L_39 = (__this->___ptr_1); String_t* L_40 = (__this->___pattern_0); NullCheck(L_40); int32_t L_41 = String_get_Length_m694(L_40, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((((int32_t)L_39) >= ((int32_t)L_41))) { goto IL_0182; } } { String_t* L_42 = (__this->___pattern_0); int32_t L_43 = (__this->___ptr_1); NullCheck(L_42); uint16_t L_44 = String_get_Chars_m2541(L_42, L_43, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Char_t389_il2cpp_TypeInfo)); bool L_45 = Char_IsWhiteSpace_m8198(NULL /*static, unused*/, L_44, /*hidden argument*/&Char_IsWhiteSpace_m8198_MethodInfo); if (L_45) { goto IL_0143; } } IL_0182: { goto IL_0188; } IL_0187: { return; } IL_0188: { int32_t L_46 = (__this->___ptr_1); String_t* L_47 = (__this->___pattern_0); NullCheck(L_47); int32_t L_48 = String_get_Length_m694(L_47, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((((int32_t)L_46) < ((int32_t)L_48))) { goto IL_0005; } } { return; } } // System.Void System.Text.RegularExpressions.Syntax.Parser::ResolveReferences() extern "C" void Parser_ResolveReferences_m7778 (Parser_t1434 * __this, MethodInfo* method) { int32_t V_0 = 0; Hashtable_t1291 * V_1 = {0}; ArrayList_t1304 * V_2 = {0}; CapturingGroup_t1444 * V_3 = {0}; Object_t * V_4 = {0}; CapturingGroup_t1444 * V_5 = {0}; Object_t * V_6 = {0}; CapturingGroup_t1444 * V_7 = {0}; int32_t V_8 = 0; int32_t V_9 = 0; String_t* V_10 = {0}; Expression_t1438 * V_11 = {0}; Object_t * V_12 = {0}; String_t* V_13 = {0}; BackslashNumber_t1453 * V_14 = {0}; CapturingGroup_t1444 * V_15 = {0}; Object_t * V_16 = {0}; int32_t V_17 = 0; Object_t * V_18 = {0}; Object_t * V_19 = {0}; Exception_t154 * __last_unhandled_exception = 0; NO_UNUSED_WARNING (__last_unhandled_exception); Exception_t154 * __exception_local = 0; NO_UNUSED_WARNING (__exception_local); int32_t __leave_target = 0; NO_UNUSED_WARNING (__leave_target); String_t* G_B50_0 = {0}; Parser_t1434 * G_B50_1 = {0}; String_t* G_B49_0 = {0}; Parser_t1434 * G_B49_1 = {0}; String_t* G_B51_0 = {0}; String_t* G_B51_1 = {0}; Parser_t1434 * G_B51_2 = {0}; { V_0 = 1; IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Hashtable_t1291_il2cpp_TypeInfo)); Hashtable_t1291 * L_0 = (Hashtable_t1291 *)il2cpp_codegen_object_new (InitializedTypeInfo(&Hashtable_t1291_il2cpp_TypeInfo)); Hashtable__ctor_m8183(L_0, /*hidden argument*/&Hashtable__ctor_m8183_MethodInfo); V_1 = L_0; V_2 = (ArrayList_t1304 *)NULL; ArrayList_t1304 * L_1 = (__this->___caps_2); NullCheck(L_1); Object_t * L_2 = (Object_t *)VirtFuncInvoker0< Object_t * >::Invoke(&ArrayList_GetEnumerator_m7999_MethodInfo, L_1); V_4 = L_2; } IL_0017: try { // begin try (depth: 1) { goto IL_0060; } IL_001c: { Object_t * L_3 = V_4; NullCheck(L_3); Object_t * L_4 = (Object_t *)InterfaceFuncInvoker0< Object_t * >::Invoke(&IEnumerator_get_Current_m6898_MethodInfo, L_3); V_3 = ((CapturingGroup_t1444 *)Castclass(L_4, InitializedTypeInfo(&CapturingGroup_t1444_il2cpp_TypeInfo))); CapturingGroup_t1444 * L_5 = V_3; NullCheck(L_5); String_t* L_6 = CapturingGroup_get_Name_m7817(L_5, /*hidden argument*/&CapturingGroup_get_Name_m7817_MethodInfo); if (!L_6) { goto IL_0039; } } IL_0034: { goto IL_0060; } IL_0039: { Hashtable_t1291 * L_7 = V_1; String_t* L_8 = Int32_ToString_m6944((&V_0), /*hidden argument*/&Int32_ToString_m6944_MethodInfo); CapturingGroup_t1444 * L_9 = V_3; NullCheck(L_7); VirtActionInvoker2< Object_t *, Object_t * >::Invoke(&Hashtable_Add_m8007_MethodInfo, L_7, L_8, L_9); CapturingGroup_t1444 * L_10 = V_3; int32_t L_11 = V_0; int32_t L_12 = L_11; V_0 = ((int32_t)((int32_t)L_12+(int32_t)1)); NullCheck(L_10); CapturingGroup_set_Index_m7816(L_10, L_12, /*hidden argument*/&CapturingGroup_set_Index_m7816_MethodInfo); int32_t L_13 = (__this->___num_groups_4); __this->___num_groups_4 = ((int32_t)((int32_t)L_13+(int32_t)1)); } IL_0060: { Object_t * L_14 = V_4; NullCheck(L_14); bool L_15 = (bool)InterfaceFuncInvoker0< bool >::Invoke(&IEnumerator_MoveNext_m692_MethodInfo, L_14); if (L_15) { goto IL_001c; } } IL_006c: { IL2CPP_LEAVE(0x87, FINALLY_0071); } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { __last_unhandled_exception = (Exception_t154 *)e.ex; goto FINALLY_0071; } FINALLY_0071: { // begin finally (depth: 1) { Object_t * L_16 = V_4; V_16 = ((Object_t *)IsInst(L_16, InitializedTypeInfo(&IDisposable_t153_il2cpp_TypeInfo))); Object_t * L_17 = V_16; if (L_17) { goto IL_007f; } } IL_007e: { IL2CPP_END_FINALLY(113) } IL_007f: { Object_t * L_18 = V_16; NullCheck(L_18); InterfaceActionInvoker0::Invoke(&IDisposable_Dispose_m486_MethodInfo, L_18); IL2CPP_END_FINALLY(113) } } // end finally (depth: 1) IL2CPP_CLEANUP(113) { IL2CPP_JUMP_TBL(0x87, IL_0087) IL2CPP_RETHROW_IF_UNHANDLED(Exception_t154 *) } IL_0087: { ArrayList_t1304 * L_19 = (__this->___caps_2); NullCheck(L_19); Object_t * L_20 = (Object_t *)VirtFuncInvoker0< Object_t * >::Invoke(&ArrayList_GetEnumerator_m7999_MethodInfo, L_19); V_6 = L_20; } IL_0094: try { // begin try (depth: 1) { goto IL_020a; } IL_0099: { Object_t * L_21 = V_6; NullCheck(L_21); Object_t * L_22 = (Object_t *)InterfaceFuncInvoker0< Object_t * >::Invoke(&IEnumerator_get_Current_m6898_MethodInfo, L_21); V_5 = ((CapturingGroup_t1444 *)Castclass(L_22, InitializedTypeInfo(&CapturingGroup_t1444_il2cpp_TypeInfo))); CapturingGroup_t1444 * L_23 = V_5; NullCheck(L_23); String_t* L_24 = CapturingGroup_get_Name_m7817(L_23, /*hidden argument*/&CapturingGroup_get_Name_m7817_MethodInfo); if (L_24) { goto IL_00b8; } } IL_00b3: { goto IL_020a; } IL_00b8: { Hashtable_t1291 * L_25 = V_1; CapturingGroup_t1444 * L_26 = V_5; NullCheck(L_26); String_t* L_27 = CapturingGroup_get_Name_m7817(L_26, /*hidden argument*/&CapturingGroup_get_Name_m7817_MethodInfo); NullCheck(L_25); bool L_28 = (bool)VirtFuncInvoker1< bool, Object_t * >::Invoke(&Hashtable_Contains_m8194_MethodInfo, L_25, L_27); if (!L_28) { goto IL_011d; } } IL_00ca: { Hashtable_t1291 * L_29 = V_1; CapturingGroup_t1444 * L_30 = V_5; NullCheck(L_30); String_t* L_31 = CapturingGroup_get_Name_m7817(L_30, /*hidden argument*/&CapturingGroup_get_Name_m7817_MethodInfo); NullCheck(L_29); Object_t * L_32 = (Object_t *)VirtFuncInvoker1< Object_t *, Object_t * >::Invoke(&Hashtable_get_Item_m8006_MethodInfo, L_29, L_31); V_7 = ((CapturingGroup_t1444 *)Castclass(L_32, InitializedTypeInfo(&CapturingGroup_t1444_il2cpp_TypeInfo))); CapturingGroup_t1444 * L_33 = V_5; CapturingGroup_t1444 * L_34 = V_7; NullCheck(L_34); int32_t L_35 = CapturingGroup_get_Index_m7815(L_34, /*hidden argument*/&CapturingGroup_get_Index_m7815_MethodInfo); NullCheck(L_33); CapturingGroup_set_Index_m7816(L_33, L_35, /*hidden argument*/&CapturingGroup_set_Index_m7816_MethodInfo); CapturingGroup_t1444 * L_36 = V_5; NullCheck(L_36); int32_t L_37 = CapturingGroup_get_Index_m7815(L_36, /*hidden argument*/&CapturingGroup_get_Index_m7815_MethodInfo); int32_t L_38 = V_0; if ((!(((uint32_t)L_37) == ((uint32_t)L_38)))) { goto IL_0102; } } IL_00f9: { int32_t L_39 = V_0; V_0 = ((int32_t)((int32_t)L_39+(int32_t)1)); goto IL_0118; } IL_0102: { CapturingGroup_t1444 * L_40 = V_5; NullCheck(L_40); int32_t L_41 = CapturingGroup_get_Index_m7815(L_40, /*hidden argument*/&CapturingGroup_get_Index_m7815_MethodInfo); int32_t L_42 = V_0; if ((((int32_t)L_41) <= ((int32_t)L_42))) { goto IL_0118; } } IL_010f: { ArrayList_t1304 * L_43 = V_2; CapturingGroup_t1444 * L_44 = V_5; NullCheck(L_43); VirtFuncInvoker1< int32_t, Object_t * >::Invoke(&ArrayList_Add_m8008_MethodInfo, L_43, L_44); } IL_0118: { goto IL_020a; } IL_011d: { CapturingGroup_t1444 * L_45 = V_5; NullCheck(L_45); String_t* L_46 = CapturingGroup_get_Name_m7817(L_45, /*hidden argument*/&CapturingGroup_get_Name_m7817_MethodInfo); NullCheck(L_46); uint16_t L_47 = String_get_Chars_m2541(L_46, 0, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Char_t389_il2cpp_TypeInfo)); bool L_48 = Char_IsDigit_m8197(NULL /*static, unused*/, L_47, /*hidden argument*/&Char_IsDigit_m8197_MethodInfo); if (!L_48) { goto IL_01ac; } } IL_0134: { V_8 = 0; CapturingGroup_t1444 * L_49 = V_5; NullCheck(L_49); String_t* L_50 = CapturingGroup_get_Name_m7817(L_49, /*hidden argument*/&CapturingGroup_get_Name_m7817_MethodInfo); int32_t L_51 = Parser_ParseDecimal_m7757(NULL /*static, unused*/, L_50, (&V_8), /*hidden argument*/&Parser_ParseDecimal_m7757_MethodInfo); V_9 = L_51; int32_t L_52 = V_8; CapturingGroup_t1444 * L_53 = V_5; NullCheck(L_53); String_t* L_54 = CapturingGroup_get_Name_m7817(L_53, /*hidden argument*/&CapturingGroup_get_Name_m7817_MethodInfo); NullCheck(L_54); int32_t L_55 = String_get_Length_m694(L_54, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((!(((uint32_t)L_52) == ((uint32_t)L_55)))) { goto IL_01ac; } } IL_015a: { CapturingGroup_t1444 * L_56 = V_5; int32_t L_57 = V_9; NullCheck(L_56); CapturingGroup_set_Index_m7816(L_56, L_57, /*hidden argument*/&CapturingGroup_set_Index_m7816_MethodInfo); Hashtable_t1291 * L_58 = V_1; CapturingGroup_t1444 * L_59 = V_5; NullCheck(L_59); String_t* L_60 = CapturingGroup_get_Name_m7817(L_59, /*hidden argument*/&CapturingGroup_get_Name_m7817_MethodInfo); CapturingGroup_t1444 * L_61 = V_5; NullCheck(L_58); VirtActionInvoker2< Object_t *, Object_t * >::Invoke(&Hashtable_Add_m8007_MethodInfo, L_58, L_60, L_61); int32_t L_62 = (__this->___num_groups_4); __this->___num_groups_4 = ((int32_t)((int32_t)L_62+(int32_t)1)); int32_t L_63 = V_9; int32_t L_64 = V_0; if ((!(((uint32_t)L_63) == ((uint32_t)L_64)))) { goto IL_0191; } } IL_0188: { int32_t L_65 = V_0; V_0 = ((int32_t)((int32_t)L_65+(int32_t)1)); goto IL_01a7; } IL_0191: { ArrayList_t1304 * L_66 = V_2; if (L_66) { goto IL_019e; } } IL_0197: { IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&ArrayList_t1304_il2cpp_TypeInfo)); ArrayList_t1304 * L_67 = (ArrayList_t1304 *)il2cpp_codegen_object_new (InitializedTypeInfo(&ArrayList_t1304_il2cpp_TypeInfo)); ArrayList__ctor_m8155(L_67, 4, /*hidden argument*/&ArrayList__ctor_m8155_MethodInfo); V_2 = L_67; } IL_019e: { ArrayList_t1304 * L_68 = V_2; CapturingGroup_t1444 * L_69 = V_5; NullCheck(L_68); VirtFuncInvoker1< int32_t, Object_t * >::Invoke(&ArrayList_Add_m8008_MethodInfo, L_68, L_69); } IL_01a7: { goto IL_020a; } IL_01ac: { String_t* L_70 = Int32_ToString_m6944((&V_0), /*hidden argument*/&Int32_ToString_m6944_MethodInfo); V_10 = L_70; goto IL_01ca; } IL_01ba: { int32_t L_71 = V_0; int32_t L_72 = ((int32_t)((int32_t)L_71+(int32_t)1)); V_0 = L_72; V_17 = L_72; String_t* L_73 = Int32_ToString_m6944((&V_17), /*hidden argument*/&Int32_ToString_m6944_MethodInfo); V_10 = L_73; } IL_01ca: { Hashtable_t1291 * L_74 = V_1; String_t* L_75 = V_10; NullCheck(L_74); bool L_76 = (bool)VirtFuncInvoker1< bool, Object_t * >::Invoke(&Hashtable_Contains_m8194_MethodInfo, L_74, L_75); if (L_76) { goto IL_01ba; } } IL_01d7: { Hashtable_t1291 * L_77 = V_1; String_t* L_78 = V_10; CapturingGroup_t1444 * L_79 = V_5; NullCheck(L_77); VirtActionInvoker2< Object_t *, Object_t * >::Invoke(&Hashtable_Add_m8007_MethodInfo, L_77, L_78, L_79); Hashtable_t1291 * L_80 = V_1; CapturingGroup_t1444 * L_81 = V_5; NullCheck(L_81); String_t* L_82 = CapturingGroup_get_Name_m7817(L_81, /*hidden argument*/&CapturingGroup_get_Name_m7817_MethodInfo); CapturingGroup_t1444 * L_83 = V_5; NullCheck(L_80); VirtActionInvoker2< Object_t *, Object_t * >::Invoke(&Hashtable_Add_m8007_MethodInfo, L_80, L_82, L_83); CapturingGroup_t1444 * L_84 = V_5; int32_t L_85 = V_0; int32_t L_86 = L_85; V_0 = ((int32_t)((int32_t)L_86+(int32_t)1)); NullCheck(L_84); CapturingGroup_set_Index_m7816(L_84, L_86, /*hidden argument*/&CapturingGroup_set_Index_m7816_MethodInfo); int32_t L_87 = (__this->___num_groups_4); __this->___num_groups_4 = ((int32_t)((int32_t)L_87+(int32_t)1)); } IL_020a: { Object_t * L_88 = V_6; NullCheck(L_88); bool L_89 = (bool)InterfaceFuncInvoker0< bool >::Invoke(&IEnumerator_MoveNext_m692_MethodInfo, L_88); if (L_89) { goto IL_0099; } } IL_0216: { IL2CPP_LEAVE(0x231, FINALLY_021b); } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { __last_unhandled_exception = (Exception_t154 *)e.ex; goto FINALLY_021b; } FINALLY_021b: { // begin finally (depth: 1) { Object_t * L_90 = V_6; V_18 = ((Object_t *)IsInst(L_90, InitializedTypeInfo(&IDisposable_t153_il2cpp_TypeInfo))); Object_t * L_91 = V_18; if (L_91) { goto IL_0229; } } IL_0228: { IL2CPP_END_FINALLY(539) } IL_0229: { Object_t * L_92 = V_18; NullCheck(L_92); InterfaceActionInvoker0::Invoke(&IDisposable_Dispose_m486_MethodInfo, L_92); IL2CPP_END_FINALLY(539) } } // end finally (depth: 1) IL2CPP_CLEANUP(539) { IL2CPP_JUMP_TBL(0x231, IL_0231) IL2CPP_RETHROW_IF_UNHANDLED(Exception_t154 *) } IL_0231: { int32_t L_93 = V_0; __this->___gap_5 = L_93; ArrayList_t1304 * L_94 = V_2; if (!L_94) { goto IL_0245; } } { ArrayList_t1304 * L_95 = V_2; Parser_HandleExplicitNumericGroups_m7779(__this, L_95, /*hidden argument*/&Parser_HandleExplicitNumericGroups_m7779_MethodInfo); } IL_0245: { Hashtable_t1291 * L_96 = (__this->___refs_3); NullCheck(L_96); Object_t * L_97 = (Object_t *)VirtFuncInvoker0< Object_t * >::Invoke(&Hashtable_get_Keys_m8212_MethodInfo, L_96); NullCheck(L_97); Object_t * L_98 = (Object_t *)InterfaceFuncInvoker0< Object_t * >::Invoke(&IEnumerable_GetEnumerator_m8128_MethodInfo, L_97); V_12 = L_98; } IL_0257: try { // begin try (depth: 1) { goto IL_036d; } IL_025c: { Object_t * L_99 = V_12; NullCheck(L_99); Object_t * L_100 = (Object_t *)InterfaceFuncInvoker0< Object_t * >::Invoke(&IEnumerator_get_Current_m6898_MethodInfo, L_99); V_11 = ((Expression_t1438 *)Castclass(L_100, InitializedTypeInfo(&Expression_t1438_il2cpp_TypeInfo))); Hashtable_t1291 * L_101 = (__this->___refs_3); Expression_t1438 * L_102 = V_11; NullCheck(L_101); Object_t * L_103 = (Object_t *)VirtFuncInvoker1< Object_t *, Object_t * >::Invoke(&Hashtable_get_Item_m8006_MethodInfo, L_101, L_102); V_13 = ((String_t*)Castclass(L_103, (&String_t_il2cpp_TypeInfo))); Hashtable_t1291 * L_104 = V_1; String_t* L_105 = V_13; NullCheck(L_104); bool L_106 = (bool)VirtFuncInvoker1< bool, Object_t * >::Invoke(&Hashtable_Contains_m8194_MethodInfo, L_104, L_105); if (L_106) { goto IL_0306; } } IL_028b: { Expression_t1438 * L_107 = V_11; if (!((CaptureAssertion_t1449 *)IsInst(L_107, InitializedTypeInfo(&CaptureAssertion_t1449_il2cpp_TypeInfo)))) { goto IL_02ae; } } IL_0297: { String_t* L_108 = V_13; NullCheck(L_108); uint16_t L_109 = String_get_Chars_m2541(L_108, 0, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Char_t389_il2cpp_TypeInfo)); bool L_110 = Char_IsDigit_m8197(NULL /*static, unused*/, L_109, /*hidden argument*/&Char_IsDigit_m8197_MethodInfo); if (L_110) { goto IL_02ae; } } IL_02a9: { goto IL_036d; } IL_02ae: { Expression_t1438 * L_111 = V_11; V_14 = ((BackslashNumber_t1453 *)IsInst(L_111, InitializedTypeInfo(&BackslashNumber_t1453_il2cpp_TypeInfo))); BackslashNumber_t1453 * L_112 = V_14; if (!L_112) { goto IL_02d2; } } IL_02be: { BackslashNumber_t1453 * L_113 = V_14; String_t* L_114 = V_13; Hashtable_t1291 * L_115 = V_1; NullCheck(L_113); bool L_116 = BackslashNumber_ResolveReference_m7878(L_113, L_114, L_115, /*hidden argument*/&BackslashNumber_ResolveReference_m7878_MethodInfo); if (!L_116) { goto IL_02d2; } } IL_02cd: { goto IL_036d; } IL_02d2: { String_t* L_117 = V_13; NullCheck(L_117); uint16_t L_118 = String_get_Chars_m2541(L_117, 0, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Char_t389_il2cpp_TypeInfo)); bool L_119 = Char_IsDigit_m8197(NULL /*static, unused*/, L_118, /*hidden argument*/&Char_IsDigit_m8197_MethodInfo); G_B49_0 = (String_t*) &_stringLiteral886; G_B49_1 = __this; if (!L_119) { G_B50_0 = (String_t*) &_stringLiteral886; G_B50_1 = __this; goto IL_02f4; } } IL_02ea: { G_B51_0 = (String_t*) &_stringLiteral887; G_B51_1 = G_B49_0; G_B51_2 = G_B49_1; goto IL_02f9; } IL_02f4: { G_B51_0 = (String_t*) &_stringLiteral888; G_B51_1 = G_B50_0; G_B51_2 = G_B50_1; } IL_02f9: { String_t* L_120 = V_13; IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); String_t* L_121 = String_Concat_m554(NULL /*static, unused*/, G_B51_1, G_B51_0, L_120, /*hidden argument*/&String_Concat_m554_MethodInfo); NullCheck(G_B51_2); ArgumentException_t521 * L_122 = Parser_NewParseException_m7786(G_B51_2, L_121, /*hidden argument*/&Parser_NewParseException_m7786_MethodInfo); il2cpp_codegen_raise_exception(L_122); } IL_0306: { Hashtable_t1291 * L_123 = V_1; String_t* L_124 = V_13; NullCheck(L_123); Object_t * L_125 = (Object_t *)VirtFuncInvoker1< Object_t *, Object_t * >::Invoke(&Hashtable_get_Item_m8006_MethodInfo, L_123, L_124); V_15 = ((CapturingGroup_t1444 *)Castclass(L_125, InitializedTypeInfo(&CapturingGroup_t1444_il2cpp_TypeInfo))); Expression_t1438 * L_126 = V_11; if (!((Reference_t1452 *)IsInst(L_126, InitializedTypeInfo(&Reference_t1452_il2cpp_TypeInfo)))) { goto IL_0334; } } IL_0321: { Expression_t1438 * L_127 = V_11; CapturingGroup_t1444 * L_128 = V_15; NullCheck(((Reference_t1452 *)Castclass(L_127, InitializedTypeInfo(&Reference_t1452_il2cpp_TypeInfo)))); Reference_set_CapturingGroup_m7872(((Reference_t1452 *)Castclass(L_127, InitializedTypeInfo(&Reference_t1452_il2cpp_TypeInfo))), L_128, /*hidden argument*/&Reference_set_CapturingGroup_m7872_MethodInfo); goto IL_036d; } IL_0334: { Expression_t1438 * L_129 = V_11; if (!((CaptureAssertion_t1449 *)IsInst(L_129, InitializedTypeInfo(&CaptureAssertion_t1449_il2cpp_TypeInfo)))) { goto IL_0353; } } IL_0340: { Expression_t1438 * L_130 = V_11; CapturingGroup_t1444 * L_131 = V_15; NullCheck(((CaptureAssertion_t1449 *)Castclass(L_130, InitializedTypeInfo(&CaptureAssertion_t1449_il2cpp_TypeInfo)))); CaptureAssertion_set_CapturingGroup_m7843(((CaptureAssertion_t1449 *)Castclass(L_130, InitializedTypeInfo(&CaptureAssertion_t1449_il2cpp_TypeInfo))), L_131, /*hidden argument*/&CaptureAssertion_set_CapturingGroup_m7843_MethodInfo); goto IL_036d; } IL_0353: { Expression_t1438 * L_132 = V_11; if (!((BalancingGroup_t1445 *)IsInst(L_132, InitializedTypeInfo(&BalancingGroup_t1445_il2cpp_TypeInfo)))) { goto IL_036d; } } IL_035f: { Expression_t1438 * L_133 = V_11; CapturingGroup_t1444 * L_134 = V_15; NullCheck(((BalancingGroup_t1445 *)Castclass(L_133, InitializedTypeInfo(&BalancingGroup_t1445_il2cpp_TypeInfo)))); BalancingGroup_set_Balance_m7824(((BalancingGroup_t1445 *)Castclass(L_133, InitializedTypeInfo(&BalancingGroup_t1445_il2cpp_TypeInfo))), L_134, /*hidden argument*/&BalancingGroup_set_Balance_m7824_MethodInfo); } IL_036d: { Object_t * L_135 = V_12; NullCheck(L_135); bool L_136 = (bool)InterfaceFuncInvoker0< bool >::Invoke(&IEnumerator_MoveNext_m692_MethodInfo, L_135); if (L_136) { goto IL_025c; } } IL_0379: { IL2CPP_LEAVE(0x394, FINALLY_037e); } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { __last_unhandled_exception = (Exception_t154 *)e.ex; goto FINALLY_037e; } FINALLY_037e: { // begin finally (depth: 1) { Object_t * L_137 = V_12; V_19 = ((Object_t *)IsInst(L_137, InitializedTypeInfo(&IDisposable_t153_il2cpp_TypeInfo))); Object_t * L_138 = V_19; if (L_138) { goto IL_038c; } } IL_038b: { IL2CPP_END_FINALLY(894) } IL_038c: { Object_t * L_139 = V_19; NullCheck(L_139); InterfaceActionInvoker0::Invoke(&IDisposable_Dispose_m486_MethodInfo, L_139); IL2CPP_END_FINALLY(894) } } // end finally (depth: 1) IL2CPP_CLEANUP(894) { IL2CPP_JUMP_TBL(0x394, IL_0394) IL2CPP_RETHROW_IF_UNHANDLED(Exception_t154 *) } IL_0394: { return; } } // System.Void System.Text.RegularExpressions.Syntax.Parser::HandleExplicitNumericGroups(System.Collections.ArrayList) extern "C" void Parser_HandleExplicitNumericGroups_m7779 (Parser_t1434 * __this, ArrayList_t1304 * ___explicit_numeric_groups, MethodInfo* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; CapturingGroup_t1444 * V_3 = {0}; int32_t V_4 = 0; CapturingGroup_t1444 * V_5 = {0}; { int32_t L_0 = (__this->___gap_5); V_0 = L_0; V_1 = 0; ArrayList_t1304 * L_1 = ___explicit_numeric_groups; NullCheck(L_1); int32_t L_2 = (int32_t)VirtFuncInvoker0< int32_t >::Invoke(&ArrayList_get_Count_m7994_MethodInfo, L_1); V_2 = L_2; ArrayList_t1304 * L_3 = ___explicit_numeric_groups; NullCheck(L_3); VirtActionInvoker0::Invoke(&ArrayList_Sort_m8209_MethodInfo, L_3); goto IL_004d; } IL_001b: { ArrayList_t1304 * L_4 = ___explicit_numeric_groups; int32_t L_5 = V_1; NullCheck(L_4); Object_t * L_6 = (Object_t *)VirtFuncInvoker1< Object_t *, int32_t >::Invoke(&ArrayList_get_Item_m7996_MethodInfo, L_4, L_5); V_3 = ((CapturingGroup_t1444 *)Castclass(L_6, InitializedTypeInfo(&CapturingGroup_t1444_il2cpp_TypeInfo))); CapturingGroup_t1444 * L_7 = V_3; NullCheck(L_7); int32_t L_8 = CapturingGroup_get_Index_m7815(L_7, /*hidden argument*/&CapturingGroup_get_Index_m7815_MethodInfo); int32_t L_9 = V_0; if ((((int32_t)L_8) <= ((int32_t)L_9))) { goto IL_0039; } } { goto IL_0054; } IL_0039: { CapturingGroup_t1444 * L_10 = V_3; NullCheck(L_10); int32_t L_11 = CapturingGroup_get_Index_m7815(L_10, /*hidden argument*/&CapturingGroup_get_Index_m7815_MethodInfo); int32_t L_12 = V_0; if ((!(((uint32_t)L_11) == ((uint32_t)L_12)))) { goto IL_0049; } } { int32_t L_13 = V_0; V_0 = ((int32_t)((int32_t)L_13+(int32_t)1)); } IL_0049: { int32_t L_14 = V_1; V_1 = ((int32_t)((int32_t)L_14+(int32_t)1)); } IL_004d: { int32_t L_15 = V_1; int32_t L_16 = V_2; if ((((int32_t)L_15) < ((int32_t)L_16))) { goto IL_001b; } } IL_0054: { int32_t L_17 = V_0; __this->___gap_5 = L_17; int32_t L_18 = V_0; V_4 = L_18; goto IL_00a7; } IL_0063: { ArrayList_t1304 * L_19 = ___explicit_numeric_groups; int32_t L_20 = V_1; NullCheck(L_19); Object_t * L_21 = (Object_t *)VirtFuncInvoker1< Object_t *, int32_t >::Invoke(&ArrayList_get_Item_m7996_MethodInfo, L_19, L_20); V_5 = ((CapturingGroup_t1444 *)Castclass(L_21, InitializedTypeInfo(&CapturingGroup_t1444_il2cpp_TypeInfo))); CapturingGroup_t1444 * L_22 = V_5; NullCheck(L_22); int32_t L_23 = CapturingGroup_get_Index_m7815(L_22, /*hidden argument*/&CapturingGroup_get_Index_m7815_MethodInfo); int32_t L_24 = V_4; if ((!(((uint32_t)L_23) == ((uint32_t)L_24)))) { goto IL_008e; } } { CapturingGroup_t1444 * L_25 = V_5; int32_t L_26 = V_0; NullCheck(L_25); CapturingGroup_set_Index_m7816(L_25, ((int32_t)((int32_t)L_26-(int32_t)1)), /*hidden argument*/&CapturingGroup_set_Index_m7816_MethodInfo); goto IL_00a3; } IL_008e: { CapturingGroup_t1444 * L_27 = V_5; NullCheck(L_27); int32_t L_28 = CapturingGroup_get_Index_m7815(L_27, /*hidden argument*/&CapturingGroup_get_Index_m7815_MethodInfo); V_4 = L_28; CapturingGroup_t1444 * L_29 = V_5; int32_t L_30 = V_0; int32_t L_31 = L_30; V_0 = ((int32_t)((int32_t)L_31+(int32_t)1)); NullCheck(L_29); CapturingGroup_set_Index_m7816(L_29, L_31, /*hidden argument*/&CapturingGroup_set_Index_m7816_MethodInfo); } IL_00a3: { int32_t L_32 = V_1; V_1 = ((int32_t)((int32_t)L_32+(int32_t)1)); } IL_00a7: { int32_t L_33 = V_1; int32_t L_34 = V_2; if ((((int32_t)L_33) < ((int32_t)L_34))) { goto IL_0063; } } { return; } } // System.Boolean System.Text.RegularExpressions.Syntax.Parser::IsIgnoreCase(System.Text.RegularExpressions.RegexOptions) extern "C" bool Parser_IsIgnoreCase_m7780 (Object_t * __this /* static, unused */, int32_t ___options, MethodInfo* method) { { int32_t L_0 = ___options; return ((((int32_t)((((int32_t)((int32_t)((int32_t)L_0&(int32_t)1))) == ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0); } } // System.Boolean System.Text.RegularExpressions.Syntax.Parser::IsMultiline(System.Text.RegularExpressions.RegexOptions) extern "C" bool Parser_IsMultiline_m7781 (Object_t * __this /* static, unused */, int32_t ___options, MethodInfo* method) { { int32_t L_0 = ___options; return ((((int32_t)((((int32_t)((int32_t)((int32_t)L_0&(int32_t)2))) == ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0); } } // System.Boolean System.Text.RegularExpressions.Syntax.Parser::IsExplicitCapture(System.Text.RegularExpressions.RegexOptions) extern "C" bool Parser_IsExplicitCapture_m7782 (Object_t * __this /* static, unused */, int32_t ___options, MethodInfo* method) { { int32_t L_0 = ___options; return ((((int32_t)((((int32_t)((int32_t)((int32_t)L_0&(int32_t)4))) == ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0); } } // System.Boolean System.Text.RegularExpressions.Syntax.Parser::IsSingleline(System.Text.RegularExpressions.RegexOptions) extern "C" bool Parser_IsSingleline_m7783 (Object_t * __this /* static, unused */, int32_t ___options, MethodInfo* method) { { int32_t L_0 = ___options; return ((((int32_t)((((int32_t)((int32_t)((int32_t)L_0&(int32_t)((int32_t)16)))) == ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0); } } // System.Boolean System.Text.RegularExpressions.Syntax.Parser::IsIgnorePatternWhitespace(System.Text.RegularExpressions.RegexOptions) extern "C" bool Parser_IsIgnorePatternWhitespace_m7784 (Object_t * __this /* static, unused */, int32_t ___options, MethodInfo* method) { { int32_t L_0 = ___options; return ((((int32_t)((((int32_t)((int32_t)((int32_t)L_0&(int32_t)((int32_t)32)))) == ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0); } } // System.Boolean System.Text.RegularExpressions.Syntax.Parser::IsECMAScript(System.Text.RegularExpressions.RegexOptions) extern "C" bool Parser_IsECMAScript_m7785 (Object_t * __this /* static, unused */, int32_t ___options, MethodInfo* method) { { int32_t L_0 = ___options; return ((((int32_t)((((int32_t)((int32_t)((int32_t)L_0&(int32_t)((int32_t)256)))) == ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0); } } // System.ArgumentException System.Text.RegularExpressions.Syntax.Parser::NewParseException(System.String) extern "C" ArgumentException_t521 * Parser_NewParseException_m7786 (Parser_t1434 * __this, String_t* ___msg, MethodInfo* method) { { String_t* L_0 = (__this->___pattern_0); String_t* L_1 = ___msg; IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); String_t* L_2 = String_Concat_m4768(NULL /*static, unused*/, (String_t*) &_stringLiteral889, L_0, (String_t*) &_stringLiteral890, L_1, /*hidden argument*/&String_Concat_m4768_MethodInfo); ___msg = L_2; String_t* L_3 = ___msg; String_t* L_4 = (__this->___pattern_0); ArgumentException_t521 * L_5 = (ArgumentException_t521 *)il2cpp_codegen_object_new (InitializedTypeInfo(&ArgumentException_t521_il2cpp_TypeInfo)); ArgumentException__ctor_m7991(L_5, L_3, L_4, /*hidden argument*/&ArgumentException__ctor_m7991_MethodInfo); return L_5; } } #ifndef _MSC_VER #else #endif // System.Byte #include "mscorlib_System_Byte.h" extern TypeInfo ByteU5BU5D_t669_il2cpp_TypeInfo; extern TypeInfo Byte_t523_il2cpp_TypeInfo; extern Il2CppType ByteU5BU5D_t669_0_0_0; extern MethodInfo String_ToLower_m5369_MethodInfo; extern MethodInfo QuickSearch_SetupShiftTable_m7791_MethodInfo; extern MethodInfo QuickSearch_GetChar_m7793_MethodInfo; extern MethodInfo QuickSearch_GetShiftDistance_m7792_MethodInfo; extern MethodInfo Hashtable_set_Item_m8191_MethodInfo; // System.Void System.Text.RegularExpressions.QuickSearch::.ctor(System.String,System.Boolean,System.Boolean) extern "C" void QuickSearch__ctor_m7787 (QuickSearch_t1426 * __this, String_t* ___str, bool ___ignore, bool ___reverse, MethodInfo* method) { { Object__ctor_m419(__this, /*hidden argument*/&Object__ctor_m419_MethodInfo); String_t* L_0 = ___str; __this->___str_0 = L_0; String_t* L_1 = ___str; NullCheck(L_1); int32_t L_2 = String_get_Length_m694(L_1, /*hidden argument*/&String_get_Length_m694_MethodInfo); __this->___len_1 = L_2; bool L_3 = ___ignore; __this->___ignore_2 = L_3; bool L_4 = ___reverse; __this->___reverse_3 = L_4; bool L_5 = ___ignore; if (!L_5) { goto IL_0035; } } { String_t* L_6 = ___str; NullCheck(L_6); String_t* L_7 = String_ToLower_m5369(L_6, /*hidden argument*/&String_ToLower_m5369_MethodInfo); ___str = L_7; } IL_0035: { int32_t L_8 = (__this->___len_1); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&QuickSearch_t1426_il2cpp_TypeInfo)); int32_t L_9 = ((QuickSearch_t1426_StaticFields*)InitializedTypeInfo(&QuickSearch_t1426_il2cpp_TypeInfo)->static_fields)->___THRESHOLD_6; if ((((int32_t)L_8) <= ((int32_t)L_9))) { goto IL_004b; } } { QuickSearch_SetupShiftTable_m7791(__this, /*hidden argument*/&QuickSearch_SetupShiftTable_m7791_MethodInfo); } IL_004b: { return; } } // System.Void System.Text.RegularExpressions.QuickSearch::.cctor() extern MethodInfo QuickSearch__cctor_m7788_MethodInfo; extern "C" void QuickSearch__cctor_m7788 (Object_t * __this /* static, unused */, MethodInfo* method) { { ((QuickSearch_t1426_StaticFields*)InitializedTypeInfo(&QuickSearch_t1426_il2cpp_TypeInfo)->static_fields)->___THRESHOLD_6 = 5; return; } } // System.Int32 System.Text.RegularExpressions.QuickSearch::get_Length() extern "C" int32_t QuickSearch_get_Length_m7789 (QuickSearch_t1426 * __this, MethodInfo* method) { { int32_t L_0 = (__this->___len_1); return L_0; } } // System.Int32 System.Text.RegularExpressions.QuickSearch::Search(System.String,System.Int32,System.Int32) extern "C" int32_t QuickSearch_Search_m7790 (QuickSearch_t1426 * __this, String_t* ___text, int32_t ___start, int32_t ___end, MethodInfo* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; { int32_t L_0 = ___start; V_0 = L_0; bool L_1 = (__this->___reverse_3); if (!L_1) { goto IL_0107; } } { int32_t L_2 = ___start; int32_t L_3 = ___end; if ((((int32_t)L_2) >= ((int32_t)L_3))) { goto IL_0016; } } { return (-1); } IL_0016: { int32_t L_4 = V_0; String_t* L_5 = ___text; NullCheck(L_5); int32_t L_6 = String_get_Length_m694(L_5, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((((int32_t)L_4) <= ((int32_t)L_6))) { goto IL_0029; } } { String_t* L_7 = ___text; NullCheck(L_7); int32_t L_8 = String_get_Length_m694(L_7, /*hidden argument*/&String_get_Length_m694_MethodInfo); V_0 = L_8; } IL_0029: { int32_t L_9 = (__this->___len_1); if ((!(((uint32_t)L_9) == ((uint32_t)1)))) { goto IL_0067; } } { goto IL_005a; } IL_003a: { String_t* L_10 = (__this->___str_0); NullCheck(L_10); uint16_t L_11 = String_get_Chars_m2541(L_10, 0, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); String_t* L_12 = ___text; int32_t L_13 = V_0; NullCheck(L_12); uint16_t L_14 = String_get_Chars_m2541(L_12, L_13, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); uint16_t L_15 = QuickSearch_GetChar_m7793(__this, L_14, /*hidden argument*/&QuickSearch_GetChar_m7793_MethodInfo); if ((!(((uint32_t)L_11) == ((uint32_t)L_15)))) { goto IL_005a; } } { int32_t L_16 = V_0; return L_16; } IL_005a: { int32_t L_17 = V_0; int32_t L_18 = ((int32_t)((int32_t)L_17-(int32_t)1)); V_0 = L_18; int32_t L_19 = ___end; if ((((int32_t)L_18) >= ((int32_t)L_19))) { goto IL_003a; } } { return (-1); } IL_0067: { int32_t L_20 = ___end; int32_t L_21 = (__this->___len_1); if ((((int32_t)L_20) >= ((int32_t)L_21))) { goto IL_007d; } } { int32_t L_22 = (__this->___len_1); ___end = ((int32_t)((int32_t)L_22-(int32_t)1)); } IL_007d: { int32_t L_23 = V_0; V_0 = ((int32_t)((int32_t)L_23-(int32_t)1)); goto IL_00fb; } IL_0086: { int32_t L_24 = (__this->___len_1); V_1 = ((int32_t)((int32_t)L_24-(int32_t)1)); goto IL_00aa; } IL_0094: { int32_t L_25 = V_1; int32_t L_26 = ((int32_t)((int32_t)L_25-(int32_t)1)); V_1 = L_26; if ((((int32_t)L_26) >= ((int32_t)0))) { goto IL_00aa; } } { int32_t L_27 = V_0; int32_t L_28 = (__this->___len_1); return ((int32_t)((int32_t)((int32_t)((int32_t)L_27-(int32_t)L_28))+(int32_t)1)); } IL_00aa: { String_t* L_29 = (__this->___str_0); int32_t L_30 = V_1; NullCheck(L_29); uint16_t L_31 = String_get_Chars_m2541(L_29, L_30, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); String_t* L_32 = ___text; int32_t L_33 = V_0; int32_t L_34 = (__this->___len_1); int32_t L_35 = V_1; NullCheck(L_32); uint16_t L_36 = String_get_Chars_m2541(L_32, ((int32_t)((int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_33-(int32_t)L_34))+(int32_t)1))+(int32_t)L_35)), /*hidden argument*/&String_get_Chars_m2541_MethodInfo); uint16_t L_37 = QuickSearch_GetChar_m7793(__this, L_36, /*hidden argument*/&QuickSearch_GetChar_m7793_MethodInfo); if ((((int32_t)L_31) == ((int32_t)L_37))) { goto IL_0094; } } { int32_t L_38 = V_0; int32_t L_39 = ___end; if ((((int32_t)L_38) <= ((int32_t)L_39))) { goto IL_00f6; } } { int32_t L_40 = V_0; String_t* L_41 = ___text; int32_t L_42 = V_0; int32_t L_43 = (__this->___len_1); NullCheck(L_41); uint16_t L_44 = String_get_Chars_m2541(L_41, ((int32_t)((int32_t)L_42-(int32_t)L_43)), /*hidden argument*/&String_get_Chars_m2541_MethodInfo); int32_t L_45 = QuickSearch_GetShiftDistance_m7792(__this, L_44, /*hidden argument*/&QuickSearch_GetShiftDistance_m7792_MethodInfo); V_0 = ((int32_t)((int32_t)L_40-(int32_t)L_45)); goto IL_00fb; } IL_00f6: { goto IL_0102; } IL_00fb: { int32_t L_46 = V_0; int32_t L_47 = ___end; if ((((int32_t)L_46) >= ((int32_t)L_47))) { goto IL_0086; } } IL_0102: { goto IL_01d6; } IL_0107: { int32_t L_48 = (__this->___len_1); if ((!(((uint32_t)L_48) == ((uint32_t)1)))) { goto IL_0145; } } { goto IL_013c; } IL_0118: { String_t* L_49 = (__this->___str_0); NullCheck(L_49); uint16_t L_50 = String_get_Chars_m2541(L_49, 0, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); String_t* L_51 = ___text; int32_t L_52 = V_0; NullCheck(L_51); uint16_t L_53 = String_get_Chars_m2541(L_51, L_52, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); uint16_t L_54 = QuickSearch_GetChar_m7793(__this, L_53, /*hidden argument*/&QuickSearch_GetChar_m7793_MethodInfo); if ((!(((uint32_t)L_50) == ((uint32_t)L_54)))) { goto IL_0138; } } { int32_t L_55 = V_0; return L_55; } IL_0138: { int32_t L_56 = V_0; V_0 = ((int32_t)((int32_t)L_56+(int32_t)1)); } IL_013c: { int32_t L_57 = V_0; int32_t L_58 = ___end; if ((((int32_t)L_57) <= ((int32_t)L_58))) { goto IL_0118; } } { return (-1); } IL_0145: { int32_t L_59 = ___end; String_t* L_60 = ___text; NullCheck(L_60); int32_t L_61 = String_get_Length_m694(L_60, /*hidden argument*/&String_get_Length_m694_MethodInfo); int32_t L_62 = (__this->___len_1); if ((((int32_t)L_59) <= ((int32_t)((int32_t)((int32_t)L_61-(int32_t)L_62))))) { goto IL_0167; } } { String_t* L_63 = ___text; NullCheck(L_63); int32_t L_64 = String_get_Length_m694(L_63, /*hidden argument*/&String_get_Length_m694_MethodInfo); int32_t L_65 = (__this->___len_1); ___end = ((int32_t)((int32_t)L_64-(int32_t)L_65)); } IL_0167: { goto IL_01cf; } IL_016c: { int32_t L_66 = (__this->___len_1); V_2 = ((int32_t)((int32_t)L_66-(int32_t)1)); goto IL_0187; } IL_017a: { int32_t L_67 = V_2; int32_t L_68 = ((int32_t)((int32_t)L_67-(int32_t)1)); V_2 = L_68; if ((((int32_t)L_68) >= ((int32_t)0))) { goto IL_0187; } } { int32_t L_69 = V_0; return L_69; } IL_0187: { String_t* L_70 = (__this->___str_0); int32_t L_71 = V_2; NullCheck(L_70); uint16_t L_72 = String_get_Chars_m2541(L_70, L_71, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); String_t* L_73 = ___text; int32_t L_74 = V_0; int32_t L_75 = V_2; NullCheck(L_73); uint16_t L_76 = String_get_Chars_m2541(L_73, ((int32_t)((int32_t)L_74+(int32_t)L_75)), /*hidden argument*/&String_get_Chars_m2541_MethodInfo); uint16_t L_77 = QuickSearch_GetChar_m7793(__this, L_76, /*hidden argument*/&QuickSearch_GetChar_m7793_MethodInfo); if ((((int32_t)L_72) == ((int32_t)L_77))) { goto IL_017a; } } { int32_t L_78 = V_0; int32_t L_79 = ___end; if ((((int32_t)L_78) >= ((int32_t)L_79))) { goto IL_01ca; } } { int32_t L_80 = V_0; String_t* L_81 = ___text; int32_t L_82 = V_0; int32_t L_83 = (__this->___len_1); NullCheck(L_81); uint16_t L_84 = String_get_Chars_m2541(L_81, ((int32_t)((int32_t)L_82+(int32_t)L_83)), /*hidden argument*/&String_get_Chars_m2541_MethodInfo); int32_t L_85 = QuickSearch_GetShiftDistance_m7792(__this, L_84, /*hidden argument*/&QuickSearch_GetShiftDistance_m7792_MethodInfo); V_0 = ((int32_t)((int32_t)L_80+(int32_t)L_85)); goto IL_01cf; } IL_01ca: { goto IL_01d6; } IL_01cf: { int32_t L_86 = V_0; int32_t L_87 = ___end; if ((((int32_t)L_86) <= ((int32_t)L_87))) { goto IL_016c; } } IL_01d6: { return (-1); } } // System.Void System.Text.RegularExpressions.QuickSearch::SetupShiftTable() extern TypeInfo* ByteU5BU5D_t669_il2cpp_TypeInfo_var; extern "C" void QuickSearch_SetupShiftTable_m7791 (QuickSearch_t1426 * __this, MethodInfo* method) { static bool QuickSearch_SetupShiftTable_m7791_init; if (!QuickSearch_SetupShiftTable_m7791_init) { ByteU5BU5D_t669_il2cpp_TypeInfo_var = il2cpp_codegen_class_from_type(&ByteU5BU5D_t669_0_0_0); QuickSearch_SetupShiftTable_m7791_init = true; } bool V_0 = false; uint8_t V_1 = 0x0; int32_t V_2 = 0; uint16_t V_3 = 0x0; int32_t V_4 = 0; int32_t V_5 = 0; uint16_t V_6 = 0x0; String_t* G_B13_0 = {0}; String_t* G_B12_0 = {0}; int32_t G_B14_0 = 0; String_t* G_B14_1 = {0}; { int32_t L_0 = (__this->___len_1); V_0 = ((((int32_t)L_0) > ((int32_t)((int32_t)254)))? 1 : 0); V_1 = 0; V_2 = 0; goto IL_0045; } IL_0017: { String_t* L_1 = (__this->___str_0); int32_t L_2 = V_2; NullCheck(L_1); uint16_t L_3 = String_get_Chars_m2541(L_1, L_2, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); V_3 = L_3; uint16_t L_4 = V_3; if ((((int32_t)L_4) > ((int32_t)((int32_t)255)))) { goto IL_003f; } } { uint16_t L_5 = V_3; uint8_t L_6 = V_1; if ((((int32_t)(((uint8_t)L_5))) <= ((int32_t)L_6))) { goto IL_003a; } } { uint16_t L_7 = V_3; V_1 = (((uint8_t)L_7)); } IL_003a: { goto IL_0041; } IL_003f: { V_0 = 1; } IL_0041: { int32_t L_8 = V_2; V_2 = ((int32_t)((int32_t)L_8+(int32_t)1)); } IL_0045: { int32_t L_9 = V_2; int32_t L_10 = (__this->___len_1); if ((((int32_t)L_9) < ((int32_t)L_10))) { goto IL_0017; } } { uint8_t L_11 = V_1; __this->___shift_4 = ((ByteU5BU5D_t669*)SZArrayNew(ByteU5BU5D_t669_il2cpp_TypeInfo_var, ((int32_t)((int32_t)L_11+(int32_t)1)))); bool L_12 = V_0; if (!L_12) { goto IL_0070; } } { IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Hashtable_t1291_il2cpp_TypeInfo)); Hashtable_t1291 * L_13 = (Hashtable_t1291 *)il2cpp_codegen_object_new (InitializedTypeInfo(&Hashtable_t1291_il2cpp_TypeInfo)); Hashtable__ctor_m8183(L_13, /*hidden argument*/&Hashtable__ctor_m8183_MethodInfo); __this->___shiftExtended_5 = L_13; } IL_0070: { V_4 = 0; int32_t L_14 = (__this->___len_1); V_5 = L_14; goto IL_0102; } IL_0080: { String_t* L_15 = (__this->___str_0); bool L_16 = (__this->___reverse_3); G_B12_0 = L_15; if (L_16) { G_B13_0 = L_15; goto IL_0098; } } { int32_t L_17 = V_4; G_B14_0 = L_17; G_B14_1 = G_B12_0; goto IL_009c; } IL_0098: { int32_t L_18 = V_5; G_B14_0 = ((int32_t)((int32_t)L_18-(int32_t)1)); G_B14_1 = G_B13_0; } IL_009c: { NullCheck(G_B14_1); uint16_t L_19 = String_get_Chars_m2541(G_B14_1, G_B14_0, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); V_6 = L_19; uint16_t L_20 = V_6; ByteU5BU5D_t669* L_21 = (__this->___shift_4); NullCheck(L_21); if ((((int32_t)L_20) >= ((int32_t)(((int32_t)(((Array_t *)L_21)->max_length)))))) { goto IL_00dd; } } { int32_t L_22 = V_5; if ((((int32_t)L_22) >= ((int32_t)((int32_t)255)))) { goto IL_00cf; } } { ByteU5BU5D_t669* L_23 = (__this->___shift_4); uint16_t L_24 = V_6; int32_t L_25 = V_5; NullCheck(L_23); IL2CPP_ARRAY_BOUNDS_CHECK(L_23, L_24); *((uint8_t*)(uint8_t*)SZArrayLdElema(L_23, L_24)) = (uint8_t)(((uint8_t)L_25)); goto IL_00f6; } IL_00cf: { ByteU5BU5D_t669* L_26 = (__this->___shift_4); uint16_t L_27 = V_6; NullCheck(L_26); IL2CPP_ARRAY_BOUNDS_CHECK(L_26, L_27); *((uint8_t*)(uint8_t*)SZArrayLdElema(L_26, L_27)) = (uint8_t)((int32_t)255); } IL_00dd: { Hashtable_t1291 * L_28 = (__this->___shiftExtended_5); uint16_t L_29 = V_6; uint16_t L_30 = L_29; Object_t * L_31 = Box(InitializedTypeInfo(&Char_t389_il2cpp_TypeInfo), &L_30); int32_t L_32 = V_5; int32_t L_33 = L_32; Object_t * L_34 = Box(InitializedTypeInfo(&Int32_t141_il2cpp_TypeInfo), &L_33); NullCheck(L_28); VirtActionInvoker2< Object_t *, Object_t * >::Invoke(&Hashtable_set_Item_m8191_MethodInfo, L_28, L_31, L_34); } IL_00f6: { int32_t L_35 = V_4; V_4 = ((int32_t)((int32_t)L_35+(int32_t)1)); int32_t L_36 = V_5; V_5 = ((int32_t)((int32_t)L_36-(int32_t)1)); } IL_0102: { int32_t L_37 = V_4; int32_t L_38 = (__this->___len_1); if ((((int32_t)L_37) < ((int32_t)L_38))) { goto IL_0080; } } { return; } } // System.Int32 System.Text.RegularExpressions.QuickSearch::GetShiftDistance(System.Char) extern "C" int32_t QuickSearch_GetShiftDistance_m7792 (QuickSearch_t1426 * __this, uint16_t ___c, MethodInfo* method) { int32_t V_0 = 0; Object_t * V_1 = {0}; int32_t G_B15_0 = 0; { ByteU5BU5D_t669* L_0 = (__this->___shift_4); if (L_0) { goto IL_000d; } } { return 1; } IL_000d: { uint16_t L_1 = ___c; uint16_t L_2 = QuickSearch_GetChar_m7793(__this, L_1, /*hidden argument*/&QuickSearch_GetChar_m7793_MethodInfo); ___c = L_2; uint16_t L_3 = ___c; ByteU5BU5D_t669* L_4 = (__this->___shift_4); NullCheck(L_4); if ((((int32_t)L_3) >= ((int32_t)(((int32_t)(((Array_t *)L_4)->max_length)))))) { goto IL_004e; } } { ByteU5BU5D_t669* L_5 = (__this->___shift_4); uint16_t L_6 = ___c; NullCheck(L_5); IL2CPP_ARRAY_BOUNDS_CHECK(L_5, L_6); uint16_t L_7 = L_6; V_0 = (*(uint8_t*)(uint8_t*)SZArrayLdElema(L_5, L_7)); int32_t L_8 = V_0; if (L_8) { goto IL_003c; } } { int32_t L_9 = (__this->___len_1); return ((int32_t)((int32_t)L_9+(int32_t)1)); } IL_003c: { int32_t L_10 = V_0; if ((((int32_t)L_10) == ((int32_t)((int32_t)255)))) { goto IL_0049; } } { int32_t L_11 = V_0; return L_11; } IL_0049: { goto IL_0062; } IL_004e: { uint16_t L_12 = ___c; if ((((int32_t)L_12) >= ((int32_t)((int32_t)255)))) { goto IL_0062; } } { int32_t L_13 = (__this->___len_1); return ((int32_t)((int32_t)L_13+(int32_t)1)); } IL_0062: { Hashtable_t1291 * L_14 = (__this->___shiftExtended_5); if (L_14) { goto IL_0076; } } { int32_t L_15 = (__this->___len_1); return ((int32_t)((int32_t)L_15+(int32_t)1)); } IL_0076: { Hashtable_t1291 * L_16 = (__this->___shiftExtended_5); uint16_t L_17 = ___c; uint16_t L_18 = L_17; Object_t * L_19 = Box(InitializedTypeInfo(&Char_t389_il2cpp_TypeInfo), &L_18); NullCheck(L_16); Object_t * L_20 = (Object_t *)VirtFuncInvoker1< Object_t *, Object_t * >::Invoke(&Hashtable_get_Item_m8006_MethodInfo, L_16, L_19); V_1 = L_20; Object_t * L_21 = V_1; if (!L_21) { goto IL_0099; } } { Object_t * L_22 = V_1; G_B15_0 = ((*(int32_t*)((int32_t*)UnBox (L_22, InitializedTypeInfo(&Int32_t141_il2cpp_TypeInfo))))); goto IL_00a1; } IL_0099: { int32_t L_23 = (__this->___len_1); G_B15_0 = ((int32_t)((int32_t)L_23+(int32_t)1)); } IL_00a1: { return G_B15_0; } } // System.Char System.Text.RegularExpressions.QuickSearch::GetChar(System.Char) extern "C" uint16_t QuickSearch_GetChar_m7793 (QuickSearch_t1426 * __this, uint16_t ___c, MethodInfo* method) { uint16_t G_B3_0 = 0x0; { bool L_0 = (__this->___ignore_2); if (L_0) { goto IL_0011; } } { uint16_t L_1 = ___c; G_B3_0 = L_1; goto IL_0017; } IL_0011: { uint16_t L_2 = ___c; IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Char_t389_il2cpp_TypeInfo)); uint16_t L_3 = Char_ToLower_m2600(NULL /*static, unused*/, L_2, /*hidden argument*/&Char_ToLower_m2600_MethodInfo); G_B3_0 = L_3; } IL_0017: { return G_B3_0; } } // System.Text.RegularExpressions.Syntax.ExpressionCollection #include "System_System_Text_RegularExpressions_Syntax_ExpressionColle.h" #ifndef _MSC_VER #else #endif extern TypeInfo ExpressionCollection_t1440_il2cpp_TypeInfo; // System.Text.RegularExpressions.Syntax.ExpressionCollection #include "System_System_Text_RegularExpressions_Syntax_ExpressionColleMethodDeclarations.h" // System.Collections.CollectionBase #include "mscorlib_System_Collections_CollectionBaseMethodDeclarations.h" extern MethodInfo CollectionBase_get_List_m8213_MethodInfo; extern MethodInfo IList_set_Item_m8214_MethodInfo; extern MethodInfo CollectionBase__ctor_m8129_MethodInfo; extern MethodInfo IList_Add_m8215_MethodInfo; // System.Void System.Text.RegularExpressions.Syntax.ExpressionCollection::.ctor() extern MethodInfo ExpressionCollection__ctor_m7794_MethodInfo; extern "C" void ExpressionCollection__ctor_m7794 (ExpressionCollection_t1440 * __this, MethodInfo* method) { { CollectionBase__ctor_m8129(__this, /*hidden argument*/&CollectionBase__ctor_m8129_MethodInfo); return; } } // System.Void System.Text.RegularExpressions.Syntax.ExpressionCollection::Add(System.Text.RegularExpressions.Syntax.Expression) extern MethodInfo ExpressionCollection_Add_m7795_MethodInfo; extern "C" void ExpressionCollection_Add_m7795 (ExpressionCollection_t1440 * __this, Expression_t1438 * ___e, MethodInfo* method) { { Object_t * L_0 = CollectionBase_get_List_m8213(__this, /*hidden argument*/&CollectionBase_get_List_m8213_MethodInfo); Expression_t1438 * L_1 = ___e; NullCheck(L_0); InterfaceFuncInvoker1< int32_t, Object_t * >::Invoke(&IList_Add_m8215_MethodInfo, L_0, L_1); return; } } // System.Text.RegularExpressions.Syntax.Expression System.Text.RegularExpressions.Syntax.ExpressionCollection::get_Item(System.Int32) extern MethodInfo ExpressionCollection_get_Item_m7796_MethodInfo; extern "C" Expression_t1438 * ExpressionCollection_get_Item_m7796 (ExpressionCollection_t1440 * __this, int32_t ___i, MethodInfo* method) { { Object_t * L_0 = CollectionBase_get_List_m8213(__this, /*hidden argument*/&CollectionBase_get_List_m8213_MethodInfo); int32_t L_1 = ___i; NullCheck(L_0); Object_t * L_2 = (Object_t *)InterfaceFuncInvoker1< Object_t *, int32_t >::Invoke(&IList_get_Item_m8208_MethodInfo, L_0, L_1); return ((Expression_t1438 *)Castclass(L_2, InitializedTypeInfo(&Expression_t1438_il2cpp_TypeInfo))); } } // System.Void System.Text.RegularExpressions.Syntax.ExpressionCollection::set_Item(System.Int32,System.Text.RegularExpressions.Syntax.Expression) extern MethodInfo ExpressionCollection_set_Item_m7797_MethodInfo; extern "C" void ExpressionCollection_set_Item_m7797 (ExpressionCollection_t1440 * __this, int32_t ___i, Expression_t1438 * ___value, MethodInfo* method) { { Object_t * L_0 = CollectionBase_get_List_m8213(__this, /*hidden argument*/&CollectionBase_get_List_m8213_MethodInfo); int32_t L_1 = ___i; Expression_t1438 * L_2 = ___value; NullCheck(L_0); InterfaceActionInvoker2< int32_t, Object_t * >::Invoke(&IList_set_Item_m8214_MethodInfo, L_0, L_1, L_2); return; } } // System.Void System.Text.RegularExpressions.Syntax.ExpressionCollection::OnValidate(System.Object) extern MethodInfo ExpressionCollection_OnValidate_m7798_MethodInfo; extern "C" void ExpressionCollection_OnValidate_m7798 (ExpressionCollection_t1440 * __this, Object_t * ___o, MethodInfo* method) { { return; } } #ifndef _MSC_VER #else #endif // System.Text.RegularExpressions.Syntax.Expression #include "System_System_Text_RegularExpressions_Syntax_ExpressionMethodDeclarations.h" // System.Text.RegularExpressions.Syntax.AnchorInfo #include "System_System_Text_RegularExpressions_Syntax_AnchorInfo.h" extern TypeInfo AnchorInfo_t1442_il2cpp_TypeInfo; // System.Text.RegularExpressions.Syntax.AnchorInfo #include "System_System_Text_RegularExpressions_Syntax_AnchorInfoMethodDeclarations.h" extern MethodInfo Expression_GetWidth_m8216_MethodInfo; extern MethodInfo Expression_GetFixedWidth_m7800_MethodInfo; extern MethodInfo AnchorInfo__ctor_m7890_MethodInfo; // System.Void System.Text.RegularExpressions.Syntax.Expression::.ctor() extern MethodInfo Expression__ctor_m7799_MethodInfo; extern "C" void Expression__ctor_m7799 (Expression_t1438 * __this, MethodInfo* method) { { Object__ctor_m419(__this, /*hidden argument*/&Object__ctor_m419_MethodInfo); return; } } // System.Void System.Text.RegularExpressions.Syntax.Expression::Compile(System.Text.RegularExpressions.ICompiler,System.Boolean) // System.Void System.Text.RegularExpressions.Syntax.Expression::GetWidth(System.Int32&,System.Int32&) // System.Int32 System.Text.RegularExpressions.Syntax.Expression::GetFixedWidth() extern "C" int32_t Expression_GetFixedWidth_m7800 (Expression_t1438 * __this, MethodInfo* method) { int32_t V_0 = 0; int32_t V_1 = 0; { VirtActionInvoker2< int32_t*, int32_t* >::Invoke(&Expression_GetWidth_m8216_MethodInfo, __this, (&V_0), (&V_1)); int32_t L_0 = V_0; int32_t L_1 = V_1; if ((!(((uint32_t)L_0) == ((uint32_t)L_1)))) { goto IL_0013; } } { int32_t L_2 = V_0; return L_2; } IL_0013: { return (-1); } } // System.Text.RegularExpressions.Syntax.AnchorInfo System.Text.RegularExpressions.Syntax.Expression::GetAnchorInfo(System.Boolean) extern MethodInfo Expression_GetAnchorInfo_m7801_MethodInfo; extern "C" AnchorInfo_t1442 * Expression_GetAnchorInfo_m7801 (Expression_t1438 * __this, bool ___reverse, MethodInfo* method) { { int32_t L_0 = Expression_GetFixedWidth_m7800(__this, /*hidden argument*/&Expression_GetFixedWidth_m7800_MethodInfo); AnchorInfo_t1442 * L_1 = (AnchorInfo_t1442 *)il2cpp_codegen_object_new (InitializedTypeInfo(&AnchorInfo_t1442_il2cpp_TypeInfo)); AnchorInfo__ctor_m7890(L_1, __this, L_0, /*hidden argument*/&AnchorInfo__ctor_m7890_MethodInfo); return L_1; } } // System.Boolean System.Text.RegularExpressions.Syntax.Expression::IsComplex() // System.Text.RegularExpressions.Syntax.CompositeExpression #include "System_System_Text_RegularExpressions_Syntax_CompositeExpres.h" #ifndef _MSC_VER #else #endif extern TypeInfo CompositeExpression_t1443_il2cpp_TypeInfo; // System.Text.RegularExpressions.Syntax.CompositeExpression #include "System_System_Text_RegularExpressions_Syntax_CompositeExpresMethodDeclarations.h" // System.Collections.CollectionBase #include "mscorlib_System_Collections_CollectionBase.h" extern TypeInfo CollectionBase_t1364_il2cpp_TypeInfo; extern MethodInfo CompositeExpression_get_Expressions_m7803_MethodInfo; extern MethodInfo CollectionBase_GetEnumerator_m8146_MethodInfo; extern MethodInfo Expression_IsComplex_m8217_MethodInfo; // System.Void System.Text.RegularExpressions.Syntax.CompositeExpression::.ctor() extern MethodInfo CompositeExpression__ctor_m7802_MethodInfo; extern "C" void CompositeExpression__ctor_m7802 (CompositeExpression_t1443 * __this, MethodInfo* method) { { Expression__ctor_m7799(__this, /*hidden argument*/&Expression__ctor_m7799_MethodInfo); ExpressionCollection_t1440 * L_0 = (ExpressionCollection_t1440 *)il2cpp_codegen_object_new (InitializedTypeInfo(&ExpressionCollection_t1440_il2cpp_TypeInfo)); ExpressionCollection__ctor_m7794(L_0, /*hidden argument*/&ExpressionCollection__ctor_m7794_MethodInfo); __this->___expressions_0 = L_0; return; } } // System.Text.RegularExpressions.Syntax.ExpressionCollection System.Text.RegularExpressions.Syntax.CompositeExpression::get_Expressions() extern "C" ExpressionCollection_t1440 * CompositeExpression_get_Expressions_m7803 (CompositeExpression_t1443 * __this, MethodInfo* method) { { ExpressionCollection_t1440 * L_0 = (__this->___expressions_0); return L_0; } } // System.Void System.Text.RegularExpressions.Syntax.CompositeExpression::GetWidth(System.Int32&,System.Int32&,System.Int32) extern MethodInfo CompositeExpression_GetWidth_m7804_MethodInfo; extern "C" void CompositeExpression_GetWidth_m7804 (CompositeExpression_t1443 * __this, int32_t* ___min, int32_t* ___max, int32_t ___count, MethodInfo* method) { bool V_0 = false; int32_t V_1 = 0; Expression_t1438 * V_2 = {0}; int32_t V_3 = 0; int32_t V_4 = 0; int32_t V_5 = 0; { int32_t* L_0 = ___min; *((int32_t*)(L_0)) = (int32_t)((int32_t)2147483647); int32_t* L_1 = ___max; *((int32_t*)(L_1)) = (int32_t)0; V_0 = 1; V_1 = 0; goto IL_0053; } IL_0013: { ExpressionCollection_t1440 * L_2 = CompositeExpression_get_Expressions_m7803(__this, /*hidden argument*/&CompositeExpression_get_Expressions_m7803_MethodInfo); int32_t L_3 = V_1; NullCheck(L_2); Expression_t1438 * L_4 = ExpressionCollection_get_Item_m7796(L_2, L_3, /*hidden argument*/&ExpressionCollection_get_Item_m7796_MethodInfo); V_2 = L_4; Expression_t1438 * L_5 = V_2; if (L_5) { goto IL_002b; } } { goto IL_004f; } IL_002b: { V_0 = 0; Expression_t1438 * L_6 = V_2; NullCheck(L_6); VirtActionInvoker2< int32_t*, int32_t* >::Invoke(&Expression_GetWidth_m8216_MethodInfo, L_6, (&V_3), (&V_4)); int32_t L_7 = V_3; int32_t* L_8 = ___min; if ((((int32_t)L_7) >= ((int32_t)(*((int32_t*)L_8))))) { goto IL_0042; } } { int32_t* L_9 = ___min; int32_t L_10 = V_3; *((int32_t*)(L_9)) = (int32_t)L_10; } IL_0042: { int32_t L_11 = V_4; int32_t* L_12 = ___max; if ((((int32_t)L_11) <= ((int32_t)(*((int32_t*)L_12))))) { goto IL_004f; } } { int32_t* L_13 = ___max; int32_t L_14 = V_4; *((int32_t*)(L_13)) = (int32_t)L_14; } IL_004f: { int32_t L_15 = V_1; V_1 = ((int32_t)((int32_t)L_15+(int32_t)1)); } IL_0053: { int32_t L_16 = V_1; int32_t L_17 = ___count; if ((((int32_t)L_16) < ((int32_t)L_17))) { goto IL_0013; } } { bool L_18 = V_0; if (!L_18) { goto IL_006a; } } { int32_t* L_19 = ___min; int32_t* L_20 = ___max; int32_t L_21 = 0; V_5 = L_21; *((int32_t*)(L_20)) = (int32_t)L_21; int32_t L_22 = V_5; *((int32_t*)(L_19)) = (int32_t)L_22; } IL_006a: { return; } } // System.Boolean System.Text.RegularExpressions.Syntax.CompositeExpression::IsComplex() extern MethodInfo CompositeExpression_IsComplex_m7805_MethodInfo; extern "C" bool CompositeExpression_IsComplex_m7805 (CompositeExpression_t1443 * __this, MethodInfo* method) { Expression_t1438 * V_0 = {0}; Object_t * V_1 = {0}; bool V_2 = false; Object_t * V_3 = {0}; Exception_t154 * __last_unhandled_exception = 0; NO_UNUSED_WARNING (__last_unhandled_exception); Exception_t154 * __exception_local = 0; NO_UNUSED_WARNING (__exception_local); int32_t __leave_target = 0; NO_UNUSED_WARNING (__leave_target); { ExpressionCollection_t1440 * L_0 = CompositeExpression_get_Expressions_m7803(__this, /*hidden argument*/&CompositeExpression_get_Expressions_m7803_MethodInfo); NullCheck(L_0); Object_t * L_1 = (Object_t *)VirtFuncInvoker0< Object_t * >::Invoke(&CollectionBase_GetEnumerator_m8146_MethodInfo, L_0); V_1 = L_1; } IL_000c: try { // begin try (depth: 1) { goto IL_002f; } IL_0011: { Object_t * L_2 = V_1; NullCheck(L_2); Object_t * L_3 = (Object_t *)InterfaceFuncInvoker0< Object_t * >::Invoke(&IEnumerator_get_Current_m6898_MethodInfo, L_2); V_0 = ((Expression_t1438 *)Castclass(L_3, InitializedTypeInfo(&Expression_t1438_il2cpp_TypeInfo))); Expression_t1438 * L_4 = V_0; NullCheck(L_4); bool L_5 = (bool)VirtFuncInvoker0< bool >::Invoke(&Expression_IsComplex_m8217_MethodInfo, L_4); if (!L_5) { goto IL_002f; } } IL_0028: { V_2 = 1; IL2CPP_LEAVE(0x5E, FINALLY_003f); } IL_002f: { Object_t * L_6 = V_1; NullCheck(L_6); bool L_7 = (bool)InterfaceFuncInvoker0< bool >::Invoke(&IEnumerator_MoveNext_m692_MethodInfo, L_6); if (L_7) { goto IL_0011; } } IL_003a: { IL2CPP_LEAVE(0x51, FINALLY_003f); } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { __last_unhandled_exception = (Exception_t154 *)e.ex; goto FINALLY_003f; } FINALLY_003f: { // begin finally (depth: 1) { Object_t * L_8 = V_1; V_3 = ((Object_t *)IsInst(L_8, InitializedTypeInfo(&IDisposable_t153_il2cpp_TypeInfo))); Object_t * L_9 = V_3; if (L_9) { goto IL_004a; } } IL_0049: { IL2CPP_END_FINALLY(63) } IL_004a: { Object_t * L_10 = V_3; NullCheck(L_10); InterfaceActionInvoker0::Invoke(&IDisposable_Dispose_m486_MethodInfo, L_10); IL2CPP_END_FINALLY(63) } } // end finally (depth: 1) IL2CPP_CLEANUP(63) { IL2CPP_JUMP_TBL(0x5E, IL_005e) IL2CPP_JUMP_TBL(0x51, IL_0051) IL2CPP_RETHROW_IF_UNHANDLED(Exception_t154 *) } IL_0051: { int32_t L_11 = Expression_GetFixedWidth_m7800(__this, /*hidden argument*/&Expression_GetFixedWidth_m7800_MethodInfo); return ((((int32_t)((((int32_t)L_11) > ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0); } IL_005e: { bool L_12 = V_2; return L_12; } } #ifndef _MSC_VER #else #endif // System.Text.StringBuilder #include "mscorlib_System_Text_StringBuilder.h" // System.IO.TextWriter #include "mscorlib_System_IO_TextWriter.h" extern TypeInfo ICompiler_t1441_il2cpp_TypeInfo; extern TypeInfo StringBuilder_t480_il2cpp_TypeInfo; extern TypeInfo Console_t1496_il2cpp_TypeInfo; extern TypeInfo TextWriter_t1497_il2cpp_TypeInfo; // System.Text.StringBuilder #include "mscorlib_System_Text_StringBuilderMethodDeclarations.h" // System.Console #include "mscorlib_System_ConsoleMethodDeclarations.h" // System.IO.TextWriter #include "mscorlib_System_IO_TextWriterMethodDeclarations.h" extern MethodInfo CollectionBase_get_Count_m8106_MethodInfo; extern MethodInfo Expression_Compile_m8218_MethodInfo; extern MethodInfo AnchorInfo_get_IsPosition_m7902_MethodInfo; extern MethodInfo AnchorInfo_get_Offset_m7893_MethodInfo; extern MethodInfo AnchorInfo_get_Position_m7900_MethodInfo; extern MethodInfo AnchorInfo__ctor_m7892_MethodInfo; extern MethodInfo AnchorInfo_get_IsSubstring_m7901_MethodInfo; extern MethodInfo AnchorInfo_GetInterval_m7903_MethodInfo; extern MethodInfo AnchorInfo_get_IsUnknownWidth_m7896_MethodInfo; extern MethodInfo AnchorInfo_get_Width_m7894_MethodInfo; extern MethodInfo AnchorInfo_get_IgnoreCase_m7899_MethodInfo; extern MethodInfo StringBuilder__ctor_m2206_MethodInfo; extern MethodInfo AnchorInfo_get_Substring_m7898_MethodInfo; extern MethodInfo StringBuilder_Append_m6931_MethodInfo; extern MethodInfo StringBuilder_get_Length_m8158_MethodInfo; extern MethodInfo StringBuilder_ToString_m2209_MethodInfo; extern MethodInfo AnchorInfo__ctor_m7891_MethodInfo; extern MethodInfo Console_get_Error_m8219_MethodInfo; extern MethodInfo TextWriter_WriteLine_m8220_MethodInfo; // System.Void System.Text.RegularExpressions.Syntax.Group::.ctor() extern "C" void Group__ctor_m7806 (Group_t1436 * __this, MethodInfo* method) { { CompositeExpression__ctor_m7802(__this, /*hidden argument*/&CompositeExpression__ctor_m7802_MethodInfo); return; } } // System.Void System.Text.RegularExpressions.Syntax.Group::AppendExpression(System.Text.RegularExpressions.Syntax.Expression) extern "C" void Group_AppendExpression_m7807 (Group_t1436 * __this, Expression_t1438 * ___e, MethodInfo* method) { { ExpressionCollection_t1440 * L_0 = CompositeExpression_get_Expressions_m7803(__this, /*hidden argument*/&CompositeExpression_get_Expressions_m7803_MethodInfo); Expression_t1438 * L_1 = ___e; NullCheck(L_0); ExpressionCollection_Add_m7795(L_0, L_1, /*hidden argument*/&ExpressionCollection_Add_m7795_MethodInfo); return; } } // System.Void System.Text.RegularExpressions.Syntax.Group::Compile(System.Text.RegularExpressions.ICompiler,System.Boolean) extern MethodInfo Group_Compile_m7808_MethodInfo; extern "C" void Group_Compile_m7808 (Group_t1436 * __this, Object_t * ___cmp, bool ___reverse, MethodInfo* method) { int32_t V_0 = 0; int32_t V_1 = 0; Expression_t1438 * V_2 = {0}; { ExpressionCollection_t1440 * L_0 = CompositeExpression_get_Expressions_m7803(__this, /*hidden argument*/&CompositeExpression_get_Expressions_m7803_MethodInfo); NullCheck(L_0); int32_t L_1 = (int32_t)VirtFuncInvoker0< int32_t >::Invoke(&CollectionBase_get_Count_m8106_MethodInfo, L_0); V_0 = L_1; V_1 = 0; goto IL_0048; } IL_0013: { bool L_2 = ___reverse; if (!L_2) { goto IL_002f; } } { ExpressionCollection_t1440 * L_3 = CompositeExpression_get_Expressions_m7803(__this, /*hidden argument*/&CompositeExpression_get_Expressions_m7803_MethodInfo); int32_t L_4 = V_0; int32_t L_5 = V_1; NullCheck(L_3); Expression_t1438 * L_6 = ExpressionCollection_get_Item_m7796(L_3, ((int32_t)((int32_t)((int32_t)((int32_t)L_4-(int32_t)L_5))-(int32_t)1)), /*hidden argument*/&ExpressionCollection_get_Item_m7796_MethodInfo); V_2 = L_6; goto IL_003c; } IL_002f: { ExpressionCollection_t1440 * L_7 = CompositeExpression_get_Expressions_m7803(__this, /*hidden argument*/&CompositeExpression_get_Expressions_m7803_MethodInfo); int32_t L_8 = V_1; NullCheck(L_7); Expression_t1438 * L_9 = ExpressionCollection_get_Item_m7796(L_7, L_8, /*hidden argument*/&ExpressionCollection_get_Item_m7796_MethodInfo); V_2 = L_9; } IL_003c: { Expression_t1438 * L_10 = V_2; Object_t * L_11 = ___cmp; bool L_12 = ___reverse; NullCheck(L_10); VirtActionInvoker2< Object_t *, bool >::Invoke(&Expression_Compile_m8218_MethodInfo, L_10, L_11, L_12); int32_t L_13 = V_1; V_1 = ((int32_t)((int32_t)L_13+(int32_t)1)); } IL_0048: { int32_t L_14 = V_1; int32_t L_15 = V_0; if ((((int32_t)L_14) < ((int32_t)L_15))) { goto IL_0013; } } { return; } } // System.Void System.Text.RegularExpressions.Syntax.Group::GetWidth(System.Int32&,System.Int32&) extern MethodInfo Group_GetWidth_m7809_MethodInfo; extern "C" void Group_GetWidth_m7809 (Group_t1436 * __this, int32_t* ___min, int32_t* ___max, MethodInfo* method) { Expression_t1438 * V_0 = {0}; Object_t * V_1 = {0}; int32_t V_2 = 0; int32_t V_3 = 0; Object_t * V_4 = {0}; Exception_t154 * __last_unhandled_exception = 0; NO_UNUSED_WARNING (__last_unhandled_exception); Exception_t154 * __exception_local = 0; NO_UNUSED_WARNING (__exception_local); int32_t __leave_target = 0; NO_UNUSED_WARNING (__leave_target); { int32_t* L_0 = ___min; *((int32_t*)(L_0)) = (int32_t)0; int32_t* L_1 = ___max; *((int32_t*)(L_1)) = (int32_t)0; ExpressionCollection_t1440 * L_2 = CompositeExpression_get_Expressions_m7803(__this, /*hidden argument*/&CompositeExpression_get_Expressions_m7803_MethodInfo); NullCheck(L_2); Object_t * L_3 = (Object_t *)VirtFuncInvoker0< Object_t * >::Invoke(&CollectionBase_GetEnumerator_m8146_MethodInfo, L_2); V_1 = L_3; } IL_0012: try { // begin try (depth: 1) { goto IL_005c; } IL_0017: { Object_t * L_4 = V_1; NullCheck(L_4); Object_t * L_5 = (Object_t *)InterfaceFuncInvoker0< Object_t * >::Invoke(&IEnumerator_get_Current_m6898_MethodInfo, L_4); V_0 = ((Expression_t1438 *)Castclass(L_5, InitializedTypeInfo(&Expression_t1438_il2cpp_TypeInfo))); Expression_t1438 * L_6 = V_0; NullCheck(L_6); VirtActionInvoker2< int32_t*, int32_t* >::Invoke(&Expression_GetWidth_m8216_MethodInfo, L_6, (&V_2), (&V_3)); int32_t* L_7 = ___min; int32_t* L_8 = ___min; int32_t L_9 = V_2; *((int32_t*)(L_7)) = (int32_t)((int32_t)((int32_t)(*((int32_t*)L_8))+(int32_t)L_9)); int32_t* L_10 = ___max; if ((((int32_t)(*((int32_t*)L_10))) == ((int32_t)((int32_t)2147483647)))) { goto IL_004a; } } IL_003f: { int32_t L_11 = V_3; if ((!(((uint32_t)L_11) == ((uint32_t)((int32_t)2147483647))))) { goto IL_0056; } } IL_004a: { int32_t* L_12 = ___max; *((int32_t*)(L_12)) = (int32_t)((int32_t)2147483647); goto IL_005c; } IL_0056: { int32_t* L_13 = ___max; int32_t* L_14 = ___max; int32_t L_15 = V_3; *((int32_t*)(L_13)) = (int32_t)((int32_t)((int32_t)(*((int32_t*)L_14))+(int32_t)L_15)); } IL_005c: { Object_t * L_16 = V_1; NullCheck(L_16); bool L_17 = (bool)InterfaceFuncInvoker0< bool >::Invoke(&IEnumerator_MoveNext_m692_MethodInfo, L_16); if (L_17) { goto IL_0017; } } IL_0067: { IL2CPP_LEAVE(0x81, FINALLY_006c); } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { __last_unhandled_exception = (Exception_t154 *)e.ex; goto FINALLY_006c; } FINALLY_006c: { // begin finally (depth: 1) { Object_t * L_18 = V_1; V_4 = ((Object_t *)IsInst(L_18, InitializedTypeInfo(&IDisposable_t153_il2cpp_TypeInfo))); Object_t * L_19 = V_4; if (L_19) { goto IL_0079; } } IL_0078: { IL2CPP_END_FINALLY(108) } IL_0079: { Object_t * L_20 = V_4; NullCheck(L_20); InterfaceActionInvoker0::Invoke(&IDisposable_Dispose_m486_MethodInfo, L_20); IL2CPP_END_FINALLY(108) } } // end finally (depth: 1) IL2CPP_CLEANUP(108) { IL2CPP_JUMP_TBL(0x81, IL_0081) IL2CPP_RETHROW_IF_UNHANDLED(Exception_t154 *) } IL_0081: { return; } } // System.Text.RegularExpressions.Syntax.AnchorInfo System.Text.RegularExpressions.Syntax.Group::GetAnchorInfo(System.Boolean) extern MethodInfo Group_GetAnchorInfo_m7810_MethodInfo; extern "C" AnchorInfo_t1442 * Group_GetAnchorInfo_m7810 (Group_t1436 * __this, bool ___reverse, MethodInfo* method) { int32_t V_0 = 0; int32_t V_1 = 0; ArrayList_t1304 * V_2 = {0}; IntervalCollection_t1433 * V_3 = {0}; int32_t V_4 = 0; int32_t V_5 = 0; Expression_t1438 * V_6 = {0}; AnchorInfo_t1442 * V_7 = {0}; Interval_t1429 V_8 = {0}; Interval_t1429 V_9 = {0}; Object_t * V_10 = {0}; bool V_11 = false; int32_t V_12 = 0; int32_t V_13 = 0; AnchorInfo_t1442 * V_14 = {0}; StringBuilder_t480 * V_15 = {0}; int32_t V_16 = 0; AnchorInfo_t1442 * V_17 = {0}; Object_t * V_18 = {0}; Exception_t154 * __last_unhandled_exception = 0; NO_UNUSED_WARNING (__last_unhandled_exception); Exception_t154 * __exception_local = 0; NO_UNUSED_WARNING (__exception_local); int32_t __leave_target = 0; NO_UNUSED_WARNING (__leave_target); { int32_t L_0 = Expression_GetFixedWidth_m7800(__this, /*hidden argument*/&Expression_GetFixedWidth_m7800_MethodInfo); V_1 = L_0; IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&ArrayList_t1304_il2cpp_TypeInfo)); ArrayList_t1304 * L_1 = (ArrayList_t1304 *)il2cpp_codegen_object_new (InitializedTypeInfo(&ArrayList_t1304_il2cpp_TypeInfo)); ArrayList__ctor_m7998(L_1, /*hidden argument*/&ArrayList__ctor_m7998_MethodInfo); V_2 = L_1; IntervalCollection_t1433 * L_2 = (IntervalCollection_t1433 *)il2cpp_codegen_object_new (InitializedTypeInfo(&IntervalCollection_t1433_il2cpp_TypeInfo)); IntervalCollection__ctor_m7745(L_2, /*hidden argument*/&IntervalCollection__ctor_m7745_MethodInfo); V_3 = L_2; V_0 = 0; ExpressionCollection_t1440 * L_3 = CompositeExpression_get_Expressions_m7803(__this, /*hidden argument*/&CompositeExpression_get_Expressions_m7803_MethodInfo); NullCheck(L_3); int32_t L_4 = (int32_t)VirtFuncInvoker0< int32_t >::Invoke(&CollectionBase_get_Count_m8106_MethodInfo, L_3); V_4 = L_4; V_5 = 0; goto IL_00ca; } IL_002a: { bool L_5 = ___reverse; if (!L_5) { goto IL_0049; } } { ExpressionCollection_t1440 * L_6 = CompositeExpression_get_Expressions_m7803(__this, /*hidden argument*/&CompositeExpression_get_Expressions_m7803_MethodInfo); int32_t L_7 = V_4; int32_t L_8 = V_5; NullCheck(L_6); Expression_t1438 * L_9 = ExpressionCollection_get_Item_m7796(L_6, ((int32_t)((int32_t)((int32_t)((int32_t)L_7-(int32_t)L_8))-(int32_t)1)), /*hidden argument*/&ExpressionCollection_get_Item_m7796_MethodInfo); V_6 = L_9; goto IL_0058; } IL_0049: { ExpressionCollection_t1440 * L_10 = CompositeExpression_get_Expressions_m7803(__this, /*hidden argument*/&CompositeExpression_get_Expressions_m7803_MethodInfo); int32_t L_11 = V_5; NullCheck(L_10); Expression_t1438 * L_12 = ExpressionCollection_get_Item_m7796(L_10, L_11, /*hidden argument*/&ExpressionCollection_get_Item_m7796_MethodInfo); V_6 = L_12; } IL_0058: { Expression_t1438 * L_13 = V_6; bool L_14 = ___reverse; NullCheck(L_13); AnchorInfo_t1442 * L_15 = (AnchorInfo_t1442 *)VirtFuncInvoker1< AnchorInfo_t1442 *, bool >::Invoke(&Expression_GetAnchorInfo_m7801_MethodInfo, L_13, L_14); V_7 = L_15; ArrayList_t1304 * L_16 = V_2; AnchorInfo_t1442 * L_17 = V_7; NullCheck(L_16); VirtFuncInvoker1< int32_t, Object_t * >::Invoke(&ArrayList_Add_m8008_MethodInfo, L_16, L_17); AnchorInfo_t1442 * L_18 = V_7; NullCheck(L_18); bool L_19 = AnchorInfo_get_IsPosition_m7902(L_18, /*hidden argument*/&AnchorInfo_get_IsPosition_m7902_MethodInfo); if (!L_19) { goto IL_008f; } } { int32_t L_20 = V_0; AnchorInfo_t1442 * L_21 = V_7; NullCheck(L_21); int32_t L_22 = AnchorInfo_get_Offset_m7893(L_21, /*hidden argument*/&AnchorInfo_get_Offset_m7893_MethodInfo); int32_t L_23 = V_1; AnchorInfo_t1442 * L_24 = V_7; NullCheck(L_24); uint16_t L_25 = AnchorInfo_get_Position_m7900(L_24, /*hidden argument*/&AnchorInfo_get_Position_m7900_MethodInfo); AnchorInfo_t1442 * L_26 = (AnchorInfo_t1442 *)il2cpp_codegen_object_new (InitializedTypeInfo(&AnchorInfo_t1442_il2cpp_TypeInfo)); AnchorInfo__ctor_m7892(L_26, __this, ((int32_t)((int32_t)L_20+(int32_t)L_22)), L_23, L_25, /*hidden argument*/&AnchorInfo__ctor_m7892_MethodInfo); return L_26; } IL_008f: { AnchorInfo_t1442 * L_27 = V_7; NullCheck(L_27); bool L_28 = AnchorInfo_get_IsSubstring_m7901(L_27, /*hidden argument*/&AnchorInfo_get_IsSubstring_m7901_MethodInfo); if (!L_28) { goto IL_00a9; } } { IntervalCollection_t1433 * L_29 = V_3; AnchorInfo_t1442 * L_30 = V_7; int32_t L_31 = V_0; NullCheck(L_30); Interval_t1429 L_32 = AnchorInfo_GetInterval_m7903(L_30, L_31, /*hidden argument*/&AnchorInfo_GetInterval_m7903_MethodInfo); NullCheck(L_29); IntervalCollection_Add_m7747(L_29, L_32, /*hidden argument*/&IntervalCollection_Add_m7747_MethodInfo); } IL_00a9: { AnchorInfo_t1442 * L_33 = V_7; NullCheck(L_33); bool L_34 = AnchorInfo_get_IsUnknownWidth_m7896(L_33, /*hidden argument*/&AnchorInfo_get_IsUnknownWidth_m7896_MethodInfo); if (!L_34) { goto IL_00ba; } } { goto IL_00d3; } IL_00ba: { int32_t L_35 = V_0; AnchorInfo_t1442 * L_36 = V_7; NullCheck(L_36); int32_t L_37 = AnchorInfo_get_Width_m7894(L_36, /*hidden argument*/&AnchorInfo_get_Width_m7894_MethodInfo); V_0 = ((int32_t)((int32_t)L_35+(int32_t)L_37)); int32_t L_38 = V_5; V_5 = ((int32_t)((int32_t)L_38+(int32_t)1)); } IL_00ca: { int32_t L_39 = V_5; int32_t L_40 = V_4; if ((((int32_t)L_39) < ((int32_t)L_40))) { goto IL_002a; } } IL_00d3: { IntervalCollection_t1433 * L_41 = V_3; NullCheck(L_41); IntervalCollection_Normalize_m7748(L_41, /*hidden argument*/&IntervalCollection_Normalize_m7748_MethodInfo); Interval_t1429 L_42 = Interval_get_Empty_m7725(NULL /*static, unused*/, /*hidden argument*/&Interval_get_Empty_m7725_MethodInfo); V_8 = L_42; IntervalCollection_t1433 * L_43 = V_3; NullCheck(L_43); Object_t * L_44 = (Object_t *)VirtFuncInvoker0< Object_t * >::Invoke(&IntervalCollection_GetEnumerator_m7755_MethodInfo, L_43); V_10 = L_44; } IL_00e8: try { // begin try (depth: 1) { goto IL_0112; } IL_00ed: { Object_t * L_45 = V_10; NullCheck(L_45); Object_t * L_46 = (Object_t *)InterfaceFuncInvoker0< Object_t * >::Invoke(&IEnumerator_get_Current_m6898_MethodInfo, L_45); V_9 = ((*(Interval_t1429 *)((Interval_t1429 *)UnBox (L_46, InitializedTypeInfo(&Interval_t1429_il2cpp_TypeInfo))))); int32_t L_47 = Interval_get_Size_m7729((&V_9), /*hidden argument*/&Interval_get_Size_m7729_MethodInfo); int32_t L_48 = Interval_get_Size_m7729((&V_8), /*hidden argument*/&Interval_get_Size_m7729_MethodInfo); if ((((int32_t)L_47) <= ((int32_t)L_48))) { goto IL_0112; } } IL_010e: { Interval_t1429 L_49 = V_9; V_8 = L_49; } IL_0112: { Object_t * L_50 = V_10; NullCheck(L_50); bool L_51 = (bool)InterfaceFuncInvoker0< bool >::Invoke(&IEnumerator_MoveNext_m692_MethodInfo, L_50); if (L_51) { goto IL_00ed; } } IL_011e: { IL2CPP_LEAVE(0x139, FINALLY_0123); } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { __last_unhandled_exception = (Exception_t154 *)e.ex; goto FINALLY_0123; } FINALLY_0123: { // begin finally (depth: 1) { Object_t * L_52 = V_10; V_18 = ((Object_t *)IsInst(L_52, InitializedTypeInfo(&IDisposable_t153_il2cpp_TypeInfo))); Object_t * L_53 = V_18; if (L_53) { goto IL_0131; } } IL_0130: { IL2CPP_END_FINALLY(291) } IL_0131: { Object_t * L_54 = V_18; NullCheck(L_54); InterfaceActionInvoker0::Invoke(&IDisposable_Dispose_m486_MethodInfo, L_54); IL2CPP_END_FINALLY(291) } } // end finally (depth: 1) IL2CPP_CLEANUP(291) { IL2CPP_JUMP_TBL(0x139, IL_0139) IL2CPP_RETHROW_IF_UNHANDLED(Exception_t154 *) } IL_0139: { bool L_55 = Interval_get_IsEmpty_m7728((&V_8), /*hidden argument*/&Interval_get_IsEmpty_m7728_MethodInfo); if (!L_55) { goto IL_014d; } } { int32_t L_56 = V_1; AnchorInfo_t1442 * L_57 = (AnchorInfo_t1442 *)il2cpp_codegen_object_new (InitializedTypeInfo(&AnchorInfo_t1442_il2cpp_TypeInfo)); AnchorInfo__ctor_m7890(L_57, __this, L_56, /*hidden argument*/&AnchorInfo__ctor_m7890_MethodInfo); return L_57; } IL_014d: { V_11 = 0; V_12 = 0; V_0 = 0; V_13 = 0; goto IL_01c8; } IL_015d: { ArrayList_t1304 * L_58 = V_2; int32_t L_59 = V_13; NullCheck(L_58); Object_t * L_60 = (Object_t *)VirtFuncInvoker1< Object_t *, int32_t >::Invoke(&ArrayList_get_Item_m7996_MethodInfo, L_58, L_59); V_14 = ((AnchorInfo_t1442 *)Castclass(L_60, InitializedTypeInfo(&AnchorInfo_t1442_il2cpp_TypeInfo))); AnchorInfo_t1442 * L_61 = V_14; NullCheck(L_61); bool L_62 = AnchorInfo_get_IsSubstring_m7901(L_61, /*hidden argument*/&AnchorInfo_get_IsSubstring_m7901_MethodInfo); if (!L_62) { goto IL_01a7; } } { AnchorInfo_t1442 * L_63 = V_14; int32_t L_64 = V_0; NullCheck(L_63); Interval_t1429 L_65 = AnchorInfo_GetInterval_m7903(L_63, L_64, /*hidden argument*/&AnchorInfo_GetInterval_m7903_MethodInfo); bool L_66 = Interval_Contains_m7732((&V_8), L_65, /*hidden argument*/&Interval_Contains_m7732_MethodInfo); if (!L_66) { goto IL_01a7; } } { bool L_67 = V_11; AnchorInfo_t1442 * L_68 = V_14; NullCheck(L_68); bool L_69 = AnchorInfo_get_IgnoreCase_m7899(L_68, /*hidden argument*/&AnchorInfo_get_IgnoreCase_m7899_MethodInfo); V_11 = ((int32_t)((int32_t)L_67|(int32_t)L_69)); ArrayList_t1304 * L_70 = V_2; int32_t L_71 = V_12; int32_t L_72 = L_71; V_12 = ((int32_t)((int32_t)L_72+(int32_t)1)); AnchorInfo_t1442 * L_73 = V_14; NullCheck(L_70); VirtActionInvoker2< int32_t, Object_t * >::Invoke(&ArrayList_set_Item_m8203_MethodInfo, L_70, L_72, L_73); } IL_01a7: { AnchorInfo_t1442 * L_74 = V_14; NullCheck(L_74); bool L_75 = AnchorInfo_get_IsUnknownWidth_m7896(L_74, /*hidden argument*/&AnchorInfo_get_IsUnknownWidth_m7896_MethodInfo); if (!L_75) { goto IL_01b8; } } { goto IL_01d5; } IL_01b8: { int32_t L_76 = V_0; AnchorInfo_t1442 * L_77 = V_14; NullCheck(L_77); int32_t L_78 = AnchorInfo_get_Width_m7894(L_77, /*hidden argument*/&AnchorInfo_get_Width_m7894_MethodInfo); V_0 = ((int32_t)((int32_t)L_76+(int32_t)L_78)); int32_t L_79 = V_13; V_13 = ((int32_t)((int32_t)L_79+(int32_t)1)); } IL_01c8: { int32_t L_80 = V_13; ArrayList_t1304 * L_81 = V_2; NullCheck(L_81); int32_t L_82 = (int32_t)VirtFuncInvoker0< int32_t >::Invoke(&ArrayList_get_Count_m7994_MethodInfo, L_81); if ((((int32_t)L_80) < ((int32_t)L_82))) { goto IL_015d; } } IL_01d5: { StringBuilder_t480 * L_83 = (StringBuilder_t480 *)il2cpp_codegen_object_new (InitializedTypeInfo(&StringBuilder_t480_il2cpp_TypeInfo)); StringBuilder__ctor_m2206(L_83, /*hidden argument*/&StringBuilder__ctor_m2206_MethodInfo); V_15 = L_83; V_16 = 0; goto IL_0227; } IL_01e4: { bool L_84 = ___reverse; if (!L_84) { goto IL_0203; } } { ArrayList_t1304 * L_85 = V_2; int32_t L_86 = V_12; int32_t L_87 = V_16; NullCheck(L_85); Object_t * L_88 = (Object_t *)VirtFuncInvoker1< Object_t *, int32_t >::Invoke(&ArrayList_get_Item_m7996_MethodInfo, L_85, ((int32_t)((int32_t)((int32_t)((int32_t)L_86-(int32_t)L_87))-(int32_t)1))); V_17 = ((AnchorInfo_t1442 *)Castclass(L_88, InitializedTypeInfo(&AnchorInfo_t1442_il2cpp_TypeInfo))); goto IL_0212; } IL_0203: { ArrayList_t1304 * L_89 = V_2; int32_t L_90 = V_16; NullCheck(L_89); Object_t * L_91 = (Object_t *)VirtFuncInvoker1< Object_t *, int32_t >::Invoke(&ArrayList_get_Item_m7996_MethodInfo, L_89, L_90); V_17 = ((AnchorInfo_t1442 *)Castclass(L_91, InitializedTypeInfo(&AnchorInfo_t1442_il2cpp_TypeInfo))); } IL_0212: { StringBuilder_t480 * L_92 = V_15; AnchorInfo_t1442 * L_93 = V_17; NullCheck(L_93); String_t* L_94 = AnchorInfo_get_Substring_m7898(L_93, /*hidden argument*/&AnchorInfo_get_Substring_m7898_MethodInfo); NullCheck(L_92); StringBuilder_Append_m6931(L_92, L_94, /*hidden argument*/&StringBuilder_Append_m6931_MethodInfo); int32_t L_95 = V_16; V_16 = ((int32_t)((int32_t)L_95+(int32_t)1)); } IL_0227: { int32_t L_96 = V_16; int32_t L_97 = V_12; if ((((int32_t)L_96) < ((int32_t)L_97))) { goto IL_01e4; } } { StringBuilder_t480 * L_98 = V_15; NullCheck(L_98); int32_t L_99 = StringBuilder_get_Length_m8158(L_98, /*hidden argument*/&StringBuilder_get_Length_m8158_MethodInfo); int32_t L_100 = Interval_get_Size_m7729((&V_8), /*hidden argument*/&Interval_get_Size_m7729_MethodInfo); if ((!(((uint32_t)L_99) == ((uint32_t)L_100)))) { goto IL_025b; } } { int32_t L_101 = ((&V_8)->___low_0); int32_t L_102 = V_1; StringBuilder_t480 * L_103 = V_15; NullCheck(L_103); String_t* L_104 = (String_t*)VirtFuncInvoker0< String_t* >::Invoke(&StringBuilder_ToString_m2209_MethodInfo, L_103); bool L_105 = V_11; AnchorInfo_t1442 * L_106 = (AnchorInfo_t1442 *)il2cpp_codegen_object_new (InitializedTypeInfo(&AnchorInfo_t1442_il2cpp_TypeInfo)); AnchorInfo__ctor_m7891(L_106, __this, L_101, L_102, L_104, L_105, /*hidden argument*/&AnchorInfo__ctor_m7891_MethodInfo); return L_106; } IL_025b: { StringBuilder_t480 * L_107 = V_15; NullCheck(L_107); int32_t L_108 = StringBuilder_get_Length_m8158(L_107, /*hidden argument*/&StringBuilder_get_Length_m8158_MethodInfo); int32_t L_109 = Interval_get_Size_m7729((&V_8), /*hidden argument*/&Interval_get_Size_m7729_MethodInfo); if ((((int32_t)L_108) <= ((int32_t)L_109))) { goto IL_0285; } } { IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Console_t1496_il2cpp_TypeInfo)); TextWriter_t1497 * L_110 = Console_get_Error_m8219(NULL /*static, unused*/, /*hidden argument*/&Console_get_Error_m8219_MethodInfo); NullCheck(L_110); VirtActionInvoker1< String_t* >::Invoke(&TextWriter_WriteLine_m8220_MethodInfo, L_110, (String_t*) &_stringLiteral891); int32_t L_111 = V_1; AnchorInfo_t1442 * L_112 = (AnchorInfo_t1442 *)il2cpp_codegen_object_new (InitializedTypeInfo(&AnchorInfo_t1442_il2cpp_TypeInfo)); AnchorInfo__ctor_m7890(L_112, __this, L_111, /*hidden argument*/&AnchorInfo__ctor_m7890_MethodInfo); return L_112; } IL_0285: { SystemException_t1495 * L_113 = (SystemException_t1495 *)il2cpp_codegen_object_new (InitializedTypeInfo(&SystemException_t1495_il2cpp_TypeInfo)); SystemException__ctor_m8177(L_113, (String_t*) &_stringLiteral892, /*hidden argument*/&SystemException__ctor_m8177_MethodInfo); il2cpp_codegen_raise_exception(L_113); } } #ifndef _MSC_VER #else #endif // System.Text.RegularExpressions.LinkRef #include "System_System_Text_RegularExpressions_LinkRef.h" extern TypeInfo LinkRef_t1415_il2cpp_TypeInfo; extern TypeInfo Position_t1409_il2cpp_TypeInfo; extern MethodInfo ICompiler_EmitInfo_m8221_MethodInfo; extern MethodInfo ICompiler_NewLink_m8222_MethodInfo; extern MethodInfo ICompiler_EmitAnchor_m8223_MethodInfo; extern MethodInfo ICompiler_EmitPosition_m8224_MethodInfo; extern MethodInfo ICompiler_EmitString_m8225_MethodInfo; extern MethodInfo ICompiler_EmitTrue_m8226_MethodInfo; extern MethodInfo ICompiler_ResolveLink_m8227_MethodInfo; // System.Void System.Text.RegularExpressions.Syntax.RegularExpression::.ctor() extern "C" void RegularExpression__ctor_m7811 (RegularExpression_t1435 * __this, MethodInfo* method) { { Group__ctor_m7806(__this, /*hidden argument*/&Group__ctor_m7806_MethodInfo); __this->___group_count_1 = 0; return; } } // System.Void System.Text.RegularExpressions.Syntax.RegularExpression::set_GroupCount(System.Int32) extern "C" void RegularExpression_set_GroupCount_m7812 (RegularExpression_t1435 * __this, int32_t ___value, MethodInfo* method) { { int32_t L_0 = ___value; __this->___group_count_1 = L_0; return; } } // System.Void System.Text.RegularExpressions.Syntax.RegularExpression::Compile(System.Text.RegularExpressions.ICompiler,System.Boolean) extern MethodInfo RegularExpression_Compile_m7813_MethodInfo; extern "C" void RegularExpression_Compile_m7813 (RegularExpression_t1435 * __this, Object_t * ___cmp, bool ___reverse, MethodInfo* method) { int32_t V_0 = 0; int32_t V_1 = 0; AnchorInfo_t1442 * V_2 = {0}; LinkRef_t1415 * V_3 = {0}; { VirtActionInvoker2< int32_t*, int32_t* >::Invoke(&Group_GetWidth_m7809_MethodInfo, __this, (&V_0), (&V_1)); Object_t * L_0 = ___cmp; int32_t L_1 = (__this->___group_count_1); int32_t L_2 = V_0; int32_t L_3 = V_1; NullCheck(L_0); InterfaceActionInvoker3< int32_t, int32_t, int32_t >::Invoke(&ICompiler_EmitInfo_m8221_MethodInfo, L_0, L_1, L_2, L_3); bool L_4 = ___reverse; AnchorInfo_t1442 * L_5 = (AnchorInfo_t1442 *)VirtFuncInvoker1< AnchorInfo_t1442 *, bool >::Invoke(&Group_GetAnchorInfo_m7810_MethodInfo, __this, L_4); V_2 = L_5; Object_t * L_6 = ___cmp; NullCheck(L_6); LinkRef_t1415 * L_7 = (LinkRef_t1415 *)InterfaceFuncInvoker0< LinkRef_t1415 * >::Invoke(&ICompiler_NewLink_m8222_MethodInfo, L_6); V_3 = L_7; Object_t * L_8 = ___cmp; bool L_9 = ___reverse; AnchorInfo_t1442 * L_10 = V_2; NullCheck(L_10); int32_t L_11 = AnchorInfo_get_Offset_m7893(L_10, /*hidden argument*/&AnchorInfo_get_Offset_m7893_MethodInfo); LinkRef_t1415 * L_12 = V_3; NullCheck(L_8); InterfaceActionInvoker3< bool, int32_t, LinkRef_t1415 * >::Invoke(&ICompiler_EmitAnchor_m8223_MethodInfo, L_8, L_9, L_11, L_12); AnchorInfo_t1442 * L_13 = V_2; NullCheck(L_13); bool L_14 = AnchorInfo_get_IsPosition_m7902(L_13, /*hidden argument*/&AnchorInfo_get_IsPosition_m7902_MethodInfo); if (!L_14) { goto IL_0051; } } { Object_t * L_15 = ___cmp; AnchorInfo_t1442 * L_16 = V_2; NullCheck(L_16); uint16_t L_17 = AnchorInfo_get_Position_m7900(L_16, /*hidden argument*/&AnchorInfo_get_Position_m7900_MethodInfo); NullCheck(L_15); InterfaceActionInvoker1< uint16_t >::Invoke(&ICompiler_EmitPosition_m8224_MethodInfo, L_15, L_17); goto IL_006f; } IL_0051: { AnchorInfo_t1442 * L_18 = V_2; NullCheck(L_18); bool L_19 = AnchorInfo_get_IsSubstring_m7901(L_18, /*hidden argument*/&AnchorInfo_get_IsSubstring_m7901_MethodInfo); if (!L_19) { goto IL_006f; } } { Object_t * L_20 = ___cmp; AnchorInfo_t1442 * L_21 = V_2; NullCheck(L_21); String_t* L_22 = AnchorInfo_get_Substring_m7898(L_21, /*hidden argument*/&AnchorInfo_get_Substring_m7898_MethodInfo); AnchorInfo_t1442 * L_23 = V_2; NullCheck(L_23); bool L_24 = AnchorInfo_get_IgnoreCase_m7899(L_23, /*hidden argument*/&AnchorInfo_get_IgnoreCase_m7899_MethodInfo); bool L_25 = ___reverse; NullCheck(L_20); InterfaceActionInvoker3< String_t*, bool, bool >::Invoke(&ICompiler_EmitString_m8225_MethodInfo, L_20, L_22, L_24, L_25); } IL_006f: { Object_t * L_26 = ___cmp; NullCheck(L_26); InterfaceActionInvoker0::Invoke(&ICompiler_EmitTrue_m8226_MethodInfo, L_26); Object_t * L_27 = ___cmp; LinkRef_t1415 * L_28 = V_3; NullCheck(L_27); InterfaceActionInvoker1< LinkRef_t1415 * >::Invoke(&ICompiler_ResolveLink_m8227_MethodInfo, L_27, L_28); Object_t * L_29 = ___cmp; bool L_30 = ___reverse; Group_Compile_m7808(__this, L_29, L_30, /*hidden argument*/&Group_Compile_m7808_MethodInfo); Object_t * L_31 = ___cmp; NullCheck(L_31); InterfaceActionInvoker0::Invoke(&ICompiler_EmitTrue_m8226_MethodInfo, L_31); return; } } #ifndef _MSC_VER #else #endif extern MethodInfo ICompiler_EmitOpen_m8228_MethodInfo; extern MethodInfo ICompiler_EmitClose_m8229_MethodInfo; // System.Void System.Text.RegularExpressions.Syntax.CapturingGroup::.ctor() extern "C" void CapturingGroup__ctor_m7814 (CapturingGroup_t1444 * __this, MethodInfo* method) { { Group__ctor_m7806(__this, /*hidden argument*/&Group__ctor_m7806_MethodInfo); __this->___gid_1 = 0; __this->___name_2 = (String_t*)NULL; return; } } // System.Int32 System.Text.RegularExpressions.Syntax.CapturingGroup::get_Index() extern "C" int32_t CapturingGroup_get_Index_m7815 (CapturingGroup_t1444 * __this, MethodInfo* method) { { int32_t L_0 = (__this->___gid_1); return L_0; } } // System.Void System.Text.RegularExpressions.Syntax.CapturingGroup::set_Index(System.Int32) extern "C" void CapturingGroup_set_Index_m7816 (CapturingGroup_t1444 * __this, int32_t ___value, MethodInfo* method) { { int32_t L_0 = ___value; __this->___gid_1 = L_0; return; } } // System.String System.Text.RegularExpressions.Syntax.CapturingGroup::get_Name() extern "C" String_t* CapturingGroup_get_Name_m7817 (CapturingGroup_t1444 * __this, MethodInfo* method) { { String_t* L_0 = (__this->___name_2); return L_0; } } // System.Void System.Text.RegularExpressions.Syntax.CapturingGroup::set_Name(System.String) extern "C" void CapturingGroup_set_Name_m7818 (CapturingGroup_t1444 * __this, String_t* ___value, MethodInfo* method) { { String_t* L_0 = ___value; __this->___name_2 = L_0; return; } } // System.Boolean System.Text.RegularExpressions.Syntax.CapturingGroup::get_IsNamed() extern "C" bool CapturingGroup_get_IsNamed_m7819 (CapturingGroup_t1444 * __this, MethodInfo* method) { { String_t* L_0 = (__this->___name_2); return ((((int32_t)((((Object_t*)(String_t*)L_0) == ((Object_t*)(Object_t *)NULL))? 1 : 0)) == ((int32_t)0))? 1 : 0); } } // System.Void System.Text.RegularExpressions.Syntax.CapturingGroup::Compile(System.Text.RegularExpressions.ICompiler,System.Boolean) extern MethodInfo CapturingGroup_Compile_m7820_MethodInfo; extern "C" void CapturingGroup_Compile_m7820 (CapturingGroup_t1444 * __this, Object_t * ___cmp, bool ___reverse, MethodInfo* method) { { Object_t * L_0 = ___cmp; int32_t L_1 = (__this->___gid_1); NullCheck(L_0); InterfaceActionInvoker1< int32_t >::Invoke(&ICompiler_EmitOpen_m8228_MethodInfo, L_0, L_1); Object_t * L_2 = ___cmp; bool L_3 = ___reverse; Group_Compile_m7808(__this, L_2, L_3, /*hidden argument*/&Group_Compile_m7808_MethodInfo); Object_t * L_4 = ___cmp; int32_t L_5 = (__this->___gid_1); NullCheck(L_4); InterfaceActionInvoker1< int32_t >::Invoke(&ICompiler_EmitClose_m8229_MethodInfo, L_4, L_5); return; } } // System.Boolean System.Text.RegularExpressions.Syntax.CapturingGroup::IsComplex() extern MethodInfo CapturingGroup_IsComplex_m7821_MethodInfo; extern "C" bool CapturingGroup_IsComplex_m7821 (CapturingGroup_t1444 * __this, MethodInfo* method) { { return 1; } } // System.Int32 System.Text.RegularExpressions.Syntax.CapturingGroup::CompareTo(System.Object) extern MethodInfo CapturingGroup_CompareTo_m7822_MethodInfo; extern "C" int32_t CapturingGroup_CompareTo_m7822 (CapturingGroup_t1444 * __this, Object_t * ___other, MethodInfo* method) { { int32_t L_0 = (__this->___gid_1); Object_t * L_1 = ___other; NullCheck(((CapturingGroup_t1444 *)Castclass(L_1, InitializedTypeInfo(&CapturingGroup_t1444_il2cpp_TypeInfo)))); int32_t L_2 = (((CapturingGroup_t1444 *)Castclass(L_1, InitializedTypeInfo(&CapturingGroup_t1444_il2cpp_TypeInfo)))->___gid_1); return ((int32_t)((int32_t)L_0-(int32_t)L_2)); } } #ifndef _MSC_VER #else #endif extern MethodInfo ICompiler_EmitBalanceStart_m8230_MethodInfo; extern MethodInfo ICompiler_EmitBalance_m8231_MethodInfo; // System.Void System.Text.RegularExpressions.Syntax.BalancingGroup::.ctor() extern "C" void BalancingGroup__ctor_m7823 (BalancingGroup_t1445 * __this, MethodInfo* method) { { CapturingGroup__ctor_m7814(__this, /*hidden argument*/&CapturingGroup__ctor_m7814_MethodInfo); __this->___balance_3 = (CapturingGroup_t1444 *)NULL; return; } } // System.Void System.Text.RegularExpressions.Syntax.BalancingGroup::set_Balance(System.Text.RegularExpressions.Syntax.CapturingGroup) extern "C" void BalancingGroup_set_Balance_m7824 (BalancingGroup_t1445 * __this, CapturingGroup_t1444 * ___value, MethodInfo* method) { { CapturingGroup_t1444 * L_0 = ___value; __this->___balance_3 = L_0; return; } } // System.Void System.Text.RegularExpressions.Syntax.BalancingGroup::Compile(System.Text.RegularExpressions.ICompiler,System.Boolean) extern MethodInfo BalancingGroup_Compile_m7825_MethodInfo; extern "C" void BalancingGroup_Compile_m7825 (BalancingGroup_t1445 * __this, Object_t * ___cmp, bool ___reverse, MethodInfo* method) { LinkRef_t1415 * V_0 = {0}; int32_t V_1 = 0; int32_t V_2 = 0; Expression_t1438 * V_3 = {0}; { Object_t * L_0 = ___cmp; NullCheck(L_0); LinkRef_t1415 * L_1 = (LinkRef_t1415 *)InterfaceFuncInvoker0< LinkRef_t1415 * >::Invoke(&ICompiler_NewLink_m8222_MethodInfo, L_0); V_0 = L_1; Object_t * L_2 = ___cmp; int32_t L_3 = CapturingGroup_get_Index_m7815(__this, /*hidden argument*/&CapturingGroup_get_Index_m7815_MethodInfo); CapturingGroup_t1444 * L_4 = (__this->___balance_3); NullCheck(L_4); int32_t L_5 = CapturingGroup_get_Index_m7815(L_4, /*hidden argument*/&CapturingGroup_get_Index_m7815_MethodInfo); bool L_6 = CapturingGroup_get_IsNamed_m7819(__this, /*hidden argument*/&CapturingGroup_get_IsNamed_m7819_MethodInfo); LinkRef_t1415 * L_7 = V_0; NullCheck(L_2); InterfaceActionInvoker4< int32_t, int32_t, bool, LinkRef_t1415 * >::Invoke(&ICompiler_EmitBalanceStart_m8230_MethodInfo, L_2, L_3, L_5, L_6, L_7); ExpressionCollection_t1440 * L_8 = CompositeExpression_get_Expressions_m7803(__this, /*hidden argument*/&CompositeExpression_get_Expressions_m7803_MethodInfo); NullCheck(L_8); int32_t L_9 = (int32_t)VirtFuncInvoker0< int32_t >::Invoke(&CollectionBase_get_Count_m8106_MethodInfo, L_8); V_1 = L_9; V_2 = 0; goto IL_006d; } IL_0038: { bool L_10 = ___reverse; if (!L_10) { goto IL_0054; } } { ExpressionCollection_t1440 * L_11 = CompositeExpression_get_Expressions_m7803(__this, /*hidden argument*/&CompositeExpression_get_Expressions_m7803_MethodInfo); int32_t L_12 = V_1; int32_t L_13 = V_2; NullCheck(L_11); Expression_t1438 * L_14 = ExpressionCollection_get_Item_m7796(L_11, ((int32_t)((int32_t)((int32_t)((int32_t)L_12-(int32_t)L_13))-(int32_t)1)), /*hidden argument*/&ExpressionCollection_get_Item_m7796_MethodInfo); V_3 = L_14; goto IL_0061; } IL_0054: { ExpressionCollection_t1440 * L_15 = CompositeExpression_get_Expressions_m7803(__this, /*hidden argument*/&CompositeExpression_get_Expressions_m7803_MethodInfo); int32_t L_16 = V_2; NullCheck(L_15); Expression_t1438 * L_17 = ExpressionCollection_get_Item_m7796(L_15, L_16, /*hidden argument*/&ExpressionCollection_get_Item_m7796_MethodInfo); V_3 = L_17; } IL_0061: { Expression_t1438 * L_18 = V_3; Object_t * L_19 = ___cmp; bool L_20 = ___reverse; NullCheck(L_18); VirtActionInvoker2< Object_t *, bool >::Invoke(&Expression_Compile_m8218_MethodInfo, L_18, L_19, L_20); int32_t L_21 = V_2; V_2 = ((int32_t)((int32_t)L_21+(int32_t)1)); } IL_006d: { int32_t L_22 = V_2; int32_t L_23 = V_1; if ((((int32_t)L_22) < ((int32_t)L_23))) { goto IL_0038; } } { Object_t * L_24 = ___cmp; NullCheck(L_24); InterfaceActionInvoker0::Invoke(&ICompiler_EmitBalance_m8231_MethodInfo, L_24); Object_t * L_25 = ___cmp; LinkRef_t1415 * L_26 = V_0; NullCheck(L_25); InterfaceActionInvoker1< LinkRef_t1415 * >::Invoke(&ICompiler_ResolveLink_m8227_MethodInfo, L_25, L_26); return; } } #ifndef _MSC_VER #else #endif extern MethodInfo ICompiler_EmitSub_m8232_MethodInfo; // System.Void System.Text.RegularExpressions.Syntax.NonBacktrackingGroup::.ctor() extern "C" void NonBacktrackingGroup__ctor_m7826 (NonBacktrackingGroup_t1446 * __this, MethodInfo* method) { { Group__ctor_m7806(__this, /*hidden argument*/&Group__ctor_m7806_MethodInfo); return; } } // System.Void System.Text.RegularExpressions.Syntax.NonBacktrackingGroup::Compile(System.Text.RegularExpressions.ICompiler,System.Boolean) extern MethodInfo NonBacktrackingGroup_Compile_m7827_MethodInfo; extern "C" void NonBacktrackingGroup_Compile_m7827 (NonBacktrackingGroup_t1446 * __this, Object_t * ___cmp, bool ___reverse, MethodInfo* method) { LinkRef_t1415 * V_0 = {0}; { Object_t * L_0 = ___cmp; NullCheck(L_0); LinkRef_t1415 * L_1 = (LinkRef_t1415 *)InterfaceFuncInvoker0< LinkRef_t1415 * >::Invoke(&ICompiler_NewLink_m8222_MethodInfo, L_0); V_0 = L_1; Object_t * L_2 = ___cmp; LinkRef_t1415 * L_3 = V_0; NullCheck(L_2); InterfaceActionInvoker1< LinkRef_t1415 * >::Invoke(&ICompiler_EmitSub_m8232_MethodInfo, L_2, L_3); Object_t * L_4 = ___cmp; bool L_5 = ___reverse; Group_Compile_m7808(__this, L_4, L_5, /*hidden argument*/&Group_Compile_m7808_MethodInfo); Object_t * L_6 = ___cmp; NullCheck(L_6); InterfaceActionInvoker0::Invoke(&ICompiler_EmitTrue_m8226_MethodInfo, L_6); Object_t * L_7 = ___cmp; LinkRef_t1415 * L_8 = V_0; NullCheck(L_7); InterfaceActionInvoker1< LinkRef_t1415 * >::Invoke(&ICompiler_ResolveLink_m8227_MethodInfo, L_7, L_8); return; } } // System.Boolean System.Text.RegularExpressions.Syntax.NonBacktrackingGroup::IsComplex() extern MethodInfo NonBacktrackingGroup_IsComplex_m7828_MethodInfo; extern "C" bool NonBacktrackingGroup_IsComplex_m7828 (NonBacktrackingGroup_t1446 * __this, MethodInfo* method) { { return 1; } } #ifndef _MSC_VER #else #endif extern MethodInfo Repetition_get_Expression_m7830_MethodInfo; extern MethodInfo ICompiler_EmitRepeat_m8233_MethodInfo; extern MethodInfo ICompiler_EmitUntil_m8234_MethodInfo; extern MethodInfo ICompiler_EmitFastRepeat_m8235_MethodInfo; extern MethodInfo Repetition_get_Minimum_m7832_MethodInfo; extern MethodInfo AnchorInfo_get_IsComplete_m7897_MethodInfo; extern MethodInfo StringBuilder__ctor_m2294_MethodInfo; // System.Void System.Text.RegularExpressions.Syntax.Repetition::.ctor(System.Int32,System.Int32,System.Boolean) extern "C" void Repetition__ctor_m7829 (Repetition_t1447 * __this, int32_t ___min, int32_t ___max, bool ___lazy, MethodInfo* method) { { CompositeExpression__ctor_m7802(__this, /*hidden argument*/&CompositeExpression__ctor_m7802_MethodInfo); ExpressionCollection_t1440 * L_0 = CompositeExpression_get_Expressions_m7803(__this, /*hidden argument*/&CompositeExpression_get_Expressions_m7803_MethodInfo); NullCheck(L_0); ExpressionCollection_Add_m7795(L_0, (Expression_t1438 *)NULL, /*hidden argument*/&ExpressionCollection_Add_m7795_MethodInfo); int32_t L_1 = ___min; __this->___min_1 = L_1; int32_t L_2 = ___max; __this->___max_2 = L_2; bool L_3 = ___lazy; __this->___lazy_3 = L_3; return; } } // System.Text.RegularExpressions.Syntax.Expression System.Text.RegularExpressions.Syntax.Repetition::get_Expression() extern "C" Expression_t1438 * Repetition_get_Expression_m7830 (Repetition_t1447 * __this, MethodInfo* method) { { ExpressionCollection_t1440 * L_0 = CompositeExpression_get_Expressions_m7803(__this, /*hidden argument*/&CompositeExpression_get_Expressions_m7803_MethodInfo); NullCheck(L_0); Expression_t1438 * L_1 = ExpressionCollection_get_Item_m7796(L_0, 0, /*hidden argument*/&ExpressionCollection_get_Item_m7796_MethodInfo); return L_1; } } // System.Void System.Text.RegularExpressions.Syntax.Repetition::set_Expression(System.Text.RegularExpressions.Syntax.Expression) extern "C" void Repetition_set_Expression_m7831 (Repetition_t1447 * __this, Expression_t1438 * ___value, MethodInfo* method) { { ExpressionCollection_t1440 * L_0 = CompositeExpression_get_Expressions_m7803(__this, /*hidden argument*/&CompositeExpression_get_Expressions_m7803_MethodInfo); Expression_t1438 * L_1 = ___value; NullCheck(L_0); ExpressionCollection_set_Item_m7797(L_0, 0, L_1, /*hidden argument*/&ExpressionCollection_set_Item_m7797_MethodInfo); return; } } // System.Int32 System.Text.RegularExpressions.Syntax.Repetition::get_Minimum() extern "C" int32_t Repetition_get_Minimum_m7832 (Repetition_t1447 * __this, MethodInfo* method) { { int32_t L_0 = (__this->___min_1); return L_0; } } // System.Void System.Text.RegularExpressions.Syntax.Repetition::Compile(System.Text.RegularExpressions.ICompiler,System.Boolean) extern MethodInfo Repetition_Compile_m7833_MethodInfo; extern "C" void Repetition_Compile_m7833 (Repetition_t1447 * __this, Object_t * ___cmp, bool ___reverse, MethodInfo* method) { LinkRef_t1415 * V_0 = {0}; LinkRef_t1415 * V_1 = {0}; { Expression_t1438 * L_0 = Repetition_get_Expression_m7830(__this, /*hidden argument*/&Repetition_get_Expression_m7830_MethodInfo); NullCheck(L_0); bool L_1 = (bool)VirtFuncInvoker0< bool >::Invoke(&Expression_IsComplex_m8217_MethodInfo, L_0); if (!L_1) { goto IL_0049; } } { Object_t * L_2 = ___cmp; NullCheck(L_2); LinkRef_t1415 * L_3 = (LinkRef_t1415 *)InterfaceFuncInvoker0< LinkRef_t1415 * >::Invoke(&ICompiler_NewLink_m8222_MethodInfo, L_2); V_0 = L_3; Object_t * L_4 = ___cmp; int32_t L_5 = (__this->___min_1); int32_t L_6 = (__this->___max_2); bool L_7 = (__this->___lazy_3); LinkRef_t1415 * L_8 = V_0; NullCheck(L_4); InterfaceActionInvoker4< int32_t, int32_t, bool, LinkRef_t1415 * >::Invoke(&ICompiler_EmitRepeat_m8233_MethodInfo, L_4, L_5, L_6, L_7, L_8); Expression_t1438 * L_9 = Repetition_get_Expression_m7830(__this, /*hidden argument*/&Repetition_get_Expression_m7830_MethodInfo); Object_t * L_10 = ___cmp; bool L_11 = ___reverse; NullCheck(L_9); VirtActionInvoker2< Object_t *, bool >::Invoke(&Expression_Compile_m8218_MethodInfo, L_9, L_10, L_11); Object_t * L_12 = ___cmp; LinkRef_t1415 * L_13 = V_0; NullCheck(L_12); InterfaceActionInvoker1< LinkRef_t1415 * >::Invoke(&ICompiler_EmitUntil_m8234_MethodInfo, L_12, L_13); goto IL_0083; } IL_0049: { Object_t * L_14 = ___cmp; NullCheck(L_14); LinkRef_t1415 * L_15 = (LinkRef_t1415 *)InterfaceFuncInvoker0< LinkRef_t1415 * >::Invoke(&ICompiler_NewLink_m8222_MethodInfo, L_14); V_1 = L_15; Object_t * L_16 = ___cmp; int32_t L_17 = (__this->___min_1); int32_t L_18 = (__this->___max_2); bool L_19 = (__this->___lazy_3); LinkRef_t1415 * L_20 = V_1; NullCheck(L_16); InterfaceActionInvoker4< int32_t, int32_t, bool, LinkRef_t1415 * >::Invoke(&ICompiler_EmitFastRepeat_m8235_MethodInfo, L_16, L_17, L_18, L_19, L_20); Expression_t1438 * L_21 = Repetition_get_Expression_m7830(__this, /*hidden argument*/&Repetition_get_Expression_m7830_MethodInfo); Object_t * L_22 = ___cmp; bool L_23 = ___reverse; NullCheck(L_21); VirtActionInvoker2< Object_t *, bool >::Invoke(&Expression_Compile_m8218_MethodInfo, L_21, L_22, L_23); Object_t * L_24 = ___cmp; NullCheck(L_24); InterfaceActionInvoker0::Invoke(&ICompiler_EmitTrue_m8226_MethodInfo, L_24); Object_t * L_25 = ___cmp; LinkRef_t1415 * L_26 = V_1; NullCheck(L_25); InterfaceActionInvoker1< LinkRef_t1415 * >::Invoke(&ICompiler_ResolveLink_m8227_MethodInfo, L_25, L_26); } IL_0083: { return; } } // System.Void System.Text.RegularExpressions.Syntax.Repetition::GetWidth(System.Int32&,System.Int32&) extern MethodInfo Repetition_GetWidth_m7834_MethodInfo; extern "C" void Repetition_GetWidth_m7834 (Repetition_t1447 * __this, int32_t* ___min, int32_t* ___max, MethodInfo* method) { { Expression_t1438 * L_0 = Repetition_get_Expression_m7830(__this, /*hidden argument*/&Repetition_get_Expression_m7830_MethodInfo); int32_t* L_1 = ___min; int32_t* L_2 = ___max; NullCheck(L_0); VirtActionInvoker2< int32_t*, int32_t* >::Invoke(&Expression_GetWidth_m8216_MethodInfo, L_0, L_1, L_2); int32_t* L_3 = ___min; int32_t* L_4 = ___min; int32_t L_5 = (__this->___min_1); *((int32_t*)(L_3)) = (int32_t)((int32_t)((int32_t)(*((int32_t*)L_4))*(int32_t)L_5)); int32_t* L_6 = ___max; if ((((int32_t)(*((int32_t*)L_6))) == ((int32_t)((int32_t)2147483647)))) { goto IL_0034; } } { int32_t L_7 = (__this->___max_2); if ((!(((uint32_t)L_7) == ((uint32_t)((int32_t)65535))))) { goto IL_0040; } } IL_0034: { int32_t* L_8 = ___max; *((int32_t*)(L_8)) = (int32_t)((int32_t)2147483647); goto IL_004b; } IL_0040: { int32_t* L_9 = ___max; int32_t* L_10 = ___max; int32_t L_11 = (__this->___max_2); *((int32_t*)(L_9)) = (int32_t)((int32_t)((int32_t)(*((int32_t*)L_10))*(int32_t)L_11)); } IL_004b: { return; } } // System.Text.RegularExpressions.Syntax.AnchorInfo System.Text.RegularExpressions.Syntax.Repetition::GetAnchorInfo(System.Boolean) extern MethodInfo Repetition_GetAnchorInfo_m7835_MethodInfo; extern "C" AnchorInfo_t1442 * Repetition_GetAnchorInfo_m7835 (Repetition_t1447 * __this, bool ___reverse, MethodInfo* method) { int32_t V_0 = 0; AnchorInfo_t1442 * V_1 = {0}; String_t* V_2 = {0}; StringBuilder_t480 * V_3 = {0}; int32_t V_4 = 0; { int32_t L_0 = Expression_GetFixedWidth_m7800(__this, /*hidden argument*/&Expression_GetFixedWidth_m7800_MethodInfo); V_0 = L_0; int32_t L_1 = Repetition_get_Minimum_m7832(__this, /*hidden argument*/&Repetition_get_Minimum_m7832_MethodInfo); if (L_1) { goto IL_001a; } } { int32_t L_2 = V_0; AnchorInfo_t1442 * L_3 = (AnchorInfo_t1442 *)il2cpp_codegen_object_new (InitializedTypeInfo(&AnchorInfo_t1442_il2cpp_TypeInfo)); AnchorInfo__ctor_m7890(L_3, __this, L_2, /*hidden argument*/&AnchorInfo__ctor_m7890_MethodInfo); return L_3; } IL_001a: { Expression_t1438 * L_4 = Repetition_get_Expression_m7830(__this, /*hidden argument*/&Repetition_get_Expression_m7830_MethodInfo); bool L_5 = ___reverse; NullCheck(L_4); AnchorInfo_t1442 * L_6 = (AnchorInfo_t1442 *)VirtFuncInvoker1< AnchorInfo_t1442 *, bool >::Invoke(&Expression_GetAnchorInfo_m7801_MethodInfo, L_4, L_5); V_1 = L_6; AnchorInfo_t1442 * L_7 = V_1; NullCheck(L_7); bool L_8 = AnchorInfo_get_IsPosition_m7902(L_7, /*hidden argument*/&AnchorInfo_get_IsPosition_m7902_MethodInfo); if (!L_8) { goto IL_0046; } } { AnchorInfo_t1442 * L_9 = V_1; NullCheck(L_9); int32_t L_10 = AnchorInfo_get_Offset_m7893(L_9, /*hidden argument*/&AnchorInfo_get_Offset_m7893_MethodInfo); int32_t L_11 = V_0; AnchorInfo_t1442 * L_12 = V_1; NullCheck(L_12); uint16_t L_13 = AnchorInfo_get_Position_m7900(L_12, /*hidden argument*/&AnchorInfo_get_Position_m7900_MethodInfo); AnchorInfo_t1442 * L_14 = (AnchorInfo_t1442 *)il2cpp_codegen_object_new (InitializedTypeInfo(&AnchorInfo_t1442_il2cpp_TypeInfo)); AnchorInfo__ctor_m7892(L_14, __this, L_10, L_11, L_13, /*hidden argument*/&AnchorInfo__ctor_m7892_MethodInfo); return L_14; } IL_0046: { AnchorInfo_t1442 * L_15 = V_1; NullCheck(L_15); bool L_16 = AnchorInfo_get_IsSubstring_m7901(L_15, /*hidden argument*/&AnchorInfo_get_IsSubstring_m7901_MethodInfo); if (!L_16) { goto IL_00bc; } } { AnchorInfo_t1442 * L_17 = V_1; NullCheck(L_17); bool L_18 = AnchorInfo_get_IsComplete_m7897(L_17, /*hidden argument*/&AnchorInfo_get_IsComplete_m7897_MethodInfo); if (!L_18) { goto IL_00a2; } } { AnchorInfo_t1442 * L_19 = V_1; NullCheck(L_19); String_t* L_20 = AnchorInfo_get_Substring_m7898(L_19, /*hidden argument*/&AnchorInfo_get_Substring_m7898_MethodInfo); V_2 = L_20; String_t* L_21 = V_2; StringBuilder_t480 * L_22 = (StringBuilder_t480 *)il2cpp_codegen_object_new (InitializedTypeInfo(&StringBuilder_t480_il2cpp_TypeInfo)); StringBuilder__ctor_m2294(L_22, L_21, /*hidden argument*/&StringBuilder__ctor_m2294_MethodInfo); V_3 = L_22; V_4 = 1; goto IL_0080; } IL_0072: { StringBuilder_t480 * L_23 = V_3; String_t* L_24 = V_2; NullCheck(L_23); StringBuilder_Append_m6931(L_23, L_24, /*hidden argument*/&StringBuilder_Append_m6931_MethodInfo); int32_t L_25 = V_4; V_4 = ((int32_t)((int32_t)L_25+(int32_t)1)); } IL_0080: { int32_t L_26 = V_4; int32_t L_27 = Repetition_get_Minimum_m7832(__this, /*hidden argument*/&Repetition_get_Minimum_m7832_MethodInfo); if ((((int32_t)L_26) < ((int32_t)L_27))) { goto IL_0072; } } { int32_t L_28 = V_0; StringBuilder_t480 * L_29 = V_3; NullCheck(L_29); String_t* L_30 = (String_t*)VirtFuncInvoker0< String_t* >::Invoke(&StringBuilder_ToString_m2209_MethodInfo, L_29); AnchorInfo_t1442 * L_31 = V_1; NullCheck(L_31); bool L_32 = AnchorInfo_get_IgnoreCase_m7899(L_31, /*hidden argument*/&AnchorInfo_get_IgnoreCase_m7899_MethodInfo); AnchorInfo_t1442 * L_33 = (AnchorInfo_t1442 *)il2cpp_codegen_object_new (InitializedTypeInfo(&AnchorInfo_t1442_il2cpp_TypeInfo)); AnchorInfo__ctor_m7891(L_33, __this, 0, L_28, L_30, L_32, /*hidden argument*/&AnchorInfo__ctor_m7891_MethodInfo); return L_33; } IL_00a2: { AnchorInfo_t1442 * L_34 = V_1; NullCheck(L_34); int32_t L_35 = AnchorInfo_get_Offset_m7893(L_34, /*hidden argument*/&AnchorInfo_get_Offset_m7893_MethodInfo); int32_t L_36 = V_0; AnchorInfo_t1442 * L_37 = V_1; NullCheck(L_37); String_t* L_38 = AnchorInfo_get_Substring_m7898(L_37, /*hidden argument*/&AnchorInfo_get_Substring_m7898_MethodInfo); AnchorInfo_t1442 * L_39 = V_1; NullCheck(L_39); bool L_40 = AnchorInfo_get_IgnoreCase_m7899(L_39, /*hidden argument*/&AnchorInfo_get_IgnoreCase_m7899_MethodInfo); AnchorInfo_t1442 * L_41 = (AnchorInfo_t1442 *)il2cpp_codegen_object_new (InitializedTypeInfo(&AnchorInfo_t1442_il2cpp_TypeInfo)); AnchorInfo__ctor_m7891(L_41, __this, L_35, L_36, L_38, L_40, /*hidden argument*/&AnchorInfo__ctor_m7891_MethodInfo); return L_41; } IL_00bc: { int32_t L_42 = V_0; AnchorInfo_t1442 * L_43 = (AnchorInfo_t1442 *)il2cpp_codegen_object_new (InitializedTypeInfo(&AnchorInfo_t1442_il2cpp_TypeInfo)); AnchorInfo__ctor_m7890(L_43, __this, L_42, /*hidden argument*/&AnchorInfo__ctor_m7890_MethodInfo); return L_43; } } #ifndef _MSC_VER #else #endif extern TypeInfo Assertion_t1437_il2cpp_TypeInfo; // System.Void System.Text.RegularExpressions.Syntax.Assertion::.ctor() extern MethodInfo Assertion__ctor_m7836_MethodInfo; extern "C" void Assertion__ctor_m7836 (Assertion_t1437 * __this, MethodInfo* method) { { CompositeExpression__ctor_m7802(__this, /*hidden argument*/&CompositeExpression__ctor_m7802_MethodInfo); ExpressionCollection_t1440 * L_0 = CompositeExpression_get_Expressions_m7803(__this, /*hidden argument*/&CompositeExpression_get_Expressions_m7803_MethodInfo); NullCheck(L_0); ExpressionCollection_Add_m7795(L_0, (Expression_t1438 *)NULL, /*hidden argument*/&ExpressionCollection_Add_m7795_MethodInfo); ExpressionCollection_t1440 * L_1 = CompositeExpression_get_Expressions_m7803(__this, /*hidden argument*/&CompositeExpression_get_Expressions_m7803_MethodInfo); NullCheck(L_1); ExpressionCollection_Add_m7795(L_1, (Expression_t1438 *)NULL, /*hidden argument*/&ExpressionCollection_Add_m7795_MethodInfo); return; } } // System.Text.RegularExpressions.Syntax.Expression System.Text.RegularExpressions.Syntax.Assertion::get_TrueExpression() extern "C" Expression_t1438 * Assertion_get_TrueExpression_m7837 (Assertion_t1437 * __this, MethodInfo* method) { { ExpressionCollection_t1440 * L_0 = CompositeExpression_get_Expressions_m7803(__this, /*hidden argument*/&CompositeExpression_get_Expressions_m7803_MethodInfo); NullCheck(L_0); Expression_t1438 * L_1 = ExpressionCollection_get_Item_m7796(L_0, 0, /*hidden argument*/&ExpressionCollection_get_Item_m7796_MethodInfo); return L_1; } } // System.Void System.Text.RegularExpressions.Syntax.Assertion::set_TrueExpression(System.Text.RegularExpressions.Syntax.Expression) extern "C" void Assertion_set_TrueExpression_m7838 (Assertion_t1437 * __this, Expression_t1438 * ___value, MethodInfo* method) { { ExpressionCollection_t1440 * L_0 = CompositeExpression_get_Expressions_m7803(__this, /*hidden argument*/&CompositeExpression_get_Expressions_m7803_MethodInfo); Expression_t1438 * L_1 = ___value; NullCheck(L_0); ExpressionCollection_set_Item_m7797(L_0, 0, L_1, /*hidden argument*/&ExpressionCollection_set_Item_m7797_MethodInfo); return; } } // System.Text.RegularExpressions.Syntax.Expression System.Text.RegularExpressions.Syntax.Assertion::get_FalseExpression() extern "C" Expression_t1438 * Assertion_get_FalseExpression_m7839 (Assertion_t1437 * __this, MethodInfo* method) { { ExpressionCollection_t1440 * L_0 = CompositeExpression_get_Expressions_m7803(__this, /*hidden argument*/&CompositeExpression_get_Expressions_m7803_MethodInfo); NullCheck(L_0); Expression_t1438 * L_1 = ExpressionCollection_get_Item_m7796(L_0, 1, /*hidden argument*/&ExpressionCollection_get_Item_m7796_MethodInfo); return L_1; } } // System.Void System.Text.RegularExpressions.Syntax.Assertion::set_FalseExpression(System.Text.RegularExpressions.Syntax.Expression) extern "C" void Assertion_set_FalseExpression_m7840 (Assertion_t1437 * __this, Expression_t1438 * ___value, MethodInfo* method) { { ExpressionCollection_t1440 * L_0 = CompositeExpression_get_Expressions_m7803(__this, /*hidden argument*/&CompositeExpression_get_Expressions_m7803_MethodInfo); Expression_t1438 * L_1 = ___value; NullCheck(L_0); ExpressionCollection_set_Item_m7797(L_0, 1, L_1, /*hidden argument*/&ExpressionCollection_set_Item_m7797_MethodInfo); return; } } // System.Void System.Text.RegularExpressions.Syntax.Assertion::GetWidth(System.Int32&,System.Int32&) extern MethodInfo Assertion_GetWidth_m7841_MethodInfo; extern "C" void Assertion_GetWidth_m7841 (Assertion_t1437 * __this, int32_t* ___min, int32_t* ___max, MethodInfo* method) { { int32_t* L_0 = ___min; int32_t* L_1 = ___max; CompositeExpression_GetWidth_m7804(__this, L_0, L_1, 2, /*hidden argument*/&CompositeExpression_GetWidth_m7804_MethodInfo); Expression_t1438 * L_2 = Assertion_get_TrueExpression_m7837(__this, /*hidden argument*/&Assertion_get_TrueExpression_m7837_MethodInfo); if (!L_2) { goto IL_001f; } } { Expression_t1438 * L_3 = Assertion_get_FalseExpression_m7839(__this, /*hidden argument*/&Assertion_get_FalseExpression_m7839_MethodInfo); if (L_3) { goto IL_0022; } } IL_001f: { int32_t* L_4 = ___min; *((int32_t*)(L_4)) = (int32_t)0; } IL_0022: { return; } } #ifndef _MSC_VER #else #endif extern MethodInfo CaptureAssertion_get_Alternate_m7846_MethodInfo; extern MethodInfo ExpressionAssertion_Compile_m7852_MethodInfo; extern MethodInfo ICompiler_EmitIfDefined_m8236_MethodInfo; extern MethodInfo ICompiler_EmitJump_m8237_MethodInfo; extern MethodInfo ExpressionAssertion_IsComplex_m7853_MethodInfo; // System.Void System.Text.RegularExpressions.Syntax.CaptureAssertion::.ctor(System.Text.RegularExpressions.Syntax.Literal) extern "C" void CaptureAssertion__ctor_m7842 (CaptureAssertion_t1449 * __this, Literal_t1448 * ___l, MethodInfo* method) { { Assertion__ctor_m7836(__this, /*hidden argument*/&Assertion__ctor_m7836_MethodInfo); Literal_t1448 * L_0 = ___l; __this->___literal_3 = L_0; return; } } // System.Void System.Text.RegularExpressions.Syntax.CaptureAssertion::set_CapturingGroup(System.Text.RegularExpressions.Syntax.CapturingGroup) extern "C" void CaptureAssertion_set_CapturingGroup_m7843 (CaptureAssertion_t1449 * __this, CapturingGroup_t1444 * ___value, MethodInfo* method) { { CapturingGroup_t1444 * L_0 = ___value; __this->___group_2 = L_0; return; } } // System.Void System.Text.RegularExpressions.Syntax.CaptureAssertion::Compile(System.Text.RegularExpressions.ICompiler,System.Boolean) extern MethodInfo CaptureAssertion_Compile_m7844_MethodInfo; extern "C" void CaptureAssertion_Compile_m7844 (CaptureAssertion_t1449 * __this, Object_t * ___cmp, bool ___reverse, MethodInfo* method) { int32_t V_0 = 0; LinkRef_t1415 * V_1 = {0}; LinkRef_t1415 * V_2 = {0}; { CapturingGroup_t1444 * L_0 = (__this->___group_2); if (L_0) { goto IL_0019; } } { ExpressionAssertion_t1439 * L_1 = CaptureAssertion_get_Alternate_m7846(__this, /*hidden argument*/&CaptureAssertion_get_Alternate_m7846_MethodInfo); Object_t * L_2 = ___cmp; bool L_3 = ___reverse; NullCheck(L_1); VirtActionInvoker2< Object_t *, bool >::Invoke(&ExpressionAssertion_Compile_m7852_MethodInfo, L_1, L_2, L_3); return; } IL_0019: { CapturingGroup_t1444 * L_4 = (__this->___group_2); NullCheck(L_4); int32_t L_5 = CapturingGroup_get_Index_m7815(L_4, /*hidden argument*/&CapturingGroup_get_Index_m7815_MethodInfo); V_0 = L_5; Object_t * L_6 = ___cmp; NullCheck(L_6); LinkRef_t1415 * L_7 = (LinkRef_t1415 *)InterfaceFuncInvoker0< LinkRef_t1415 * >::Invoke(&ICompiler_NewLink_m8222_MethodInfo, L_6); V_1 = L_7; Expression_t1438 * L_8 = Assertion_get_FalseExpression_m7839(__this, /*hidden argument*/&Assertion_get_FalseExpression_m7839_MethodInfo); if (L_8) { goto IL_0051; } } { Object_t * L_9 = ___cmp; int32_t L_10 = V_0; LinkRef_t1415 * L_11 = V_1; NullCheck(L_9); InterfaceActionInvoker2< int32_t, LinkRef_t1415 * >::Invoke(&ICompiler_EmitIfDefined_m8236_MethodInfo, L_9, L_10, L_11); Expression_t1438 * L_12 = Assertion_get_TrueExpression_m7837(__this, /*hidden argument*/&Assertion_get_TrueExpression_m7837_MethodInfo); Object_t * L_13 = ___cmp; bool L_14 = ___reverse; NullCheck(L_12); VirtActionInvoker2< Object_t *, bool >::Invoke(&Expression_Compile_m8218_MethodInfo, L_12, L_13, L_14); goto IL_0088; } IL_0051: { Object_t * L_15 = ___cmp; NullCheck(L_15); LinkRef_t1415 * L_16 = (LinkRef_t1415 *)InterfaceFuncInvoker0< LinkRef_t1415 * >::Invoke(&ICompiler_NewLink_m8222_MethodInfo, L_15); V_2 = L_16; Object_t * L_17 = ___cmp; int32_t L_18 = V_0; LinkRef_t1415 * L_19 = V_2; NullCheck(L_17); InterfaceActionInvoker2< int32_t, LinkRef_t1415 * >::Invoke(&ICompiler_EmitIfDefined_m8236_MethodInfo, L_17, L_18, L_19); Expression_t1438 * L_20 = Assertion_get_TrueExpression_m7837(__this, /*hidden argument*/&Assertion_get_TrueExpression_m7837_MethodInfo); Object_t * L_21 = ___cmp; bool L_22 = ___reverse; NullCheck(L_20); VirtActionInvoker2< Object_t *, bool >::Invoke(&Expression_Compile_m8218_MethodInfo, L_20, L_21, L_22); Object_t * L_23 = ___cmp; LinkRef_t1415 * L_24 = V_1; NullCheck(L_23); InterfaceActionInvoker1< LinkRef_t1415 * >::Invoke(&ICompiler_EmitJump_m8237_MethodInfo, L_23, L_24); Object_t * L_25 = ___cmp; LinkRef_t1415 * L_26 = V_2; NullCheck(L_25); InterfaceActionInvoker1< LinkRef_t1415 * >::Invoke(&ICompiler_ResolveLink_m8227_MethodInfo, L_25, L_26); Expression_t1438 * L_27 = Assertion_get_FalseExpression_m7839(__this, /*hidden argument*/&Assertion_get_FalseExpression_m7839_MethodInfo); Object_t * L_28 = ___cmp; bool L_29 = ___reverse; NullCheck(L_27); VirtActionInvoker2< Object_t *, bool >::Invoke(&Expression_Compile_m8218_MethodInfo, L_27, L_28, L_29); } IL_0088: { Object_t * L_30 = ___cmp; LinkRef_t1415 * L_31 = V_1; NullCheck(L_30); InterfaceActionInvoker1< LinkRef_t1415 * >::Invoke(&ICompiler_ResolveLink_m8227_MethodInfo, L_30, L_31); return; } } // System.Boolean System.Text.RegularExpressions.Syntax.CaptureAssertion::IsComplex() extern MethodInfo CaptureAssertion_IsComplex_m7845_MethodInfo; extern "C" bool CaptureAssertion_IsComplex_m7845 (CaptureAssertion_t1449 * __this, MethodInfo* method) { { CapturingGroup_t1444 * L_0 = (__this->___group_2); if (L_0) { goto IL_0017; } } { ExpressionAssertion_t1439 * L_1 = CaptureAssertion_get_Alternate_m7846(__this, /*hidden argument*/&CaptureAssertion_get_Alternate_m7846_MethodInfo); NullCheck(L_1); bool L_2 = (bool)VirtFuncInvoker0< bool >::Invoke(&ExpressionAssertion_IsComplex_m7853_MethodInfo, L_1); return L_2; } IL_0017: { Expression_t1438 * L_3 = Assertion_get_TrueExpression_m7837(__this, /*hidden argument*/&Assertion_get_TrueExpression_m7837_MethodInfo); if (!L_3) { goto IL_0034; } } { Expression_t1438 * L_4 = Assertion_get_TrueExpression_m7837(__this, /*hidden argument*/&Assertion_get_TrueExpression_m7837_MethodInfo); NullCheck(L_4); bool L_5 = (bool)VirtFuncInvoker0< bool >::Invoke(&Expression_IsComplex_m8217_MethodInfo, L_4); if (!L_5) { goto IL_0034; } } { return 1; } IL_0034: { Expression_t1438 * L_6 = Assertion_get_FalseExpression_m7839(__this, /*hidden argument*/&Assertion_get_FalseExpression_m7839_MethodInfo); if (!L_6) { goto IL_0051; } } { Expression_t1438 * L_7 = Assertion_get_FalseExpression_m7839(__this, /*hidden argument*/&Assertion_get_FalseExpression_m7839_MethodInfo); NullCheck(L_7); bool L_8 = (bool)VirtFuncInvoker0< bool >::Invoke(&Expression_IsComplex_m8217_MethodInfo, L_7); if (!L_8) { goto IL_0051; } } { return 1; } IL_0051: { int32_t L_9 = Expression_GetFixedWidth_m7800(__this, /*hidden argument*/&Expression_GetFixedWidth_m7800_MethodInfo); return ((((int32_t)((((int32_t)L_9) > ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0); } } // System.Text.RegularExpressions.Syntax.ExpressionAssertion System.Text.RegularExpressions.Syntax.CaptureAssertion::get_Alternate() extern "C" ExpressionAssertion_t1439 * CaptureAssertion_get_Alternate_m7846 (CaptureAssertion_t1449 * __this, MethodInfo* method) { { ExpressionAssertion_t1439 * L_0 = (__this->___alternate_1); if (L_0) { goto IL_0049; } } { ExpressionAssertion_t1439 * L_1 = (ExpressionAssertion_t1439 *)il2cpp_codegen_object_new (InitializedTypeInfo(&ExpressionAssertion_t1439_il2cpp_TypeInfo)); ExpressionAssertion__ctor_m7847(L_1, /*hidden argument*/&ExpressionAssertion__ctor_m7847_MethodInfo); __this->___alternate_1 = L_1; ExpressionAssertion_t1439 * L_2 = (__this->___alternate_1); Expression_t1438 * L_3 = Assertion_get_TrueExpression_m7837(__this, /*hidden argument*/&Assertion_get_TrueExpression_m7837_MethodInfo); NullCheck(L_2); Assertion_set_TrueExpression_m7838(L_2, L_3, /*hidden argument*/&Assertion_set_TrueExpression_m7838_MethodInfo); ExpressionAssertion_t1439 * L_4 = (__this->___alternate_1); Expression_t1438 * L_5 = Assertion_get_FalseExpression_m7839(__this, /*hidden argument*/&Assertion_get_FalseExpression_m7839_MethodInfo); NullCheck(L_4); Assertion_set_FalseExpression_m7840(L_4, L_5, /*hidden argument*/&Assertion_set_FalseExpression_m7840_MethodInfo); ExpressionAssertion_t1439 * L_6 = (__this->___alternate_1); Literal_t1448 * L_7 = (__this->___literal_3); NullCheck(L_6); ExpressionAssertion_set_TestExpression_m7851(L_6, L_7, /*hidden argument*/&ExpressionAssertion_set_TestExpression_m7851_MethodInfo); } IL_0049: { ExpressionAssertion_t1439 * L_8 = (__this->___alternate_1); return L_8; } } #ifndef _MSC_VER #else #endif extern MethodInfo ICompiler_EmitTest_m8238_MethodInfo; extern MethodInfo ExpressionAssertion_get_TestExpression_m7850_MethodInfo; extern MethodInfo ICompiler_EmitFalse_m8239_MethodInfo; // System.Void System.Text.RegularExpressions.Syntax.ExpressionAssertion::.ctor() extern "C" void ExpressionAssertion__ctor_m7847 (ExpressionAssertion_t1439 * __this, MethodInfo* method) { { Assertion__ctor_m7836(__this, /*hidden argument*/&Assertion__ctor_m7836_MethodInfo); ExpressionCollection_t1440 * L_0 = CompositeExpression_get_Expressions_m7803(__this, /*hidden argument*/&CompositeExpression_get_Expressions_m7803_MethodInfo); NullCheck(L_0); ExpressionCollection_Add_m7795(L_0, (Expression_t1438 *)NULL, /*hidden argument*/&ExpressionCollection_Add_m7795_MethodInfo); return; } } // System.Void System.Text.RegularExpressions.Syntax.ExpressionAssertion::set_Reverse(System.Boolean) extern "C" void ExpressionAssertion_set_Reverse_m7848 (ExpressionAssertion_t1439 * __this, bool ___value, MethodInfo* method) { { bool L_0 = ___value; __this->___reverse_1 = L_0; return; } } // System.Void System.Text.RegularExpressions.Syntax.ExpressionAssertion::set_Negate(System.Boolean) extern "C" void ExpressionAssertion_set_Negate_m7849 (ExpressionAssertion_t1439 * __this, bool ___value, MethodInfo* method) { { bool L_0 = ___value; __this->___negate_2 = L_0; return; } } // System.Text.RegularExpressions.Syntax.Expression System.Text.RegularExpressions.Syntax.ExpressionAssertion::get_TestExpression() extern "C" Expression_t1438 * ExpressionAssertion_get_TestExpression_m7850 (ExpressionAssertion_t1439 * __this, MethodInfo* method) { { ExpressionCollection_t1440 * L_0 = CompositeExpression_get_Expressions_m7803(__this, /*hidden argument*/&CompositeExpression_get_Expressions_m7803_MethodInfo); NullCheck(L_0); Expression_t1438 * L_1 = ExpressionCollection_get_Item_m7796(L_0, 2, /*hidden argument*/&ExpressionCollection_get_Item_m7796_MethodInfo); return L_1; } } // System.Void System.Text.RegularExpressions.Syntax.ExpressionAssertion::set_TestExpression(System.Text.RegularExpressions.Syntax.Expression) extern "C" void ExpressionAssertion_set_TestExpression_m7851 (ExpressionAssertion_t1439 * __this, Expression_t1438 * ___value, MethodInfo* method) { { ExpressionCollection_t1440 * L_0 = CompositeExpression_get_Expressions_m7803(__this, /*hidden argument*/&CompositeExpression_get_Expressions_m7803_MethodInfo); Expression_t1438 * L_1 = ___value; NullCheck(L_0); ExpressionCollection_set_Item_m7797(L_0, 2, L_1, /*hidden argument*/&ExpressionCollection_set_Item_m7797_MethodInfo); return; } } // System.Void System.Text.RegularExpressions.Syntax.ExpressionAssertion::Compile(System.Text.RegularExpressions.ICompiler,System.Boolean) extern "C" void ExpressionAssertion_Compile_m7852 (ExpressionAssertion_t1439 * __this, Object_t * ___cmp, bool ___reverse, MethodInfo* method) { LinkRef_t1415 * V_0 = {0}; LinkRef_t1415 * V_1 = {0}; LinkRef_t1415 * V_2 = {0}; { Object_t * L_0 = ___cmp; NullCheck(L_0); LinkRef_t1415 * L_1 = (LinkRef_t1415 *)InterfaceFuncInvoker0< LinkRef_t1415 * >::Invoke(&ICompiler_NewLink_m8222_MethodInfo, L_0); V_0 = L_1; Object_t * L_2 = ___cmp; NullCheck(L_2); LinkRef_t1415 * L_3 = (LinkRef_t1415 *)InterfaceFuncInvoker0< LinkRef_t1415 * >::Invoke(&ICompiler_NewLink_m8222_MethodInfo, L_2); V_1 = L_3; bool L_4 = (__this->___negate_2); if (L_4) { goto IL_0026; } } { Object_t * L_5 = ___cmp; LinkRef_t1415 * L_6 = V_0; LinkRef_t1415 * L_7 = V_1; NullCheck(L_5); InterfaceActionInvoker2< LinkRef_t1415 *, LinkRef_t1415 * >::Invoke(&ICompiler_EmitTest_m8238_MethodInfo, L_5, L_6, L_7); goto IL_002e; } IL_0026: { Object_t * L_8 = ___cmp; LinkRef_t1415 * L_9 = V_1; LinkRef_t1415 * L_10 = V_0; NullCheck(L_8); InterfaceActionInvoker2< LinkRef_t1415 *, LinkRef_t1415 * >::Invoke(&ICompiler_EmitTest_m8238_MethodInfo, L_8, L_9, L_10); } IL_002e: { Expression_t1438 * L_11 = ExpressionAssertion_get_TestExpression_m7850(__this, /*hidden argument*/&ExpressionAssertion_get_TestExpression_m7850_MethodInfo); Object_t * L_12 = ___cmp; bool L_13 = (__this->___reverse_1); NullCheck(L_11); VirtActionInvoker2< Object_t *, bool >::Invoke(&Expression_Compile_m8218_MethodInfo, L_11, L_12, L_13); Object_t * L_14 = ___cmp; NullCheck(L_14); InterfaceActionInvoker0::Invoke(&ICompiler_EmitTrue_m8226_MethodInfo, L_14); Expression_t1438 * L_15 = Assertion_get_TrueExpression_m7837(__this, /*hidden argument*/&Assertion_get_TrueExpression_m7837_MethodInfo); if (L_15) { goto IL_006a; } } { Object_t * L_16 = ___cmp; LinkRef_t1415 * L_17 = V_1; NullCheck(L_16); InterfaceActionInvoker1< LinkRef_t1415 * >::Invoke(&ICompiler_ResolveLink_m8227_MethodInfo, L_16, L_17); Object_t * L_18 = ___cmp; NullCheck(L_18); InterfaceActionInvoker0::Invoke(&ICompiler_EmitFalse_m8239_MethodInfo, L_18); Object_t * L_19 = ___cmp; LinkRef_t1415 * L_20 = V_0; NullCheck(L_19); InterfaceActionInvoker1< LinkRef_t1415 * >::Invoke(&ICompiler_ResolveLink_m8227_MethodInfo, L_19, L_20); goto IL_00be; } IL_006a: { Object_t * L_21 = ___cmp; LinkRef_t1415 * L_22 = V_0; NullCheck(L_21); InterfaceActionInvoker1< LinkRef_t1415 * >::Invoke(&ICompiler_ResolveLink_m8227_MethodInfo, L_21, L_22); Expression_t1438 * L_23 = Assertion_get_TrueExpression_m7837(__this, /*hidden argument*/&Assertion_get_TrueExpression_m7837_MethodInfo); Object_t * L_24 = ___cmp; bool L_25 = ___reverse; NullCheck(L_23); VirtActionInvoker2< Object_t *, bool >::Invoke(&Expression_Compile_m8218_MethodInfo, L_23, L_24, L_25); Expression_t1438 * L_26 = Assertion_get_FalseExpression_m7839(__this, /*hidden argument*/&Assertion_get_FalseExpression_m7839_MethodInfo); if (L_26) { goto IL_0095; } } { Object_t * L_27 = ___cmp; LinkRef_t1415 * L_28 = V_1; NullCheck(L_27); InterfaceActionInvoker1< LinkRef_t1415 * >::Invoke(&ICompiler_ResolveLink_m8227_MethodInfo, L_27, L_28); goto IL_00be; } IL_0095: { Object_t * L_29 = ___cmp; NullCheck(L_29); LinkRef_t1415 * L_30 = (LinkRef_t1415 *)InterfaceFuncInvoker0< LinkRef_t1415 * >::Invoke(&ICompiler_NewLink_m8222_MethodInfo, L_29); V_2 = L_30; Object_t * L_31 = ___cmp; LinkRef_t1415 * L_32 = V_2; NullCheck(L_31); InterfaceActionInvoker1< LinkRef_t1415 * >::Invoke(&ICompiler_EmitJump_m8237_MethodInfo, L_31, L_32); Object_t * L_33 = ___cmp; LinkRef_t1415 * L_34 = V_1; NullCheck(L_33); InterfaceActionInvoker1< LinkRef_t1415 * >::Invoke(&ICompiler_ResolveLink_m8227_MethodInfo, L_33, L_34); Expression_t1438 * L_35 = Assertion_get_FalseExpression_m7839(__this, /*hidden argument*/&Assertion_get_FalseExpression_m7839_MethodInfo); Object_t * L_36 = ___cmp; bool L_37 = ___reverse; NullCheck(L_35); VirtActionInvoker2< Object_t *, bool >::Invoke(&Expression_Compile_m8218_MethodInfo, L_35, L_36, L_37); Object_t * L_38 = ___cmp; LinkRef_t1415 * L_39 = V_2; NullCheck(L_38); InterfaceActionInvoker1< LinkRef_t1415 * >::Invoke(&ICompiler_ResolveLink_m8227_MethodInfo, L_38, L_39); } IL_00be: { return; } } // System.Boolean System.Text.RegularExpressions.Syntax.ExpressionAssertion::IsComplex() extern "C" bool ExpressionAssertion_IsComplex_m7853 (ExpressionAssertion_t1439 * __this, MethodInfo* method) { { return 1; } } #ifndef _MSC_VER #else #endif extern MethodInfo Alternation_get_Alternatives_m7855_MethodInfo; extern MethodInfo ICompiler_EmitBranch_m8240_MethodInfo; extern MethodInfo ICompiler_EmitBranchEnd_m8241_MethodInfo; extern MethodInfo ICompiler_EmitAlternationEnd_m8242_MethodInfo; // System.Void System.Text.RegularExpressions.Syntax.Alternation::.ctor() extern "C" void Alternation__ctor_m7854 (Alternation_t1450 * __this, MethodInfo* method) { { CompositeExpression__ctor_m7802(__this, /*hidden argument*/&CompositeExpression__ctor_m7802_MethodInfo); return; } } // System.Text.RegularExpressions.Syntax.ExpressionCollection System.Text.RegularExpressions.Syntax.Alternation::get_Alternatives() extern "C" ExpressionCollection_t1440 * Alternation_get_Alternatives_m7855 (Alternation_t1450 * __this, MethodInfo* method) { { ExpressionCollection_t1440 * L_0 = CompositeExpression_get_Expressions_m7803(__this, /*hidden argument*/&CompositeExpression_get_Expressions_m7803_MethodInfo); return L_0; } } // System.Void System.Text.RegularExpressions.Syntax.Alternation::AddAlternative(System.Text.RegularExpressions.Syntax.Expression) extern "C" void Alternation_AddAlternative_m7856 (Alternation_t1450 * __this, Expression_t1438 * ___e, MethodInfo* method) { { ExpressionCollection_t1440 * L_0 = Alternation_get_Alternatives_m7855(__this, /*hidden argument*/&Alternation_get_Alternatives_m7855_MethodInfo); Expression_t1438 * L_1 = ___e; NullCheck(L_0); ExpressionCollection_Add_m7795(L_0, L_1, /*hidden argument*/&ExpressionCollection_Add_m7795_MethodInfo); return; } } // System.Void System.Text.RegularExpressions.Syntax.Alternation::Compile(System.Text.RegularExpressions.ICompiler,System.Boolean) extern MethodInfo Alternation_Compile_m7857_MethodInfo; extern "C" void Alternation_Compile_m7857 (Alternation_t1450 * __this, Object_t * ___cmp, bool ___reverse, MethodInfo* method) { LinkRef_t1415 * V_0 = {0}; Expression_t1438 * V_1 = {0}; Object_t * V_2 = {0}; LinkRef_t1415 * V_3 = {0}; Object_t * V_4 = {0}; Exception_t154 * __last_unhandled_exception = 0; NO_UNUSED_WARNING (__last_unhandled_exception); Exception_t154 * __exception_local = 0; NO_UNUSED_WARNING (__exception_local); int32_t __leave_target = 0; NO_UNUSED_WARNING (__leave_target); { Object_t * L_0 = ___cmp; NullCheck(L_0); LinkRef_t1415 * L_1 = (LinkRef_t1415 *)InterfaceFuncInvoker0< LinkRef_t1415 * >::Invoke(&ICompiler_NewLink_m8222_MethodInfo, L_0); V_0 = L_1; ExpressionCollection_t1440 * L_2 = Alternation_get_Alternatives_m7855(__this, /*hidden argument*/&Alternation_get_Alternatives_m7855_MethodInfo); NullCheck(L_2); Object_t * L_3 = (Object_t *)VirtFuncInvoker0< Object_t * >::Invoke(&CollectionBase_GetEnumerator_m8146_MethodInfo, L_2); V_2 = L_3; } IL_0013: try { // begin try (depth: 1) { goto IL_004e; } IL_0018: { Object_t * L_4 = V_2; NullCheck(L_4); Object_t * L_5 = (Object_t *)InterfaceFuncInvoker0< Object_t * >::Invoke(&IEnumerator_get_Current_m6898_MethodInfo, L_4); V_1 = ((Expression_t1438 *)Castclass(L_5, InitializedTypeInfo(&Expression_t1438_il2cpp_TypeInfo))); Object_t * L_6 = ___cmp; NullCheck(L_6); LinkRef_t1415 * L_7 = (LinkRef_t1415 *)InterfaceFuncInvoker0< LinkRef_t1415 * >::Invoke(&ICompiler_NewLink_m8222_MethodInfo, L_6); V_3 = L_7; Object_t * L_8 = ___cmp; LinkRef_t1415 * L_9 = V_3; NullCheck(L_8); InterfaceActionInvoker1< LinkRef_t1415 * >::Invoke(&ICompiler_EmitBranch_m8240_MethodInfo, L_8, L_9); Expression_t1438 * L_10 = V_1; Object_t * L_11 = ___cmp; bool L_12 = ___reverse; NullCheck(L_10); VirtActionInvoker2< Object_t *, bool >::Invoke(&Expression_Compile_m8218_MethodInfo, L_10, L_11, L_12); Object_t * L_13 = ___cmp; LinkRef_t1415 * L_14 = V_0; NullCheck(L_13); InterfaceActionInvoker1< LinkRef_t1415 * >::Invoke(&ICompiler_EmitJump_m8237_MethodInfo, L_13, L_14); Object_t * L_15 = ___cmp; LinkRef_t1415 * L_16 = V_3; NullCheck(L_15); InterfaceActionInvoker1< LinkRef_t1415 * >::Invoke(&ICompiler_ResolveLink_m8227_MethodInfo, L_15, L_16); Object_t * L_17 = ___cmp; NullCheck(L_17); InterfaceActionInvoker0::Invoke(&ICompiler_EmitBranchEnd_m8241_MethodInfo, L_17); } IL_004e: { Object_t * L_18 = V_2; NullCheck(L_18); bool L_19 = (bool)InterfaceFuncInvoker0< bool >::Invoke(&IEnumerator_MoveNext_m692_MethodInfo, L_18); if (L_19) { goto IL_0018; } } IL_0059: { IL2CPP_LEAVE(0x73, FINALLY_005e); } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { __last_unhandled_exception = (Exception_t154 *)e.ex; goto FINALLY_005e; } FINALLY_005e: { // begin finally (depth: 1) { Object_t * L_20 = V_2; V_4 = ((Object_t *)IsInst(L_20, InitializedTypeInfo(&IDisposable_t153_il2cpp_TypeInfo))); Object_t * L_21 = V_4; if (L_21) { goto IL_006b; } } IL_006a: { IL2CPP_END_FINALLY(94) } IL_006b: { Object_t * L_22 = V_4; NullCheck(L_22); InterfaceActionInvoker0::Invoke(&IDisposable_Dispose_m486_MethodInfo, L_22); IL2CPP_END_FINALLY(94) } } // end finally (depth: 1) IL2CPP_CLEANUP(94) { IL2CPP_JUMP_TBL(0x73, IL_0073) IL2CPP_RETHROW_IF_UNHANDLED(Exception_t154 *) } IL_0073: { Object_t * L_23 = ___cmp; NullCheck(L_23); InterfaceActionInvoker0::Invoke(&ICompiler_EmitFalse_m8239_MethodInfo, L_23); Object_t * L_24 = ___cmp; LinkRef_t1415 * L_25 = V_0; NullCheck(L_24); InterfaceActionInvoker1< LinkRef_t1415 * >::Invoke(&ICompiler_ResolveLink_m8227_MethodInfo, L_24, L_25); Object_t * L_26 = ___cmp; NullCheck(L_26); InterfaceActionInvoker0::Invoke(&ICompiler_EmitAlternationEnd_m8242_MethodInfo, L_26); return; } } // System.Void System.Text.RegularExpressions.Syntax.Alternation::GetWidth(System.Int32&,System.Int32&) extern MethodInfo Alternation_GetWidth_m7858_MethodInfo; extern "C" void Alternation_GetWidth_m7858 (Alternation_t1450 * __this, int32_t* ___min, int32_t* ___max, MethodInfo* method) { { int32_t* L_0 = ___min; int32_t* L_1 = ___max; ExpressionCollection_t1440 * L_2 = Alternation_get_Alternatives_m7855(__this, /*hidden argument*/&Alternation_get_Alternatives_m7855_MethodInfo); NullCheck(L_2); int32_t L_3 = (int32_t)VirtFuncInvoker0< int32_t >::Invoke(&CollectionBase_get_Count_m8106_MethodInfo, L_2); CompositeExpression_GetWidth_m7804(__this, L_0, L_1, L_3, /*hidden argument*/&CompositeExpression_GetWidth_m7804_MethodInfo); return; } } #ifndef _MSC_VER #else #endif extern MethodInfo ICompiler_EmitCharacter_m8243_MethodInfo; extern MethodInfo Literal_CompileLiteral_m7860_MethodInfo; // System.Void System.Text.RegularExpressions.Syntax.Literal::.ctor(System.String,System.Boolean) extern "C" void Literal__ctor_m7859 (Literal_t1448 * __this, String_t* ___str, bool ___ignore, MethodInfo* method) { { Expression__ctor_m7799(__this, /*hidden argument*/&Expression__ctor_m7799_MethodInfo); String_t* L_0 = ___str; __this->___str_0 = L_0; bool L_1 = ___ignore; __this->___ignore_1 = L_1; return; } } // System.Void System.Text.RegularExpressions.Syntax.Literal::CompileLiteral(System.String,System.Text.RegularExpressions.ICompiler,System.Boolean,System.Boolean) extern "C" void Literal_CompileLiteral_m7860 (Object_t * __this /* static, unused */, String_t* ___str, Object_t * ___cmp, bool ___ignore, bool ___reverse, MethodInfo* method) { { String_t* L_0 = ___str; NullCheck(L_0); int32_t L_1 = String_get_Length_m694(L_0, /*hidden argument*/&String_get_Length_m694_MethodInfo); if (L_1) { goto IL_000c; } } { return; } IL_000c: { String_t* L_2 = ___str; NullCheck(L_2); int32_t L_3 = String_get_Length_m694(L_2, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((!(((uint32_t)L_3) == ((uint32_t)1)))) { goto IL_002d; } } { Object_t * L_4 = ___cmp; String_t* L_5 = ___str; NullCheck(L_5); uint16_t L_6 = String_get_Chars_m2541(L_5, 0, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); bool L_7 = ___ignore; bool L_8 = ___reverse; NullCheck(L_4); InterfaceActionInvoker4< uint16_t, bool, bool, bool >::Invoke(&ICompiler_EmitCharacter_m8243_MethodInfo, L_4, L_6, 0, L_7, L_8); goto IL_0036; } IL_002d: { Object_t * L_9 = ___cmp; String_t* L_10 = ___str; bool L_11 = ___ignore; bool L_12 = ___reverse; NullCheck(L_9); InterfaceActionInvoker3< String_t*, bool, bool >::Invoke(&ICompiler_EmitString_m8225_MethodInfo, L_9, L_10, L_11, L_12); } IL_0036: { return; } } // System.Void System.Text.RegularExpressions.Syntax.Literal::Compile(System.Text.RegularExpressions.ICompiler,System.Boolean) extern MethodInfo Literal_Compile_m7861_MethodInfo; extern "C" void Literal_Compile_m7861 (Literal_t1448 * __this, Object_t * ___cmp, bool ___reverse, MethodInfo* method) { { String_t* L_0 = (__this->___str_0); Object_t * L_1 = ___cmp; bool L_2 = (__this->___ignore_1); bool L_3 = ___reverse; Literal_CompileLiteral_m7860(NULL /*static, unused*/, L_0, L_1, L_2, L_3, /*hidden argument*/&Literal_CompileLiteral_m7860_MethodInfo); return; } } // System.Void System.Text.RegularExpressions.Syntax.Literal::GetWidth(System.Int32&,System.Int32&) extern MethodInfo Literal_GetWidth_m7862_MethodInfo; extern "C" void Literal_GetWidth_m7862 (Literal_t1448 * __this, int32_t* ___min, int32_t* ___max, MethodInfo* method) { int32_t V_0 = 0; { int32_t* L_0 = ___min; int32_t* L_1 = ___max; String_t* L_2 = (__this->___str_0); NullCheck(L_2); int32_t L_3 = String_get_Length_m694(L_2, /*hidden argument*/&String_get_Length_m694_MethodInfo); int32_t L_4 = L_3; V_0 = L_4; *((int32_t*)(L_1)) = (int32_t)L_4; int32_t L_5 = V_0; *((int32_t*)(L_0)) = (int32_t)L_5; return; } } // System.Text.RegularExpressions.Syntax.AnchorInfo System.Text.RegularExpressions.Syntax.Literal::GetAnchorInfo(System.Boolean) extern MethodInfo Literal_GetAnchorInfo_m7863_MethodInfo; extern "C" AnchorInfo_t1442 * Literal_GetAnchorInfo_m7863 (Literal_t1448 * __this, bool ___reverse, MethodInfo* method) { { String_t* L_0 = (__this->___str_0); NullCheck(L_0); int32_t L_1 = String_get_Length_m694(L_0, /*hidden argument*/&String_get_Length_m694_MethodInfo); String_t* L_2 = (__this->___str_0); bool L_3 = (__this->___ignore_1); AnchorInfo_t1442 * L_4 = (AnchorInfo_t1442 *)il2cpp_codegen_object_new (InitializedTypeInfo(&AnchorInfo_t1442_il2cpp_TypeInfo)); AnchorInfo__ctor_m7891(L_4, __this, 0, L_1, L_2, L_3, /*hidden argument*/&AnchorInfo__ctor_m7891_MethodInfo); return L_4; } } // System.Boolean System.Text.RegularExpressions.Syntax.Literal::IsComplex() extern MethodInfo Literal_IsComplex_m7864_MethodInfo; extern "C" bool Literal_IsComplex_m7864 (Literal_t1448 * __this, MethodInfo* method) { { return 0; } } #ifndef _MSC_VER #else #endif // System.Void System.Text.RegularExpressions.Syntax.PositionAssertion::.ctor(System.Text.RegularExpressions.Position) extern "C" void PositionAssertion__ctor_m7865 (PositionAssertion_t1451 * __this, uint16_t ___pos, MethodInfo* method) { { Expression__ctor_m7799(__this, /*hidden argument*/&Expression__ctor_m7799_MethodInfo); uint16_t L_0 = ___pos; __this->___pos_0 = L_0; return; } } // System.Void System.Text.RegularExpressions.Syntax.PositionAssertion::Compile(System.Text.RegularExpressions.ICompiler,System.Boolean) extern MethodInfo PositionAssertion_Compile_m7866_MethodInfo; extern "C" void PositionAssertion_Compile_m7866 (PositionAssertion_t1451 * __this, Object_t * ___cmp, bool ___reverse, MethodInfo* method) { { Object_t * L_0 = ___cmp; uint16_t L_1 = (__this->___pos_0); NullCheck(L_0); InterfaceActionInvoker1< uint16_t >::Invoke(&ICompiler_EmitPosition_m8224_MethodInfo, L_0, L_1); return; } } // System.Void System.Text.RegularExpressions.Syntax.PositionAssertion::GetWidth(System.Int32&,System.Int32&) extern MethodInfo PositionAssertion_GetWidth_m7867_MethodInfo; extern "C" void PositionAssertion_GetWidth_m7867 (PositionAssertion_t1451 * __this, int32_t* ___min, int32_t* ___max, MethodInfo* method) { int32_t V_0 = 0; { int32_t* L_0 = ___min; int32_t* L_1 = ___max; int32_t L_2 = 0; V_0 = L_2; *((int32_t*)(L_1)) = (int32_t)L_2; int32_t L_3 = V_0; *((int32_t*)(L_0)) = (int32_t)L_3; return; } } // System.Boolean System.Text.RegularExpressions.Syntax.PositionAssertion::IsComplex() extern MethodInfo PositionAssertion_IsComplex_m7868_MethodInfo; extern "C" bool PositionAssertion_IsComplex_m7868 (PositionAssertion_t1451 * __this, MethodInfo* method) { { return 0; } } // System.Text.RegularExpressions.Syntax.AnchorInfo System.Text.RegularExpressions.Syntax.PositionAssertion::GetAnchorInfo(System.Boolean) extern MethodInfo PositionAssertion_GetAnchorInfo_m7869_MethodInfo; extern "C" AnchorInfo_t1442 * PositionAssertion_GetAnchorInfo_m7869 (PositionAssertion_t1451 * __this, bool ___revers, MethodInfo* method) { uint16_t V_0 = {0}; { uint16_t L_0 = (__this->___pos_0); V_0 = L_0; uint16_t L_1 = V_0; if (((int32_t)((int32_t)L_1-(int32_t)2)) == 0) { goto IL_0020; } if (((int32_t)((int32_t)L_1-(int32_t)2)) == 1) { goto IL_0020; } if (((int32_t)((int32_t)L_1-(int32_t)2)) == 2) { goto IL_0020; } } { goto IL_002f; } IL_0020: { uint16_t L_2 = (__this->___pos_0); AnchorInfo_t1442 * L_3 = (AnchorInfo_t1442 *)il2cpp_codegen_object_new (InitializedTypeInfo(&AnchorInfo_t1442_il2cpp_TypeInfo)); AnchorInfo__ctor_m7892(L_3, __this, 0, 0, L_2, /*hidden argument*/&AnchorInfo__ctor_m7892_MethodInfo); return L_3; } IL_002f: { AnchorInfo_t1442 * L_4 = (AnchorInfo_t1442 *)il2cpp_codegen_object_new (InitializedTypeInfo(&AnchorInfo_t1442_il2cpp_TypeInfo)); AnchorInfo__ctor_m7890(L_4, __this, 0, /*hidden argument*/&AnchorInfo__ctor_m7890_MethodInfo); return L_4; } } #ifndef _MSC_VER #else #endif extern MethodInfo ICompiler_EmitReference_m8244_MethodInfo; // System.Void System.Text.RegularExpressions.Syntax.Reference::.ctor(System.Boolean) extern "C" void Reference__ctor_m7870 (Reference_t1452 * __this, bool ___ignore, MethodInfo* method) { { Expression__ctor_m7799(__this, /*hidden argument*/&Expression__ctor_m7799_MethodInfo); bool L_0 = ___ignore; __this->___ignore_1 = L_0; return; } } // System.Text.RegularExpressions.Syntax.CapturingGroup System.Text.RegularExpressions.Syntax.Reference::get_CapturingGroup() extern MethodInfo Reference_get_CapturingGroup_m7871_MethodInfo; extern "C" CapturingGroup_t1444 * Reference_get_CapturingGroup_m7871 (Reference_t1452 * __this, MethodInfo* method) { { CapturingGroup_t1444 * L_0 = (__this->___group_0); return L_0; } } // System.Void System.Text.RegularExpressions.Syntax.Reference::set_CapturingGroup(System.Text.RegularExpressions.Syntax.CapturingGroup) extern "C" void Reference_set_CapturingGroup_m7872 (Reference_t1452 * __this, CapturingGroup_t1444 * ___value, MethodInfo* method) { { CapturingGroup_t1444 * L_0 = ___value; __this->___group_0 = L_0; return; } } // System.Boolean System.Text.RegularExpressions.Syntax.Reference::get_IgnoreCase() extern MethodInfo Reference_get_IgnoreCase_m7873_MethodInfo; extern "C" bool Reference_get_IgnoreCase_m7873 (Reference_t1452 * __this, MethodInfo* method) { { bool L_0 = (__this->___ignore_1); return L_0; } } // System.Void System.Text.RegularExpressions.Syntax.Reference::Compile(System.Text.RegularExpressions.ICompiler,System.Boolean) extern MethodInfo Reference_Compile_m7874_MethodInfo; extern "C" void Reference_Compile_m7874 (Reference_t1452 * __this, Object_t * ___cmp, bool ___reverse, MethodInfo* method) { { Object_t * L_0 = ___cmp; CapturingGroup_t1444 * L_1 = (__this->___group_0); NullCheck(L_1); int32_t L_2 = CapturingGroup_get_Index_m7815(L_1, /*hidden argument*/&CapturingGroup_get_Index_m7815_MethodInfo); bool L_3 = (__this->___ignore_1); bool L_4 = ___reverse; NullCheck(L_0); InterfaceActionInvoker3< int32_t, bool, bool >::Invoke(&ICompiler_EmitReference_m8244_MethodInfo, L_0, L_2, L_3, L_4); return; } } // System.Void System.Text.RegularExpressions.Syntax.Reference::GetWidth(System.Int32&,System.Int32&) extern MethodInfo Reference_GetWidth_m7875_MethodInfo; extern "C" void Reference_GetWidth_m7875 (Reference_t1452 * __this, int32_t* ___min, int32_t* ___max, MethodInfo* method) { { int32_t* L_0 = ___min; *((int32_t*)(L_0)) = (int32_t)0; int32_t* L_1 = ___max; *((int32_t*)(L_1)) = (int32_t)((int32_t)2147483647); return; } } // System.Boolean System.Text.RegularExpressions.Syntax.Reference::IsComplex() extern MethodInfo Reference_IsComplex_m7876_MethodInfo; extern "C" bool Reference_IsComplex_m7876 (Reference_t1452 * __this, MethodInfo* method) { { return 1; } } #ifndef _MSC_VER #else #endif extern MethodInfo String_Substring_m2569_MethodInfo; // System.Void System.Text.RegularExpressions.Syntax.BackslashNumber::.ctor(System.Boolean,System.Boolean) extern "C" void BackslashNumber__ctor_m7877 (BackslashNumber_t1453 * __this, bool ___ignore, bool ___ecma, MethodInfo* method) { { bool L_0 = ___ignore; Reference__ctor_m7870(__this, L_0, /*hidden argument*/&Reference__ctor_m7870_MethodInfo); bool L_1 = ___ecma; __this->___ecma_3 = L_1; return; } } // System.Boolean System.Text.RegularExpressions.Syntax.BackslashNumber::ResolveReference(System.String,System.Collections.Hashtable) extern "C" bool BackslashNumber_ResolveReference_m7878 (BackslashNumber_t1453 * __this, String_t* ___num_str, Hashtable_t1291 * ___groups, MethodInfo* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; { bool L_0 = (__this->___ecma_3); if (!L_0) { goto IL_006c; } } { V_0 = 0; V_1 = 1; goto IL_002d; } IL_0014: { Hashtable_t1291 * L_1 = ___groups; String_t* L_2 = ___num_str; int32_t L_3 = V_1; NullCheck(L_2); String_t* L_4 = String_Substring_m2542(L_2, 0, L_3, /*hidden argument*/&String_Substring_m2542_MethodInfo); NullCheck(L_1); Object_t * L_5 = (Object_t *)VirtFuncInvoker1< Object_t *, Object_t * >::Invoke(&Hashtable_get_Item_m8006_MethodInfo, L_1, L_4); if (!L_5) { goto IL_0029; } } { int32_t L_6 = V_1; V_0 = L_6; } IL_0029: { int32_t L_7 = V_1; V_1 = ((int32_t)((int32_t)L_7+(int32_t)1)); } IL_002d: { int32_t L_8 = V_1; String_t* L_9 = ___num_str; NullCheck(L_9); int32_t L_10 = String_get_Length_m694(L_9, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((((int32_t)L_8) < ((int32_t)L_10))) { goto IL_0014; } } { int32_t L_11 = V_0; if (!L_11) { goto IL_0067; } } { Hashtable_t1291 * L_12 = ___groups; String_t* L_13 = ___num_str; int32_t L_14 = V_0; NullCheck(L_13); String_t* L_15 = String_Substring_m2542(L_13, 0, L_14, /*hidden argument*/&String_Substring_m2542_MethodInfo); NullCheck(L_12); Object_t * L_16 = (Object_t *)VirtFuncInvoker1< Object_t *, Object_t * >::Invoke(&Hashtable_get_Item_m8006_MethodInfo, L_12, L_15); Reference_set_CapturingGroup_m7872(__this, ((CapturingGroup_t1444 *)Castclass(L_16, InitializedTypeInfo(&CapturingGroup_t1444_il2cpp_TypeInfo))), /*hidden argument*/&Reference_set_CapturingGroup_m7872_MethodInfo); String_t* L_17 = ___num_str; int32_t L_18 = V_0; NullCheck(L_17); String_t* L_19 = String_Substring_m2569(L_17, L_18, /*hidden argument*/&String_Substring_m2569_MethodInfo); __this->___literal_2 = L_19; return 1; } IL_0067: { goto IL_007a; } IL_006c: { String_t* L_20 = ___num_str; NullCheck(L_20); int32_t L_21 = String_get_Length_m694(L_20, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((!(((uint32_t)L_21) == ((uint32_t)1)))) { goto IL_007a; } } { return 0; } IL_007a: { V_2 = 0; String_t* L_22 = ___num_str; int32_t L_23 = Parser_ParseOctal_m7758(NULL /*static, unused*/, L_22, (&V_2), /*hidden argument*/&Parser_ParseOctal_m7758_MethodInfo); V_3 = L_23; int32_t L_24 = V_3; if ((!(((uint32_t)L_24) == ((uint32_t)(-1))))) { goto IL_008e; } } { return 0; } IL_008e: { int32_t L_25 = V_3; if ((((int32_t)L_25) <= ((int32_t)((int32_t)255)))) { goto IL_00ac; } } { bool L_26 = (__this->___ecma_3); if (!L_26) { goto IL_00ac; } } { int32_t L_27 = V_3; V_3 = ((int32_t)((int32_t)L_27/(int32_t)8)); int32_t L_28 = V_2; V_2 = ((int32_t)((int32_t)L_28-(int32_t)1)); } IL_00ac: { int32_t L_29 = V_3; V_3 = ((int32_t)((int32_t)L_29&(int32_t)((int32_t)255))); int32_t L_30 = V_3; uint16_t L_31 = (((uint16_t)L_30)); Object_t * L_32 = Box(InitializedTypeInfo(&Char_t389_il2cpp_TypeInfo), &L_31); String_t* L_33 = ___num_str; int32_t L_34 = V_2; NullCheck(L_33); String_t* L_35 = String_Substring_m2569(L_33, L_34, /*hidden argument*/&String_Substring_m2569_MethodInfo); IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); String_t* L_36 = String_Concat_m495(NULL /*static, unused*/, L_32, L_35, /*hidden argument*/&String_Concat_m495_MethodInfo); __this->___literal_2 = L_36; return 1; } } // System.Void System.Text.RegularExpressions.Syntax.BackslashNumber::Compile(System.Text.RegularExpressions.ICompiler,System.Boolean) extern MethodInfo BackslashNumber_Compile_m7879_MethodInfo; extern "C" void BackslashNumber_Compile_m7879 (BackslashNumber_t1453 * __this, Object_t * ___cmp, bool ___reverse, MethodInfo* method) { { CapturingGroup_t1444 * L_0 = Reference_get_CapturingGroup_m7871(__this, /*hidden argument*/&Reference_get_CapturingGroup_m7871_MethodInfo); if (!L_0) { goto IL_0013; } } { Object_t * L_1 = ___cmp; bool L_2 = ___reverse; Reference_Compile_m7874(__this, L_1, L_2, /*hidden argument*/&Reference_Compile_m7874_MethodInfo); } IL_0013: { String_t* L_3 = (__this->___literal_2); if (!L_3) { goto IL_0031; } } { String_t* L_4 = (__this->___literal_2); Object_t * L_5 = ___cmp; bool L_6 = Reference_get_IgnoreCase_m7873(__this, /*hidden argument*/&Reference_get_IgnoreCase_m7873_MethodInfo); bool L_7 = ___reverse; Literal_CompileLiteral_m7860(NULL /*static, unused*/, L_4, L_5, L_6, L_7, /*hidden argument*/&Literal_CompileLiteral_m7860_MethodInfo); } IL_0031: { return; } } #ifndef _MSC_VER #else #endif // System.Collections.BitArray #include "mscorlib_System_Collections_BitArray.h" extern TypeInfo BitArray_t1421_il2cpp_TypeInfo; extern TypeInfo Category_t1413_il2cpp_TypeInfo; // System.Collections.BitArray #include "mscorlib_System_Collections_BitArrayMethodDeclarations.h" extern MethodInfo BitArray__ctor_m8245_MethodInfo; extern MethodInfo BitArray_set_Item_m8246_MethodInfo; extern MethodInfo CharacterClass_GetIntervalCost_m7889_MethodInfo; extern MethodInfo BitArray_get_Item_m8202_MethodInfo; extern MethodInfo BitArray_get_Length_m8201_MethodInfo; extern MethodInfo ICompiler_EmitIn_m8247_MethodInfo; extern MethodInfo ICompiler_EmitSet_m8248_MethodInfo; extern MethodInfo ICompiler_EmitRange_m8249_MethodInfo; extern MethodInfo ICompiler_EmitCategory_m8250_MethodInfo; extern MethodInfo ICompiler_EmitNotCategory_m8251_MethodInfo; // System.Void System.Text.RegularExpressions.Syntax.CharacterClass::.ctor(System.Boolean,System.Boolean) extern "C" void CharacterClass__ctor_m7880 (CharacterClass_t1454 * __this, bool ___negate, bool ___ignore, MethodInfo* method) { int32_t V_0 = 0; { Expression__ctor_m7799(__this, /*hidden argument*/&Expression__ctor_m7799_MethodInfo); bool L_0 = ___negate; __this->___negate_1 = L_0; bool L_1 = ___ignore; __this->___ignore_2 = L_1; IntervalCollection_t1433 * L_2 = (IntervalCollection_t1433 *)il2cpp_codegen_object_new (InitializedTypeInfo(&IntervalCollection_t1433_il2cpp_TypeInfo)); IntervalCollection__ctor_m7745(L_2, /*hidden argument*/&IntervalCollection__ctor_m7745_MethodInfo); __this->___intervals_5 = L_2; V_0 = ((int32_t)144); int32_t L_3 = V_0; BitArray_t1421 * L_4 = (BitArray_t1421 *)il2cpp_codegen_object_new (InitializedTypeInfo(&BitArray_t1421_il2cpp_TypeInfo)); BitArray__ctor_m8245(L_4, L_3, /*hidden argument*/&BitArray__ctor_m8245_MethodInfo); __this->___pos_cats_3 = L_4; int32_t L_5 = V_0; BitArray_t1421 * L_6 = (BitArray_t1421 *)il2cpp_codegen_object_new (InitializedTypeInfo(&BitArray_t1421_il2cpp_TypeInfo)); BitArray__ctor_m8245(L_6, L_5, /*hidden argument*/&BitArray__ctor_m8245_MethodInfo); __this->___neg_cats_4 = L_6; return; } } // System.Void System.Text.RegularExpressions.Syntax.CharacterClass::.ctor(System.Text.RegularExpressions.Category,System.Boolean) extern "C" void CharacterClass__ctor_m7881 (CharacterClass_t1454 * __this, uint16_t ___cat, bool ___negate, MethodInfo* method) { { CharacterClass__ctor_m7880(__this, 0, 0, /*hidden argument*/&CharacterClass__ctor_m7880_MethodInfo); uint16_t L_0 = ___cat; bool L_1 = ___negate; CharacterClass_AddCategory_m7883(__this, L_0, L_1, /*hidden argument*/&CharacterClass_AddCategory_m7883_MethodInfo); return; } } // System.Void System.Text.RegularExpressions.Syntax.CharacterClass::.cctor() extern MethodInfo CharacterClass__cctor_m7882_MethodInfo; extern "C" void CharacterClass__cctor_m7882 (Object_t * __this /* static, unused */, MethodInfo* method) { { Interval_t1429 L_0 = {0}; Interval__ctor_m7724(&L_0, ((int32_t)65), ((int32_t)90), /*hidden argument*/&Interval__ctor_m7724_MethodInfo); ((CharacterClass_t1454_StaticFields*)InitializedTypeInfo(&CharacterClass_t1454_il2cpp_TypeInfo)->static_fields)->___upper_case_characters_0 = L_0; return; } } // System.Void System.Text.RegularExpressions.Syntax.CharacterClass::AddCategory(System.Text.RegularExpressions.Category,System.Boolean) extern "C" void CharacterClass_AddCategory_m7883 (CharacterClass_t1454 * __this, uint16_t ___cat, bool ___negate, MethodInfo* method) { int32_t V_0 = 0; { uint16_t L_0 = ___cat; V_0 = L_0; bool L_1 = ___negate; if (!L_1) { goto IL_001a; } } { BitArray_t1421 * L_2 = (__this->___neg_cats_4); int32_t L_3 = V_0; NullCheck(L_2); BitArray_set_Item_m8246(L_2, L_3, 1, /*hidden argument*/&BitArray_set_Item_m8246_MethodInfo); goto IL_0027; } IL_001a: { BitArray_t1421 * L_4 = (__this->___pos_cats_3); int32_t L_5 = V_0; NullCheck(L_4); BitArray_set_Item_m8246(L_4, L_5, 1, /*hidden argument*/&BitArray_set_Item_m8246_MethodInfo); } IL_0027: { return; } } // System.Void System.Text.RegularExpressions.Syntax.CharacterClass::AddCharacter(System.Char) extern "C" void CharacterClass_AddCharacter_m7884 (CharacterClass_t1454 * __this, uint16_t ___c, MethodInfo* method) { { uint16_t L_0 = ___c; uint16_t L_1 = ___c; CharacterClass_AddRange_m7885(__this, L_0, L_1, /*hidden argument*/&CharacterClass_AddRange_m7885_MethodInfo); return; } } // System.Void System.Text.RegularExpressions.Syntax.CharacterClass::AddRange(System.Char,System.Char) extern "C" void CharacterClass_AddRange_m7885 (CharacterClass_t1454 * __this, uint16_t ___lo, uint16_t ___hi, MethodInfo* method) { Interval_t1429 V_0 = {0}; Interval_t1429 V_1 = {0}; { uint16_t L_0 = ___lo; uint16_t L_1 = ___hi; Interval__ctor_m7724((&V_0), L_0, L_1, /*hidden argument*/&Interval__ctor_m7724_MethodInfo); bool L_2 = (__this->___ignore_2); if (!L_2) { goto IL_00e2; } } { IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&CharacterClass_t1454_il2cpp_TypeInfo)); Interval_t1429 L_3 = V_0; bool L_4 = Interval_Intersects_m7734((&((CharacterClass_t1454_StaticFields*)InitializedTypeInfo(&CharacterClass_t1454_il2cpp_TypeInfo)->static_fields)->___upper_case_characters_0), L_3, /*hidden argument*/&Interval_Intersects_m7734_MethodInfo); if (!L_4) { goto IL_00b2; } } { int32_t L_5 = ((&V_0)->___low_0); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&CharacterClass_t1454_il2cpp_TypeInfo)); int32_t L_6 = ((&((CharacterClass_t1454_StaticFields*)InitializedTypeInfo(&CharacterClass_t1454_il2cpp_TypeInfo)->static_fields)->___upper_case_characters_0)->___low_0); if ((((int32_t)L_5) >= ((int32_t)L_6))) { goto IL_0070; } } { IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&CharacterClass_t1454_il2cpp_TypeInfo)); int32_t L_7 = ((&((CharacterClass_t1454_StaticFields*)InitializedTypeInfo(&CharacterClass_t1454_il2cpp_TypeInfo)->static_fields)->___upper_case_characters_0)->___low_0); int32_t L_8 = ((&V_0)->___high_1); Interval__ctor_m7724((&V_1), ((int32_t)((int32_t)L_7+(int32_t)((int32_t)32))), ((int32_t)((int32_t)L_8+(int32_t)((int32_t)32))), /*hidden argument*/&Interval__ctor_m7724_MethodInfo); int32_t L_9 = ((&((CharacterClass_t1454_StaticFields*)InitializedTypeInfo(&CharacterClass_t1454_il2cpp_TypeInfo)->static_fields)->___upper_case_characters_0)->___low_0); (&V_0)->___high_1 = ((int32_t)((int32_t)L_9-(int32_t)1)); goto IL_00a1; } IL_0070: { int32_t L_10 = ((&V_0)->___low_0); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&CharacterClass_t1454_il2cpp_TypeInfo)); int32_t L_11 = ((&((CharacterClass_t1454_StaticFields*)InitializedTypeInfo(&CharacterClass_t1454_il2cpp_TypeInfo)->static_fields)->___upper_case_characters_0)->___high_1); Interval__ctor_m7724((&V_1), ((int32_t)((int32_t)L_10+(int32_t)((int32_t)32))), ((int32_t)((int32_t)L_11+(int32_t)((int32_t)32))), /*hidden argument*/&Interval__ctor_m7724_MethodInfo); int32_t L_12 = ((&((CharacterClass_t1454_StaticFields*)InitializedTypeInfo(&CharacterClass_t1454_il2cpp_TypeInfo)->static_fields)->___upper_case_characters_0)->___high_1); (&V_0)->___low_0 = ((int32_t)((int32_t)L_12+(int32_t)1)); } IL_00a1: { IntervalCollection_t1433 * L_13 = (__this->___intervals_5); Interval_t1429 L_14 = V_1; NullCheck(L_13); IntervalCollection_Add_m7747(L_13, L_14, /*hidden argument*/&IntervalCollection_Add_m7747_MethodInfo); goto IL_00e2; } IL_00b2: { IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&CharacterClass_t1454_il2cpp_TypeInfo)); Interval_t1429 L_15 = V_0; bool L_16 = Interval_Contains_m7732((&((CharacterClass_t1454_StaticFields*)InitializedTypeInfo(&CharacterClass_t1454_il2cpp_TypeInfo)->static_fields)->___upper_case_characters_0), L_15, /*hidden argument*/&Interval_Contains_m7732_MethodInfo); if (!L_16) { goto IL_00e2; } } { Interval_t1429 * L_17 = (&V_0); int32_t L_18 = (L_17->___high_1); L_17->___high_1 = ((int32_t)((int32_t)L_18+(int32_t)((int32_t)32))); Interval_t1429 * L_19 = (&V_0); int32_t L_20 = (L_19->___low_0); L_19->___low_0 = ((int32_t)((int32_t)L_20+(int32_t)((int32_t)32))); } IL_00e2: { IntervalCollection_t1433 * L_21 = (__this->___intervals_5); Interval_t1429 L_22 = V_0; NullCheck(L_21); IntervalCollection_Add_m7747(L_21, L_22, /*hidden argument*/&IntervalCollection_Add_m7747_MethodInfo); return; } } // System.Void System.Text.RegularExpressions.Syntax.CharacterClass::Compile(System.Text.RegularExpressions.ICompiler,System.Boolean) extern MethodInfo CharacterClass_Compile_m7886_MethodInfo; extern "C" void CharacterClass_Compile_m7886 (CharacterClass_t1454 * __this, Object_t * ___cmp, bool ___reverse, MethodInfo* method) { IntervalCollection_t1433 * V_0 = {0}; int32_t V_1 = 0; int32_t V_2 = 0; LinkRef_t1415 * V_3 = {0}; Interval_t1429 V_4 = {0}; Object_t * V_5 = {0}; BitArray_t1421 * V_6 = {0}; Interval_t1429 V_7 = {0}; Object_t * V_8 = {0}; int32_t V_9 = 0; int32_t V_10 = 0; Object_t * V_11 = {0}; Object_t * V_12 = {0}; Exception_t154 * __last_unhandled_exception = 0; NO_UNUSED_WARNING (__last_unhandled_exception); Exception_t154 * __exception_local = 0; NO_UNUSED_WARNING (__exception_local); int32_t __leave_target = 0; NO_UNUSED_WARNING (__leave_target); { IntervalCollection_t1433 * L_0 = (__this->___intervals_5); IntPtr_t L_1 = { &CharacterClass_GetIntervalCost_m7889_MethodInfo }; CostDelegate_t1432 * L_2 = (CostDelegate_t1432 *)il2cpp_codegen_object_new (InitializedTypeInfo(&CostDelegate_t1432_il2cpp_TypeInfo)); CostDelegate__ctor_m7741(L_2, NULL, L_1, /*hidden argument*/&CostDelegate__ctor_m7741_MethodInfo); NullCheck(L_0); IntervalCollection_t1433 * L_3 = IntervalCollection_GetMetaCollection_m7749(L_0, L_2, /*hidden argument*/&IntervalCollection_GetMetaCollection_m7749_MethodInfo); V_0 = L_3; IntervalCollection_t1433 * L_4 = V_0; NullCheck(L_4); int32_t L_5 = (int32_t)VirtFuncInvoker0< int32_t >::Invoke(&IntervalCollection_get_Count_m7751_MethodInfo, L_4); V_1 = L_5; V_2 = 0; goto IL_0050; } IL_0026: { BitArray_t1421 * L_6 = (__this->___pos_cats_3); int32_t L_7 = V_2; NullCheck(L_6); bool L_8 = BitArray_get_Item_m8202(L_6, L_7, /*hidden argument*/&BitArray_get_Item_m8202_MethodInfo); if (L_8) { goto IL_0048; } } { BitArray_t1421 * L_9 = (__this->___neg_cats_4); int32_t L_10 = V_2; NullCheck(L_9); bool L_11 = BitArray_get_Item_m8202(L_9, L_10, /*hidden argument*/&BitArray_get_Item_m8202_MethodInfo); if (!L_11) { goto IL_004c; } } IL_0048: { int32_t L_12 = V_1; V_1 = ((int32_t)((int32_t)L_12+(int32_t)1)); } IL_004c: { int32_t L_13 = V_2; V_2 = ((int32_t)((int32_t)L_13+(int32_t)1)); } IL_0050: { int32_t L_14 = V_2; BitArray_t1421 * L_15 = (__this->___pos_cats_3); NullCheck(L_15); int32_t L_16 = BitArray_get_Length_m8201(L_15, /*hidden argument*/&BitArray_get_Length_m8201_MethodInfo); if ((((int32_t)L_14) < ((int32_t)L_16))) { goto IL_0026; } } { int32_t L_17 = V_1; if (L_17) { goto IL_0068; } } { return; } IL_0068: { Object_t * L_18 = ___cmp; NullCheck(L_18); LinkRef_t1415 * L_19 = (LinkRef_t1415 *)InterfaceFuncInvoker0< LinkRef_t1415 * >::Invoke(&ICompiler_NewLink_m8222_MethodInfo, L_18); V_3 = L_19; int32_t L_20 = V_1; if ((((int32_t)L_20) <= ((int32_t)1))) { goto IL_007d; } } { Object_t * L_21 = ___cmp; LinkRef_t1415 * L_22 = V_3; NullCheck(L_21); InterfaceActionInvoker1< LinkRef_t1415 * >::Invoke(&ICompiler_EmitIn_m8247_MethodInfo, L_21, L_22); } IL_007d: { IntervalCollection_t1433 * L_23 = V_0; NullCheck(L_23); Object_t * L_24 = (Object_t *)VirtFuncInvoker0< Object_t * >::Invoke(&IntervalCollection_GetEnumerator_m7755_MethodInfo, L_23); V_5 = L_24; } IL_0085: try { // begin try (depth: 1) { goto IL_01ac; } IL_008a: { Object_t * L_25 = V_5; NullCheck(L_25); Object_t * L_26 = (Object_t *)InterfaceFuncInvoker0< Object_t * >::Invoke(&IEnumerator_get_Current_m6898_MethodInfo, L_25); V_4 = ((*(Interval_t1429 *)((Interval_t1429 *)UnBox (L_26, InitializedTypeInfo(&Interval_t1429_il2cpp_TypeInfo))))); bool L_27 = Interval_get_IsDiscontiguous_m7726((&V_4), /*hidden argument*/&Interval_get_IsDiscontiguous_m7726_MethodInfo); if (!L_27) { goto IL_015d; } } IL_00a4: { int32_t L_28 = Interval_get_Size_m7729((&V_4), /*hidden argument*/&Interval_get_Size_m7729_MethodInfo); BitArray_t1421 * L_29 = (BitArray_t1421 *)il2cpp_codegen_object_new (InitializedTypeInfo(&BitArray_t1421_il2cpp_TypeInfo)); BitArray__ctor_m8245(L_29, L_28, /*hidden argument*/&BitArray__ctor_m8245_MethodInfo); V_6 = L_29; IntervalCollection_t1433 * L_30 = (__this->___intervals_5); NullCheck(L_30); Object_t * L_31 = (Object_t *)VirtFuncInvoker0< Object_t * >::Invoke(&IntervalCollection_GetEnumerator_m7755_MethodInfo, L_30); V_8 = L_31; } IL_00bf: try { // begin try (depth: 2) { goto IL_0114; } IL_00c4: { Object_t * L_32 = V_8; NullCheck(L_32); Object_t * L_33 = (Object_t *)InterfaceFuncInvoker0< Object_t * >::Invoke(&IEnumerator_get_Current_m6898_MethodInfo, L_32); V_7 = ((*(Interval_t1429 *)((Interval_t1429 *)UnBox (L_33, InitializedTypeInfo(&Interval_t1429_il2cpp_TypeInfo))))); Interval_t1429 L_34 = V_7; bool L_35 = Interval_Contains_m7732((&V_4), L_34, /*hidden argument*/&Interval_Contains_m7732_MethodInfo); if (!L_35) { goto IL_0114; } } IL_00e0: { int32_t L_36 = ((&V_7)->___low_0); V_9 = L_36; goto IL_0106; } IL_00ee: { BitArray_t1421 * L_37 = V_6; int32_t L_38 = V_9; int32_t L_39 = ((&V_4)->___low_0); NullCheck(L_37); BitArray_set_Item_m8246(L_37, ((int32_t)((int32_t)L_38-(int32_t)L_39)), 1, /*hidden argument*/&BitArray_set_Item_m8246_MethodInfo); int32_t L_40 = V_9; V_9 = ((int32_t)((int32_t)L_40+(int32_t)1)); } IL_0106: { int32_t L_41 = V_9; int32_t L_42 = ((&V_7)->___high_1); if ((((int32_t)L_41) <= ((int32_t)L_42))) { goto IL_00ee; } } IL_0114: { Object_t * L_43 = V_8; NullCheck(L_43); bool L_44 = (bool)InterfaceFuncInvoker0< bool >::Invoke(&IEnumerator_MoveNext_m692_MethodInfo, L_43); if (L_44) { goto IL_00c4; } } IL_0120: { IL2CPP_LEAVE(0x13B, FINALLY_0125); } } // end try (depth: 2) catch(Il2CppExceptionWrapper& e) { __last_unhandled_exception = (Exception_t154 *)e.ex; goto FINALLY_0125; } FINALLY_0125: { // begin finally (depth: 2) { Object_t * L_45 = V_8; V_11 = ((Object_t *)IsInst(L_45, InitializedTypeInfo(&IDisposable_t153_il2cpp_TypeInfo))); Object_t * L_46 = V_11; if (L_46) { goto IL_0133; } } IL_0132: { IL2CPP_END_FINALLY(293) } IL_0133: { Object_t * L_47 = V_11; NullCheck(L_47); InterfaceActionInvoker0::Invoke(&IDisposable_Dispose_m486_MethodInfo, L_47); IL2CPP_END_FINALLY(293) } } // end finally (depth: 2) IL2CPP_CLEANUP(293) { IL2CPP_JUMP_TBL(0x13B, IL_013b) IL2CPP_RETHROW_IF_UNHANDLED(Exception_t154 *) } IL_013b: { Object_t * L_48 = ___cmp; int32_t L_49 = ((&V_4)->___low_0); BitArray_t1421 * L_50 = V_6; bool L_51 = (__this->___negate_1); bool L_52 = (__this->___ignore_2); bool L_53 = ___reverse; NullCheck(L_48); InterfaceActionInvoker5< uint16_t, BitArray_t1421 *, bool, bool, bool >::Invoke(&ICompiler_EmitSet_m8248_MethodInfo, L_48, (((uint16_t)L_49)), L_50, L_51, L_52, L_53); goto IL_01ac; } IL_015d: { bool L_54 = Interval_get_IsSingleton_m7727((&V_4), /*hidden argument*/&Interval_get_IsSingleton_m7727_MethodInfo); if (!L_54) { goto IL_0189; } } IL_0169: { Object_t * L_55 = ___cmp; int32_t L_56 = ((&V_4)->___low_0); bool L_57 = (__this->___negate_1); bool L_58 = (__this->___ignore_2); bool L_59 = ___reverse; NullCheck(L_55); InterfaceActionInvoker4< uint16_t, bool, bool, bool >::Invoke(&ICompiler_EmitCharacter_m8243_MethodInfo, L_55, (((uint16_t)L_56)), L_57, L_58, L_59); goto IL_01ac; } IL_0189: { Object_t * L_60 = ___cmp; int32_t L_61 = ((&V_4)->___low_0); int32_t L_62 = ((&V_4)->___high_1); bool L_63 = (__this->___negate_1); bool L_64 = (__this->___ignore_2); bool L_65 = ___reverse; NullCheck(L_60); InterfaceActionInvoker5< uint16_t, uint16_t, bool, bool, bool >::Invoke(&ICompiler_EmitRange_m8249_MethodInfo, L_60, (((uint16_t)L_61)), (((uint16_t)L_62)), L_63, L_64, L_65); } IL_01ac: { Object_t * L_66 = V_5; NullCheck(L_66); bool L_67 = (bool)InterfaceFuncInvoker0< bool >::Invoke(&IEnumerator_MoveNext_m692_MethodInfo, L_66); if (L_67) { goto IL_008a; } } IL_01b8: { IL2CPP_LEAVE(0x1D3, FINALLY_01bd); } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { __last_unhandled_exception = (Exception_t154 *)e.ex; goto FINALLY_01bd; } FINALLY_01bd: { // begin finally (depth: 1) { Object_t * L_68 = V_5; V_12 = ((Object_t *)IsInst(L_68, InitializedTypeInfo(&IDisposable_t153_il2cpp_TypeInfo))); Object_t * L_69 = V_12; if (L_69) { goto IL_01cb; } } IL_01ca: { IL2CPP_END_FINALLY(445) } IL_01cb: { Object_t * L_70 = V_12; NullCheck(L_70); InterfaceActionInvoker0::Invoke(&IDisposable_Dispose_m486_MethodInfo, L_70); IL2CPP_END_FINALLY(445) } } // end finally (depth: 1) IL2CPP_CLEANUP(445) { IL2CPP_JUMP_TBL(0x1D3, IL_01d3) IL2CPP_RETHROW_IF_UNHANDLED(Exception_t154 *) } IL_01d3: { V_10 = 0; goto IL_024f; } IL_01db: { BitArray_t1421 * L_71 = (__this->___pos_cats_3); int32_t L_72 = V_10; NullCheck(L_71); bool L_73 = BitArray_get_Item_m8202(L_71, L_72, /*hidden argument*/&BitArray_get_Item_m8202_MethodInfo); if (!L_73) { goto IL_0227; } } { BitArray_t1421 * L_74 = (__this->___neg_cats_4); int32_t L_75 = V_10; NullCheck(L_74); bool L_76 = BitArray_get_Item_m8202(L_74, L_75, /*hidden argument*/&BitArray_get_Item_m8202_MethodInfo); if (!L_76) { goto IL_0212; } } { Object_t * L_77 = ___cmp; bool L_78 = (__this->___negate_1); bool L_79 = ___reverse; NullCheck(L_77); InterfaceActionInvoker3< uint16_t, bool, bool >::Invoke(&ICompiler_EmitCategory_m8250_MethodInfo, L_77, 2, L_78, L_79); goto IL_0222; } IL_0212: { Object_t * L_80 = ___cmp; int32_t L_81 = V_10; bool L_82 = (__this->___negate_1); bool L_83 = ___reverse; NullCheck(L_80); InterfaceActionInvoker3< uint16_t, bool, bool >::Invoke(&ICompiler_EmitCategory_m8250_MethodInfo, L_80, (((uint16_t)L_81)), L_82, L_83); } IL_0222: { goto IL_0249; } IL_0227: { BitArray_t1421 * L_84 = (__this->___neg_cats_4); int32_t L_85 = V_10; NullCheck(L_84); bool L_86 = BitArray_get_Item_m8202(L_84, L_85, /*hidden argument*/&BitArray_get_Item_m8202_MethodInfo); if (!L_86) { goto IL_0249; } } { Object_t * L_87 = ___cmp; int32_t L_88 = V_10; bool L_89 = (__this->___negate_1); bool L_90 = ___reverse; NullCheck(L_87); InterfaceActionInvoker3< uint16_t, bool, bool >::Invoke(&ICompiler_EmitNotCategory_m8251_MethodInfo, L_87, (((uint16_t)L_88)), L_89, L_90); } IL_0249: { int32_t L_91 = V_10; V_10 = ((int32_t)((int32_t)L_91+(int32_t)1)); } IL_024f: { int32_t L_92 = V_10; BitArray_t1421 * L_93 = (__this->___pos_cats_3); NullCheck(L_93); int32_t L_94 = BitArray_get_Length_m8201(L_93, /*hidden argument*/&BitArray_get_Length_m8201_MethodInfo); if ((((int32_t)L_92) < ((int32_t)L_94))) { goto IL_01db; } } { int32_t L_95 = V_1; if ((((int32_t)L_95) <= ((int32_t)1))) { goto IL_028b; } } { bool L_96 = (__this->___negate_1); if (!L_96) { goto IL_027e; } } { Object_t * L_97 = ___cmp; NullCheck(L_97); InterfaceActionInvoker0::Invoke(&ICompiler_EmitTrue_m8226_MethodInfo, L_97); goto IL_0284; } IL_027e: { Object_t * L_98 = ___cmp; NullCheck(L_98); InterfaceActionInvoker0::Invoke(&ICompiler_EmitFalse_m8239_MethodInfo, L_98); } IL_0284: { Object_t * L_99 = ___cmp; LinkRef_t1415 * L_100 = V_3; NullCheck(L_99); InterfaceActionInvoker1< LinkRef_t1415 * >::Invoke(&ICompiler_ResolveLink_m8227_MethodInfo, L_99, L_100); } IL_028b: { return; } } // System.Void System.Text.RegularExpressions.Syntax.CharacterClass::GetWidth(System.Int32&,System.Int32&) extern MethodInfo CharacterClass_GetWidth_m7887_MethodInfo; extern "C" void CharacterClass_GetWidth_m7887 (CharacterClass_t1454 * __this, int32_t* ___min, int32_t* ___max, MethodInfo* method) { int32_t V_0 = 0; { int32_t* L_0 = ___min; int32_t* L_1 = ___max; int32_t L_2 = 1; V_0 = L_2; *((int32_t*)(L_1)) = (int32_t)L_2; int32_t L_3 = V_0; *((int32_t*)(L_0)) = (int32_t)L_3; return; } } // System.Boolean System.Text.RegularExpressions.Syntax.CharacterClass::IsComplex() extern MethodInfo CharacterClass_IsComplex_m7888_MethodInfo; extern "C" bool CharacterClass_IsComplex_m7888 (CharacterClass_t1454 * __this, MethodInfo* method) { { return 0; } } // System.Double System.Text.RegularExpressions.Syntax.CharacterClass::GetIntervalCost(System.Text.RegularExpressions.Interval) extern "C" double CharacterClass_GetIntervalCost_m7889 (Object_t * __this /* static, unused */, Interval_t1429 ___i, MethodInfo* method) { { bool L_0 = Interval_get_IsDiscontiguous_m7726((&___i), /*hidden argument*/&Interval_get_IsDiscontiguous_m7726_MethodInfo); if (!L_0) { goto IL_001c; } } { int32_t L_1 = Interval_get_Size_m7729((&___i), /*hidden argument*/&Interval_get_Size_m7729_MethodInfo); return (((double)((int32_t)((int32_t)3+(int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_1+(int32_t)((int32_t)15)))>>(int32_t)4)))))); } IL_001c: { bool L_2 = Interval_get_IsSingleton_m7727((&___i), /*hidden argument*/&Interval_get_IsSingleton_m7727_MethodInfo); if (!L_2) { goto IL_0032; } } { return (2.0); } IL_0032: { return (3.0); } } #ifndef _MSC_VER #else #endif extern MethodInfo AnchorInfo_get_Length_m7895_MethodInfo; // System.Void System.Text.RegularExpressions.Syntax.AnchorInfo::.ctor(System.Text.RegularExpressions.Syntax.Expression,System.Int32) extern "C" void AnchorInfo__ctor_m7890 (AnchorInfo_t1442 * __this, Expression_t1438 * ___expr, int32_t ___width, MethodInfo* method) { { Object__ctor_m419(__this, /*hidden argument*/&Object__ctor_m419_MethodInfo); Expression_t1438 * L_0 = ___expr; __this->___expr_0 = L_0; __this->___offset_2 = 0; int32_t L_1 = ___width; __this->___width_4 = L_1; __this->___str_3 = (String_t*)NULL; __this->___ignore_5 = 0; __this->___pos_1 = 0; return; } } // System.Void System.Text.RegularExpressions.Syntax.AnchorInfo::.ctor(System.Text.RegularExpressions.Syntax.Expression,System.Int32,System.Int32,System.String,System.Boolean) extern "C" void AnchorInfo__ctor_m7891 (AnchorInfo_t1442 * __this, Expression_t1438 * ___expr, int32_t ___offset, int32_t ___width, String_t* ___str, bool ___ignore, MethodInfo* method) { AnchorInfo_t1442 * G_B2_0 = {0}; AnchorInfo_t1442 * G_B1_0 = {0}; String_t* G_B3_0 = {0}; AnchorInfo_t1442 * G_B3_1 = {0}; { Object__ctor_m419(__this, /*hidden argument*/&Object__ctor_m419_MethodInfo); Expression_t1438 * L_0 = ___expr; __this->___expr_0 = L_0; int32_t L_1 = ___offset; __this->___offset_2 = L_1; int32_t L_2 = ___width; __this->___width_4 = L_2; bool L_3 = ___ignore; G_B1_0 = __this; if (!L_3) { G_B2_0 = __this; goto IL_002f; } } { String_t* L_4 = ___str; NullCheck(L_4); String_t* L_5 = String_ToLower_m5369(L_4, /*hidden argument*/&String_ToLower_m5369_MethodInfo); G_B3_0 = L_5; G_B3_1 = G_B1_0; goto IL_0031; } IL_002f: { String_t* L_6 = ___str; G_B3_0 = L_6; G_B3_1 = G_B2_0; } IL_0031: { NullCheck(G_B3_1); G_B3_1->___str_3 = G_B3_0; bool L_7 = ___ignore; __this->___ignore_5 = L_7; __this->___pos_1 = 0; return; } } // System.Void System.Text.RegularExpressions.Syntax.AnchorInfo::.ctor(System.Text.RegularExpressions.Syntax.Expression,System.Int32,System.Int32,System.Text.RegularExpressions.Position) extern "C" void AnchorInfo__ctor_m7892 (AnchorInfo_t1442 * __this, Expression_t1438 * ___expr, int32_t ___offset, int32_t ___width, uint16_t ___pos, MethodInfo* method) { { Object__ctor_m419(__this, /*hidden argument*/&Object__ctor_m419_MethodInfo); Expression_t1438 * L_0 = ___expr; __this->___expr_0 = L_0; int32_t L_1 = ___offset; __this->___offset_2 = L_1; int32_t L_2 = ___width; __this->___width_4 = L_2; uint16_t L_3 = ___pos; __this->___pos_1 = L_3; __this->___str_3 = (String_t*)NULL; __this->___ignore_5 = 0; return; } } // System.Int32 System.Text.RegularExpressions.Syntax.AnchorInfo::get_Offset() extern "C" int32_t AnchorInfo_get_Offset_m7893 (AnchorInfo_t1442 * __this, MethodInfo* method) { { int32_t L_0 = (__this->___offset_2); return L_0; } } // System.Int32 System.Text.RegularExpressions.Syntax.AnchorInfo::get_Width() extern "C" int32_t AnchorInfo_get_Width_m7894 (AnchorInfo_t1442 * __this, MethodInfo* method) { { int32_t L_0 = (__this->___width_4); return L_0; } } // System.Int32 System.Text.RegularExpressions.Syntax.AnchorInfo::get_Length() extern "C" int32_t AnchorInfo_get_Length_m7895 (AnchorInfo_t1442 * __this, MethodInfo* method) { int32_t G_B3_0 = 0; { String_t* L_0 = (__this->___str_3); if (!L_0) { goto IL_001b; } } { String_t* L_1 = (__this->___str_3); NullCheck(L_1); int32_t L_2 = String_get_Length_m694(L_1, /*hidden argument*/&String_get_Length_m694_MethodInfo); G_B3_0 = L_2; goto IL_001c; } IL_001b: { G_B3_0 = 0; } IL_001c: { return G_B3_0; } } // System.Boolean System.Text.RegularExpressions.Syntax.AnchorInfo::get_IsUnknownWidth() extern "C" bool AnchorInfo_get_IsUnknownWidth_m7896 (AnchorInfo_t1442 * __this, MethodInfo* method) { { int32_t L_0 = (__this->___width_4); return ((((int32_t)L_0) < ((int32_t)0))? 1 : 0); } } // System.Boolean System.Text.RegularExpressions.Syntax.AnchorInfo::get_IsComplete() extern "C" bool AnchorInfo_get_IsComplete_m7897 (AnchorInfo_t1442 * __this, MethodInfo* method) { { int32_t L_0 = AnchorInfo_get_Length_m7895(__this, /*hidden argument*/&AnchorInfo_get_Length_m7895_MethodInfo); int32_t L_1 = AnchorInfo_get_Width_m7894(__this, /*hidden argument*/&AnchorInfo_get_Width_m7894_MethodInfo); return ((((int32_t)L_0) == ((int32_t)L_1))? 1 : 0); } } // System.String System.Text.RegularExpressions.Syntax.AnchorInfo::get_Substring() extern "C" String_t* AnchorInfo_get_Substring_m7898 (AnchorInfo_t1442 * __this, MethodInfo* method) { { String_t* L_0 = (__this->___str_3); return L_0; } } // System.Boolean System.Text.RegularExpressions.Syntax.AnchorInfo::get_IgnoreCase() extern "C" bool AnchorInfo_get_IgnoreCase_m7899 (AnchorInfo_t1442 * __this, MethodInfo* method) { { bool L_0 = (__this->___ignore_5); return L_0; } } // System.Text.RegularExpressions.Position System.Text.RegularExpressions.Syntax.AnchorInfo::get_Position() extern "C" uint16_t AnchorInfo_get_Position_m7900 (AnchorInfo_t1442 * __this, MethodInfo* method) { { uint16_t L_0 = (__this->___pos_1); return L_0; } } // System.Boolean System.Text.RegularExpressions.Syntax.AnchorInfo::get_IsSubstring() extern "C" bool AnchorInfo_get_IsSubstring_m7901 (AnchorInfo_t1442 * __this, MethodInfo* method) { { String_t* L_0 = (__this->___str_3); return ((((int32_t)((((Object_t*)(String_t*)L_0) == ((Object_t*)(Object_t *)NULL))? 1 : 0)) == ((int32_t)0))? 1 : 0); } } // System.Boolean System.Text.RegularExpressions.Syntax.AnchorInfo::get_IsPosition() extern "C" bool AnchorInfo_get_IsPosition_m7902 (AnchorInfo_t1442 * __this, MethodInfo* method) { { uint16_t L_0 = (__this->___pos_1); return ((((int32_t)((((int32_t)L_0) == ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0); } } // System.Text.RegularExpressions.Interval System.Text.RegularExpressions.Syntax.AnchorInfo::GetInterval(System.Int32) extern "C" Interval_t1429 AnchorInfo_GetInterval_m7903 (AnchorInfo_t1442 * __this, int32_t ___start, MethodInfo* method) { { bool L_0 = AnchorInfo_get_IsSubstring_m7901(__this, /*hidden argument*/&AnchorInfo_get_IsSubstring_m7901_MethodInfo); if (L_0) { goto IL_0011; } } { Interval_t1429 L_1 = Interval_get_Empty_m7725(NULL /*static, unused*/, /*hidden argument*/&Interval_get_Empty_m7725_MethodInfo); return L_1; } IL_0011: { int32_t L_2 = ___start; int32_t L_3 = AnchorInfo_get_Offset_m7893(__this, /*hidden argument*/&AnchorInfo_get_Offset_m7893_MethodInfo); int32_t L_4 = ___start; int32_t L_5 = AnchorInfo_get_Offset_m7893(__this, /*hidden argument*/&AnchorInfo_get_Offset_m7893_MethodInfo); int32_t L_6 = AnchorInfo_get_Length_m7895(__this, /*hidden argument*/&AnchorInfo_get_Length_m7895_MethodInfo); Interval_t1429 L_7 = {0}; Interval__ctor_m7724(&L_7, ((int32_t)((int32_t)L_2+(int32_t)L_3)), ((int32_t)((int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_4+(int32_t)L_5))+(int32_t)L_6))-(int32_t)1)), /*hidden argument*/&Interval__ctor_m7724_MethodInfo); return L_7; } } // System.DefaultUriParser #include "System_System_DefaultUriParser.h" #ifndef _MSC_VER #else #endif extern TypeInfo DefaultUriParser_t1455_il2cpp_TypeInfo; // System.DefaultUriParser #include "System_System_DefaultUriParserMethodDeclarations.h" // System.UriParser #include "System_System_UriParser.h" extern TypeInfo UriParser_t1456_il2cpp_TypeInfo; // System.UriParser #include "System_System_UriParserMethodDeclarations.h" extern MethodInfo UriParser__ctor_m7959_MethodInfo; // System.Void System.DefaultUriParser::.ctor() extern MethodInfo DefaultUriParser__ctor_m7904_MethodInfo; extern "C" void DefaultUriParser__ctor_m7904 (DefaultUriParser_t1455 * __this, MethodInfo* method) { { UriParser__ctor_m7959(__this, /*hidden argument*/&UriParser__ctor_m7959_MethodInfo); return; } } // System.Void System.DefaultUriParser::.ctor(System.String) extern MethodInfo DefaultUriParser__ctor_m7905_MethodInfo; extern "C" void DefaultUriParser__ctor_m7905 (DefaultUriParser_t1455 * __this, String_t* ___scheme, MethodInfo* method) { { UriParser__ctor_m7959(__this, /*hidden argument*/&UriParser__ctor_m7959_MethodInfo); String_t* L_0 = ___scheme; __this->___scheme_name_2 = L_0; return; } } // System.GenericUriParser #include "System_System_GenericUriParser.h" #ifndef _MSC_VER #else #endif extern TypeInfo GenericUriParser_t1457_il2cpp_TypeInfo; // System.GenericUriParser #include "System_System_GenericUriParserMethodDeclarations.h" // System.Uri/UriScheme #include "System_System_Uri_UriScheme.h" #ifndef _MSC_VER #else #endif extern TypeInfo UriScheme_t1458_il2cpp_TypeInfo; // System.Uri/UriScheme #include "System_System_Uri_UriSchemeMethodDeclarations.h" // System.Void System.Uri/UriScheme::.ctor(System.String,System.String,System.Int32) extern MethodInfo UriScheme__ctor_m7906_MethodInfo; extern "C" void UriScheme__ctor_m7906 (UriScheme_t1458 * __this, String_t* ___s, String_t* ___d, int32_t ___p, MethodInfo* method) { { String_t* L_0 = ___s; __this->___scheme_0 = L_0; String_t* L_1 = ___d; __this->___delimiter_1 = L_1; int32_t L_2 = ___p; __this->___defaultPort_2 = L_2; return; } } // Conversion methods for marshalling of: System.Uri/UriScheme void UriScheme_t1458_marshal(const UriScheme_t1458& unmarshaled, UriScheme_t1458_marshaled& marshaled) { marshaled.___scheme_0 = il2cpp_codegen_marshal_string(unmarshaled.___scheme_0); marshaled.___delimiter_1 = il2cpp_codegen_marshal_string(unmarshaled.___delimiter_1); marshaled.___defaultPort_2 = unmarshaled.___defaultPort_2; } void UriScheme_t1458_marshal_back(const UriScheme_t1458_marshaled& marshaled, UriScheme_t1458& unmarshaled) { unmarshaled.___scheme_0 = il2cpp_codegen_marshal_string_result(marshaled.___scheme_0); unmarshaled.___delimiter_1 = il2cpp_codegen_marshal_string_result(marshaled.___delimiter_1); unmarshaled.___defaultPort_2 = marshaled.___defaultPort_2; } // Conversion method for clean up from marshalling of: System.Uri/UriScheme void UriScheme_t1458_marshal_cleanup(UriScheme_t1458_marshaled& marshaled) { il2cpp_codegen_marshal_free(marshaled.___scheme_0); marshaled.___scheme_0 = NULL; il2cpp_codegen_marshal_free(marshaled.___delimiter_1); marshaled.___delimiter_1 = NULL; } // System.Uri #include "System_System_Uri.h" #ifndef _MSC_VER #else #endif extern TypeInfo Uri_t1318_il2cpp_TypeInfo; // System.Uri #include "System_System_UriMethodDeclarations.h" // System.UriPartial #include "System_System_UriPartial.h" // System.Net.IPAddress #include "System_System_Net_IPAddress.h" // System.Net.IPv6Address #include "System_System_Net_IPv6Address.h" // System.Runtime.Serialization.SerializationInfo #include "mscorlib_System_Runtime_Serialization_SerializationInfo.h" // System.Runtime.Serialization.StreamingContext #include "mscorlib_System_Runtime_Serialization_StreamingContext.h" // System.UriKind #include "System_System_UriKind.h" // System.UriFormatException #include "System_System_UriFormatException.h" // System.UriHostNameType #include "System_System_UriHostNameType.h" // System.UInt32 #include "mscorlib_System_UInt32.h" // System.Globalization.CultureInfo #include "mscorlib_System_Globalization_CultureInfo.h" // System.Collections.Generic.Dictionary`2<System.String,System.Int32> #include "mscorlib_System_Collections_Generic_Dictionary_2_gen_26.h" // System.ArgumentOutOfRangeException #include "mscorlib_System_ArgumentOutOfRangeException.h" // System.Text.Encoding #include "mscorlib_System_Text_Encoding.h" // System.ArgumentNullException #include "mscorlib_System_ArgumentNullException.h" // System.IO.Path #include "mscorlib_System_IO_Path.h" // System.Globalization.NumberStyles #include "mscorlib_System_Globalization_NumberStyles.h" // System.Exception #include "mscorlib_System_Exception.h" extern TypeInfo IPAddress_t1334_il2cpp_TypeInfo; extern TypeInfo IPv6Address_t1335_il2cpp_TypeInfo; extern TypeInfo UriFormatException_t1460_il2cpp_TypeInfo; extern TypeInfo UriSchemeU5BU5D_t1459_il2cpp_TypeInfo; extern TypeInfo CultureInfo_t1165_il2cpp_TypeInfo; extern TypeInfo Dictionary_2_t1025_il2cpp_TypeInfo; extern TypeInfo ArgumentOutOfRangeException_t1472_il2cpp_TypeInfo; extern TypeInfo Encoding_t1486_il2cpp_TypeInfo; extern TypeInfo ArgumentNullException_t1172_il2cpp_TypeInfo; extern TypeInfo Path_t916_il2cpp_TypeInfo; extern TypeInfo Exception_t154_il2cpp_TypeInfo; // System.Net.IPAddress #include "System_System_Net_IPAddressMethodDeclarations.h" // System.Net.IPv6Address #include "System_System_Net_IPv6AddressMethodDeclarations.h" // System.Runtime.Serialization.SerializationInfo #include "mscorlib_System_Runtime_Serialization_SerializationInfoMethodDeclarations.h" // System.UriFormatException #include "System_System_UriFormatExceptionMethodDeclarations.h" // System.UInt32 #include "mscorlib_System_UInt32MethodDeclarations.h" // System.Globalization.CultureInfo #include "mscorlib_System_Globalization_CultureInfoMethodDeclarations.h" // System.Collections.Generic.Dictionary`2<System.String,System.Int32> #include "mscorlib_System_Collections_Generic_Dictionary_2_gen_26MethodDeclarations.h" // System.ArgumentOutOfRangeException #include "mscorlib_System_ArgumentOutOfRangeExceptionMethodDeclarations.h" // System.Text.Encoding #include "mscorlib_System_Text_EncodingMethodDeclarations.h" // System.ArgumentNullException #include "mscorlib_System_ArgumentNullExceptionMethodDeclarations.h" // System.IO.Path #include "mscorlib_System_IO_PathMethodDeclarations.h" // Locale #include "System_LocaleMethodDeclarations.h" // System.Exception #include "mscorlib_System_ExceptionMethodDeclarations.h" extern Il2CppType UriSchemeU5BU5D_t1459_0_0_0; extern Il2CppType Dictionary_2_t1025_0_0_0; extern MethodInfo Uri_EnsureAbsoluteUri_m7953_MethodInfo; extern MethodInfo Uri_GetLeftPart_m7928_MethodInfo; extern MethodInfo String_Concat_m540_MethodInfo; extern MethodInfo Uri_get_Scheme_m7918_MethodInfo; extern MethodInfo Uri_GetDefaultPort_m7949_MethodInfo; extern MethodInfo String_Concat_m407_MethodInfo; extern MethodInfo String_op_Equality_m406_MethodInfo; extern MethodInfo Uri_get_Host_m7914_MethodInfo; extern MethodInfo Uri_get_IsFile_m7915_MethodInfo; extern MethodInfo IPAddress_TryParse_m7220_MethodInfo; extern MethodInfo IPAddress_Equals_m7229_MethodInfo; extern MethodInfo IPv6Address_TryParse_m7239_MethodInfo; extern MethodInfo IPv6Address_IsLoopback_m7243_MethodInfo; extern MethodInfo UriParser_GetParser_m7968_MethodInfo; extern MethodInfo Uri__ctor_m7909_MethodInfo; extern MethodInfo SerializationInfo_GetString_m8011_MethodInfo; extern MethodInfo Uri_ParseUri_m7937_MethodInfo; extern MethodInfo UriFormatException__ctor_m7956_MethodInfo; extern MethodInfo Uri_get_AbsoluteUri_m7912_MethodInfo; extern MethodInfo SerializationInfo_AddValue_m8014_MethodInfo; extern MethodInfo Uri_IsIPv4Address_m7921_MethodInfo; extern MethodInfo Uri_IsDomainAddress_m7922_MethodInfo; extern MethodInfo String_Split_m5453_MethodInfo; extern MethodInfo UInt32_TryParse_m8252_MethodInfo; extern MethodInfo Uri_IsAlpha_m7924_MethodInfo; extern MethodInfo Uri__ctor_m7907_MethodInfo; extern MethodInfo Uri_InternalEquals_m7926_MethodInfo; extern MethodInfo CultureInfo_get_InvariantCulture_m8023_MethodInfo; extern MethodInfo String_ToLower_m8253_MethodInfo; extern MethodInfo String_GetHashCode_m6857_MethodInfo; extern MethodInfo Uri_GetOpaqueWiseSchemeDelimiter_m7950_MethodInfo; extern MethodInfo StringBuilder_Append_m2561_MethodInfo; extern MethodInfo StringBuilder_Append_m8087_MethodInfo; extern MethodInfo Dictionary_2__ctor_m8048_MethodInfo; extern MethodInfo Dictionary_2_Add_m8049_MethodInfo; extern MethodInfo Dictionary_2_TryGetValue_m8050_MethodInfo; extern MethodInfo Uri_CompactEscaped_m7945_MethodInfo; extern MethodInfo Uri_Reduce_m7946_MethodInfo; extern MethodInfo ArgumentException__ctor_m2726_MethodInfo; extern MethodInfo ArgumentOutOfRangeException__ctor_m7993_MethodInfo; extern MethodInfo Uri_IsHexDigit_m7931_MethodInfo; extern MethodInfo Uri_Unescape_m7939_MethodInfo; extern MethodInfo Uri_Unescape_m7938_MethodInfo; extern MethodInfo Uri_AppendQueryAndFragment_m7933_MethodInfo; extern MethodInfo Uri_EscapeString_m7936_MethodInfo; extern MethodInfo Uri_IsHexEncoding_m7932_MethodInfo; extern MethodInfo Encoding_get_UTF8_m8101_MethodInfo; extern MethodInfo Encoding_GetBytes_m8254_MethodInfo; extern MethodInfo String_IndexOf_m2601_MethodInfo; extern MethodInfo Uri_HexEscape_m7930_MethodInfo; extern MethodInfo Uri_Parse_m7943_MethodInfo; extern MethodInfo Uri_EscapeString_m7935_MethodInfo; extern MethodInfo Uri_HexUnescapeMultiByte_m7947_MethodInfo; extern MethodInfo String_TrimStart_m8255_MethodInfo; extern MethodInfo String_Replace_m997_MethodInfo; extern MethodInfo ArgumentNullException__ctor_m6951_MethodInfo; extern MethodInfo Uri_ParseNoExceptions_m7944_MethodInfo; extern MethodInfo String_Trim_m6930_MethodInfo; extern MethodInfo Uri_ParseAsUnixAbsoluteFilePath_m7942_MethodInfo; extern MethodInfo Uri_ParseAsWindowsUNC_m7940_MethodInfo; extern MethodInfo Uri_ParseAsWindowsAbsoluteFilePath_m7941_MethodInfo; extern MethodInfo Uri_CheckSchemeName_m7923_MethodInfo; extern MethodInfo Locale_GetText_m7100_MethodInfo; extern MethodInfo String_IndexOf_m8256_MethodInfo; extern MethodInfo Uri_get_IsUnc_m7917_MethodInfo; extern MethodInfo String_IndexOf_m8257_MethodInfo; extern MethodInfo Uri_IsPredefinedScheme_m7951_MethodInfo; extern MethodInfo String_op_Inequality_m2540_MethodInfo; extern MethodInfo String_LastIndexOf_m8258_MethodInfo; extern MethodInfo Int32_TryParse_m8024_MethodInfo; extern MethodInfo Uri_CheckHostName_m7920_MethodInfo; extern MethodInfo IPv6Address_ToString_m7249_MethodInfo; extern MethodInfo Uri_get_Parser_m7952_MethodInfo; extern MethodInfo UriParser_InitializeAndValidate_m7961_MethodInfo; extern MethodInfo Exception_get_Message_m2507_MethodInfo; extern MethodInfo String_Replace_m6934_MethodInfo; extern MethodInfo StringBuilder_set_Length_m8259_MethodInfo; extern MethodInfo String_EndsWith_m4752_MethodInfo; extern MethodInfo Uri_FromHex_m7929_MethodInfo; extern MethodInfo UriParser_get_DefaultPort_m7964_MethodInfo; extern MethodInfo Uri_GetSchemeDelimiter_m7948_MethodInfo; extern MethodInfo Uri_get_IsAbsoluteUri_m7919_MethodInfo; extern MethodInfo InvalidOperationException__ctor_m7984_MethodInfo; extern MethodInfo Object_Equals_m8260_MethodInfo; extern Il2CppGenericMethod Dictionary_2__ctor_m8048_GenericMethod; extern Il2CppGenericMethod Dictionary_2_Add_m8049_GenericMethod; extern Il2CppGenericMethod Dictionary_2_TryGetValue_m8050_GenericMethod; // System.Void System.Uri::.ctor(System.String) extern "C" void Uri__ctor_m7907 (Uri_t1318 * __this, String_t* ___uriString, MethodInfo* method) { { String_t* L_0 = ___uriString; Uri__ctor_m7909(__this, L_0, 0, /*hidden argument*/&Uri__ctor_m7909_MethodInfo); return; } } // System.Void System.Uri::.ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext) extern MethodInfo Uri__ctor_m7908_MethodInfo; extern "C" void Uri__ctor_m7908 (Uri_t1318 * __this, SerializationInfo_t1123 * ___serializationInfo, StreamingContext_t1124 ___streamingContext, MethodInfo* method) { { SerializationInfo_t1123 * L_0 = ___serializationInfo; NullCheck(L_0); String_t* L_1 = SerializationInfo_GetString_m8011(L_0, (String_t*) &_stringLiteral894, /*hidden argument*/&SerializationInfo_GetString_m8011_MethodInfo); Uri__ctor_m7909(__this, L_1, 1, /*hidden argument*/&Uri__ctor_m7909_MethodInfo); return; } } // System.Void System.Uri::.ctor(System.String,System.Boolean) extern "C" void Uri__ctor_m7909 (Uri_t1318 * __this, String_t* ___uriString, bool ___dontEscape, MethodInfo* method) { { IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); String_t* L_0 = ((String_t_StaticFields*)(&String_t_il2cpp_TypeInfo)->static_fields)->___Empty_2; __this->___scheme_2 = L_0; String_t* L_1 = ((String_t_StaticFields*)(&String_t_il2cpp_TypeInfo)->static_fields)->___Empty_2; __this->___host_3 = L_1; __this->___port_4 = (-1); String_t* L_2 = ((String_t_StaticFields*)(&String_t_il2cpp_TypeInfo)->static_fields)->___Empty_2; __this->___path_5 = L_2; String_t* L_3 = ((String_t_StaticFields*)(&String_t_il2cpp_TypeInfo)->static_fields)->___Empty_2; __this->___query_6 = L_3; String_t* L_4 = ((String_t_StaticFields*)(&String_t_il2cpp_TypeInfo)->static_fields)->___Empty_2; __this->___fragment_7 = L_4; String_t* L_5 = ((String_t_StaticFields*)(&String_t_il2cpp_TypeInfo)->static_fields)->___Empty_2; __this->___userinfo_8 = L_5; __this->___isAbsoluteUri_11 = 1; Object__ctor_m419(__this, /*hidden argument*/&Object__ctor_m419_MethodInfo); bool L_6 = ___dontEscape; __this->___userEscaped_12 = L_6; String_t* L_7 = ___uriString; __this->___source_1 = L_7; Uri_ParseUri_m7937(__this, 1, /*hidden argument*/&Uri_ParseUri_m7937_MethodInfo); bool L_8 = (__this->___isAbsoluteUri_11); if (L_8) { goto IL_0087; } } { String_t* L_9 = ___uriString; IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); String_t* L_10 = String_Concat_m540(NULL /*static, unused*/, (String_t*) &_stringLiteral895, L_9, /*hidden argument*/&String_Concat_m540_MethodInfo); UriFormatException_t1460 * L_11 = (UriFormatException_t1460 *)il2cpp_codegen_object_new (InitializedTypeInfo(&UriFormatException_t1460_il2cpp_TypeInfo)); UriFormatException__ctor_m7956(L_11, L_10, /*hidden argument*/&UriFormatException__ctor_m7956_MethodInfo); il2cpp_codegen_raise_exception(L_11); } IL_0087: { return; } } // System.Void System.Uri::.cctor() extern MethodInfo Uri__cctor_m7910_MethodInfo; extern TypeInfo* UriSchemeU5BU5D_t1459_il2cpp_TypeInfo_var; extern "C" void Uri__cctor_m7910 (Object_t * __this /* static, unused */, MethodInfo* method) { static bool Uri__cctor_m7910_init; if (!Uri__cctor_m7910_init) { UriSchemeU5BU5D_t1459_il2cpp_TypeInfo_var = il2cpp_codegen_class_from_type(&UriSchemeU5BU5D_t1459_0_0_0); Uri__cctor_m7910_init = true; } { ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___hexUpperChars_16 = (String_t*) &_stringLiteral896; ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___SchemeDelimiter_17 = (String_t*) &_stringLiteral144; ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeFile_18 = (String_t*) &_stringLiteral716; ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeFtp_19 = (String_t*) &_stringLiteral718; ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeGopher_20 = (String_t*) &_stringLiteral897; ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeHttp_21 = (String_t*) &_stringLiteral659; ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeHttps_22 = (String_t*) &_stringLiteral658; ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeMailto_23 = (String_t*) &_stringLiteral898; ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeNews_24 = (String_t*) &_stringLiteral899; ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeNntp_25 = (String_t*) &_stringLiteral900; ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeNetPipe_26 = (String_t*) &_stringLiteral901; ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeNetTcp_27 = (String_t*) &_stringLiteral902; UriSchemeU5BU5D_t1459* L_0 = ((UriSchemeU5BU5D_t1459*)SZArrayNew(UriSchemeU5BU5D_t1459_il2cpp_TypeInfo_var, 8)); NullCheck(L_0); IL2CPP_ARRAY_BOUNDS_CHECK(L_0, 0); String_t* L_1 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeHttp_21; String_t* L_2 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___SchemeDelimiter_17; UriScheme_t1458 L_3 = {0}; UriScheme__ctor_m7906(&L_3, L_1, L_2, ((int32_t)80), /*hidden argument*/&UriScheme__ctor_m7906_MethodInfo); *((UriScheme_t1458 *)(UriScheme_t1458 *)SZArrayLdElema(L_0, 0)) = L_3; UriSchemeU5BU5D_t1459* L_4 = L_0; NullCheck(L_4); IL2CPP_ARRAY_BOUNDS_CHECK(L_4, 1); String_t* L_5 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeHttps_22; String_t* L_6 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___SchemeDelimiter_17; UriScheme_t1458 L_7 = {0}; UriScheme__ctor_m7906(&L_7, L_5, L_6, ((int32_t)443), /*hidden argument*/&UriScheme__ctor_m7906_MethodInfo); *((UriScheme_t1458 *)(UriScheme_t1458 *)SZArrayLdElema(L_4, 1)) = L_7; UriSchemeU5BU5D_t1459* L_8 = L_4; NullCheck(L_8); IL2CPP_ARRAY_BOUNDS_CHECK(L_8, 2); String_t* L_9 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeFtp_19; String_t* L_10 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___SchemeDelimiter_17; UriScheme_t1458 L_11 = {0}; UriScheme__ctor_m7906(&L_11, L_9, L_10, ((int32_t)21), /*hidden argument*/&UriScheme__ctor_m7906_MethodInfo); *((UriScheme_t1458 *)(UriScheme_t1458 *)SZArrayLdElema(L_8, 2)) = L_11; UriSchemeU5BU5D_t1459* L_12 = L_8; NullCheck(L_12); IL2CPP_ARRAY_BOUNDS_CHECK(L_12, 3); String_t* L_13 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeFile_18; String_t* L_14 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___SchemeDelimiter_17; UriScheme_t1458 L_15 = {0}; UriScheme__ctor_m7906(&L_15, L_13, L_14, (-1), /*hidden argument*/&UriScheme__ctor_m7906_MethodInfo); *((UriScheme_t1458 *)(UriScheme_t1458 *)SZArrayLdElema(L_12, 3)) = L_15; UriSchemeU5BU5D_t1459* L_16 = L_12; NullCheck(L_16); IL2CPP_ARRAY_BOUNDS_CHECK(L_16, 4); String_t* L_17 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeMailto_23; UriScheme_t1458 L_18 = {0}; UriScheme__ctor_m7906(&L_18, L_17, (String_t*) &_stringLiteral557, ((int32_t)25), /*hidden argument*/&UriScheme__ctor_m7906_MethodInfo); *((UriScheme_t1458 *)(UriScheme_t1458 *)SZArrayLdElema(L_16, 4)) = L_18; UriSchemeU5BU5D_t1459* L_19 = L_16; NullCheck(L_19); IL2CPP_ARRAY_BOUNDS_CHECK(L_19, 5); String_t* L_20 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeNews_24; UriScheme_t1458 L_21 = {0}; UriScheme__ctor_m7906(&L_21, L_20, (String_t*) &_stringLiteral557, ((int32_t)119), /*hidden argument*/&UriScheme__ctor_m7906_MethodInfo); *((UriScheme_t1458 *)(UriScheme_t1458 *)SZArrayLdElema(L_19, 5)) = L_21; UriSchemeU5BU5D_t1459* L_22 = L_19; NullCheck(L_22); IL2CPP_ARRAY_BOUNDS_CHECK(L_22, 6); String_t* L_23 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeNntp_25; String_t* L_24 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___SchemeDelimiter_17; UriScheme_t1458 L_25 = {0}; UriScheme__ctor_m7906(&L_25, L_23, L_24, ((int32_t)119), /*hidden argument*/&UriScheme__ctor_m7906_MethodInfo); *((UriScheme_t1458 *)(UriScheme_t1458 *)SZArrayLdElema(L_22, 6)) = L_25; UriSchemeU5BU5D_t1459* L_26 = L_22; NullCheck(L_26); IL2CPP_ARRAY_BOUNDS_CHECK(L_26, 7); String_t* L_27 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeGopher_20; String_t* L_28 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___SchemeDelimiter_17; UriScheme_t1458 L_29 = {0}; UriScheme__ctor_m7906(&L_29, L_27, L_28, ((int32_t)70), /*hidden argument*/&UriScheme__ctor_m7906_MethodInfo); *((UriScheme_t1458 *)(UriScheme_t1458 *)SZArrayLdElema(L_26, 7)) = L_29; ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___schemes_28 = L_26; return; } } // System.Void System.Uri::System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext) extern MethodInfo Uri_System_Runtime_Serialization_ISerializable_GetObjectData_m7911_MethodInfo; extern "C" void Uri_System_Runtime_Serialization_ISerializable_GetObjectData_m7911 (Uri_t1318 * __this, SerializationInfo_t1123 * ___info, StreamingContext_t1124 ___context, MethodInfo* method) { { SerializationInfo_t1123 * L_0 = ___info; String_t* L_1 = Uri_get_AbsoluteUri_m7912(__this, /*hidden argument*/&Uri_get_AbsoluteUri_m7912_MethodInfo); NullCheck(L_0); SerializationInfo_AddValue_m8014(L_0, (String_t*) &_stringLiteral894, L_1, /*hidden argument*/&SerializationInfo_AddValue_m8014_MethodInfo); return; } } // System.String System.Uri::get_AbsoluteUri() extern "C" String_t* Uri_get_AbsoluteUri_m7912 (Uri_t1318 * __this, MethodInfo* method) { { Uri_EnsureAbsoluteUri_m7953(__this, /*hidden argument*/&Uri_EnsureAbsoluteUri_m7953_MethodInfo); String_t* L_0 = (__this->___cachedAbsoluteUri_13); if (L_0) { goto IL_006e; } } { String_t* L_1 = Uri_GetLeftPart_m7928(__this, 2, /*hidden argument*/&Uri_GetLeftPart_m7928_MethodInfo); __this->___cachedAbsoluteUri_13 = L_1; String_t* L_2 = (__this->___query_6); NullCheck(L_2); int32_t L_3 = String_get_Length_m694(L_2, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((((int32_t)L_3) <= ((int32_t)0))) { goto IL_0046; } } { String_t* L_4 = (__this->___cachedAbsoluteUri_13); String_t* L_5 = (__this->___query_6); IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); String_t* L_6 = String_Concat_m540(NULL /*static, unused*/, L_4, L_5, /*hidden argument*/&String_Concat_m540_MethodInfo); __this->___cachedAbsoluteUri_13 = L_6; } IL_0046: { String_t* L_7 = (__this->___fragment_7); NullCheck(L_7); int32_t L_8 = String_get_Length_m694(L_7, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((((int32_t)L_8) <= ((int32_t)0))) { goto IL_006e; } } { String_t* L_9 = (__this->___cachedAbsoluteUri_13); String_t* L_10 = (__this->___fragment_7); IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); String_t* L_11 = String_Concat_m540(NULL /*static, unused*/, L_9, L_10, /*hidden argument*/&String_Concat_m540_MethodInfo); __this->___cachedAbsoluteUri_13 = L_11; } IL_006e: { String_t* L_12 = (__this->___cachedAbsoluteUri_13); return L_12; } } // System.String System.Uri::get_Authority() extern MethodInfo Uri_get_Authority_m7913_MethodInfo; extern "C" String_t* Uri_get_Authority_m7913 (Uri_t1318 * __this, MethodInfo* method) { String_t* G_B3_0 = {0}; { Uri_EnsureAbsoluteUri_m7953(__this, /*hidden argument*/&Uri_EnsureAbsoluteUri_m7953_MethodInfo); String_t* L_0 = Uri_get_Scheme_m7918(__this, /*hidden argument*/&Uri_get_Scheme_m7918_MethodInfo); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); int32_t L_1 = Uri_GetDefaultPort_m7949(NULL /*static, unused*/, L_0, /*hidden argument*/&Uri_GetDefaultPort_m7949_MethodInfo); int32_t L_2 = (__this->___port_4); if ((!(((uint32_t)L_1) == ((uint32_t)L_2)))) { goto IL_0027; } } { String_t* L_3 = (__this->___host_3); G_B3_0 = L_3; goto IL_0042; } IL_0027: { String_t* L_4 = (__this->___host_3); int32_t L_5 = (__this->___port_4); int32_t L_6 = L_5; Object_t * L_7 = Box(InitializedTypeInfo(&Int32_t141_il2cpp_TypeInfo), &L_6); IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); String_t* L_8 = String_Concat_m407(NULL /*static, unused*/, L_4, (String_t*) &_stringLiteral557, L_7, /*hidden argument*/&String_Concat_m407_MethodInfo); G_B3_0 = L_8; } IL_0042: { return G_B3_0; } } // System.String System.Uri::get_Host() extern "C" String_t* Uri_get_Host_m7914 (Uri_t1318 * __this, MethodInfo* method) { { Uri_EnsureAbsoluteUri_m7953(__this, /*hidden argument*/&Uri_EnsureAbsoluteUri_m7953_MethodInfo); String_t* L_0 = (__this->___host_3); return L_0; } } // System.Boolean System.Uri::get_IsFile() extern "C" bool Uri_get_IsFile_m7915 (Uri_t1318 * __this, MethodInfo* method) { { Uri_EnsureAbsoluteUri_m7953(__this, /*hidden argument*/&Uri_EnsureAbsoluteUri_m7953_MethodInfo); String_t* L_0 = Uri_get_Scheme_m7918(__this, /*hidden argument*/&Uri_get_Scheme_m7918_MethodInfo); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); String_t* L_1 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeFile_18; IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); bool L_2 = String_op_Equality_m406(NULL /*static, unused*/, L_0, L_1, /*hidden argument*/&String_op_Equality_m406_MethodInfo); return L_2; } } // System.Boolean System.Uri::get_IsLoopback() extern MethodInfo Uri_get_IsLoopback_m7916_MethodInfo; extern "C" bool Uri_get_IsLoopback_m7916 (Uri_t1318 * __this, MethodInfo* method) { IPAddress_t1334 * V_0 = {0}; IPv6Address_t1335 * V_1 = {0}; { Uri_EnsureAbsoluteUri_m7953(__this, /*hidden argument*/&Uri_EnsureAbsoluteUri_m7953_MethodInfo); String_t* L_0 = Uri_get_Host_m7914(__this, /*hidden argument*/&Uri_get_Host_m7914_MethodInfo); NullCheck(L_0); int32_t L_1 = String_get_Length_m694(L_0, /*hidden argument*/&String_get_Length_m694_MethodInfo); if (L_1) { goto IL_001d; } } { bool L_2 = Uri_get_IsFile_m7915(__this, /*hidden argument*/&Uri_get_IsFile_m7915_MethodInfo); return L_2; } IL_001d: { String_t* L_3 = (__this->___host_3); IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); bool L_4 = String_op_Equality_m406(NULL /*static, unused*/, L_3, (String_t*) &_stringLiteral714, /*hidden argument*/&String_op_Equality_m406_MethodInfo); if (L_4) { goto IL_0047; } } { String_t* L_5 = (__this->___host_3); IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); bool L_6 = String_op_Equality_m406(NULL /*static, unused*/, L_5, (String_t*) &_stringLiteral713, /*hidden argument*/&String_op_Equality_m406_MethodInfo); if (!L_6) { goto IL_0049; } } IL_0047: { return 1; } IL_0049: { String_t* L_7 = (__this->___host_3); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&IPAddress_t1334_il2cpp_TypeInfo)); bool L_8 = IPAddress_TryParse_m7220(NULL /*static, unused*/, L_7, (&V_0), /*hidden argument*/&IPAddress_TryParse_m7220_MethodInfo); if (!L_8) { goto IL_006d; } } { IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&IPAddress_t1334_il2cpp_TypeInfo)); IPAddress_t1334 * L_9 = ((IPAddress_t1334_StaticFields*)InitializedTypeInfo(&IPAddress_t1334_il2cpp_TypeInfo)->static_fields)->___Loopback_6; IPAddress_t1334 * L_10 = V_0; NullCheck(L_9); bool L_11 = (bool)VirtFuncInvoker1< bool, Object_t * >::Invoke(&IPAddress_Equals_m7229_MethodInfo, L_9, L_10); if (!L_11) { goto IL_006d; } } { return 1; } IL_006d: { String_t* L_12 = (__this->___host_3); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&IPv6Address_t1335_il2cpp_TypeInfo)); bool L_13 = IPv6Address_TryParse_m7239(NULL /*static, unused*/, L_12, (&V_1), /*hidden argument*/&IPv6Address_TryParse_m7239_MethodInfo); if (!L_13) { goto IL_008c; } } { IPv6Address_t1335 * L_14 = V_1; IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&IPv6Address_t1335_il2cpp_TypeInfo)); bool L_15 = IPv6Address_IsLoopback_m7243(NULL /*static, unused*/, L_14, /*hidden argument*/&IPv6Address_IsLoopback_m7243_MethodInfo); if (!L_15) { goto IL_008c; } } { return 1; } IL_008c: { return 0; } } // System.Boolean System.Uri::get_IsUnc() extern "C" bool Uri_get_IsUnc_m7917 (Uri_t1318 * __this, MethodInfo* method) { { Uri_EnsureAbsoluteUri_m7953(__this, /*hidden argument*/&Uri_EnsureAbsoluteUri_m7953_MethodInfo); bool L_0 = (__this->___isUnc_9); return L_0; } } // System.String System.Uri::get_Scheme() extern "C" String_t* Uri_get_Scheme_m7918 (Uri_t1318 * __this, MethodInfo* method) { { Uri_EnsureAbsoluteUri_m7953(__this, /*hidden argument*/&Uri_EnsureAbsoluteUri_m7953_MethodInfo); String_t* L_0 = (__this->___scheme_2); return L_0; } } // System.Boolean System.Uri::get_IsAbsoluteUri() extern "C" bool Uri_get_IsAbsoluteUri_m7919 (Uri_t1318 * __this, MethodInfo* method) { { bool L_0 = (__this->___isAbsoluteUri_11); return L_0; } } // System.UriHostNameType System.Uri::CheckHostName(System.String) extern "C" int32_t Uri_CheckHostName_m7920 (Object_t * __this /* static, unused */, String_t* ___name, MethodInfo* method) { IPv6Address_t1335 * V_0 = {0}; { String_t* L_0 = ___name; if (!L_0) { goto IL_0011; } } { String_t* L_1 = ___name; NullCheck(L_1); int32_t L_2 = String_get_Length_m694(L_1, /*hidden argument*/&String_get_Length_m694_MethodInfo); if (L_2) { goto IL_0013; } } IL_0011: { return (int32_t)(0); } IL_0013: { String_t* L_3 = ___name; IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); bool L_4 = Uri_IsIPv4Address_m7921(NULL /*static, unused*/, L_3, /*hidden argument*/&Uri_IsIPv4Address_m7921_MethodInfo); if (!L_4) { goto IL_0020; } } { return (int32_t)(3); } IL_0020: { String_t* L_5 = ___name; IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); bool L_6 = Uri_IsDomainAddress_m7922(NULL /*static, unused*/, L_5, /*hidden argument*/&Uri_IsDomainAddress_m7922_MethodInfo); if (!L_6) { goto IL_002d; } } { return (int32_t)(2); } IL_002d: { String_t* L_7 = ___name; IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&IPv6Address_t1335_il2cpp_TypeInfo)); bool L_8 = IPv6Address_TryParse_m7239(NULL /*static, unused*/, L_7, (&V_0), /*hidden argument*/&IPv6Address_TryParse_m7239_MethodInfo); if (!L_8) { goto IL_003c; } } { return (int32_t)(4); } IL_003c: { return (int32_t)(0); } } // System.Boolean System.Uri::IsIPv4Address(System.String) extern TypeInfo* CharU5BU5D_t395_il2cpp_TypeInfo_var; extern "C" bool Uri_IsIPv4Address_m7921 (Object_t * __this /* static, unused */, String_t* ___name, MethodInfo* method) { static bool Uri_IsIPv4Address_m7921_init; if (!Uri_IsIPv4Address_m7921_init) { CharU5BU5D_t395_il2cpp_TypeInfo_var = il2cpp_codegen_class_from_type(&CharU5BU5D_t395_0_0_0); Uri_IsIPv4Address_m7921_init = true; } StringU5BU5D_t43* V_0 = {0}; int32_t V_1 = 0; int32_t V_2 = 0; uint32_t V_3 = 0; { String_t* L_0 = ___name; CharU5BU5D_t395* L_1 = ((CharU5BU5D_t395*)SZArrayNew(CharU5BU5D_t395_il2cpp_TypeInfo_var, 1)); NullCheck(L_1); IL2CPP_ARRAY_BOUNDS_CHECK(L_1, 0); *((uint16_t*)(uint16_t*)SZArrayLdElema(L_1, 0)) = (uint16_t)((int32_t)46); NullCheck(L_0); StringU5BU5D_t43* L_2 = String_Split_m5453(L_0, L_1, /*hidden argument*/&String_Split_m5453_MethodInfo); V_0 = L_2; StringU5BU5D_t43* L_3 = V_0; NullCheck(L_3); if ((((int32_t)(((int32_t)(((Array_t *)L_3)->max_length)))) == ((int32_t)4))) { goto IL_001d; } } { return 0; } IL_001d: { V_1 = 0; goto IL_0057; } IL_0024: { StringU5BU5D_t43* L_4 = V_0; int32_t L_5 = V_1; NullCheck(L_4); IL2CPP_ARRAY_BOUNDS_CHECK(L_4, L_5); int32_t L_6 = L_5; NullCheck((*(String_t**)(String_t**)SZArrayLdElema(L_4, L_6))); int32_t L_7 = String_get_Length_m694((*(String_t**)(String_t**)SZArrayLdElema(L_4, L_6)), /*hidden argument*/&String_get_Length_m694_MethodInfo); V_2 = L_7; int32_t L_8 = V_2; if (L_8) { goto IL_0035; } } { return 0; } IL_0035: { StringU5BU5D_t43* L_9 = V_0; int32_t L_10 = V_1; NullCheck(L_9); IL2CPP_ARRAY_BOUNDS_CHECK(L_9, L_10); int32_t L_11 = L_10; bool L_12 = UInt32_TryParse_m8252(NULL /*static, unused*/, (*(String_t**)(String_t**)SZArrayLdElema(L_9, L_11)), (&V_3), /*hidden argument*/&UInt32_TryParse_m8252_MethodInfo); if (L_12) { goto IL_0046; } } { return 0; } IL_0046: { uint32_t L_13 = V_3; if ((!(((uint32_t)L_13) > ((uint32_t)((int32_t)255))))) { goto IL_0053; } } { return 0; } IL_0053: { int32_t L_14 = V_1; V_1 = ((int32_t)((int32_t)L_14+(int32_t)1)); } IL_0057: { int32_t L_15 = V_1; if ((((int32_t)L_15) < ((int32_t)4))) { goto IL_0024; } } { return 1; } } // System.Boolean System.Uri::IsDomainAddress(System.String) extern "C" bool Uri_IsDomainAddress_m7922 (Object_t * __this /* static, unused */, String_t* ___name, MethodInfo* method) { int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; uint16_t V_3 = 0x0; { String_t* L_0 = ___name; NullCheck(L_0); int32_t L_1 = String_get_Length_m694(L_0, /*hidden argument*/&String_get_Length_m694_MethodInfo); V_0 = L_1; V_1 = 0; V_2 = 0; goto IL_006e; } IL_0010: { String_t* L_2 = ___name; int32_t L_3 = V_2; NullCheck(L_2); uint16_t L_4 = String_get_Chars_m2541(L_2, L_3, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); V_3 = L_4; int32_t L_5 = V_1; if (L_5) { goto IL_0030; } } { uint16_t L_6 = V_3; IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Char_t389_il2cpp_TypeInfo)); bool L_7 = Char_IsLetterOrDigit_m8196(NULL /*static, unused*/, L_6, /*hidden argument*/&Char_IsLetterOrDigit_m8196_MethodInfo); if (L_7) { goto IL_002b; } } { return 0; } IL_002b: { goto IL_005c; } IL_0030: { uint16_t L_8 = V_3; if ((!(((uint32_t)L_8) == ((uint32_t)((int32_t)46))))) { goto IL_003f; } } { V_1 = 0; goto IL_005c; } IL_003f: { uint16_t L_9 = V_3; IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Char_t389_il2cpp_TypeInfo)); bool L_10 = Char_IsLetterOrDigit_m8196(NULL /*static, unused*/, L_9, /*hidden argument*/&Char_IsLetterOrDigit_m8196_MethodInfo); if (L_10) { goto IL_005c; } } { uint16_t L_11 = V_3; if ((((int32_t)L_11) == ((int32_t)((int32_t)45)))) { goto IL_005c; } } { uint16_t L_12 = V_3; if ((((int32_t)L_12) == ((int32_t)((int32_t)95)))) { goto IL_005c; } } { return 0; } IL_005c: { int32_t L_13 = V_1; int32_t L_14 = ((int32_t)((int32_t)L_13+(int32_t)1)); V_1 = L_14; if ((!(((uint32_t)L_14) == ((uint32_t)((int32_t)64))))) { goto IL_006a; } } { return 0; } IL_006a: { int32_t L_15 = V_2; V_2 = ((int32_t)((int32_t)L_15+(int32_t)1)); } IL_006e: { int32_t L_16 = V_2; int32_t L_17 = V_0; if ((((int32_t)L_16) < ((int32_t)L_17))) { goto IL_0010; } } { return 1; } } // System.Boolean System.Uri::CheckSchemeName(System.String) extern "C" bool Uri_CheckSchemeName_m7923 (Object_t * __this /* static, unused */, String_t* ___schemeName, MethodInfo* method) { int32_t V_0 = 0; int32_t V_1 = 0; uint16_t V_2 = 0x0; { String_t* L_0 = ___schemeName; if (!L_0) { goto IL_0011; } } { String_t* L_1 = ___schemeName; NullCheck(L_1); int32_t L_2 = String_get_Length_m694(L_1, /*hidden argument*/&String_get_Length_m694_MethodInfo); if (L_2) { goto IL_0013; } } IL_0011: { return 0; } IL_0013: { String_t* L_3 = ___schemeName; NullCheck(L_3); uint16_t L_4 = String_get_Chars_m2541(L_3, 0, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); bool L_5 = Uri_IsAlpha_m7924(NULL /*static, unused*/, L_4, /*hidden argument*/&Uri_IsAlpha_m7924_MethodInfo); if (L_5) { goto IL_0026; } } { return 0; } IL_0026: { String_t* L_6 = ___schemeName; NullCheck(L_6); int32_t L_7 = String_get_Length_m694(L_6, /*hidden argument*/&String_get_Length_m694_MethodInfo); V_0 = L_7; V_1 = 1; goto IL_0070; } IL_0034: { String_t* L_8 = ___schemeName; int32_t L_9 = V_1; NullCheck(L_8); uint16_t L_10 = String_get_Chars_m2541(L_8, L_9, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); V_2 = L_10; uint16_t L_11 = V_2; IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Char_t389_il2cpp_TypeInfo)); bool L_12 = Char_IsDigit_m8197(NULL /*static, unused*/, L_11, /*hidden argument*/&Char_IsDigit_m8197_MethodInfo); if (L_12) { goto IL_006c; } } { uint16_t L_13 = V_2; IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); bool L_14 = Uri_IsAlpha_m7924(NULL /*static, unused*/, L_13, /*hidden argument*/&Uri_IsAlpha_m7924_MethodInfo); if (L_14) { goto IL_006c; } } { uint16_t L_15 = V_2; if ((((int32_t)L_15) == ((int32_t)((int32_t)46)))) { goto IL_006c; } } { uint16_t L_16 = V_2; if ((((int32_t)L_16) == ((int32_t)((int32_t)43)))) { goto IL_006c; } } { uint16_t L_17 = V_2; if ((((int32_t)L_17) == ((int32_t)((int32_t)45)))) { goto IL_006c; } } { return 0; } IL_006c: { int32_t L_18 = V_1; V_1 = ((int32_t)((int32_t)L_18+(int32_t)1)); } IL_0070: { int32_t L_19 = V_1; int32_t L_20 = V_0; if ((((int32_t)L_19) < ((int32_t)L_20))) { goto IL_0034; } } { return 1; } } // System.Boolean System.Uri::IsAlpha(System.Char) extern "C" bool Uri_IsAlpha_m7924 (Object_t * __this /* static, unused */, uint16_t ___c, MethodInfo* method) { int32_t V_0 = 0; int32_t G_B5_0 = 0; int32_t G_B7_0 = 0; { uint16_t L_0 = ___c; V_0 = L_0; int32_t L_1 = V_0; if ((((int32_t)L_1) < ((int32_t)((int32_t)65)))) { goto IL_0012; } } { int32_t L_2 = V_0; if ((((int32_t)L_2) <= ((int32_t)((int32_t)90)))) { goto IL_0027; } } IL_0012: { int32_t L_3 = V_0; if ((((int32_t)L_3) < ((int32_t)((int32_t)97)))) { goto IL_0024; } } { int32_t L_4 = V_0; G_B5_0 = ((((int32_t)((((int32_t)L_4) > ((int32_t)((int32_t)122)))? 1 : 0)) == ((int32_t)0))? 1 : 0); goto IL_0025; } IL_0024: { G_B5_0 = 0; } IL_0025: { G_B7_0 = G_B5_0; goto IL_0028; } IL_0027: { G_B7_0 = 1; } IL_0028: { return G_B7_0; } } // System.Boolean System.Uri::Equals(System.Object) extern MethodInfo Uri_Equals_m7925_MethodInfo; extern "C" bool Uri_Equals_m7925 (Uri_t1318 * __this, Object_t * ___comparant, MethodInfo* method) { Uri_t1318 * V_0 = {0}; String_t* V_1 = {0}; { Object_t * L_0 = ___comparant; if (L_0) { goto IL_0008; } } { return 0; } IL_0008: { Object_t * L_1 = ___comparant; V_0 = ((Uri_t1318 *)IsInst(L_1, InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo))); Uri_t1318 * L_2 = V_0; if (L_2) { goto IL_002b; } } { Object_t * L_3 = ___comparant; V_1 = ((String_t*)IsInst(L_3, (&String_t_il2cpp_TypeInfo))); String_t* L_4 = V_1; if (L_4) { goto IL_0024; } } { return 0; } IL_0024: { String_t* L_5 = V_1; IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); Uri_t1318 * L_6 = (Uri_t1318 *)il2cpp_codegen_object_new (InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); Uri__ctor_m7907(L_6, L_5, /*hidden argument*/&Uri__ctor_m7907_MethodInfo); V_0 = L_6; } IL_002b: { Uri_t1318 * L_7 = V_0; bool L_8 = Uri_InternalEquals_m7926(__this, L_7, /*hidden argument*/&Uri_InternalEquals_m7926_MethodInfo); return L_8; } } // System.Boolean System.Uri::InternalEquals(System.Uri) extern "C" bool Uri_InternalEquals_m7926 (Uri_t1318 * __this, Uri_t1318 * ___uri, MethodInfo* method) { CultureInfo_t1165 * V_0 = {0}; int32_t G_B10_0 = 0; { bool L_0 = (__this->___isAbsoluteUri_11); Uri_t1318 * L_1 = ___uri; NullCheck(L_1); bool L_2 = (L_1->___isAbsoluteUri_11); if ((((int32_t)L_0) == ((int32_t)L_2))) { goto IL_0013; } } { return 0; } IL_0013: { bool L_3 = (__this->___isAbsoluteUri_11); if (L_3) { goto IL_0030; } } { String_t* L_4 = (__this->___source_1); Uri_t1318 * L_5 = ___uri; NullCheck(L_5); String_t* L_6 = (L_5->___source_1); IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); bool L_7 = String_op_Equality_m406(NULL /*static, unused*/, L_4, L_6, /*hidden argument*/&String_op_Equality_m406_MethodInfo); return L_7; } IL_0030: { IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&CultureInfo_t1165_il2cpp_TypeInfo)); CultureInfo_t1165 * L_8 = CultureInfo_get_InvariantCulture_m8023(NULL /*static, unused*/, /*hidden argument*/&CultureInfo_get_InvariantCulture_m8023_MethodInfo); V_0 = L_8; String_t* L_9 = (__this->___scheme_2); CultureInfo_t1165 * L_10 = V_0; NullCheck(L_9); String_t* L_11 = String_ToLower_m8253(L_9, L_10, /*hidden argument*/&String_ToLower_m8253_MethodInfo); Uri_t1318 * L_12 = ___uri; NullCheck(L_12); String_t* L_13 = (L_12->___scheme_2); CultureInfo_t1165 * L_14 = V_0; NullCheck(L_13); String_t* L_15 = String_ToLower_m8253(L_13, L_14, /*hidden argument*/&String_ToLower_m8253_MethodInfo); IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); bool L_16 = String_op_Equality_m406(NULL /*static, unused*/, L_11, L_15, /*hidden argument*/&String_op_Equality_m406_MethodInfo); if (!L_16) { goto IL_00b4; } } { String_t* L_17 = (__this->___host_3); CultureInfo_t1165 * L_18 = V_0; NullCheck(L_17); String_t* L_19 = String_ToLower_m8253(L_17, L_18, /*hidden argument*/&String_ToLower_m8253_MethodInfo); Uri_t1318 * L_20 = ___uri; NullCheck(L_20); String_t* L_21 = (L_20->___host_3); CultureInfo_t1165 * L_22 = V_0; NullCheck(L_21); String_t* L_23 = String_ToLower_m8253(L_21, L_22, /*hidden argument*/&String_ToLower_m8253_MethodInfo); IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); bool L_24 = String_op_Equality_m406(NULL /*static, unused*/, L_19, L_23, /*hidden argument*/&String_op_Equality_m406_MethodInfo); if (!L_24) { goto IL_00b4; } } { int32_t L_25 = (__this->___port_4); Uri_t1318 * L_26 = ___uri; NullCheck(L_26); int32_t L_27 = (L_26->___port_4); if ((!(((uint32_t)L_25) == ((uint32_t)L_27)))) { goto IL_00b4; } } { String_t* L_28 = (__this->___query_6); Uri_t1318 * L_29 = ___uri; NullCheck(L_29); String_t* L_30 = (L_29->___query_6); IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); bool L_31 = String_op_Equality_m406(NULL /*static, unused*/, L_28, L_30, /*hidden argument*/&String_op_Equality_m406_MethodInfo); if (!L_31) { goto IL_00b4; } } { String_t* L_32 = (__this->___path_5); Uri_t1318 * L_33 = ___uri; NullCheck(L_33); String_t* L_34 = (L_33->___path_5); IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); bool L_35 = String_op_Equality_m406(NULL /*static, unused*/, L_32, L_34, /*hidden argument*/&String_op_Equality_m406_MethodInfo); G_B10_0 = ((int32_t)(L_35)); goto IL_00b5; } IL_00b4: { G_B10_0 = 0; } IL_00b5: { return G_B10_0; } } // System.Int32 System.Uri::GetHashCode() extern MethodInfo Uri_GetHashCode_m7927_MethodInfo; extern "C" int32_t Uri_GetHashCode_m7927 (Uri_t1318 * __this, MethodInfo* method) { CultureInfo_t1165 * V_0 = {0}; { int32_t L_0 = (__this->___cachedHashCode_15); if (L_0) { goto IL_007a; } } { IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&CultureInfo_t1165_il2cpp_TypeInfo)); CultureInfo_t1165 * L_1 = CultureInfo_get_InvariantCulture_m8023(NULL /*static, unused*/, /*hidden argument*/&CultureInfo_get_InvariantCulture_m8023_MethodInfo); V_0 = L_1; bool L_2 = (__this->___isAbsoluteUri_11); if (!L_2) { goto IL_0069; } } { String_t* L_3 = (__this->___scheme_2); CultureInfo_t1165 * L_4 = V_0; NullCheck(L_3); String_t* L_5 = String_ToLower_m8253(L_3, L_4, /*hidden argument*/&String_ToLower_m8253_MethodInfo); NullCheck(L_5); int32_t L_6 = (int32_t)VirtFuncInvoker0< int32_t >::Invoke(&String_GetHashCode_m6857_MethodInfo, L_5); String_t* L_7 = (__this->___host_3); CultureInfo_t1165 * L_8 = V_0; NullCheck(L_7); String_t* L_9 = String_ToLower_m8253(L_7, L_8, /*hidden argument*/&String_ToLower_m8253_MethodInfo); NullCheck(L_9); int32_t L_10 = (int32_t)VirtFuncInvoker0< int32_t >::Invoke(&String_GetHashCode_m6857_MethodInfo, L_9); int32_t L_11 = (__this->___port_4); String_t* L_12 = (__this->___query_6); NullCheck(L_12); int32_t L_13 = (int32_t)VirtFuncInvoker0< int32_t >::Invoke(&String_GetHashCode_m6857_MethodInfo, L_12); String_t* L_14 = (__this->___path_5); NullCheck(L_14); int32_t L_15 = (int32_t)VirtFuncInvoker0< int32_t >::Invoke(&String_GetHashCode_m6857_MethodInfo, L_14); __this->___cachedHashCode_15 = ((int32_t)((int32_t)((int32_t)((int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_6^(int32_t)L_10))^(int32_t)L_11))^(int32_t)L_13))^(int32_t)L_15)); goto IL_007a; } IL_0069: { String_t* L_16 = (__this->___source_1); NullCheck(L_16); int32_t L_17 = (int32_t)VirtFuncInvoker0< int32_t >::Invoke(&String_GetHashCode_m6857_MethodInfo, L_16); __this->___cachedHashCode_15 = L_17; } IL_007a: { int32_t L_18 = (__this->___cachedHashCode_15); return L_18; } } // System.String System.Uri::GetLeftPart(System.UriPartial) extern TypeInfo* Dictionary_2_t1025_il2cpp_TypeInfo_var; extern MethodInfo* Dictionary_2__ctor_m8048_MethodInfo_var; extern MethodInfo* Dictionary_2_Add_m8049_MethodInfo_var; extern MethodInfo* Dictionary_2_TryGetValue_m8050_MethodInfo_var; extern "C" String_t* Uri_GetLeftPart_m7928 (Uri_t1318 * __this, int32_t ___part, MethodInfo* method) { static bool Uri_GetLeftPart_m7928_init; if (!Uri_GetLeftPart_m7928_init) { Dictionary_2_t1025_il2cpp_TypeInfo_var = il2cpp_codegen_class_from_type(&Dictionary_2_t1025_0_0_0); Dictionary_2__ctor_m8048_MethodInfo_var = il2cpp_codegen_genericmethod_get_method(&Dictionary_2__ctor_m8048_GenericMethod); Dictionary_2_Add_m8049_MethodInfo_var = il2cpp_codegen_genericmethod_get_method(&Dictionary_2_Add_m8049_GenericMethod); Dictionary_2_TryGetValue_m8050_MethodInfo_var = il2cpp_codegen_genericmethod_get_method(&Dictionary_2_TryGetValue_m8050_GenericMethod); Uri_GetLeftPart_m7928_init = true; } int32_t V_0 = 0; StringBuilder_t480 * V_1 = {0}; StringBuilder_t480 * V_2 = {0}; int32_t V_3 = {0}; String_t* V_4 = {0}; Dictionary_2_t1025 * V_5 = {0}; int32_t V_6 = 0; { Uri_EnsureAbsoluteUri_m7953(__this, /*hidden argument*/&Uri_EnsureAbsoluteUri_m7953_MethodInfo); int32_t L_0 = ___part; V_3 = L_0; int32_t L_1 = V_3; if (L_1 == 0) { goto IL_001f; } if (L_1 == 1) { goto IL_0031; } if (L_1 == 2) { goto IL_0134; } } { goto IL_02ad; } IL_001f: { String_t* L_2 = (__this->___scheme_2); String_t* L_3 = Uri_GetOpaqueWiseSchemeDelimiter_m7950(__this, /*hidden argument*/&Uri_GetOpaqueWiseSchemeDelimiter_m7950_MethodInfo); IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); String_t* L_4 = String_Concat_m540(NULL /*static, unused*/, L_2, L_3, /*hidden argument*/&String_Concat_m540_MethodInfo); return L_4; } IL_0031: { String_t* L_5 = (__this->___scheme_2); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); String_t* L_6 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeMailto_23; IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); bool L_7 = String_op_Equality_m406(NULL /*static, unused*/, L_5, L_6, /*hidden argument*/&String_op_Equality_m406_MethodInfo); if (L_7) { goto IL_005b; } } { String_t* L_8 = (__this->___scheme_2); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); String_t* L_9 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeNews_24; IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); bool L_10 = String_op_Equality_m406(NULL /*static, unused*/, L_8, L_9, /*hidden argument*/&String_op_Equality_m406_MethodInfo); if (!L_10) { goto IL_0061; } } IL_005b: { IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); String_t* L_11 = ((String_t_StaticFields*)(&String_t_il2cpp_TypeInfo)->static_fields)->___Empty_2; return L_11; } IL_0061: { StringBuilder_t480 * L_12 = (StringBuilder_t480 *)il2cpp_codegen_object_new (InitializedTypeInfo(&StringBuilder_t480_il2cpp_TypeInfo)); StringBuilder__ctor_m2206(L_12, /*hidden argument*/&StringBuilder__ctor_m2206_MethodInfo); V_1 = L_12; StringBuilder_t480 * L_13 = V_1; String_t* L_14 = (__this->___scheme_2); NullCheck(L_13); StringBuilder_Append_m6931(L_13, L_14, /*hidden argument*/&StringBuilder_Append_m6931_MethodInfo); StringBuilder_t480 * L_15 = V_1; String_t* L_16 = Uri_GetOpaqueWiseSchemeDelimiter_m7950(__this, /*hidden argument*/&Uri_GetOpaqueWiseSchemeDelimiter_m7950_MethodInfo); NullCheck(L_15); StringBuilder_Append_m6931(L_15, L_16, /*hidden argument*/&StringBuilder_Append_m6931_MethodInfo); String_t* L_17 = (__this->___path_5); NullCheck(L_17); int32_t L_18 = String_get_Length_m694(L_17, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((((int32_t)L_18) <= ((int32_t)1))) { goto IL_00c3; } } { String_t* L_19 = (__this->___path_5); NullCheck(L_19); uint16_t L_20 = String_get_Chars_m2541(L_19, 1, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((!(((uint32_t)L_20) == ((uint32_t)((int32_t)58))))) { goto IL_00c3; } } { IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); String_t* L_21 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeFile_18; String_t* L_22 = (__this->___scheme_2); IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); bool L_23 = String_op_Equality_m406(NULL /*static, unused*/, L_21, L_22, /*hidden argument*/&String_op_Equality_m406_MethodInfo); if (!L_23) { goto IL_00c3; } } { StringBuilder_t480 * L_24 = V_1; NullCheck(L_24); StringBuilder_Append_m2561(L_24, ((int32_t)47), /*hidden argument*/&StringBuilder_Append_m2561_MethodInfo); } IL_00c3: { String_t* L_25 = (__this->___userinfo_8); NullCheck(L_25); int32_t L_26 = String_get_Length_m694(L_25, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((((int32_t)L_26) <= ((int32_t)0))) { goto IL_00e8; } } { StringBuilder_t480 * L_27 = V_1; String_t* L_28 = (__this->___userinfo_8); NullCheck(L_27); StringBuilder_t480 * L_29 = StringBuilder_Append_m6931(L_27, L_28, /*hidden argument*/&StringBuilder_Append_m6931_MethodInfo); NullCheck(L_29); StringBuilder_Append_m2561(L_29, ((int32_t)64), /*hidden argument*/&StringBuilder_Append_m2561_MethodInfo); } IL_00e8: { StringBuilder_t480 * L_30 = V_1; String_t* L_31 = (__this->___host_3); NullCheck(L_30); StringBuilder_Append_m6931(L_30, L_31, /*hidden argument*/&StringBuilder_Append_m6931_MethodInfo); String_t* L_32 = (__this->___scheme_2); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); int32_t L_33 = Uri_GetDefaultPort_m7949(NULL /*static, unused*/, L_32, /*hidden argument*/&Uri_GetDefaultPort_m7949_MethodInfo); V_0 = L_33; int32_t L_34 = (__this->___port_4); if ((((int32_t)L_34) == ((int32_t)(-1)))) { goto IL_012d; } } { int32_t L_35 = (__this->___port_4); int32_t L_36 = V_0; if ((((int32_t)L_35) == ((int32_t)L_36))) { goto IL_012d; } } { StringBuilder_t480 * L_37 = V_1; NullCheck(L_37); StringBuilder_t480 * L_38 = StringBuilder_Append_m2561(L_37, ((int32_t)58), /*hidden argument*/&StringBuilder_Append_m2561_MethodInfo); int32_t L_39 = (__this->___port_4); NullCheck(L_38); StringBuilder_Append_m8087(L_38, L_39, /*hidden argument*/&StringBuilder_Append_m8087_MethodInfo); } IL_012d: { StringBuilder_t480 * L_40 = V_1; NullCheck(L_40); String_t* L_41 = (String_t*)VirtFuncInvoker0< String_t* >::Invoke(&StringBuilder_ToString_m2209_MethodInfo, L_40); return L_41; } IL_0134: { StringBuilder_t480 * L_42 = (StringBuilder_t480 *)il2cpp_codegen_object_new (InitializedTypeInfo(&StringBuilder_t480_il2cpp_TypeInfo)); StringBuilder__ctor_m2206(L_42, /*hidden argument*/&StringBuilder__ctor_m2206_MethodInfo); V_2 = L_42; StringBuilder_t480 * L_43 = V_2; String_t* L_44 = (__this->___scheme_2); NullCheck(L_43); StringBuilder_Append_m6931(L_43, L_44, /*hidden argument*/&StringBuilder_Append_m6931_MethodInfo); StringBuilder_t480 * L_45 = V_2; String_t* L_46 = Uri_GetOpaqueWiseSchemeDelimiter_m7950(__this, /*hidden argument*/&Uri_GetOpaqueWiseSchemeDelimiter_m7950_MethodInfo); NullCheck(L_45); StringBuilder_Append_m6931(L_45, L_46, /*hidden argument*/&StringBuilder_Append_m6931_MethodInfo); String_t* L_47 = (__this->___path_5); NullCheck(L_47); int32_t L_48 = String_get_Length_m694(L_47, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((((int32_t)L_48) <= ((int32_t)1))) { goto IL_0196; } } { String_t* L_49 = (__this->___path_5); NullCheck(L_49); uint16_t L_50 = String_get_Chars_m2541(L_49, 1, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((!(((uint32_t)L_50) == ((uint32_t)((int32_t)58))))) { goto IL_0196; } } { IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); String_t* L_51 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeFile_18; String_t* L_52 = (__this->___scheme_2); IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); bool L_53 = String_op_Equality_m406(NULL /*static, unused*/, L_51, L_52, /*hidden argument*/&String_op_Equality_m406_MethodInfo); if (!L_53) { goto IL_0196; } } { StringBuilder_t480 * L_54 = V_2; NullCheck(L_54); StringBuilder_Append_m2561(L_54, ((int32_t)47), /*hidden argument*/&StringBuilder_Append_m2561_MethodInfo); } IL_0196: { String_t* L_55 = (__this->___userinfo_8); NullCheck(L_55); int32_t L_56 = String_get_Length_m694(L_55, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((((int32_t)L_56) <= ((int32_t)0))) { goto IL_01bb; } } { StringBuilder_t480 * L_57 = V_2; String_t* L_58 = (__this->___userinfo_8); NullCheck(L_57); StringBuilder_t480 * L_59 = StringBuilder_Append_m6931(L_57, L_58, /*hidden argument*/&StringBuilder_Append_m6931_MethodInfo); NullCheck(L_59); StringBuilder_Append_m2561(L_59, ((int32_t)64), /*hidden argument*/&StringBuilder_Append_m2561_MethodInfo); } IL_01bb: { StringBuilder_t480 * L_60 = V_2; String_t* L_61 = (__this->___host_3); NullCheck(L_60); StringBuilder_Append_m6931(L_60, L_61, /*hidden argument*/&StringBuilder_Append_m6931_MethodInfo); String_t* L_62 = (__this->___scheme_2); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); int32_t L_63 = Uri_GetDefaultPort_m7949(NULL /*static, unused*/, L_62, /*hidden argument*/&Uri_GetDefaultPort_m7949_MethodInfo); V_0 = L_63; int32_t L_64 = (__this->___port_4); if ((((int32_t)L_64) == ((int32_t)(-1)))) { goto IL_0200; } } { int32_t L_65 = (__this->___port_4); int32_t L_66 = V_0; if ((((int32_t)L_65) == ((int32_t)L_66))) { goto IL_0200; } } { StringBuilder_t480 * L_67 = V_2; NullCheck(L_67); StringBuilder_t480 * L_68 = StringBuilder_Append_m2561(L_67, ((int32_t)58), /*hidden argument*/&StringBuilder_Append_m2561_MethodInfo); int32_t L_69 = (__this->___port_4); NullCheck(L_68); StringBuilder_Append_m8087(L_68, L_69, /*hidden argument*/&StringBuilder_Append_m8087_MethodInfo); } IL_0200: { String_t* L_70 = (__this->___path_5); NullCheck(L_70); int32_t L_71 = String_get_Length_m694(L_70, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((((int32_t)L_71) <= ((int32_t)0))) { goto IL_02a6; } } { String_t* L_72 = Uri_get_Scheme_m7918(__this, /*hidden argument*/&Uri_get_Scheme_m7918_MethodInfo); V_4 = L_72; String_t* L_73 = V_4; if (!L_73) { goto IL_0284; } } { IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); Dictionary_2_t1025 * L_74 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___U3CU3Ef__switch$map14_30; if (L_74) { goto IL_0253; } } { Dictionary_2_t1025 * L_75 = (Dictionary_2_t1025 *)il2cpp_codegen_object_new (Dictionary_2_t1025_il2cpp_TypeInfo_var); Dictionary_2__ctor_m8048(L_75, 2, /*hidden argument*/Dictionary_2__ctor_m8048_MethodInfo_var); V_5 = L_75; Dictionary_2_t1025 * L_76 = V_5; NullCheck(L_76); VirtActionInvoker2< String_t*, int32_t >::Invoke(Dictionary_2_Add_m8049_MethodInfo_var, L_76, (String_t*) &_stringLiteral898, 0); Dictionary_2_t1025 * L_77 = V_5; NullCheck(L_77); VirtActionInvoker2< String_t*, int32_t >::Invoke(Dictionary_2_Add_m8049_MethodInfo_var, L_77, (String_t*) &_stringLiteral899, 0); Dictionary_2_t1025 * L_78 = V_5; IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___U3CU3Ef__switch$map14_30 = L_78; } IL_0253: { IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); Dictionary_2_t1025 * L_79 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___U3CU3Ef__switch$map14_30; String_t* L_80 = V_4; NullCheck(L_79); bool L_81 = (bool)VirtFuncInvoker2< bool, String_t*, int32_t* >::Invoke(Dictionary_2_TryGetValue_m8050_MethodInfo_var, L_79, L_80, (&V_6)); if (!L_81) { goto IL_0284; } } { int32_t L_82 = V_6; if (!L_82) { goto IL_0272; } } { goto IL_0284; } IL_0272: { StringBuilder_t480 * L_83 = V_2; String_t* L_84 = (__this->___path_5); NullCheck(L_83); StringBuilder_Append_m6931(L_83, L_84, /*hidden argument*/&StringBuilder_Append_m6931_MethodInfo); goto IL_02a6; } IL_0284: { StringBuilder_t480 * L_85 = V_2; String_t* L_86 = (__this->___path_5); String_t* L_87 = Uri_get_Scheme_m7918(__this, /*hidden argument*/&Uri_get_Scheme_m7918_MethodInfo); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); bool L_88 = Uri_CompactEscaped_m7945(NULL /*static, unused*/, L_87, /*hidden argument*/&Uri_CompactEscaped_m7945_MethodInfo); String_t* L_89 = Uri_Reduce_m7946(NULL /*static, unused*/, L_86, L_88, /*hidden argument*/&Uri_Reduce_m7946_MethodInfo); NullCheck(L_85); StringBuilder_Append_m6931(L_85, L_89, /*hidden argument*/&StringBuilder_Append_m6931_MethodInfo); goto IL_02a6; } IL_02a6: { StringBuilder_t480 * L_90 = V_2; NullCheck(L_90); String_t* L_91 = (String_t*)VirtFuncInvoker0< String_t* >::Invoke(&StringBuilder_ToString_m2209_MethodInfo, L_90); return L_91; } IL_02ad: { return (String_t*)NULL; } } // System.Int32 System.Uri::FromHex(System.Char) extern "C" int32_t Uri_FromHex_m7929 (Object_t * __this /* static, unused */, uint16_t ___digit, MethodInfo* method) { { uint16_t L_0 = ___digit; if ((((int32_t)((int32_t)48)) > ((int32_t)L_0))) { goto IL_0015; } } { uint16_t L_1 = ___digit; if ((((int32_t)L_1) > ((int32_t)((int32_t)57)))) { goto IL_0015; } } { uint16_t L_2 = ___digit; return ((int32_t)((int32_t)L_2-(int32_t)((int32_t)48))); } IL_0015: { uint16_t L_3 = ___digit; if ((((int32_t)((int32_t)97)) > ((int32_t)L_3))) { goto IL_002d; } } { uint16_t L_4 = ___digit; if ((((int32_t)L_4) > ((int32_t)((int32_t)102)))) { goto IL_002d; } } { uint16_t L_5 = ___digit; return ((int32_t)((int32_t)((int32_t)((int32_t)L_5-(int32_t)((int32_t)97)))+(int32_t)((int32_t)10))); } IL_002d: { uint16_t L_6 = ___digit; if ((((int32_t)((int32_t)65)) > ((int32_t)L_6))) { goto IL_0045; } } { uint16_t L_7 = ___digit; if ((((int32_t)L_7) > ((int32_t)((int32_t)70)))) { goto IL_0045; } } { uint16_t L_8 = ___digit; return ((int32_t)((int32_t)((int32_t)((int32_t)L_8-(int32_t)((int32_t)65)))+(int32_t)((int32_t)10))); } IL_0045: { ArgumentException_t521 * L_9 = (ArgumentException_t521 *)il2cpp_codegen_object_new (InitializedTypeInfo(&ArgumentException_t521_il2cpp_TypeInfo)); ArgumentException__ctor_m2726(L_9, (String_t*) &_stringLiteral903, /*hidden argument*/&ArgumentException__ctor_m2726_MethodInfo); il2cpp_codegen_raise_exception(L_9); } } // System.String System.Uri::HexEscape(System.Char) extern "C" String_t* Uri_HexEscape_m7930 (Object_t * __this /* static, unused */, uint16_t ___character, MethodInfo* method) { { uint16_t L_0 = ___character; if ((((int32_t)L_0) <= ((int32_t)((int32_t)255)))) { goto IL_0016; } } { ArgumentOutOfRangeException_t1472 * L_1 = (ArgumentOutOfRangeException_t1472 *)il2cpp_codegen_object_new (InitializedTypeInfo(&ArgumentOutOfRangeException_t1472_il2cpp_TypeInfo)); ArgumentOutOfRangeException__ctor_m7993(L_1, (String_t*) &_stringLiteral904, /*hidden argument*/&ArgumentOutOfRangeException__ctor_m7993_MethodInfo); il2cpp_codegen_raise_exception(L_1); } IL_0016: { IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); String_t* L_2 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___hexUpperChars_16; uint16_t L_3 = ___character; NullCheck(L_2); uint16_t L_4 = String_get_Chars_m2541(L_2, ((int32_t)((int32_t)((int32_t)((int32_t)L_3&(int32_t)((int32_t)240)))>>(int32_t)4)), /*hidden argument*/&String_get_Chars_m2541_MethodInfo); uint16_t L_5 = L_4; Object_t * L_6 = Box(InitializedTypeInfo(&Char_t389_il2cpp_TypeInfo), &L_5); String_t* L_7 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___hexUpperChars_16; uint16_t L_8 = ___character; NullCheck(L_7); uint16_t L_9 = String_get_Chars_m2541(L_7, ((int32_t)((int32_t)L_8&(int32_t)((int32_t)15))), /*hidden argument*/&String_get_Chars_m2541_MethodInfo); uint16_t L_10 = L_9; Object_t * L_11 = Box(InitializedTypeInfo(&Char_t389_il2cpp_TypeInfo), &L_10); IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); String_t* L_12 = String_Concat_m407(NULL /*static, unused*/, (String_t*) &_stringLiteral905, L_6, L_11, /*hidden argument*/&String_Concat_m407_MethodInfo); return L_12; } } // System.Boolean System.Uri::IsHexDigit(System.Char) extern "C" bool Uri_IsHexDigit_m7931 (Object_t * __this /* static, unused */, uint16_t ___digit, MethodInfo* method) { int32_t G_B7_0 = 0; int32_t G_B9_0 = 0; { uint16_t L_0 = ___digit; if ((((int32_t)((int32_t)48)) > ((int32_t)L_0))) { goto IL_0010; } } { uint16_t L_1 = ___digit; if ((((int32_t)L_1) <= ((int32_t)((int32_t)57)))) { goto IL_0035; } } IL_0010: { uint16_t L_2 = ___digit; if ((((int32_t)((int32_t)97)) > ((int32_t)L_2))) { goto IL_0020; } } { uint16_t L_3 = ___digit; if ((((int32_t)L_3) <= ((int32_t)((int32_t)102)))) { goto IL_0035; } } IL_0020: { uint16_t L_4 = ___digit; if ((((int32_t)((int32_t)65)) > ((int32_t)L_4))) { goto IL_0032; } } { uint16_t L_5 = ___digit; G_B7_0 = ((((int32_t)((((int32_t)L_5) > ((int32_t)((int32_t)70)))? 1 : 0)) == ((int32_t)0))? 1 : 0); goto IL_0033; } IL_0032: { G_B7_0 = 0; } IL_0033: { G_B9_0 = G_B7_0; goto IL_0036; } IL_0035: { G_B9_0 = 1; } IL_0036: { return G_B9_0; } } // System.Boolean System.Uri::IsHexEncoding(System.String,System.Int32) extern "C" bool Uri_IsHexEncoding_m7932 (Object_t * __this /* static, unused */, String_t* ___pattern, int32_t ___index, MethodInfo* method) { int32_t G_B6_0 = 0; { int32_t L_0 = ___index; String_t* L_1 = ___pattern; NullCheck(L_1); int32_t L_2 = String_get_Length_m694(L_1, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((((int32_t)((int32_t)((int32_t)L_0+(int32_t)3))) <= ((int32_t)L_2))) { goto IL_0010; } } { return 0; } IL_0010: { String_t* L_3 = ___pattern; int32_t L_4 = ___index; int32_t L_5 = L_4; ___index = ((int32_t)((int32_t)L_5+(int32_t)1)); NullCheck(L_3); uint16_t L_6 = String_get_Chars_m2541(L_3, L_5, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((!(((uint32_t)L_6) == ((uint32_t)((int32_t)37))))) { goto IL_0047; } } { String_t* L_7 = ___pattern; int32_t L_8 = ___index; int32_t L_9 = L_8; ___index = ((int32_t)((int32_t)L_9+(int32_t)1)); NullCheck(L_7); uint16_t L_10 = String_get_Chars_m2541(L_7, L_9, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); bool L_11 = Uri_IsHexDigit_m7931(NULL /*static, unused*/, L_10, /*hidden argument*/&Uri_IsHexDigit_m7931_MethodInfo); if (!L_11) { goto IL_0047; } } { String_t* L_12 = ___pattern; int32_t L_13 = ___index; NullCheck(L_12); uint16_t L_14 = String_get_Chars_m2541(L_12, L_13, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); bool L_15 = Uri_IsHexDigit_m7931(NULL /*static, unused*/, L_14, /*hidden argument*/&Uri_IsHexDigit_m7931_MethodInfo); G_B6_0 = ((int32_t)(L_15)); goto IL_0048; } IL_0047: { G_B6_0 = 0; } IL_0048: { return G_B6_0; } } // System.Void System.Uri::AppendQueryAndFragment(System.String&) extern "C" void Uri_AppendQueryAndFragment_m7933 (Uri_t1318 * __this, String_t** ___result, MethodInfo* method) { String_t* V_0 = {0}; String_t* G_B4_0 = {0}; { String_t* L_0 = (__this->___query_6); NullCheck(L_0); int32_t L_1 = String_get_Length_m694(L_0, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((((int32_t)L_1) <= ((int32_t)0))) { goto IL_005e; } } { String_t* L_2 = (__this->___query_6); NullCheck(L_2); uint16_t L_3 = String_get_Chars_m2541(L_2, 0, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((!(((uint32_t)L_3) == ((uint32_t)((int32_t)63))))) { goto IL_0047; } } { uint16_t L_4 = ((int32_t)63); Object_t * L_5 = Box(InitializedTypeInfo(&Char_t389_il2cpp_TypeInfo), &L_4); String_t* L_6 = (__this->___query_6); NullCheck(L_6); String_t* L_7 = String_Substring_m2569(L_6, 1, /*hidden argument*/&String_Substring_m2569_MethodInfo); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); String_t* L_8 = Uri_Unescape_m7939(NULL /*static, unused*/, L_7, 0, /*hidden argument*/&Uri_Unescape_m7939_MethodInfo); IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); String_t* L_9 = String_Concat_m495(NULL /*static, unused*/, L_5, L_8, /*hidden argument*/&String_Concat_m495_MethodInfo); G_B4_0 = L_9; goto IL_0053; } IL_0047: { String_t* L_10 = (__this->___query_6); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); String_t* L_11 = Uri_Unescape_m7939(NULL /*static, unused*/, L_10, 0, /*hidden argument*/&Uri_Unescape_m7939_MethodInfo); G_B4_0 = L_11; } IL_0053: { V_0 = G_B4_0; String_t** L_12 = ___result; String_t** L_13 = ___result; String_t* L_14 = V_0; IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); String_t* L_15 = String_Concat_m540(NULL /*static, unused*/, (*((String_t**)L_13)), L_14, /*hidden argument*/&String_Concat_m540_MethodInfo); *((Object_t **)(L_12)) = (Object_t *)L_15; } IL_005e: { String_t* L_16 = (__this->___fragment_7); NullCheck(L_16); int32_t L_17 = String_get_Length_m694(L_16, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((((int32_t)L_17) <= ((int32_t)0))) { goto IL_007e; } } { String_t** L_18 = ___result; String_t** L_19 = ___result; String_t* L_20 = (__this->___fragment_7); IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); String_t* L_21 = String_Concat_m540(NULL /*static, unused*/, (*((String_t**)L_19)), L_20, /*hidden argument*/&String_Concat_m540_MethodInfo); *((Object_t **)(L_18)) = (Object_t *)L_21; } IL_007e: { return; } } // System.String System.Uri::ToString() extern MethodInfo Uri_ToString_m7934_MethodInfo; extern "C" String_t* Uri_ToString_m7934 (Uri_t1318 * __this, MethodInfo* method) { { String_t* L_0 = (__this->___cachedToString_14); if (!L_0) { goto IL_0012; } } { String_t* L_1 = (__this->___cachedToString_14); return L_1; } IL_0012: { bool L_2 = (__this->___isAbsoluteUri_11); if (!L_2) { goto IL_0035; } } { String_t* L_3 = Uri_GetLeftPart_m7928(__this, 2, /*hidden argument*/&Uri_GetLeftPart_m7928_MethodInfo); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); String_t* L_4 = Uri_Unescape_m7939(NULL /*static, unused*/, L_3, 1, /*hidden argument*/&Uri_Unescape_m7939_MethodInfo); __this->___cachedToString_14 = L_4; goto IL_0047; } IL_0035: { String_t* L_5 = (__this->___path_5); String_t* L_6 = (String_t*)VirtFuncInvoker1< String_t*, String_t* >::Invoke(&Uri_Unescape_m7938_MethodInfo, __this, L_5); __this->___cachedToString_14 = L_6; } IL_0047: { String_t** L_7 = &(__this->___cachedToString_14); Uri_AppendQueryAndFragment_m7933(__this, L_7, /*hidden argument*/&Uri_AppendQueryAndFragment_m7933_MethodInfo); String_t* L_8 = (__this->___cachedToString_14); return L_8; } } // System.String System.Uri::EscapeString(System.String) extern "C" String_t* Uri_EscapeString_m7935 (Object_t * __this /* static, unused */, String_t* ___str, MethodInfo* method) { { String_t* L_0 = ___str; IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); String_t* L_1 = Uri_EscapeString_m7936(NULL /*static, unused*/, L_0, 0, 1, 1, /*hidden argument*/&Uri_EscapeString_m7936_MethodInfo); return L_1; } } // System.String System.Uri::EscapeString(System.String,System.Boolean,System.Boolean,System.Boolean) extern TypeInfo* CharU5BU5D_t395_il2cpp_TypeInfo_var; extern "C" String_t* Uri_EscapeString_m7936 (Object_t * __this /* static, unused */, String_t* ___str, bool ___escapeReserved, bool ___escapeHex, bool ___escapeBrackets, MethodInfo* method) { static bool Uri_EscapeString_m7936_init; if (!Uri_EscapeString_m7936_init) { CharU5BU5D_t395_il2cpp_TypeInfo_var = il2cpp_codegen_class_from_type(&CharU5BU5D_t395_0_0_0); Uri_EscapeString_m7936_init = true; } StringBuilder_t480 * V_0 = {0}; int32_t V_1 = 0; int32_t V_2 = 0; ByteU5BU5D_t669* V_3 = {0}; int32_t V_4 = 0; int32_t V_5 = 0; uint16_t V_6 = 0x0; { String_t* L_0 = ___str; if (L_0) { goto IL_000c; } } { IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); String_t* L_1 = ((String_t_StaticFields*)(&String_t_il2cpp_TypeInfo)->static_fields)->___Empty_2; return L_1; } IL_000c: { StringBuilder_t480 * L_2 = (StringBuilder_t480 *)il2cpp_codegen_object_new (InitializedTypeInfo(&StringBuilder_t480_il2cpp_TypeInfo)); StringBuilder__ctor_m2206(L_2, /*hidden argument*/&StringBuilder__ctor_m2206_MethodInfo); V_0 = L_2; String_t* L_3 = ___str; NullCheck(L_3); int32_t L_4 = String_get_Length_m694(L_3, /*hidden argument*/&String_get_Length_m694_MethodInfo); V_1 = L_4; V_2 = 0; goto IL_0105; } IL_0020: { String_t* L_5 = ___str; int32_t L_6 = V_2; IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); bool L_7 = Uri_IsHexEncoding_m7932(NULL /*static, unused*/, L_5, L_6, /*hidden argument*/&Uri_IsHexEncoding_m7932_MethodInfo); if (!L_7) { goto IL_0044; } } { StringBuilder_t480 * L_8 = V_0; String_t* L_9 = ___str; int32_t L_10 = V_2; NullCheck(L_9); String_t* L_11 = String_Substring_m2542(L_9, L_10, 3, /*hidden argument*/&String_Substring_m2542_MethodInfo); NullCheck(L_8); StringBuilder_Append_m6931(L_8, L_11, /*hidden argument*/&StringBuilder_Append_m6931_MethodInfo); int32_t L_12 = V_2; V_2 = ((int32_t)((int32_t)L_12+(int32_t)2)); goto IL_0101; } IL_0044: { IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Encoding_t1486_il2cpp_TypeInfo)); Encoding_t1486 * L_13 = Encoding_get_UTF8_m8101(NULL /*static, unused*/, /*hidden argument*/&Encoding_get_UTF8_m8101_MethodInfo); CharU5BU5D_t395* L_14 = ((CharU5BU5D_t395*)SZArrayNew(CharU5BU5D_t395_il2cpp_TypeInfo_var, 1)); String_t* L_15 = ___str; int32_t L_16 = V_2; NullCheck(L_15); uint16_t L_17 = String_get_Chars_m2541(L_15, L_16, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); NullCheck(L_14); IL2CPP_ARRAY_BOUNDS_CHECK(L_14, 0); *((uint16_t*)(uint16_t*)SZArrayLdElema(L_14, 0)) = (uint16_t)L_17; NullCheck(L_13); ByteU5BU5D_t669* L_18 = (ByteU5BU5D_t669*)VirtFuncInvoker1< ByteU5BU5D_t669*, CharU5BU5D_t395* >::Invoke(&Encoding_GetBytes_m8254_MethodInfo, L_13, L_14); V_3 = L_18; ByteU5BU5D_t669* L_19 = V_3; NullCheck(L_19); V_4 = (((int32_t)(((Array_t *)L_19)->max_length))); V_5 = 0; goto IL_00f8; } IL_006c: { ByteU5BU5D_t669* L_20 = V_3; int32_t L_21 = V_5; NullCheck(L_20); IL2CPP_ARRAY_BOUNDS_CHECK(L_20, L_21); int32_t L_22 = L_21; V_6 = (((uint16_t)(*(uint8_t*)(uint8_t*)SZArrayLdElema(L_20, L_22)))); uint16_t L_23 = V_6; if ((((int32_t)L_23) <= ((int32_t)((int32_t)32)))) { goto IL_00d6; } } { uint16_t L_24 = V_6; if ((((int32_t)L_24) >= ((int32_t)((int32_t)127)))) { goto IL_00d6; } } { uint16_t L_25 = V_6; NullCheck((String_t*) &_stringLiteral906); int32_t L_26 = String_IndexOf_m2601((String_t*) &_stringLiteral906, L_25, /*hidden argument*/&String_IndexOf_m2601_MethodInfo); if ((!(((uint32_t)L_26) == ((uint32_t)(-1))))) { goto IL_00d6; } } { bool L_27 = ___escapeHex; if (!L_27) { goto IL_00a6; } } { uint16_t L_28 = V_6; if ((((int32_t)L_28) == ((int32_t)((int32_t)35)))) { goto IL_00d6; } } IL_00a6: { bool L_29 = ___escapeBrackets; if (!L_29) { goto IL_00be; } } { uint16_t L_30 = V_6; if ((((int32_t)L_30) == ((int32_t)((int32_t)91)))) { goto IL_00d6; } } { uint16_t L_31 = V_6; if ((((int32_t)L_31) == ((int32_t)((int32_t)93)))) { goto IL_00d6; } } IL_00be: { bool L_32 = ___escapeReserved; if (!L_32) { goto IL_00e9; } } { uint16_t L_33 = V_6; NullCheck((String_t*) &_stringLiteral907); int32_t L_34 = String_IndexOf_m2601((String_t*) &_stringLiteral907, L_33, /*hidden argument*/&String_IndexOf_m2601_MethodInfo); if ((((int32_t)L_34) == ((int32_t)(-1)))) { goto IL_00e9; } } IL_00d6: { StringBuilder_t480 * L_35 = V_0; uint16_t L_36 = V_6; IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); String_t* L_37 = Uri_HexEscape_m7930(NULL /*static, unused*/, L_36, /*hidden argument*/&Uri_HexEscape_m7930_MethodInfo); NullCheck(L_35); StringBuilder_Append_m6931(L_35, L_37, /*hidden argument*/&StringBuilder_Append_m6931_MethodInfo); goto IL_00f2; } IL_00e9: { StringBuilder_t480 * L_38 = V_0; uint16_t L_39 = V_6; NullCheck(L_38); StringBuilder_Append_m2561(L_38, L_39, /*hidden argument*/&StringBuilder_Append_m2561_MethodInfo); } IL_00f2: { int32_t L_40 = V_5; V_5 = ((int32_t)((int32_t)L_40+(int32_t)1)); } IL_00f8: { int32_t L_41 = V_5; int32_t L_42 = V_4; if ((((int32_t)L_41) < ((int32_t)L_42))) { goto IL_006c; } } IL_0101: { int32_t L_43 = V_2; V_2 = ((int32_t)((int32_t)L_43+(int32_t)1)); } IL_0105: { int32_t L_44 = V_2; int32_t L_45 = V_1; if ((((int32_t)L_44) < ((int32_t)L_45))) { goto IL_0020; } } { StringBuilder_t480 * L_46 = V_0; NullCheck(L_46); String_t* L_47 = (String_t*)VirtFuncInvoker0< String_t* >::Invoke(&StringBuilder_ToString_m2209_MethodInfo, L_46); return L_47; } } // System.Void System.Uri::ParseUri(System.UriKind) extern "C" void Uri_ParseUri_m7937 (Uri_t1318 * __this, int32_t ___kind, MethodInfo* method) { { int32_t L_0 = ___kind; String_t* L_1 = (__this->___source_1); Uri_Parse_m7943(__this, L_0, L_1, /*hidden argument*/&Uri_Parse_m7943_MethodInfo); bool L_2 = (__this->___userEscaped_12); if (!L_2) { goto IL_0019; } } { return; } IL_0019: { String_t* L_3 = (__this->___host_3); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); String_t* L_4 = Uri_EscapeString_m7936(NULL /*static, unused*/, L_3, 0, 1, 0, /*hidden argument*/&Uri_EscapeString_m7936_MethodInfo); __this->___host_3 = L_4; String_t* L_5 = (__this->___host_3); NullCheck(L_5); int32_t L_6 = String_get_Length_m694(L_5, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((((int32_t)L_6) <= ((int32_t)1))) { goto IL_0086; } } { String_t* L_7 = (__this->___host_3); NullCheck(L_7); uint16_t L_8 = String_get_Chars_m2541(L_7, 0, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((((int32_t)L_8) == ((int32_t)((int32_t)91)))) { goto IL_0086; } } { String_t* L_9 = (__this->___host_3); String_t* L_10 = (__this->___host_3); NullCheck(L_10); int32_t L_11 = String_get_Length_m694(L_10, /*hidden argument*/&String_get_Length_m694_MethodInfo); NullCheck(L_9); uint16_t L_12 = String_get_Chars_m2541(L_9, ((int32_t)((int32_t)L_11-(int32_t)1)), /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((((int32_t)L_12) == ((int32_t)((int32_t)93)))) { goto IL_0086; } } { String_t* L_13 = (__this->___host_3); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&CultureInfo_t1165_il2cpp_TypeInfo)); CultureInfo_t1165 * L_14 = CultureInfo_get_InvariantCulture_m8023(NULL /*static, unused*/, /*hidden argument*/&CultureInfo_get_InvariantCulture_m8023_MethodInfo); NullCheck(L_13); String_t* L_15 = String_ToLower_m8253(L_13, L_14, /*hidden argument*/&String_ToLower_m8253_MethodInfo); __this->___host_3 = L_15; } IL_0086: { String_t* L_16 = (__this->___path_5); NullCheck(L_16); int32_t L_17 = String_get_Length_m694(L_16, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((((int32_t)L_17) <= ((int32_t)0))) { goto IL_00a8; } } { String_t* L_18 = (__this->___path_5); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); String_t* L_19 = Uri_EscapeString_m7935(NULL /*static, unused*/, L_18, /*hidden argument*/&Uri_EscapeString_m7935_MethodInfo); __this->___path_5 = L_19; } IL_00a8: { return; } } // System.String System.Uri::Unescape(System.String) extern "C" String_t* Uri_Unescape_m7938 (Uri_t1318 * __this, String_t* ___str, MethodInfo* method) { { String_t* L_0 = ___str; IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); String_t* L_1 = Uri_Unescape_m7939(NULL /*static, unused*/, L_0, 0, /*hidden argument*/&Uri_Unescape_m7939_MethodInfo); return L_1; } } // System.String System.Uri::Unescape(System.String,System.Boolean) extern "C" String_t* Uri_Unescape_m7939 (Object_t * __this /* static, unused */, String_t* ___str, bool ___excludeSpecial, MethodInfo* method) { StringBuilder_t480 * V_0 = {0}; int32_t V_1 = 0; int32_t V_2 = 0; uint16_t V_3 = 0x0; uint16_t V_4 = 0x0; uint16_t V_5 = 0x0; { String_t* L_0 = ___str; if (L_0) { goto IL_000c; } } { IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); String_t* L_1 = ((String_t_StaticFields*)(&String_t_il2cpp_TypeInfo)->static_fields)->___Empty_2; return L_1; } IL_000c: { StringBuilder_t480 * L_2 = (StringBuilder_t480 *)il2cpp_codegen_object_new (InitializedTypeInfo(&StringBuilder_t480_il2cpp_TypeInfo)); StringBuilder__ctor_m2206(L_2, /*hidden argument*/&StringBuilder__ctor_m2206_MethodInfo); V_0 = L_2; String_t* L_3 = ___str; NullCheck(L_3); int32_t L_4 = String_get_Length_m694(L_3, /*hidden argument*/&String_get_Length_m694_MethodInfo); V_1 = L_4; V_2 = 0; goto IL_00ca; } IL_0020: { String_t* L_5 = ___str; int32_t L_6 = V_2; NullCheck(L_5); uint16_t L_7 = String_get_Chars_m2541(L_5, L_6, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); V_3 = L_7; uint16_t L_8 = V_3; if ((!(((uint32_t)L_8) == ((uint32_t)((int32_t)37))))) { goto IL_00be; } } { String_t* L_9 = ___str; IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); uint16_t L_10 = Uri_HexUnescapeMultiByte_m7947(NULL /*static, unused*/, L_9, (&V_2), (&V_4), /*hidden argument*/&Uri_HexUnescapeMultiByte_m7947_MethodInfo); V_5 = L_10; bool L_11 = ___excludeSpecial; if (!L_11) { goto IL_005c; } } { uint16_t L_12 = V_5; if ((!(((uint32_t)L_12) == ((uint32_t)((int32_t)35))))) { goto IL_005c; } } { StringBuilder_t480 * L_13 = V_0; NullCheck(L_13); StringBuilder_Append_m6931(L_13, (String_t*) &_stringLiteral908, /*hidden argument*/&StringBuilder_Append_m6931_MethodInfo); goto IL_00b5; } IL_005c: { bool L_14 = ___excludeSpecial; if (!L_14) { goto IL_007c; } } { uint16_t L_15 = V_5; if ((!(((uint32_t)L_15) == ((uint32_t)((int32_t)37))))) { goto IL_007c; } } { StringBuilder_t480 * L_16 = V_0; NullCheck(L_16); StringBuilder_Append_m6931(L_16, (String_t*) &_stringLiteral909, /*hidden argument*/&StringBuilder_Append_m6931_MethodInfo); goto IL_00b5; } IL_007c: { bool L_17 = ___excludeSpecial; if (!L_17) { goto IL_009c; } } { uint16_t L_18 = V_5; if ((!(((uint32_t)L_18) == ((uint32_t)((int32_t)63))))) { goto IL_009c; } } { StringBuilder_t480 * L_19 = V_0; NullCheck(L_19); StringBuilder_Append_m6931(L_19, (String_t*) &_stringLiteral910, /*hidden argument*/&StringBuilder_Append_m6931_MethodInfo); goto IL_00b5; } IL_009c: { StringBuilder_t480 * L_20 = V_0; uint16_t L_21 = V_5; NullCheck(L_20); StringBuilder_Append_m2561(L_20, L_21, /*hidden argument*/&StringBuilder_Append_m2561_MethodInfo); uint16_t L_22 = V_4; if (!L_22) { goto IL_00b5; } } { StringBuilder_t480 * L_23 = V_0; uint16_t L_24 = V_4; NullCheck(L_23); StringBuilder_Append_m2561(L_23, L_24, /*hidden argument*/&StringBuilder_Append_m2561_MethodInfo); } IL_00b5: { int32_t L_25 = V_2; V_2 = ((int32_t)((int32_t)L_25-(int32_t)1)); goto IL_00c6; } IL_00be: { StringBuilder_t480 * L_26 = V_0; uint16_t L_27 = V_3; NullCheck(L_26); StringBuilder_Append_m2561(L_26, L_27, /*hidden argument*/&StringBuilder_Append_m2561_MethodInfo); } IL_00c6: { int32_t L_28 = V_2; V_2 = ((int32_t)((int32_t)L_28+(int32_t)1)); } IL_00ca: { int32_t L_29 = V_2; int32_t L_30 = V_1; if ((((int32_t)L_29) < ((int32_t)L_30))) { goto IL_0020; } } { StringBuilder_t480 * L_31 = V_0; NullCheck(L_31); String_t* L_32 = (String_t*)VirtFuncInvoker0< String_t* >::Invoke(&StringBuilder_ToString_m2209_MethodInfo, L_31); return L_32; } } // System.Void System.Uri::ParseAsWindowsUNC(System.String) extern TypeInfo* CharU5BU5D_t395_il2cpp_TypeInfo_var; extern "C" void Uri_ParseAsWindowsUNC_m7940 (Uri_t1318 * __this, String_t* ___uriString, MethodInfo* method) { static bool Uri_ParseAsWindowsUNC_m7940_init; if (!Uri_ParseAsWindowsUNC_m7940_init) { CharU5BU5D_t395_il2cpp_TypeInfo_var = il2cpp_codegen_class_from_type(&CharU5BU5D_t395_0_0_0); Uri_ParseAsWindowsUNC_m7940_init = true; } int32_t V_0 = 0; { IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); String_t* L_0 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeFile_18; __this->___scheme_2 = L_0; __this->___port_4 = (-1); IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); String_t* L_1 = ((String_t_StaticFields*)(&String_t_il2cpp_TypeInfo)->static_fields)->___Empty_2; __this->___fragment_7 = L_1; String_t* L_2 = ((String_t_StaticFields*)(&String_t_il2cpp_TypeInfo)->static_fields)->___Empty_2; __this->___query_6 = L_2; __this->___isUnc_9 = 1; String_t* L_3 = ___uriString; CharU5BU5D_t395* L_4 = ((CharU5BU5D_t395*)SZArrayNew(CharU5BU5D_t395_il2cpp_TypeInfo_var, 1)); NullCheck(L_4); IL2CPP_ARRAY_BOUNDS_CHECK(L_4, 0); *((uint16_t*)(uint16_t*)SZArrayLdElema(L_4, 0)) = (uint16_t)((int32_t)92); NullCheck(L_3); String_t* L_5 = String_TrimStart_m8255(L_3, L_4, /*hidden argument*/&String_TrimStart_m8255_MethodInfo); ___uriString = L_5; String_t* L_6 = ___uriString; NullCheck(L_6); int32_t L_7 = String_IndexOf_m2601(L_6, ((int32_t)92), /*hidden argument*/&String_IndexOf_m2601_MethodInfo); V_0 = L_7; int32_t L_8 = V_0; if ((((int32_t)L_8) <= ((int32_t)0))) { goto IL_0072; } } { String_t* L_9 = ___uriString; int32_t L_10 = V_0; NullCheck(L_9); String_t* L_11 = String_Substring_m2569(L_9, L_10, /*hidden argument*/&String_Substring_m2569_MethodInfo); __this->___path_5 = L_11; String_t* L_12 = ___uriString; int32_t L_13 = V_0; NullCheck(L_12); String_t* L_14 = String_Substring_m2542(L_12, 0, L_13, /*hidden argument*/&String_Substring_m2542_MethodInfo); __this->___host_3 = L_14; goto IL_0084; } IL_0072: { String_t* L_15 = ___uriString; __this->___host_3 = L_15; IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); String_t* L_16 = ((String_t_StaticFields*)(&String_t_il2cpp_TypeInfo)->static_fields)->___Empty_2; __this->___path_5 = L_16; } IL_0084: { String_t* L_17 = (__this->___path_5); NullCheck(L_17); String_t* L_18 = String_Replace_m997(L_17, (String_t*) &_stringLiteral911, (String_t*) &_stringLiteral153, /*hidden argument*/&String_Replace_m997_MethodInfo); __this->___path_5 = L_18; return; } } // System.String System.Uri::ParseAsWindowsAbsoluteFilePath(System.String) extern "C" String_t* Uri_ParseAsWindowsAbsoluteFilePath_m7941 (Uri_t1318 * __this, String_t* ___uriString, MethodInfo* method) { { String_t* L_0 = ___uriString; NullCheck(L_0); int32_t L_1 = String_get_Length_m694(L_0, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((((int32_t)L_1) <= ((int32_t)2))) { goto IL_002e; } } { String_t* L_2 = ___uriString; NullCheck(L_2); uint16_t L_3 = String_get_Chars_m2541(L_2, 2, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((((int32_t)L_3) == ((int32_t)((int32_t)92)))) { goto IL_002e; } } { String_t* L_4 = ___uriString; NullCheck(L_4); uint16_t L_5 = String_get_Chars_m2541(L_4, 2, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((((int32_t)L_5) == ((int32_t)((int32_t)47)))) { goto IL_002e; } } { return (String_t*) &_stringLiteral912; } IL_002e: { IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); String_t* L_6 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeFile_18; __this->___scheme_2 = L_6; IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); String_t* L_7 = ((String_t_StaticFields*)(&String_t_il2cpp_TypeInfo)->static_fields)->___Empty_2; __this->___host_3 = L_7; __this->___port_4 = (-1); String_t* L_8 = ___uriString; NullCheck(L_8); String_t* L_9 = String_Replace_m997(L_8, (String_t*) &_stringLiteral911, (String_t*) &_stringLiteral153, /*hidden argument*/&String_Replace_m997_MethodInfo); __this->___path_5 = L_9; String_t* L_10 = ((String_t_StaticFields*)(&String_t_il2cpp_TypeInfo)->static_fields)->___Empty_2; __this->___fragment_7 = L_10; String_t* L_11 = ((String_t_StaticFields*)(&String_t_il2cpp_TypeInfo)->static_fields)->___Empty_2; __this->___query_6 = L_11; return (String_t*)NULL; } } // System.Void System.Uri::ParseAsUnixAbsoluteFilePath(System.String) extern TypeInfo* CharU5BU5D_t395_il2cpp_TypeInfo_var; extern "C" void Uri_ParseAsUnixAbsoluteFilePath_m7942 (Uri_t1318 * __this, String_t* ___uriString, MethodInfo* method) { static bool Uri_ParseAsUnixAbsoluteFilePath_m7942_init; if (!Uri_ParseAsUnixAbsoluteFilePath_m7942_init) { CharU5BU5D_t395_il2cpp_TypeInfo_var = il2cpp_codegen_class_from_type(&CharU5BU5D_t395_0_0_0); Uri_ParseAsUnixAbsoluteFilePath_m7942_init = true; } { __this->___isUnixFilePath_0 = 1; IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); String_t* L_0 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeFile_18; __this->___scheme_2 = L_0; __this->___port_4 = (-1); IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); String_t* L_1 = ((String_t_StaticFields*)(&String_t_il2cpp_TypeInfo)->static_fields)->___Empty_2; __this->___fragment_7 = L_1; String_t* L_2 = ((String_t_StaticFields*)(&String_t_il2cpp_TypeInfo)->static_fields)->___Empty_2; __this->___query_6 = L_2; String_t* L_3 = ((String_t_StaticFields*)(&String_t_il2cpp_TypeInfo)->static_fields)->___Empty_2; __this->___host_3 = L_3; __this->___path_5 = (String_t*)NULL; String_t* L_4 = ___uriString; NullCheck(L_4); int32_t L_5 = String_get_Length_m694(L_4, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((((int32_t)L_5) < ((int32_t)2))) { goto IL_008f; } } { String_t* L_6 = ___uriString; NullCheck(L_6); uint16_t L_7 = String_get_Chars_m2541(L_6, 0, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((!(((uint32_t)L_7) == ((uint32_t)((int32_t)47))))) { goto IL_008f; } } { String_t* L_8 = ___uriString; NullCheck(L_8); uint16_t L_9 = String_get_Chars_m2541(L_8, 1, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((!(((uint32_t)L_9) == ((uint32_t)((int32_t)47))))) { goto IL_008f; } } { String_t* L_10 = ___uriString; CharU5BU5D_t395* L_11 = ((CharU5BU5D_t395*)SZArrayNew(CharU5BU5D_t395_il2cpp_TypeInfo_var, 1)); NullCheck(L_11); IL2CPP_ARRAY_BOUNDS_CHECK(L_11, 0); *((uint16_t*)(uint16_t*)SZArrayLdElema(L_11, 0)) = (uint16_t)((int32_t)47); NullCheck(L_10); String_t* L_12 = String_TrimStart_m8255(L_10, L_11, /*hidden argument*/&String_TrimStart_m8255_MethodInfo); ___uriString = L_12; uint16_t L_13 = ((int32_t)47); Object_t * L_14 = Box(InitializedTypeInfo(&Char_t389_il2cpp_TypeInfo), &L_13); String_t* L_15 = ___uriString; IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); String_t* L_16 = String_Concat_m495(NULL /*static, unused*/, L_14, L_15, /*hidden argument*/&String_Concat_m495_MethodInfo); __this->___path_5 = L_16; } IL_008f: { String_t* L_17 = (__this->___path_5); if (L_17) { goto IL_00a1; } } { String_t* L_18 = ___uriString; __this->___path_5 = L_18; } IL_00a1: { return; } } // System.Void System.Uri::Parse(System.UriKind,System.String) extern "C" void Uri_Parse_m7943 (Uri_t1318 * __this, int32_t ___kind, String_t* ___uriString, MethodInfo* method) { String_t* V_0 = {0}; { String_t* L_0 = ___uriString; if (L_0) { goto IL_0011; } } { ArgumentNullException_t1172 * L_1 = (ArgumentNullException_t1172 *)il2cpp_codegen_object_new (InitializedTypeInfo(&ArgumentNullException_t1172_il2cpp_TypeInfo)); ArgumentNullException__ctor_m6951(L_1, (String_t*) &_stringLiteral913, /*hidden argument*/&ArgumentNullException__ctor_m6951_MethodInfo); il2cpp_codegen_raise_exception(L_1); } IL_0011: { int32_t L_2 = ___kind; String_t* L_3 = ___uriString; String_t* L_4 = Uri_ParseNoExceptions_m7944(__this, L_2, L_3, /*hidden argument*/&Uri_ParseNoExceptions_m7944_MethodInfo); V_0 = L_4; String_t* L_5 = V_0; if (!L_5) { goto IL_0027; } } { String_t* L_6 = V_0; UriFormatException_t1460 * L_7 = (UriFormatException_t1460 *)il2cpp_codegen_object_new (InitializedTypeInfo(&UriFormatException_t1460_il2cpp_TypeInfo)); UriFormatException__ctor_m7956(L_7, L_6, /*hidden argument*/&UriFormatException__ctor_m7956_MethodInfo); il2cpp_codegen_raise_exception(L_7); } IL_0027: { return; } } // System.String System.Uri::ParseNoExceptions(System.UriKind,System.String) extern "C" String_t* Uri_ParseNoExceptions_m7944 (Uri_t1318 * __this, int32_t ___kind, String_t* ___uriString, MethodInfo* method) { int32_t V_0 = 0; int32_t V_1 = 0; String_t* V_2 = {0}; int32_t V_3 = 0; int32_t V_4 = 0; bool V_5 = false; bool V_6 = false; bool V_7 = false; int32_t V_8 = 0; int32_t V_9 = 0; String_t* V_10 = {0}; bool V_11 = false; IPv6Address_t1335 * V_12 = {0}; UriFormatException_t1460 * V_13 = {0}; int32_t G_B50_0 = 0; int32_t G_B55_0 = 0; int32_t G_B57_0 = 0; int32_t G_B139_0 = 0; { String_t* L_0 = ___uriString; NullCheck(L_0); String_t* L_1 = String_Trim_m6930(L_0, /*hidden argument*/&String_Trim_m6930_MethodInfo); ___uriString = L_1; String_t* L_2 = ___uriString; NullCheck(L_2); int32_t L_3 = String_get_Length_m694(L_2, /*hidden argument*/&String_get_Length_m694_MethodInfo); V_0 = L_3; int32_t L_4 = V_0; if (L_4) { goto IL_002b; } } { int32_t L_5 = ___kind; if ((((int32_t)L_5) == ((int32_t)2))) { goto IL_0022; } } { int32_t L_6 = ___kind; if (L_6) { goto IL_002b; } } IL_0022: { __this->___isAbsoluteUri_11 = 0; return (String_t*)NULL; } IL_002b: { int32_t L_7 = V_0; if ((((int32_t)L_7) > ((int32_t)1))) { goto IL_003f; } } { int32_t L_8 = ___kind; if ((((int32_t)L_8) == ((int32_t)2))) { goto IL_003f; } } { return (String_t*) &_stringLiteral914; } IL_003f: { V_1 = 0; String_t* L_9 = ___uriString; NullCheck(L_9); int32_t L_10 = String_IndexOf_m2601(L_9, ((int32_t)58), /*hidden argument*/&String_IndexOf_m2601_MethodInfo); V_1 = L_10; int32_t L_11 = V_1; if (L_11) { goto IL_0056; } } { return (String_t*) &_stringLiteral915; } IL_0056: { int32_t L_12 = V_1; if ((((int32_t)L_12) >= ((int32_t)0))) { goto IL_00d5; } } { String_t* L_13 = ___uriString; NullCheck(L_13); uint16_t L_14 = String_get_Chars_m2541(L_13, 0, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((!(((uint32_t)L_14) == ((uint32_t)((int32_t)47))))) { goto IL_0091; } } { IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Path_t916_il2cpp_TypeInfo)); uint16_t L_15 = ((Path_t916_StaticFields*)InitializedTypeInfo(&Path_t916_il2cpp_TypeInfo)->static_fields)->___DirectorySeparatorChar_2; if ((!(((uint32_t)L_15) == ((uint32_t)((int32_t)47))))) { goto IL_0091; } } { String_t* L_16 = ___uriString; Uri_ParseAsUnixAbsoluteFilePath_m7942(__this, L_16, /*hidden argument*/&Uri_ParseAsUnixAbsoluteFilePath_m7942_MethodInfo); int32_t L_17 = ___kind; if ((!(((uint32_t)L_17) == ((uint32_t)2)))) { goto IL_008c; } } { __this->___isAbsoluteUri_11 = 0; } IL_008c: { goto IL_00d3; } IL_0091: { String_t* L_18 = ___uriString; NullCheck(L_18); int32_t L_19 = String_get_Length_m694(L_18, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((((int32_t)L_19) < ((int32_t)2))) { goto IL_00c5; } } { String_t* L_20 = ___uriString; NullCheck(L_20); uint16_t L_21 = String_get_Chars_m2541(L_20, 0, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((!(((uint32_t)L_21) == ((uint32_t)((int32_t)92))))) { goto IL_00c5; } } { String_t* L_22 = ___uriString; NullCheck(L_22); uint16_t L_23 = String_get_Chars_m2541(L_22, 1, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((!(((uint32_t)L_23) == ((uint32_t)((int32_t)92))))) { goto IL_00c5; } } { String_t* L_24 = ___uriString; Uri_ParseAsWindowsUNC_m7940(__this, L_24, /*hidden argument*/&Uri_ParseAsWindowsUNC_m7940_MethodInfo); goto IL_00d3; } IL_00c5: { __this->___isAbsoluteUri_11 = 0; String_t* L_25 = ___uriString; __this->___path_5 = L_25; } IL_00d3: { return (String_t*)NULL; } IL_00d5: { int32_t L_26 = V_1; if ((!(((uint32_t)L_26) == ((uint32_t)1)))) { goto IL_0105; } } { String_t* L_27 = ___uriString; NullCheck(L_27); uint16_t L_28 = String_get_Chars_m2541(L_27, 0, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); bool L_29 = Uri_IsAlpha_m7924(NULL /*static, unused*/, L_28, /*hidden argument*/&Uri_IsAlpha_m7924_MethodInfo); if (L_29) { goto IL_00f3; } } { return (String_t*) &_stringLiteral916; } IL_00f3: { String_t* L_30 = ___uriString; String_t* L_31 = Uri_ParseAsWindowsAbsoluteFilePath_m7941(__this, L_30, /*hidden argument*/&Uri_ParseAsWindowsAbsoluteFilePath_m7941_MethodInfo); V_2 = L_31; String_t* L_32 = V_2; if (!L_32) { goto IL_0103; } } { String_t* L_33 = V_2; return L_33; } IL_0103: { return (String_t*)NULL; } IL_0105: { String_t* L_34 = ___uriString; int32_t L_35 = V_1; NullCheck(L_34); String_t* L_36 = String_Substring_m2542(L_34, 0, L_35, /*hidden argument*/&String_Substring_m2542_MethodInfo); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&CultureInfo_t1165_il2cpp_TypeInfo)); CultureInfo_t1165 * L_37 = CultureInfo_get_InvariantCulture_m8023(NULL /*static, unused*/, /*hidden argument*/&CultureInfo_get_InvariantCulture_m8023_MethodInfo); NullCheck(L_36); String_t* L_38 = String_ToLower_m8253(L_36, L_37, /*hidden argument*/&String_ToLower_m8253_MethodInfo); __this->___scheme_2 = L_38; String_t* L_39 = (__this->___scheme_2); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); bool L_40 = Uri_CheckSchemeName_m7923(NULL /*static, unused*/, L_39, /*hidden argument*/&Uri_CheckSchemeName_m7923_MethodInfo); if (L_40) { goto IL_0138; } } { String_t* L_41 = Locale_GetText_m7100(NULL /*static, unused*/, (String_t*) &_stringLiteral917, /*hidden argument*/&Locale_GetText_m7100_MethodInfo); return L_41; } IL_0138: { int32_t L_42 = V_1; V_3 = ((int32_t)((int32_t)L_42+(int32_t)1)); String_t* L_43 = ___uriString; NullCheck(L_43); int32_t L_44 = String_get_Length_m694(L_43, /*hidden argument*/&String_get_Length_m694_MethodInfo); V_4 = L_44; String_t* L_45 = ___uriString; int32_t L_46 = V_3; NullCheck(L_45); int32_t L_47 = String_IndexOf_m8256(L_45, ((int32_t)35), L_46, /*hidden argument*/&String_IndexOf_m8256_MethodInfo); V_1 = L_47; bool L_48 = Uri_get_IsUnc_m7917(__this, /*hidden argument*/&Uri_get_IsUnc_m7917_MethodInfo); if (L_48) { goto IL_019e; } } { int32_t L_49 = V_1; if ((((int32_t)L_49) == ((int32_t)(-1)))) { goto IL_019e; } } { bool L_50 = (__this->___userEscaped_12); if (!L_50) { goto IL_017d; } } { String_t* L_51 = ___uriString; int32_t L_52 = V_1; NullCheck(L_51); String_t* L_53 = String_Substring_m2569(L_51, L_52, /*hidden argument*/&String_Substring_m2569_MethodInfo); __this->___fragment_7 = L_53; goto IL_019b; } IL_017d: { String_t* L_54 = ___uriString; int32_t L_55 = V_1; NullCheck(L_54); String_t* L_56 = String_Substring_m2569(L_54, ((int32_t)((int32_t)L_55+(int32_t)1)), /*hidden argument*/&String_Substring_m2569_MethodInfo); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); String_t* L_57 = Uri_EscapeString_m7935(NULL /*static, unused*/, L_56, /*hidden argument*/&Uri_EscapeString_m7935_MethodInfo); IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); String_t* L_58 = String_Concat_m540(NULL /*static, unused*/, (String_t*) &_stringLiteral918, L_57, /*hidden argument*/&String_Concat_m540_MethodInfo); __this->___fragment_7 = L_58; } IL_019b: { int32_t L_59 = V_1; V_4 = L_59; } IL_019e: { String_t* L_60 = ___uriString; int32_t L_61 = V_3; int32_t L_62 = V_4; int32_t L_63 = V_3; NullCheck(L_60); int32_t L_64 = String_IndexOf_m8257(L_60, ((int32_t)63), L_61, ((int32_t)((int32_t)L_62-(int32_t)L_63)), /*hidden argument*/&String_IndexOf_m8257_MethodInfo); V_1 = L_64; int32_t L_65 = V_1; if ((((int32_t)L_65) == ((int32_t)(-1)))) { goto IL_01e3; } } { String_t* L_66 = ___uriString; int32_t L_67 = V_1; int32_t L_68 = V_4; int32_t L_69 = V_1; NullCheck(L_66); String_t* L_70 = String_Substring_m2542(L_66, L_67, ((int32_t)((int32_t)L_68-(int32_t)L_69)), /*hidden argument*/&String_Substring_m2542_MethodInfo); __this->___query_6 = L_70; int32_t L_71 = V_1; V_4 = L_71; bool L_72 = (__this->___userEscaped_12); if (L_72) { goto IL_01e3; } } { String_t* L_73 = (__this->___query_6); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); String_t* L_74 = Uri_EscapeString_m7935(NULL /*static, unused*/, L_73, /*hidden argument*/&Uri_EscapeString_m7935_MethodInfo); __this->___query_6 = L_74; } IL_01e3: { String_t* L_75 = (__this->___scheme_2); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); bool L_76 = Uri_IsPredefinedScheme_m7951(NULL /*static, unused*/, L_75, /*hidden argument*/&Uri_IsPredefinedScheme_m7951_MethodInfo); if (!L_76) { goto IL_0255; } } { String_t* L_77 = (__this->___scheme_2); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); String_t* L_78 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeMailto_23; IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); bool L_79 = String_op_Inequality_m2540(NULL /*static, unused*/, L_77, L_78, /*hidden argument*/&String_op_Inequality_m2540_MethodInfo); if (!L_79) { goto IL_0255; } } { String_t* L_80 = (__this->___scheme_2); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); String_t* L_81 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeNews_24; IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); bool L_82 = String_op_Inequality_m2540(NULL /*static, unused*/, L_80, L_81, /*hidden argument*/&String_op_Inequality_m2540_MethodInfo); if (!L_82) { goto IL_0255; } } { int32_t L_83 = V_4; int32_t L_84 = V_3; if ((((int32_t)((int32_t)((int32_t)L_83-(int32_t)L_84))) < ((int32_t)2))) { goto IL_024f; } } { int32_t L_85 = V_4; int32_t L_86 = V_3; if ((((int32_t)((int32_t)((int32_t)L_85-(int32_t)L_86))) < ((int32_t)2))) { goto IL_0255; } } { String_t* L_87 = ___uriString; int32_t L_88 = V_3; NullCheck(L_87); uint16_t L_89 = String_get_Chars_m2541(L_87, L_88, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((!(((uint32_t)L_89) == ((uint32_t)((int32_t)47))))) { goto IL_0255; } } { String_t* L_90 = ___uriString; int32_t L_91 = V_3; NullCheck(L_90); uint16_t L_92 = String_get_Chars_m2541(L_90, ((int32_t)((int32_t)L_91+(int32_t)1)), /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((((int32_t)L_92) == ((int32_t)((int32_t)47)))) { goto IL_0255; } } IL_024f: { return (String_t*) &_stringLiteral919; } IL_0255: { int32_t L_93 = V_4; int32_t L_94 = V_3; if ((((int32_t)((int32_t)((int32_t)L_93-(int32_t)L_94))) < ((int32_t)2))) { goto IL_027c; } } { String_t* L_95 = ___uriString; int32_t L_96 = V_3; NullCheck(L_95); uint16_t L_97 = String_get_Chars_m2541(L_95, L_96, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((!(((uint32_t)L_97) == ((uint32_t)((int32_t)47))))) { goto IL_027c; } } { String_t* L_98 = ___uriString; int32_t L_99 = V_3; NullCheck(L_98); uint16_t L_100 = String_get_Chars_m2541(L_98, ((int32_t)((int32_t)L_99+(int32_t)1)), /*hidden argument*/&String_get_Chars_m2541_MethodInfo); G_B50_0 = ((((int32_t)L_100) == ((int32_t)((int32_t)47)))? 1 : 0); goto IL_027d; } IL_027c: { G_B50_0 = 0; } IL_027d: { V_5 = G_B50_0; String_t* L_101 = (__this->___scheme_2); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); String_t* L_102 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeFile_18; IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); bool L_103 = String_op_Equality_m406(NULL /*static, unused*/, L_101, L_102, /*hidden argument*/&String_op_Equality_m406_MethodInfo); if (!L_103) { goto IL_02b7; } } { bool L_104 = V_5; if (!L_104) { goto IL_02b7; } } { int32_t L_105 = V_4; int32_t L_106 = V_3; if ((((int32_t)((int32_t)((int32_t)L_105-(int32_t)L_106))) == ((int32_t)2))) { goto IL_02b4; } } { String_t* L_107 = ___uriString; int32_t L_108 = V_3; NullCheck(L_107); uint16_t L_109 = String_get_Chars_m2541(L_107, ((int32_t)((int32_t)L_108+(int32_t)2)), /*hidden argument*/&String_get_Chars_m2541_MethodInfo); G_B55_0 = ((((int32_t)L_109) == ((int32_t)((int32_t)47)))? 1 : 0); goto IL_02b5; } IL_02b4: { G_B55_0 = 1; } IL_02b5: { G_B57_0 = G_B55_0; goto IL_02b8; } IL_02b7: { G_B57_0 = 0; } IL_02b8: { V_6 = G_B57_0; V_7 = 0; bool L_110 = V_5; if (!L_110) { goto IL_03a8; } } { int32_t L_111 = ___kind; if ((!(((uint32_t)L_111) == ((uint32_t)2)))) { goto IL_02d1; } } { return (String_t*) &_stringLiteral920; } IL_02d1: { String_t* L_112 = (__this->___scheme_2); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); String_t* L_113 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeMailto_23; IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); bool L_114 = String_op_Inequality_m2540(NULL /*static, unused*/, L_112, L_113, /*hidden argument*/&String_op_Inequality_m2540_MethodInfo); if (!L_114) { goto IL_02ff; } } { String_t* L_115 = (__this->___scheme_2); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); String_t* L_116 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeNews_24; IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); bool L_117 = String_op_Inequality_m2540(NULL /*static, unused*/, L_115, L_116, /*hidden argument*/&String_op_Inequality_m2540_MethodInfo); if (!L_117) { goto IL_02ff; } } { int32_t L_118 = V_3; V_3 = ((int32_t)((int32_t)L_118+(int32_t)2)); } IL_02ff: { String_t* L_119 = (__this->___scheme_2); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); String_t* L_120 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeFile_18; IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); bool L_121 = String_op_Equality_m406(NULL /*static, unused*/, L_119, L_120, /*hidden argument*/&String_op_Equality_m406_MethodInfo); if (!L_121) { goto IL_0383; } } { V_8 = 2; int32_t L_122 = V_3; V_9 = L_122; goto IL_033f; } IL_031f: { String_t* L_123 = ___uriString; int32_t L_124 = V_9; NullCheck(L_123); uint16_t L_125 = String_get_Chars_m2541(L_123, L_124, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((((int32_t)L_125) == ((int32_t)((int32_t)47)))) { goto IL_0333; } } { goto IL_0348; } IL_0333: { int32_t L_126 = V_8; V_8 = ((int32_t)((int32_t)L_126+(int32_t)1)); int32_t L_127 = V_9; V_9 = ((int32_t)((int32_t)L_127+(int32_t)1)); } IL_033f: { int32_t L_128 = V_9; int32_t L_129 = V_4; if ((((int32_t)L_128) < ((int32_t)L_129))) { goto IL_031f; } } IL_0348: { int32_t L_130 = V_8; if ((((int32_t)L_130) < ((int32_t)4))) { goto IL_0377; } } { V_6 = 0; goto IL_035c; } IL_0358: { int32_t L_131 = V_3; V_3 = ((int32_t)((int32_t)L_131+(int32_t)1)); } IL_035c: { int32_t L_132 = V_3; int32_t L_133 = V_4; if ((((int32_t)L_132) >= ((int32_t)L_133))) { goto IL_0372; } } { String_t* L_134 = ___uriString; int32_t L_135 = V_3; NullCheck(L_134); uint16_t L_136 = String_get_Chars_m2541(L_134, L_135, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((((int32_t)L_136) == ((int32_t)((int32_t)47)))) { goto IL_0358; } } IL_0372: { goto IL_0383; } IL_0377: { int32_t L_137 = V_8; if ((((int32_t)L_137) < ((int32_t)3))) { goto IL_0383; } } { int32_t L_138 = V_3; V_3 = ((int32_t)((int32_t)L_138+(int32_t)1)); } IL_0383: { int32_t L_139 = V_4; int32_t L_140 = V_3; if ((((int32_t)((int32_t)((int32_t)L_139-(int32_t)L_140))) <= ((int32_t)1))) { goto IL_03a3; } } { String_t* L_141 = ___uriString; int32_t L_142 = V_3; NullCheck(L_141); uint16_t L_143 = String_get_Chars_m2541(L_141, ((int32_t)((int32_t)L_142+(int32_t)1)), /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((!(((uint32_t)L_143) == ((uint32_t)((int32_t)58))))) { goto IL_03a3; } } { V_6 = 0; V_7 = 1; } IL_03a3: { goto IL_03d2; } IL_03a8: { String_t* L_144 = (__this->___scheme_2); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); bool L_145 = Uri_IsPredefinedScheme_m7951(NULL /*static, unused*/, L_144, /*hidden argument*/&Uri_IsPredefinedScheme_m7951_MethodInfo); if (L_145) { goto IL_03d2; } } { String_t* L_146 = ___uriString; int32_t L_147 = V_3; int32_t L_148 = V_4; int32_t L_149 = V_3; NullCheck(L_146); String_t* L_150 = String_Substring_m2542(L_146, L_147, ((int32_t)((int32_t)L_148-(int32_t)L_149)), /*hidden argument*/&String_Substring_m2542_MethodInfo); __this->___path_5 = L_150; __this->___isOpaquePart_10 = 1; return (String_t*)NULL; } IL_03d2: { bool L_151 = V_6; if (!L_151) { goto IL_03e0; } } { V_1 = (-1); goto IL_040a; } IL_03e0: { String_t* L_152 = ___uriString; int32_t L_153 = V_3; int32_t L_154 = V_4; int32_t L_155 = V_3; NullCheck(L_152); int32_t L_156 = String_IndexOf_m8257(L_152, ((int32_t)47), L_153, ((int32_t)((int32_t)L_154-(int32_t)L_155)), /*hidden argument*/&String_IndexOf_m8257_MethodInfo); V_1 = L_156; int32_t L_157 = V_1; if ((!(((uint32_t)L_157) == ((uint32_t)(-1))))) { goto IL_040a; } } { bool L_158 = V_7; if (!L_158) { goto IL_040a; } } { String_t* L_159 = ___uriString; int32_t L_160 = V_3; int32_t L_161 = V_4; int32_t L_162 = V_3; NullCheck(L_159); int32_t L_163 = String_IndexOf_m8257(L_159, ((int32_t)92), L_160, ((int32_t)((int32_t)L_161-(int32_t)L_162)), /*hidden argument*/&String_IndexOf_m8257_MethodInfo); V_1 = L_163; } IL_040a: { int32_t L_164 = V_1; if ((!(((uint32_t)L_164) == ((uint32_t)(-1))))) { goto IL_044b; } } { String_t* L_165 = (__this->___scheme_2); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); String_t* L_166 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeMailto_23; IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); bool L_167 = String_op_Inequality_m2540(NULL /*static, unused*/, L_165, L_166, /*hidden argument*/&String_op_Inequality_m2540_MethodInfo); if (!L_167) { goto IL_0446; } } { String_t* L_168 = (__this->___scheme_2); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); String_t* L_169 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeNews_24; IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); bool L_170 = String_op_Inequality_m2540(NULL /*static, unused*/, L_168, L_169, /*hidden argument*/&String_op_Inequality_m2540_MethodInfo); if (!L_170) { goto IL_0446; } } { __this->___path_5 = (String_t*) &_stringLiteral153; } IL_0446: { goto IL_045f; } IL_044b: { String_t* L_171 = ___uriString; int32_t L_172 = V_1; int32_t L_173 = V_4; int32_t L_174 = V_1; NullCheck(L_171); String_t* L_175 = String_Substring_m2542(L_171, L_172, ((int32_t)((int32_t)L_173-(int32_t)L_174)), /*hidden argument*/&String_Substring_m2542_MethodInfo); __this->___path_5 = L_175; int32_t L_176 = V_1; V_4 = L_176; } IL_045f: { bool L_177 = V_6; if (!L_177) { goto IL_046d; } } { V_1 = (-1); goto IL_047b; } IL_046d: { String_t* L_178 = ___uriString; int32_t L_179 = V_3; int32_t L_180 = V_4; int32_t L_181 = V_3; NullCheck(L_178); int32_t L_182 = String_IndexOf_m8257(L_178, ((int32_t)64), L_179, ((int32_t)((int32_t)L_180-(int32_t)L_181)), /*hidden argument*/&String_IndexOf_m8257_MethodInfo); V_1 = L_182; } IL_047b: { int32_t L_183 = V_1; if ((((int32_t)L_183) == ((int32_t)(-1)))) { goto IL_0496; } } { String_t* L_184 = ___uriString; int32_t L_185 = V_3; int32_t L_186 = V_1; int32_t L_187 = V_3; NullCheck(L_184); String_t* L_188 = String_Substring_m2542(L_184, L_185, ((int32_t)((int32_t)L_186-(int32_t)L_187)), /*hidden argument*/&String_Substring_m2542_MethodInfo); __this->___userinfo_8 = L_188; int32_t L_189 = V_1; V_3 = ((int32_t)((int32_t)L_189+(int32_t)1)); } IL_0496: { __this->___port_4 = (-1); bool L_190 = V_6; if (!L_190) { goto IL_04ab; } } { V_1 = (-1); goto IL_04bc; } IL_04ab: { String_t* L_191 = ___uriString; int32_t L_192 = V_4; int32_t L_193 = V_4; int32_t L_194 = V_3; NullCheck(L_191); int32_t L_195 = String_LastIndexOf_m8258(L_191, ((int32_t)58), ((int32_t)((int32_t)L_192-(int32_t)1)), ((int32_t)((int32_t)L_193-(int32_t)L_194)), /*hidden argument*/&String_LastIndexOf_m8258_MethodInfo); V_1 = L_195; } IL_04bc: { int32_t L_196 = V_1; if ((((int32_t)L_196) == ((int32_t)(-1)))) { goto IL_0566; } } { int32_t L_197 = V_1; int32_t L_198 = V_4; if ((((int32_t)L_197) == ((int32_t)((int32_t)((int32_t)L_198-(int32_t)1))))) { goto IL_0566; } } { String_t* L_199 = ___uriString; int32_t L_200 = V_1; int32_t L_201 = V_4; int32_t L_202 = V_1; NullCheck(L_199); String_t* L_203 = String_Substring_m2542(L_199, ((int32_t)((int32_t)L_200+(int32_t)1)), ((int32_t)((int32_t)L_201-(int32_t)((int32_t)((int32_t)L_202+(int32_t)1)))), /*hidden argument*/&String_Substring_m2542_MethodInfo); V_10 = L_203; String_t* L_204 = V_10; NullCheck(L_204); int32_t L_205 = String_get_Length_m694(L_204, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((((int32_t)L_205) <= ((int32_t)0))) { goto IL_0544; } } { String_t* L_206 = V_10; String_t* L_207 = V_10; NullCheck(L_207); int32_t L_208 = String_get_Length_m694(L_207, /*hidden argument*/&String_get_Length_m694_MethodInfo); NullCheck(L_206); uint16_t L_209 = String_get_Chars_m2541(L_206, ((int32_t)((int32_t)L_208-(int32_t)1)), /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((((int32_t)L_209) == ((int32_t)((int32_t)93)))) { goto IL_0544; } } { String_t* L_210 = V_10; IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&CultureInfo_t1165_il2cpp_TypeInfo)); CultureInfo_t1165 * L_211 = CultureInfo_get_InvariantCulture_m8023(NULL /*static, unused*/, /*hidden argument*/&CultureInfo_get_InvariantCulture_m8023_MethodInfo); int32_t* L_212 = &(__this->___port_4); bool L_213 = Int32_TryParse_m8024(NULL /*static, unused*/, L_210, 7, L_211, L_212, /*hidden argument*/&Int32_TryParse_m8024_MethodInfo); if (!L_213) { goto IL_0536; } } { int32_t L_214 = (__this->___port_4); if ((((int32_t)L_214) < ((int32_t)0))) { goto IL_0536; } } { int32_t L_215 = (__this->___port_4); if ((((int32_t)L_215) <= ((int32_t)((int32_t)65535)))) { goto IL_053c; } } IL_0536: { return (String_t*) &_stringLiteral921; } IL_053c: { int32_t L_216 = V_1; V_4 = L_216; goto IL_0561; } IL_0544: { int32_t L_217 = (__this->___port_4); if ((!(((uint32_t)L_217) == ((uint32_t)(-1))))) { goto IL_0561; } } { String_t* L_218 = (__this->___scheme_2); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); int32_t L_219 = Uri_GetDefaultPort_m7949(NULL /*static, unused*/, L_218, /*hidden argument*/&Uri_GetDefaultPort_m7949_MethodInfo); __this->___port_4 = L_219; } IL_0561: { goto IL_0583; } IL_0566: { int32_t L_220 = (__this->___port_4); if ((!(((uint32_t)L_220) == ((uint32_t)(-1))))) { goto IL_0583; } } { String_t* L_221 = (__this->___scheme_2); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); int32_t L_222 = Uri_GetDefaultPort_m7949(NULL /*static, unused*/, L_221, /*hidden argument*/&Uri_GetDefaultPort_m7949_MethodInfo); __this->___port_4 = L_222; } IL_0583: { String_t* L_223 = ___uriString; int32_t L_224 = V_3; int32_t L_225 = V_4; int32_t L_226 = V_3; NullCheck(L_223); String_t* L_227 = String_Substring_m2542(L_223, L_224, ((int32_t)((int32_t)L_225-(int32_t)L_226)), /*hidden argument*/&String_Substring_m2542_MethodInfo); ___uriString = L_227; String_t* L_228 = ___uriString; __this->___host_3 = L_228; bool L_229 = V_6; if (!L_229) { goto IL_05c7; } } { uint16_t L_230 = ((int32_t)47); Object_t * L_231 = Box(InitializedTypeInfo(&Char_t389_il2cpp_TypeInfo), &L_230); String_t* L_232 = ___uriString; IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); String_t* L_233 = String_Concat_m495(NULL /*static, unused*/, L_231, L_232, /*hidden argument*/&String_Concat_m495_MethodInfo); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); String_t* L_234 = Uri_Reduce_m7946(NULL /*static, unused*/, L_233, 1, /*hidden argument*/&Uri_Reduce_m7946_MethodInfo); __this->___path_5 = L_234; String_t* L_235 = ((String_t_StaticFields*)(&String_t_il2cpp_TypeInfo)->static_fields)->___Empty_2; __this->___host_3 = L_235; goto IL_071c; } IL_05c7: { String_t* L_236 = (__this->___host_3); NullCheck(L_236); int32_t L_237 = String_get_Length_m694(L_236, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((!(((uint32_t)L_237) == ((uint32_t)2)))) { goto IL_0612; } } { String_t* L_238 = (__this->___host_3); NullCheck(L_238); uint16_t L_239 = String_get_Chars_m2541(L_238, 1, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((!(((uint32_t)L_239) == ((uint32_t)((int32_t)58))))) { goto IL_0612; } } { String_t* L_240 = (__this->___host_3); String_t* L_241 = (__this->___path_5); IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); String_t* L_242 = String_Concat_m540(NULL /*static, unused*/, L_240, L_241, /*hidden argument*/&String_Concat_m540_MethodInfo); __this->___path_5 = L_242; String_t* L_243 = ((String_t_StaticFields*)(&String_t_il2cpp_TypeInfo)->static_fields)->___Empty_2; __this->___host_3 = L_243; goto IL_071c; } IL_0612: { bool L_244 = (__this->___isUnixFilePath_0); if (!L_244) { goto IL_063a; } } { String_t* L_245 = ___uriString; IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); String_t* L_246 = String_Concat_m540(NULL /*static, unused*/, (String_t*) &_stringLiteral922, L_245, /*hidden argument*/&String_Concat_m540_MethodInfo); ___uriString = L_246; String_t* L_247 = ((String_t_StaticFields*)(&String_t_il2cpp_TypeInfo)->static_fields)->___Empty_2; __this->___host_3 = L_247; goto IL_071c; } IL_063a: { String_t* L_248 = (__this->___scheme_2); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); String_t* L_249 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeFile_18; IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); bool L_250 = String_op_Equality_m406(NULL /*static, unused*/, L_248, L_249, /*hidden argument*/&String_op_Equality_m406_MethodInfo); if (!L_250) { goto IL_065b; } } { __this->___isUnc_9 = 1; goto IL_071c; } IL_065b: { String_t* L_251 = (__this->___scheme_2); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); String_t* L_252 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeNews_24; IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); bool L_253 = String_op_Equality_m406(NULL /*static, unused*/, L_251, L_252, /*hidden argument*/&String_op_Equality_m406_MethodInfo); if (!L_253) { goto IL_069d; } } { String_t* L_254 = (__this->___host_3); NullCheck(L_254); int32_t L_255 = String_get_Length_m694(L_254, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((((int32_t)L_255) <= ((int32_t)0))) { goto IL_0698; } } { String_t* L_256 = (__this->___host_3); __this->___path_5 = L_256; IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); String_t* L_257 = ((String_t_StaticFields*)(&String_t_il2cpp_TypeInfo)->static_fields)->___Empty_2; __this->___host_3 = L_257; } IL_0698: { goto IL_071c; } IL_069d: { String_t* L_258 = (__this->___host_3); NullCheck(L_258); int32_t L_259 = String_get_Length_m694(L_258, /*hidden argument*/&String_get_Length_m694_MethodInfo); if (L_259) { goto IL_071c; } } { String_t* L_260 = (__this->___scheme_2); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); String_t* L_261 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeHttp_21; IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); bool L_262 = String_op_Equality_m406(NULL /*static, unused*/, L_260, L_261, /*hidden argument*/&String_op_Equality_m406_MethodInfo); if (L_262) { goto IL_0716; } } { String_t* L_263 = (__this->___scheme_2); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); String_t* L_264 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeGopher_20; IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); bool L_265 = String_op_Equality_m406(NULL /*static, unused*/, L_263, L_264, /*hidden argument*/&String_op_Equality_m406_MethodInfo); if (L_265) { goto IL_0716; } } { String_t* L_266 = (__this->___scheme_2); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); String_t* L_267 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeNntp_25; IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); bool L_268 = String_op_Equality_m406(NULL /*static, unused*/, L_266, L_267, /*hidden argument*/&String_op_Equality_m406_MethodInfo); if (L_268) { goto IL_0716; } } { String_t* L_269 = (__this->___scheme_2); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); String_t* L_270 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeHttps_22; IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); bool L_271 = String_op_Equality_m406(NULL /*static, unused*/, L_269, L_270, /*hidden argument*/&String_op_Equality_m406_MethodInfo); if (L_271) { goto IL_0716; } } { String_t* L_272 = (__this->___scheme_2); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); String_t* L_273 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeFtp_19; IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); bool L_274 = String_op_Equality_m406(NULL /*static, unused*/, L_272, L_273, /*hidden argument*/&String_op_Equality_m406_MethodInfo); if (!L_274) { goto IL_071c; } } IL_0716: { return (String_t*) &_stringLiteral923; } IL_071c: { String_t* L_275 = (__this->___host_3); NullCheck(L_275); int32_t L_276 = String_get_Length_m694(L_275, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((((int32_t)L_276) <= ((int32_t)0))) { goto IL_073d; } } { String_t* L_277 = (__this->___host_3); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); int32_t L_278 = Uri_CheckHostName_m7920(NULL /*static, unused*/, L_277, /*hidden argument*/&Uri_CheckHostName_m7920_MethodInfo); G_B139_0 = ((((int32_t)L_278) == ((int32_t)0))? 1 : 0); goto IL_073e; } IL_073d: { G_B139_0 = 0; } IL_073e: { V_11 = G_B139_0; bool L_279 = V_11; if (L_279) { goto IL_07c1; } } { String_t* L_280 = (__this->___host_3); NullCheck(L_280); int32_t L_281 = String_get_Length_m694(L_280, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((((int32_t)L_281) <= ((int32_t)1))) { goto IL_07c1; } } { String_t* L_282 = (__this->___host_3); NullCheck(L_282); uint16_t L_283 = String_get_Chars_m2541(L_282, 0, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((!(((uint32_t)L_283) == ((uint32_t)((int32_t)91))))) { goto IL_07c1; } } { String_t* L_284 = (__this->___host_3); String_t* L_285 = (__this->___host_3); NullCheck(L_285); int32_t L_286 = String_get_Length_m694(L_285, /*hidden argument*/&String_get_Length_m694_MethodInfo); NullCheck(L_284); uint16_t L_287 = String_get_Chars_m2541(L_284, ((int32_t)((int32_t)L_286-(int32_t)1)), /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((!(((uint32_t)L_287) == ((uint32_t)((int32_t)93))))) { goto IL_07c1; } } { String_t* L_288 = (__this->___host_3); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&IPv6Address_t1335_il2cpp_TypeInfo)); bool L_289 = IPv6Address_TryParse_m7239(NULL /*static, unused*/, L_288, (&V_12), /*hidden argument*/&IPv6Address_TryParse_m7239_MethodInfo); if (!L_289) { goto IL_07be; } } { IPv6Address_t1335 * L_290 = V_12; NullCheck(L_290); String_t* L_291 = IPv6Address_ToString_m7249(L_290, 1, /*hidden argument*/&IPv6Address_ToString_m7249_MethodInfo); IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); String_t* L_292 = String_Concat_m554(NULL /*static, unused*/, (String_t*) &_stringLiteral550, L_291, (String_t*) &_stringLiteral551, /*hidden argument*/&String_Concat_m554_MethodInfo); __this->___host_3 = L_292; goto IL_07c1; } IL_07be: { V_11 = 1; } IL_07c1: { bool L_293 = V_11; if (!L_293) { goto IL_07fe; } } { UriParser_t1456 * L_294 = Uri_get_Parser_m7952(__this, /*hidden argument*/&Uri_get_Parser_m7952_MethodInfo); if (((DefaultUriParser_t1455 *)IsInst(L_294, InitializedTypeInfo(&DefaultUriParser_t1455_il2cpp_TypeInfo)))) { goto IL_07e3; } } { UriParser_t1456 * L_295 = Uri_get_Parser_m7952(__this, /*hidden argument*/&Uri_get_Parser_m7952_MethodInfo); if (L_295) { goto IL_07fe; } } IL_07e3: { String_t* L_296 = (__this->___host_3); IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); String_t* L_297 = String_Concat_m554(NULL /*static, unused*/, (String_t*) &_stringLiteral924, L_296, (String_t*) &_stringLiteral215, /*hidden argument*/&String_Concat_m554_MethodInfo); String_t* L_298 = Locale_GetText_m7100(NULL /*static, unused*/, L_297, /*hidden argument*/&Locale_GetText_m7100_MethodInfo); return L_298; } IL_07fe: { V_13 = (UriFormatException_t1460 *)NULL; UriParser_t1456 * L_299 = Uri_get_Parser_m7952(__this, /*hidden argument*/&Uri_get_Parser_m7952_MethodInfo); if (!L_299) { goto IL_081a; } } { UriParser_t1456 * L_300 = Uri_get_Parser_m7952(__this, /*hidden argument*/&Uri_get_Parser_m7952_MethodInfo); NullCheck(L_300); VirtActionInvoker2< Uri_t1318 *, UriFormatException_t1460 ** >::Invoke(&UriParser_InitializeAndValidate_m7961_MethodInfo, L_300, __this, (&V_13)); } IL_081a: { UriFormatException_t1460 * L_301 = V_13; if (!L_301) { goto IL_0829; } } { UriFormatException_t1460 * L_302 = V_13; NullCheck(L_302); String_t* L_303 = (String_t*)VirtFuncInvoker0< String_t* >::Invoke(&Exception_get_Message_m2507_MethodInfo, L_302); return L_303; } IL_0829: { String_t* L_304 = (__this->___scheme_2); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); String_t* L_305 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeMailto_23; IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); bool L_306 = String_op_Inequality_m2540(NULL /*static, unused*/, L_304, L_305, /*hidden argument*/&String_op_Inequality_m2540_MethodInfo); if (!L_306) { goto IL_0884; } } { String_t* L_307 = (__this->___scheme_2); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); String_t* L_308 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeNews_24; IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); bool L_309 = String_op_Inequality_m2540(NULL /*static, unused*/, L_307, L_308, /*hidden argument*/&String_op_Inequality_m2540_MethodInfo); if (!L_309) { goto IL_0884; } } { String_t* L_310 = (__this->___scheme_2); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); String_t* L_311 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeFile_18; IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); bool L_312 = String_op_Inequality_m2540(NULL /*static, unused*/, L_310, L_311, /*hidden argument*/&String_op_Inequality_m2540_MethodInfo); if (!L_312) { goto IL_0884; } } { String_t* L_313 = (__this->___path_5); String_t* L_314 = (__this->___scheme_2); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); bool L_315 = Uri_CompactEscaped_m7945(NULL /*static, unused*/, L_314, /*hidden argument*/&Uri_CompactEscaped_m7945_MethodInfo); String_t* L_316 = Uri_Reduce_m7946(NULL /*static, unused*/, L_313, L_315, /*hidden argument*/&Uri_Reduce_m7946_MethodInfo); __this->___path_5 = L_316; } IL_0884: { return (String_t*)NULL; } } // System.Boolean System.Uri::CompactEscaped(System.String) extern TypeInfo* Dictionary_2_t1025_il2cpp_TypeInfo_var; extern MethodInfo* Dictionary_2__ctor_m8048_MethodInfo_var; extern MethodInfo* Dictionary_2_Add_m8049_MethodInfo_var; extern MethodInfo* Dictionary_2_TryGetValue_m8050_MethodInfo_var; extern "C" bool Uri_CompactEscaped_m7945 (Object_t * __this /* static, unused */, String_t* ___scheme, MethodInfo* method) { static bool Uri_CompactEscaped_m7945_init; if (!Uri_CompactEscaped_m7945_init) { Dictionary_2_t1025_il2cpp_TypeInfo_var = il2cpp_codegen_class_from_type(&Dictionary_2_t1025_0_0_0); Dictionary_2__ctor_m8048_MethodInfo_var = il2cpp_codegen_genericmethod_get_method(&Dictionary_2__ctor_m8048_GenericMethod); Dictionary_2_Add_m8049_MethodInfo_var = il2cpp_codegen_genericmethod_get_method(&Dictionary_2_Add_m8049_GenericMethod); Dictionary_2_TryGetValue_m8050_MethodInfo_var = il2cpp_codegen_genericmethod_get_method(&Dictionary_2_TryGetValue_m8050_GenericMethod); Uri_CompactEscaped_m7945_init = true; } String_t* V_0 = {0}; Dictionary_2_t1025 * V_1 = {0}; int32_t V_2 = 0; { String_t* L_0 = ___scheme; V_0 = L_0; String_t* L_1 = V_0; if (!L_1) { goto IL_007a; } } { IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); Dictionary_2_t1025 * L_2 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___U3CU3Ef__switch$map15_31; if (L_2) { goto IL_005b; } } { Dictionary_2_t1025 * L_3 = (Dictionary_2_t1025 *)il2cpp_codegen_object_new (Dictionary_2_t1025_il2cpp_TypeInfo_var); Dictionary_2__ctor_m8048(L_3, 5, /*hidden argument*/Dictionary_2__ctor_m8048_MethodInfo_var); V_1 = L_3; Dictionary_2_t1025 * L_4 = V_1; NullCheck(L_4); VirtActionInvoker2< String_t*, int32_t >::Invoke(Dictionary_2_Add_m8049_MethodInfo_var, L_4, (String_t*) &_stringLiteral716, 0); Dictionary_2_t1025 * L_5 = V_1; NullCheck(L_5); VirtActionInvoker2< String_t*, int32_t >::Invoke(Dictionary_2_Add_m8049_MethodInfo_var, L_5, (String_t*) &_stringLiteral659, 0); Dictionary_2_t1025 * L_6 = V_1; NullCheck(L_6); VirtActionInvoker2< String_t*, int32_t >::Invoke(Dictionary_2_Add_m8049_MethodInfo_var, L_6, (String_t*) &_stringLiteral658, 0); Dictionary_2_t1025 * L_7 = V_1; NullCheck(L_7); VirtActionInvoker2< String_t*, int32_t >::Invoke(Dictionary_2_Add_m8049_MethodInfo_var, L_7, (String_t*) &_stringLiteral901, 0); Dictionary_2_t1025 * L_8 = V_1; NullCheck(L_8); VirtActionInvoker2< String_t*, int32_t >::Invoke(Dictionary_2_Add_m8049_MethodInfo_var, L_8, (String_t*) &_stringLiteral902, 0); Dictionary_2_t1025 * L_9 = V_1; IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___U3CU3Ef__switch$map15_31 = L_9; } IL_005b: { IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); Dictionary_2_t1025 * L_10 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___U3CU3Ef__switch$map15_31; String_t* L_11 = V_0; NullCheck(L_10); bool L_12 = (bool)VirtFuncInvoker2< bool, String_t*, int32_t* >::Invoke(Dictionary_2_TryGetValue_m8050_MethodInfo_var, L_10, L_11, (&V_2)); if (!L_12) { goto IL_007a; } } { int32_t L_13 = V_2; if (!L_13) { goto IL_0078; } } { goto IL_007a; } IL_0078: { return 1; } IL_007a: { return 0; } } // System.String System.Uri::Reduce(System.String,System.Boolean) extern "C" String_t* Uri_Reduce_m7946 (Object_t * __this /* static, unused */, String_t* ___path, bool ___compact_escaped, MethodInfo* method) { StringBuilder_t480 * V_0 = {0}; int32_t V_1 = 0; uint16_t V_2 = 0x0; uint16_t V_3 = 0x0; uint16_t V_4 = 0x0; ArrayList_t1304 * V_5 = {0}; int32_t V_6 = 0; int32_t V_7 = 0; String_t* V_8 = {0}; int32_t V_9 = 0; bool V_10 = false; String_t* V_11 = {0}; Object_t * V_12 = {0}; uint16_t V_13 = 0x0; Object_t * V_14 = {0}; Exception_t154 * __last_unhandled_exception = 0; NO_UNUSED_WARNING (__last_unhandled_exception); Exception_t154 * __exception_local = 0; NO_UNUSED_WARNING (__exception_local); int32_t __leave_target = 0; NO_UNUSED_WARNING (__leave_target); { String_t* L_0 = ___path; IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); bool L_1 = String_op_Equality_m406(NULL /*static, unused*/, L_0, (String_t*) &_stringLiteral153, /*hidden argument*/&String_op_Equality_m406_MethodInfo); if (!L_1) { goto IL_0012; } } { String_t* L_2 = ___path; return L_2; } IL_0012: { StringBuilder_t480 * L_3 = (StringBuilder_t480 *)il2cpp_codegen_object_new (InitializedTypeInfo(&StringBuilder_t480_il2cpp_TypeInfo)); StringBuilder__ctor_m2206(L_3, /*hidden argument*/&StringBuilder__ctor_m2206_MethodInfo); V_0 = L_3; bool L_4 = ___compact_escaped; if (!L_4) { goto IL_00f5; } } { V_1 = 0; goto IL_00dc; } IL_0025: { String_t* L_5 = ___path; int32_t L_6 = V_1; NullCheck(L_5); uint16_t L_7 = String_get_Chars_m2541(L_5, L_6, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); V_2 = L_7; uint16_t L_8 = V_2; V_13 = L_8; uint16_t L_9 = V_13; if ((((int32_t)L_9) == ((int32_t)((int32_t)37)))) { goto IL_0055; } } { uint16_t L_10 = V_13; if ((((int32_t)L_10) == ((int32_t)((int32_t)92)))) { goto IL_0047; } } { goto IL_00cb; } IL_0047: { StringBuilder_t480 * L_11 = V_0; NullCheck(L_11); StringBuilder_Append_m2561(L_11, ((int32_t)47), /*hidden argument*/&StringBuilder_Append_m2561_MethodInfo); goto IL_00d8; } IL_0055: { int32_t L_12 = V_1; String_t* L_13 = ___path; NullCheck(L_13); int32_t L_14 = String_get_Length_m694(L_13, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((((int32_t)L_12) >= ((int32_t)((int32_t)((int32_t)L_14-(int32_t)2))))) { goto IL_00be; } } { String_t* L_15 = ___path; int32_t L_16 = V_1; NullCheck(L_15); uint16_t L_17 = String_get_Chars_m2541(L_15, ((int32_t)((int32_t)L_16+(int32_t)1)), /*hidden argument*/&String_get_Chars_m2541_MethodInfo); V_3 = L_17; String_t* L_18 = ___path; int32_t L_19 = V_1; NullCheck(L_18); uint16_t L_20 = String_get_Chars_m2541(L_18, ((int32_t)((int32_t)L_19+(int32_t)2)), /*hidden argument*/&String_get_Chars_m2541_MethodInfo); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Char_t389_il2cpp_TypeInfo)); uint16_t L_21 = Char_ToUpper_m2598(NULL /*static, unused*/, L_20, /*hidden argument*/&Char_ToUpper_m2598_MethodInfo); V_4 = L_21; uint16_t L_22 = V_3; if ((!(((uint32_t)L_22) == ((uint32_t)((int32_t)50))))) { goto IL_008e; } } { uint16_t L_23 = V_4; if ((((int32_t)L_23) == ((int32_t)((int32_t)70)))) { goto IL_009f; } } IL_008e: { uint16_t L_24 = V_3; if ((!(((uint32_t)L_24) == ((uint32_t)((int32_t)53))))) { goto IL_00b1; } } { uint16_t L_25 = V_4; if ((!(((uint32_t)L_25) == ((uint32_t)((int32_t)67))))) { goto IL_00b1; } } IL_009f: { StringBuilder_t480 * L_26 = V_0; NullCheck(L_26); StringBuilder_Append_m2561(L_26, ((int32_t)47), /*hidden argument*/&StringBuilder_Append_m2561_MethodInfo); int32_t L_27 = V_1; V_1 = ((int32_t)((int32_t)L_27+(int32_t)2)); goto IL_00b9; } IL_00b1: { StringBuilder_t480 * L_28 = V_0; uint16_t L_29 = V_2; NullCheck(L_28); StringBuilder_Append_m2561(L_28, L_29, /*hidden argument*/&StringBuilder_Append_m2561_MethodInfo); } IL_00b9: { goto IL_00c6; } IL_00be: { StringBuilder_t480 * L_30 = V_0; uint16_t L_31 = V_2; NullCheck(L_30); StringBuilder_Append_m2561(L_30, L_31, /*hidden argument*/&StringBuilder_Append_m2561_MethodInfo); } IL_00c6: { goto IL_00d8; } IL_00cb: { StringBuilder_t480 * L_32 = V_0; uint16_t L_33 = V_2; NullCheck(L_32); StringBuilder_Append_m2561(L_32, L_33, /*hidden argument*/&StringBuilder_Append_m2561_MethodInfo); goto IL_00d8; } IL_00d8: { int32_t L_34 = V_1; V_1 = ((int32_t)((int32_t)L_34+(int32_t)1)); } IL_00dc: { int32_t L_35 = V_1; String_t* L_36 = ___path; NullCheck(L_36); int32_t L_37 = String_get_Length_m694(L_36, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((((int32_t)L_35) < ((int32_t)L_37))) { goto IL_0025; } } { StringBuilder_t480 * L_38 = V_0; NullCheck(L_38); String_t* L_39 = (String_t*)VirtFuncInvoker0< String_t* >::Invoke(&StringBuilder_ToString_m2209_MethodInfo, L_38); ___path = L_39; goto IL_0101; } IL_00f5: { String_t* L_40 = ___path; NullCheck(L_40); String_t* L_41 = String_Replace_m6934(L_40, ((int32_t)92), ((int32_t)47), /*hidden argument*/&String_Replace_m6934_MethodInfo); ___path = L_41; } IL_0101: { IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&ArrayList_t1304_il2cpp_TypeInfo)); ArrayList_t1304 * L_42 = (ArrayList_t1304 *)il2cpp_codegen_object_new (InitializedTypeInfo(&ArrayList_t1304_il2cpp_TypeInfo)); ArrayList__ctor_m7998(L_42, /*hidden argument*/&ArrayList__ctor_m7998_MethodInfo); V_5 = L_42; V_6 = 0; goto IL_01a3; } IL_0110: { String_t* L_43 = ___path; int32_t L_44 = V_6; NullCheck(L_43); int32_t L_45 = String_IndexOf_m8256(L_43, ((int32_t)47), L_44, /*hidden argument*/&String_IndexOf_m8256_MethodInfo); V_7 = L_45; int32_t L_46 = V_7; if ((!(((uint32_t)L_46) == ((uint32_t)(-1))))) { goto IL_012c; } } { String_t* L_47 = ___path; NullCheck(L_47); int32_t L_48 = String_get_Length_m694(L_47, /*hidden argument*/&String_get_Length_m694_MethodInfo); V_7 = L_48; } IL_012c: { String_t* L_49 = ___path; int32_t L_50 = V_6; int32_t L_51 = V_7; int32_t L_52 = V_6; NullCheck(L_49); String_t* L_53 = String_Substring_m2542(L_49, L_50, ((int32_t)((int32_t)L_51-(int32_t)L_52)), /*hidden argument*/&String_Substring_m2542_MethodInfo); V_8 = L_53; int32_t L_54 = V_7; V_6 = ((int32_t)((int32_t)L_54+(int32_t)1)); String_t* L_55 = V_8; NullCheck(L_55); int32_t L_56 = String_get_Length_m694(L_55, /*hidden argument*/&String_get_Length_m694_MethodInfo); if (!L_56) { goto IL_015e; } } { String_t* L_57 = V_8; IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); bool L_58 = String_op_Equality_m406(NULL /*static, unused*/, L_57, (String_t*) &_stringLiteral207, /*hidden argument*/&String_op_Equality_m406_MethodInfo); if (!L_58) { goto IL_0163; } } IL_015e: { goto IL_01a3; } IL_0163: { String_t* L_59 = V_8; IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); bool L_60 = String_op_Equality_m406(NULL /*static, unused*/, L_59, (String_t*) &_stringLiteral925, /*hidden argument*/&String_op_Equality_m406_MethodInfo); if (!L_60) { goto IL_0199; } } { ArrayList_t1304 * L_61 = V_5; NullCheck(L_61); int32_t L_62 = (int32_t)VirtFuncInvoker0< int32_t >::Invoke(&ArrayList_get_Count_m7994_MethodInfo, L_61); V_9 = L_62; int32_t L_63 = V_9; if (L_63) { goto IL_0189; } } { goto IL_01a3; } IL_0189: { ArrayList_t1304 * L_64 = V_5; int32_t L_65 = V_9; NullCheck(L_64); VirtActionInvoker1< int32_t >::Invoke(&ArrayList_RemoveAt_m8210_MethodInfo, L_64, ((int32_t)((int32_t)L_65-(int32_t)1))); goto IL_01a3; } IL_0199: { ArrayList_t1304 * L_66 = V_5; String_t* L_67 = V_8; NullCheck(L_66); VirtFuncInvoker1< int32_t, Object_t * >::Invoke(&ArrayList_Add_m8008_MethodInfo, L_66, L_67); } IL_01a3: { int32_t L_68 = V_6; String_t* L_69 = ___path; NullCheck(L_69); int32_t L_70 = String_get_Length_m694(L_69, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((((int32_t)L_68) < ((int32_t)L_70))) { goto IL_0110; } } { ArrayList_t1304 * L_71 = V_5; NullCheck(L_71); int32_t L_72 = (int32_t)VirtFuncInvoker0< int32_t >::Invoke(&ArrayList_get_Count_m7994_MethodInfo, L_71); if (L_72) { goto IL_01c2; } } { return (String_t*) &_stringLiteral153; } IL_01c2: { StringBuilder_t480 * L_73 = V_0; NullCheck(L_73); StringBuilder_set_Length_m8259(L_73, 0, /*hidden argument*/&StringBuilder_set_Length_m8259_MethodInfo); String_t* L_74 = ___path; NullCheck(L_74); uint16_t L_75 = String_get_Chars_m2541(L_74, 0, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); if ((!(((uint32_t)L_75) == ((uint32_t)((int32_t)47))))) { goto IL_01e0; } } { StringBuilder_t480 * L_76 = V_0; NullCheck(L_76); StringBuilder_Append_m2561(L_76, ((int32_t)47), /*hidden argument*/&StringBuilder_Append_m2561_MethodInfo); } IL_01e0: { V_10 = 1; ArrayList_t1304 * L_77 = V_5; NullCheck(L_77); Object_t * L_78 = (Object_t *)VirtFuncInvoker0< Object_t * >::Invoke(&ArrayList_GetEnumerator_m7999_MethodInfo, L_77); V_12 = L_78; } IL_01ec: try { // begin try (depth: 1) { goto IL_0220; } IL_01f1: { Object_t * L_79 = V_12; NullCheck(L_79); Object_t * L_80 = (Object_t *)InterfaceFuncInvoker0< Object_t * >::Invoke(&IEnumerator_get_Current_m6898_MethodInfo, L_79); V_11 = ((String_t*)Castclass(L_80, (&String_t_il2cpp_TypeInfo))); bool L_81 = V_10; if (!L_81) { goto IL_020e; } } IL_0206: { V_10 = 0; goto IL_0217; } IL_020e: { StringBuilder_t480 * L_82 = V_0; NullCheck(L_82); StringBuilder_Append_m2561(L_82, ((int32_t)47), /*hidden argument*/&StringBuilder_Append_m2561_MethodInfo); } IL_0217: { StringBuilder_t480 * L_83 = V_0; String_t* L_84 = V_11; NullCheck(L_83); StringBuilder_Append_m6931(L_83, L_84, /*hidden argument*/&StringBuilder_Append_m6931_MethodInfo); } IL_0220: { Object_t * L_85 = V_12; NullCheck(L_85); bool L_86 = (bool)InterfaceFuncInvoker0< bool >::Invoke(&IEnumerator_MoveNext_m692_MethodInfo, L_85); if (L_86) { goto IL_01f1; } } IL_022c: { IL2CPP_LEAVE(0x247, FINALLY_0231); } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { __last_unhandled_exception = (Exception_t154 *)e.ex; goto FINALLY_0231; } FINALLY_0231: { // begin finally (depth: 1) { Object_t * L_87 = V_12; V_14 = ((Object_t *)IsInst(L_87, InitializedTypeInfo(&IDisposable_t153_il2cpp_TypeInfo))); Object_t * L_88 = V_14; if (L_88) { goto IL_023f; } } IL_023e: { IL2CPP_END_FINALLY(561) } IL_023f: { Object_t * L_89 = V_14; NullCheck(L_89); InterfaceActionInvoker0::Invoke(&IDisposable_Dispose_m486_MethodInfo, L_89); IL2CPP_END_FINALLY(561) } } // end finally (depth: 1) IL2CPP_CLEANUP(561) { IL2CPP_JUMP_TBL(0x247, IL_0247) IL2CPP_RETHROW_IF_UNHANDLED(Exception_t154 *) } IL_0247: { String_t* L_90 = ___path; NullCheck(L_90); bool L_91 = String_EndsWith_m4752(L_90, (String_t*) &_stringLiteral153, /*hidden argument*/&String_EndsWith_m4752_MethodInfo); if (!L_91) { goto IL_0260; } } { StringBuilder_t480 * L_92 = V_0; NullCheck(L_92); StringBuilder_Append_m2561(L_92, ((int32_t)47), /*hidden argument*/&StringBuilder_Append_m2561_MethodInfo); } IL_0260: { StringBuilder_t480 * L_93 = V_0; NullCheck(L_93); String_t* L_94 = (String_t*)VirtFuncInvoker0< String_t* >::Invoke(&StringBuilder_ToString_m2209_MethodInfo, L_93); return L_94; } } // System.Char System.Uri::HexUnescapeMultiByte(System.String,System.Int32&,System.Char&) extern TypeInfo* ByteU5BU5D_t669_il2cpp_TypeInfo_var; extern "C" uint16_t Uri_HexUnescapeMultiByte_m7947 (Object_t * __this /* static, unused */, String_t* ___pattern, int32_t* ___index, uint16_t* ___surrogate, MethodInfo* method) { static bool Uri_HexUnescapeMultiByte_m7947_init; if (!Uri_HexUnescapeMultiByte_m7947_init) { ByteU5BU5D_t669_il2cpp_TypeInfo_var = il2cpp_codegen_class_from_type(&ByteU5BU5D_t669_0_0_0); Uri_HexUnescapeMultiByte_m7947_init = true; } int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; int32_t V_4 = 0; ByteU5BU5D_t669* V_5 = {0}; bool V_6 = false; int32_t V_7 = 0; int32_t V_8 = 0; int32_t V_9 = 0; uint8_t V_10 = 0x0; int32_t V_11 = 0; int32_t V_12 = 0; int32_t V_13 = 0; { uint16_t* L_0 = ___surrogate; *((int16_t*)(L_0)) = (int16_t)0; String_t* L_1 = ___pattern; if (L_1) { goto IL_0014; } } { ArgumentException_t521 * L_2 = (ArgumentException_t521 *)il2cpp_codegen_object_new (InitializedTypeInfo(&ArgumentException_t521_il2cpp_TypeInfo)); ArgumentException__ctor_m2726(L_2, (String_t*) &_stringLiteral853, /*hidden argument*/&ArgumentException__ctor_m2726_MethodInfo); il2cpp_codegen_raise_exception(L_2); } IL_0014: { int32_t* L_3 = ___index; if ((((int32_t)(*((int32_t*)L_3))) < ((int32_t)0))) { goto IL_0029; } } { int32_t* L_4 = ___index; String_t* L_5 = ___pattern; NullCheck(L_5); int32_t L_6 = String_get_Length_m694(L_5, /*hidden argument*/&String_get_Length_m694_MethodInfo); if ((((int32_t)(*((int32_t*)L_4))) < ((int32_t)L_6))) { goto IL_0034; } } IL_0029: { ArgumentOutOfRangeException_t1472 * L_7 = (ArgumentOutOfRangeException_t1472 *)il2cpp_codegen_object_new (InitializedTypeInfo(&ArgumentOutOfRangeException_t1472_il2cpp_TypeInfo)); ArgumentOutOfRangeException__ctor_m7993(L_7, (String_t*) &_stringLiteral573, /*hidden argument*/&ArgumentOutOfRangeException__ctor_m7993_MethodInfo); il2cpp_codegen_raise_exception(L_7); } IL_0034: { String_t* L_8 = ___pattern; int32_t* L_9 = ___index; IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); bool L_10 = Uri_IsHexEncoding_m7932(NULL /*static, unused*/, L_8, (*((int32_t*)L_9)), /*hidden argument*/&Uri_IsHexEncoding_m7932_MethodInfo); if (L_10) { goto IL_0053; } } { String_t* L_11 = ___pattern; int32_t* L_12 = ___index; int32_t* L_13 = ___index; int32_t L_14 = (*((int32_t*)L_13)); V_13 = L_14; *((int32_t*)(L_12)) = (int32_t)((int32_t)((int32_t)L_14+(int32_t)1)); int32_t L_15 = V_13; NullCheck(L_11); uint16_t L_16 = String_get_Chars_m2541(L_11, L_15, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); return L_16; } IL_0053: { int32_t* L_17 = ___index; int32_t* L_18 = ___index; int32_t L_19 = (*((int32_t*)L_18)); V_13 = L_19; *((int32_t*)(L_17)) = (int32_t)((int32_t)((int32_t)L_19+(int32_t)1)); int32_t L_20 = V_13; V_0 = L_20; String_t* L_21 = ___pattern; int32_t* L_22 = ___index; int32_t* L_23 = ___index; int32_t L_24 = (*((int32_t*)L_23)); V_13 = L_24; *((int32_t*)(L_22)) = (int32_t)((int32_t)((int32_t)L_24+(int32_t)1)); int32_t L_25 = V_13; NullCheck(L_21); uint16_t L_26 = String_get_Chars_m2541(L_21, L_25, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); int32_t L_27 = Uri_FromHex_m7929(NULL /*static, unused*/, L_26, /*hidden argument*/&Uri_FromHex_m7929_MethodInfo); V_1 = L_27; String_t* L_28 = ___pattern; int32_t* L_29 = ___index; int32_t* L_30 = ___index; int32_t L_31 = (*((int32_t*)L_30)); V_13 = L_31; *((int32_t*)(L_29)) = (int32_t)((int32_t)((int32_t)L_31+(int32_t)1)); int32_t L_32 = V_13; NullCheck(L_28); uint16_t L_33 = String_get_Chars_m2541(L_28, L_32, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); int32_t L_34 = Uri_FromHex_m7929(NULL /*static, unused*/, L_33, /*hidden argument*/&Uri_FromHex_m7929_MethodInfo); V_2 = L_34; int32_t L_35 = V_1; V_3 = L_35; V_4 = 0; goto IL_00a1; } IL_0097: { int32_t L_36 = V_4; V_4 = ((int32_t)((int32_t)L_36+(int32_t)1)); int32_t L_37 = V_3; V_3 = ((int32_t)((int32_t)L_37<<(int32_t)1)); } IL_00a1: { int32_t L_38 = V_3; if ((((int32_t)((int32_t)((int32_t)L_38&(int32_t)8))) == ((int32_t)8))) { goto IL_0097; } } { int32_t L_39 = V_4; if ((((int32_t)L_39) > ((int32_t)1))) { goto IL_00b9; } } { int32_t L_40 = V_1; int32_t L_41 = V_2; return (((uint16_t)((int32_t)((int32_t)((int32_t)((int32_t)L_40<<(int32_t)4))|(int32_t)L_41)))); } IL_00b9: { int32_t L_42 = V_4; V_5 = ((ByteU5BU5D_t669*)SZArrayNew(ByteU5BU5D_t669_il2cpp_TypeInfo_var, L_42)); V_6 = 0; ByteU5BU5D_t669* L_43 = V_5; int32_t L_44 = V_1; int32_t L_45 = V_2; NullCheck(L_43); IL2CPP_ARRAY_BOUNDS_CHECK(L_43, 0); *((uint8_t*)(uint8_t*)SZArrayLdElema(L_43, 0)) = (uint8_t)(((uint8_t)((int32_t)((int32_t)((int32_t)((int32_t)L_44<<(int32_t)4))|(int32_t)L_45)))); V_7 = 1; goto IL_014b; } IL_00d7: { String_t* L_46 = ___pattern; int32_t* L_47 = ___index; int32_t* L_48 = ___index; int32_t L_49 = (*((int32_t*)L_48)); V_13 = L_49; *((int32_t*)(L_47)) = (int32_t)((int32_t)((int32_t)L_49+(int32_t)1)); int32_t L_50 = V_13; IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); bool L_51 = Uri_IsHexEncoding_m7932(NULL /*static, unused*/, L_46, L_50, /*hidden argument*/&Uri_IsHexEncoding_m7932_MethodInfo); if (L_51) { goto IL_00f5; } } { V_6 = 1; goto IL_0154; } IL_00f5: { String_t* L_52 = ___pattern; int32_t* L_53 = ___index; int32_t* L_54 = ___index; int32_t L_55 = (*((int32_t*)L_54)); V_13 = L_55; *((int32_t*)(L_53)) = (int32_t)((int32_t)((int32_t)L_55+(int32_t)1)); int32_t L_56 = V_13; NullCheck(L_52); uint16_t L_57 = String_get_Chars_m2541(L_52, L_56, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); int32_t L_58 = Uri_FromHex_m7929(NULL /*static, unused*/, L_57, /*hidden argument*/&Uri_FromHex_m7929_MethodInfo); V_8 = L_58; int32_t L_59 = V_8; if ((((int32_t)((int32_t)((int32_t)L_59&(int32_t)((int32_t)12)))) == ((int32_t)8))) { goto IL_0120; } } { V_6 = 1; goto IL_0154; } IL_0120: { String_t* L_60 = ___pattern; int32_t* L_61 = ___index; int32_t* L_62 = ___index; int32_t L_63 = (*((int32_t*)L_62)); V_13 = L_63; *((int32_t*)(L_61)) = (int32_t)((int32_t)((int32_t)L_63+(int32_t)1)); int32_t L_64 = V_13; NullCheck(L_60); uint16_t L_65 = String_get_Chars_m2541(L_60, L_64, /*hidden argument*/&String_get_Chars_m2541_MethodInfo); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); int32_t L_66 = Uri_FromHex_m7929(NULL /*static, unused*/, L_65, /*hidden argument*/&Uri_FromHex_m7929_MethodInfo); V_9 = L_66; ByteU5BU5D_t669* L_67 = V_5; int32_t L_68 = V_7; int32_t L_69 = V_8; int32_t L_70 = V_9; NullCheck(L_67); IL2CPP_ARRAY_BOUNDS_CHECK(L_67, L_68); *((uint8_t*)(uint8_t*)SZArrayLdElema(L_67, L_68)) = (uint8_t)(((uint8_t)((int32_t)((int32_t)((int32_t)((int32_t)L_69<<(int32_t)4))|(int32_t)L_70)))); int32_t L_71 = V_7; V_7 = ((int32_t)((int32_t)L_71+(int32_t)1)); } IL_014b: { int32_t L_72 = V_7; int32_t L_73 = V_4; if ((((int32_t)L_72) < ((int32_t)L_73))) { goto IL_00d7; } } IL_0154: { bool L_74 = V_6; if (!L_74) { goto IL_0166; } } { int32_t* L_75 = ___index; int32_t L_76 = V_0; *((int32_t*)(L_75)) = (int32_t)((int32_t)((int32_t)L_76+(int32_t)3)); ByteU5BU5D_t669* L_77 = V_5; NullCheck(L_77); IL2CPP_ARRAY_BOUNDS_CHECK(L_77, 0); int32_t L_78 = 0; return (((uint16_t)(*(uint8_t*)(uint8_t*)SZArrayLdElema(L_77, L_78)))); } IL_0166: { V_10 = ((int32_t)255); uint8_t L_79 = V_10; int32_t L_80 = V_4; V_10 = (((uint8_t)((int32_t)((int32_t)L_79>>(int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_80+(int32_t)1))&(int32_t)((int32_t)31))))))); ByteU5BU5D_t669* L_81 = V_5; NullCheck(L_81); IL2CPP_ARRAY_BOUNDS_CHECK(L_81, 0); int32_t L_82 = 0; uint8_t L_83 = V_10; V_11 = ((int32_t)((int32_t)(*(uint8_t*)(uint8_t*)SZArrayLdElema(L_81, L_82))&(int32_t)L_83)); V_12 = 1; goto IL_01a4; } IL_018b: { int32_t L_84 = V_11; V_11 = ((int32_t)((int32_t)L_84<<(int32_t)6)); int32_t L_85 = V_11; ByteU5BU5D_t669* L_86 = V_5; int32_t L_87 = V_12; NullCheck(L_86); IL2CPP_ARRAY_BOUNDS_CHECK(L_86, L_87); int32_t L_88 = L_87; V_11 = ((int32_t)((int32_t)L_85|(int32_t)((int32_t)((int32_t)(*(uint8_t*)(uint8_t*)SZArrayLdElema(L_86, L_88))&(int32_t)((int32_t)63))))); int32_t L_89 = V_12; V_12 = ((int32_t)((int32_t)L_89+(int32_t)1)); } IL_01a4: { int32_t L_90 = V_12; int32_t L_91 = V_4; if ((((int32_t)L_90) < ((int32_t)L_91))) { goto IL_018b; } } { int32_t L_92 = V_11; if ((((int32_t)L_92) > ((int32_t)((int32_t)65535)))) { goto IL_01bd; } } { int32_t L_93 = V_11; return (((uint16_t)L_93)); } IL_01bd: { int32_t L_94 = V_11; V_11 = ((int32_t)((int32_t)L_94-(int32_t)((int32_t)65536))); uint16_t* L_95 = ___surrogate; int32_t L_96 = V_11; *((int16_t*)(L_95)) = (int16_t)(((uint16_t)((int32_t)((int32_t)((int32_t)((int32_t)L_96&(int32_t)((int32_t)1023)))|(int32_t)((int32_t)56320))))); int32_t L_97 = V_11; return (((uint16_t)((int32_t)((int32_t)((int32_t)((int32_t)L_97>>(int32_t)((int32_t)10)))|(int32_t)((int32_t)55296))))); } } // System.String System.Uri::GetSchemeDelimiter(System.String) extern "C" String_t* Uri_GetSchemeDelimiter_m7948 (Object_t * __this /* static, unused */, String_t* ___scheme, MethodInfo* method) { int32_t V_0 = 0; { V_0 = 0; goto IL_0037; } IL_0007: { IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); UriSchemeU5BU5D_t1459* L_0 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___schemes_28; int32_t L_1 = V_0; NullCheck(L_0); IL2CPP_ARRAY_BOUNDS_CHECK(L_0, L_1); String_t* L_2 = (((UriScheme_t1458 *)(UriScheme_t1458 *)SZArrayLdElema(L_0, L_1))->___scheme_0); String_t* L_3 = ___scheme; IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); bool L_4 = String_op_Equality_m406(NULL /*static, unused*/, L_2, L_3, /*hidden argument*/&String_op_Equality_m406_MethodInfo); if (!L_4) { goto IL_0033; } } { IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); UriSchemeU5BU5D_t1459* L_5 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___schemes_28; int32_t L_6 = V_0; NullCheck(L_5); IL2CPP_ARRAY_BOUNDS_CHECK(L_5, L_6); String_t* L_7 = (((UriScheme_t1458 *)(UriScheme_t1458 *)SZArrayLdElema(L_5, L_6))->___delimiter_1); return L_7; } IL_0033: { int32_t L_8 = V_0; V_0 = ((int32_t)((int32_t)L_8+(int32_t)1)); } IL_0037: { int32_t L_9 = V_0; IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); UriSchemeU5BU5D_t1459* L_10 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___schemes_28; NullCheck(L_10); if ((((int32_t)L_9) < ((int32_t)(((int32_t)(((Array_t *)L_10)->max_length)))))) { goto IL_0007; } } { IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); String_t* L_11 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___SchemeDelimiter_17; return L_11; } } // System.Int32 System.Uri::GetDefaultPort(System.String) extern "C" int32_t Uri_GetDefaultPort_m7949 (Object_t * __this /* static, unused */, String_t* ___scheme, MethodInfo* method) { UriParser_t1456 * V_0 = {0}; { String_t* L_0 = ___scheme; IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&UriParser_t1456_il2cpp_TypeInfo)); UriParser_t1456 * L_1 = UriParser_GetParser_m7968(NULL /*static, unused*/, L_0, /*hidden argument*/&UriParser_GetParser_m7968_MethodInfo); V_0 = L_1; UriParser_t1456 * L_2 = V_0; if (L_2) { goto IL_000f; } } { return (-1); } IL_000f: { UriParser_t1456 * L_3 = V_0; NullCheck(L_3); int32_t L_4 = UriParser_get_DefaultPort_m7964(L_3, /*hidden argument*/&UriParser_get_DefaultPort_m7964_MethodInfo); return L_4; } } // System.String System.Uri::GetOpaqueWiseSchemeDelimiter() extern "C" String_t* Uri_GetOpaqueWiseSchemeDelimiter_m7950 (Uri_t1318 * __this, MethodInfo* method) { { bool L_0 = (__this->___isOpaquePart_10); if (!L_0) { goto IL_0011; } } { return (String_t*) &_stringLiteral557; } IL_0011: { String_t* L_1 = (__this->___scheme_2); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); String_t* L_2 = Uri_GetSchemeDelimiter_m7948(NULL /*static, unused*/, L_1, /*hidden argument*/&Uri_GetSchemeDelimiter_m7948_MethodInfo); return L_2; } } // System.Boolean System.Uri::IsPredefinedScheme(System.String) extern TypeInfo* Dictionary_2_t1025_il2cpp_TypeInfo_var; extern MethodInfo* Dictionary_2__ctor_m8048_MethodInfo_var; extern MethodInfo* Dictionary_2_Add_m8049_MethodInfo_var; extern MethodInfo* Dictionary_2_TryGetValue_m8050_MethodInfo_var; extern "C" bool Uri_IsPredefinedScheme_m7951 (Object_t * __this /* static, unused */, String_t* ___scheme, MethodInfo* method) { static bool Uri_IsPredefinedScheme_m7951_init; if (!Uri_IsPredefinedScheme_m7951_init) { Dictionary_2_t1025_il2cpp_TypeInfo_var = il2cpp_codegen_class_from_type(&Dictionary_2_t1025_0_0_0); Dictionary_2__ctor_m8048_MethodInfo_var = il2cpp_codegen_genericmethod_get_method(&Dictionary_2__ctor_m8048_GenericMethod); Dictionary_2_Add_m8049_MethodInfo_var = il2cpp_codegen_genericmethod_get_method(&Dictionary_2_Add_m8049_GenericMethod); Dictionary_2_TryGetValue_m8050_MethodInfo_var = il2cpp_codegen_genericmethod_get_method(&Dictionary_2_TryGetValue_m8050_GenericMethod); Uri_IsPredefinedScheme_m7951_init = true; } String_t* V_0 = {0}; Dictionary_2_t1025 * V_1 = {0}; int32_t V_2 = 0; { String_t* L_0 = ___scheme; V_0 = L_0; String_t* L_1 = V_0; if (!L_1) { goto IL_00b7; } } { IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); Dictionary_2_t1025 * L_2 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___U3CU3Ef__switch$map16_32; if (L_2) { goto IL_0098; } } { Dictionary_2_t1025 * L_3 = (Dictionary_2_t1025 *)il2cpp_codegen_object_new (Dictionary_2_t1025_il2cpp_TypeInfo_var); Dictionary_2__ctor_m8048(L_3, ((int32_t)10), /*hidden argument*/Dictionary_2__ctor_m8048_MethodInfo_var); V_1 = L_3; Dictionary_2_t1025 * L_4 = V_1; NullCheck(L_4); VirtActionInvoker2< String_t*, int32_t >::Invoke(Dictionary_2_Add_m8049_MethodInfo_var, L_4, (String_t*) &_stringLiteral659, 0); Dictionary_2_t1025 * L_5 = V_1; NullCheck(L_5); VirtActionInvoker2< String_t*, int32_t >::Invoke(Dictionary_2_Add_m8049_MethodInfo_var, L_5, (String_t*) &_stringLiteral658, 0); Dictionary_2_t1025 * L_6 = V_1; NullCheck(L_6); VirtActionInvoker2< String_t*, int32_t >::Invoke(Dictionary_2_Add_m8049_MethodInfo_var, L_6, (String_t*) &_stringLiteral716, 0); Dictionary_2_t1025 * L_7 = V_1; NullCheck(L_7); VirtActionInvoker2< String_t*, int32_t >::Invoke(Dictionary_2_Add_m8049_MethodInfo_var, L_7, (String_t*) &_stringLiteral718, 0); Dictionary_2_t1025 * L_8 = V_1; NullCheck(L_8); VirtActionInvoker2< String_t*, int32_t >::Invoke(Dictionary_2_Add_m8049_MethodInfo_var, L_8, (String_t*) &_stringLiteral900, 0); Dictionary_2_t1025 * L_9 = V_1; NullCheck(L_9); VirtActionInvoker2< String_t*, int32_t >::Invoke(Dictionary_2_Add_m8049_MethodInfo_var, L_9, (String_t*) &_stringLiteral897, 0); Dictionary_2_t1025 * L_10 = V_1; NullCheck(L_10); VirtActionInvoker2< String_t*, int32_t >::Invoke(Dictionary_2_Add_m8049_MethodInfo_var, L_10, (String_t*) &_stringLiteral898, 0); Dictionary_2_t1025 * L_11 = V_1; NullCheck(L_11); VirtActionInvoker2< String_t*, int32_t >::Invoke(Dictionary_2_Add_m8049_MethodInfo_var, L_11, (String_t*) &_stringLiteral899, 0); Dictionary_2_t1025 * L_12 = V_1; NullCheck(L_12); VirtActionInvoker2< String_t*, int32_t >::Invoke(Dictionary_2_Add_m8049_MethodInfo_var, L_12, (String_t*) &_stringLiteral901, 0); Dictionary_2_t1025 * L_13 = V_1; NullCheck(L_13); VirtActionInvoker2< String_t*, int32_t >::Invoke(Dictionary_2_Add_m8049_MethodInfo_var, L_13, (String_t*) &_stringLiteral902, 0); Dictionary_2_t1025 * L_14 = V_1; IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___U3CU3Ef__switch$map16_32 = L_14; } IL_0098: { IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); Dictionary_2_t1025 * L_15 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___U3CU3Ef__switch$map16_32; String_t* L_16 = V_0; NullCheck(L_15); bool L_17 = (bool)VirtFuncInvoker2< bool, String_t*, int32_t* >::Invoke(Dictionary_2_TryGetValue_m8050_MethodInfo_var, L_15, L_16, (&V_2)); if (!L_17) { goto IL_00b7; } } { int32_t L_18 = V_2; if (!L_18) { goto IL_00b5; } } { goto IL_00b7; } IL_00b5: { return 1; } IL_00b7: { return 0; } } // System.UriParser System.Uri::get_Parser() extern "C" UriParser_t1456 * Uri_get_Parser_m7952 (Uri_t1318 * __this, MethodInfo* method) { { UriParser_t1456 * L_0 = (__this->___parser_29); if (L_0) { goto IL_0037; } } { String_t* L_1 = Uri_get_Scheme_m7918(__this, /*hidden argument*/&Uri_get_Scheme_m7918_MethodInfo); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&UriParser_t1456_il2cpp_TypeInfo)); UriParser_t1456 * L_2 = UriParser_GetParser_m7968(NULL /*static, unused*/, L_1, /*hidden argument*/&UriParser_GetParser_m7968_MethodInfo); __this->___parser_29 = L_2; UriParser_t1456 * L_3 = (__this->___parser_29); if (L_3) { goto IL_0037; } } { DefaultUriParser_t1455 * L_4 = (DefaultUriParser_t1455 *)il2cpp_codegen_object_new (InitializedTypeInfo(&DefaultUriParser_t1455_il2cpp_TypeInfo)); DefaultUriParser__ctor_m7905(L_4, (String_t*) &_stringLiteral893, /*hidden argument*/&DefaultUriParser__ctor_m7905_MethodInfo); __this->___parser_29 = L_4; } IL_0037: { UriParser_t1456 * L_5 = (__this->___parser_29); return L_5; } } // System.Void System.Uri::EnsureAbsoluteUri() extern "C" void Uri_EnsureAbsoluteUri_m7953 (Uri_t1318 * __this, MethodInfo* method) { { bool L_0 = Uri_get_IsAbsoluteUri_m7919(__this, /*hidden argument*/&Uri_get_IsAbsoluteUri_m7919_MethodInfo); if (L_0) { goto IL_0016; } } { InvalidOperationException_t1471 * L_1 = (InvalidOperationException_t1471 *)il2cpp_codegen_object_new (InitializedTypeInfo(&InvalidOperationException_t1471_il2cpp_TypeInfo)); InvalidOperationException__ctor_m7984(L_1, (String_t*) &_stringLiteral926, /*hidden argument*/&InvalidOperationException__ctor_m7984_MethodInfo); il2cpp_codegen_raise_exception(L_1); } IL_0016: { return; } } // System.Boolean System.Uri::op_Equality(System.Uri,System.Uri) extern MethodInfo Uri_op_Equality_m7954_MethodInfo; extern "C" bool Uri_op_Equality_m7954 (Object_t * __this /* static, unused */, Uri_t1318 * ___u1, Uri_t1318 * ___u2, MethodInfo* method) { { Uri_t1318 * L_0 = ___u1; Uri_t1318 * L_1 = ___u2; bool L_2 = Object_Equals_m8260(NULL /*static, unused*/, L_0, L_1, /*hidden argument*/&Object_Equals_m8260_MethodInfo); return L_2; } } #ifndef _MSC_VER #else #endif extern TypeInfo SerializationInfo_t1123_il2cpp_TypeInfo; extern TypeInfo StreamingContext_t1124_il2cpp_TypeInfo; // System.FormatException #include "mscorlib_System_FormatExceptionMethodDeclarations.h" extern MethodInfo FormatException__ctor_m8017_MethodInfo; extern MethodInfo FormatException__ctor_m8261_MethodInfo; extern MethodInfo Exception_GetObjectData_m6988_MethodInfo; // System.Void System.UriFormatException::.ctor() extern MethodInfo UriFormatException__ctor_m7955_MethodInfo; extern "C" void UriFormatException__ctor_m7955 (UriFormatException_t1460 * __this, MethodInfo* method) { { String_t* L_0 = Locale_GetText_m7100(NULL /*static, unused*/, (String_t*) &_stringLiteral927, /*hidden argument*/&Locale_GetText_m7100_MethodInfo); FormatException__ctor_m8017(__this, L_0, /*hidden argument*/&FormatException__ctor_m8017_MethodInfo); return; } } // System.Void System.UriFormatException::.ctor(System.String) extern "C" void UriFormatException__ctor_m7956 (UriFormatException_t1460 * __this, String_t* ___message, MethodInfo* method) { { String_t* L_0 = ___message; FormatException__ctor_m8017(__this, L_0, /*hidden argument*/&FormatException__ctor_m8017_MethodInfo); return; } } // System.Void System.UriFormatException::.ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext) extern MethodInfo UriFormatException__ctor_m7957_MethodInfo; extern "C" void UriFormatException__ctor_m7957 (UriFormatException_t1460 * __this, SerializationInfo_t1123 * ___info, StreamingContext_t1124 ___context, MethodInfo* method) { { SerializationInfo_t1123 * L_0 = ___info; StreamingContext_t1124 L_1 = ___context; FormatException__ctor_m8261(__this, L_0, L_1, /*hidden argument*/&FormatException__ctor_m8261_MethodInfo); return; } } // System.Void System.UriFormatException::System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext) extern MethodInfo UriFormatException_System_Runtime_Serialization_ISerializable_GetObjectData_m7958_MethodInfo; extern "C" void UriFormatException_System_Runtime_Serialization_ISerializable_GetObjectData_m7958 (UriFormatException_t1460 * __this, SerializationInfo_t1123 * ___info, StreamingContext_t1124 ___context, MethodInfo* method) { { SerializationInfo_t1123 * L_0 = ___info; StreamingContext_t1124 L_1 = ___context; Exception_GetObjectData_m6988(__this, L_0, L_1, /*hidden argument*/&Exception_GetObjectData_m6988_MethodInfo); return; } } #ifndef _MSC_VER #else #endif extern TypeInfo UriHostNameType_t1462_il2cpp_TypeInfo; // System.UriHostNameType #include "System_System_UriHostNameTypeMethodDeclarations.h" #ifndef _MSC_VER #else #endif extern TypeInfo UriKind_t1463_il2cpp_TypeInfo; // System.UriKind #include "System_System_UriKindMethodDeclarations.h" #ifndef _MSC_VER #else #endif extern TypeInfo Regex_t858_il2cpp_TypeInfo; // System.Text.RegularExpressions.Regex #include "System_System_Text_RegularExpressions_RegexMethodDeclarations.h" // System.Threading.Monitor #include "mscorlib_System_Threading_MonitorMethodDeclarations.h" extern MethodInfo Regex__ctor_m7585_MethodInfo; extern MethodInfo UriParser_InternalRegister_m7967_MethodInfo; extern MethodInfo Monitor_Enter_m4664_MethodInfo; extern MethodInfo Monitor_Exit_m4665_MethodInfo; extern MethodInfo UriParser_set_SchemeName_m7963_MethodInfo; extern MethodInfo UriParser_set_DefaultPort_m7965_MethodInfo; extern MethodInfo UriParser_OnRegister_m7962_MethodInfo; extern MethodInfo UriParser_CreateDefaults_m7966_MethodInfo; // System.Void System.UriParser::.ctor() extern "C" void UriParser__ctor_m7959 (UriParser_t1456 * __this, MethodInfo* method) { { Object__ctor_m419(__this, /*hidden argument*/&Object__ctor_m419_MethodInfo); return; } } // System.Void System.UriParser::.cctor() extern MethodInfo UriParser__cctor_m7960_MethodInfo; extern "C" void UriParser__cctor_m7960 (Object_t * __this /* static, unused */, MethodInfo* method) { { Object_t * L_0 = (Object_t *)il2cpp_codegen_object_new (InitializedTypeInfo(&Object_t_il2cpp_TypeInfo)); Object__ctor_m419(L_0, /*hidden argument*/&Object__ctor_m419_MethodInfo); ((UriParser_t1456_StaticFields*)InitializedTypeInfo(&UriParser_t1456_il2cpp_TypeInfo)->static_fields)->___lock_object_0 = L_0; IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Regex_t858_il2cpp_TypeInfo)); Regex_t858 * L_1 = (Regex_t858 *)il2cpp_codegen_object_new (InitializedTypeInfo(&Regex_t858_il2cpp_TypeInfo)); Regex__ctor_m7585(L_1, (String_t*) &_stringLiteral928, /*hidden argument*/&Regex__ctor_m7585_MethodInfo); ((UriParser_t1456_StaticFields*)InitializedTypeInfo(&UriParser_t1456_il2cpp_TypeInfo)->static_fields)->___uri_regex_4 = L_1; Regex_t858 * L_2 = (Regex_t858 *)il2cpp_codegen_object_new (InitializedTypeInfo(&Regex_t858_il2cpp_TypeInfo)); Regex__ctor_m7585(L_2, (String_t*) &_stringLiteral929, /*hidden argument*/&Regex__ctor_m7585_MethodInfo); ((UriParser_t1456_StaticFields*)InitializedTypeInfo(&UriParser_t1456_il2cpp_TypeInfo)->static_fields)->___auth_regex_5 = L_2; return; } } // System.Void System.UriParser::InitializeAndValidate(System.Uri,System.UriFormatException&) extern "C" void UriParser_InitializeAndValidate_m7961 (UriParser_t1456 * __this, Uri_t1318 * ___uri, UriFormatException_t1460 ** ___parsingError, MethodInfo* method) { { Uri_t1318 * L_0 = ___uri; NullCheck(L_0); String_t* L_1 = Uri_get_Scheme_m7918(L_0, /*hidden argument*/&Uri_get_Scheme_m7918_MethodInfo); String_t* L_2 = (__this->___scheme_name_2); IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); bool L_3 = String_op_Inequality_m2540(NULL /*static, unused*/, L_1, L_2, /*hidden argument*/&String_op_Inequality_m2540_MethodInfo); if (!L_3) { goto IL_003c; } } { String_t* L_4 = (__this->___scheme_name_2); IL2CPP_RUNTIME_CLASS_INIT((&String_t_il2cpp_TypeInfo)); bool L_5 = String_op_Inequality_m2540(NULL /*static, unused*/, L_4, (String_t*) &_stringLiteral893, /*hidden argument*/&String_op_Inequality_m2540_MethodInfo); if (!L_5) { goto IL_003c; } } { UriFormatException_t1460 ** L_6 = ___parsingError; UriFormatException_t1460 * L_7 = (UriFormatException_t1460 *)il2cpp_codegen_object_new (InitializedTypeInfo(&UriFormatException_t1460_il2cpp_TypeInfo)); UriFormatException__ctor_m7956(L_7, (String_t*) &_stringLiteral930, /*hidden argument*/&UriFormatException__ctor_m7956_MethodInfo); *((Object_t **)(L_6)) = (Object_t *)L_7; goto IL_003f; } IL_003c: { UriFormatException_t1460 ** L_8 = ___parsingError; *((Object_t **)(L_8)) = (Object_t *)NULL; } IL_003f: { return; } } // System.Void System.UriParser::OnRegister(System.String,System.Int32) extern "C" void UriParser_OnRegister_m7962 (UriParser_t1456 * __this, String_t* ___schemeName, int32_t ___defaultPort, MethodInfo* method) { { return; } } // System.Void System.UriParser::set_SchemeName(System.String) extern "C" void UriParser_set_SchemeName_m7963 (UriParser_t1456 * __this, String_t* ___value, MethodInfo* method) { { String_t* L_0 = ___value; __this->___scheme_name_2 = L_0; return; } } // System.Int32 System.UriParser::get_DefaultPort() extern "C" int32_t UriParser_get_DefaultPort_m7964 (UriParser_t1456 * __this, MethodInfo* method) { { int32_t L_0 = (__this->___default_port_3); return L_0; } } // System.Void System.UriParser::set_DefaultPort(System.Int32) extern "C" void UriParser_set_DefaultPort_m7965 (UriParser_t1456 * __this, int32_t ___value, MethodInfo* method) { { int32_t L_0 = ___value; __this->___default_port_3 = L_0; return; } } // System.Void System.UriParser::CreateDefaults() extern "C" void UriParser_CreateDefaults_m7966 (Object_t * __this /* static, unused */, MethodInfo* method) { Hashtable_t1291 * V_0 = {0}; Object_t * V_1 = {0}; Exception_t154 * __last_unhandled_exception = 0; NO_UNUSED_WARNING (__last_unhandled_exception); Exception_t154 * __exception_local = 0; NO_UNUSED_WARNING (__exception_local); int32_t __leave_target = 0; NO_UNUSED_WARNING (__leave_target); { IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&UriParser_t1456_il2cpp_TypeInfo)); Hashtable_t1291 * L_0 = ((UriParser_t1456_StaticFields*)InitializedTypeInfo(&UriParser_t1456_il2cpp_TypeInfo)->static_fields)->___table_1; if (!L_0) { goto IL_000b; } } { return; } IL_000b: { IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Hashtable_t1291_il2cpp_TypeInfo)); Hashtable_t1291 * L_1 = (Hashtable_t1291 *)il2cpp_codegen_object_new (InitializedTypeInfo(&Hashtable_t1291_il2cpp_TypeInfo)); Hashtable__ctor_m8183(L_1, /*hidden argument*/&Hashtable__ctor_m8183_MethodInfo); V_0 = L_1; Hashtable_t1291 * L_2 = V_0; DefaultUriParser_t1455 * L_3 = (DefaultUriParser_t1455 *)il2cpp_codegen_object_new (InitializedTypeInfo(&DefaultUriParser_t1455_il2cpp_TypeInfo)); DefaultUriParser__ctor_m7904(L_3, /*hidden argument*/&DefaultUriParser__ctor_m7904_MethodInfo); IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)); String_t* L_4 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeFile_18; IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&UriParser_t1456_il2cpp_TypeInfo)); UriParser_InternalRegister_m7967(NULL /*static, unused*/, L_2, L_3, L_4, (-1), /*hidden argument*/&UriParser_InternalRegister_m7967_MethodInfo); Hashtable_t1291 * L_5 = V_0; DefaultUriParser_t1455 * L_6 = (DefaultUriParser_t1455 *)il2cpp_codegen_object_new (InitializedTypeInfo(&DefaultUriParser_t1455_il2cpp_TypeInfo)); DefaultUriParser__ctor_m7904(L_6, /*hidden argument*/&DefaultUriParser__ctor_m7904_MethodInfo); String_t* L_7 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeFtp_19; UriParser_InternalRegister_m7967(NULL /*static, unused*/, L_5, L_6, L_7, ((int32_t)21), /*hidden argument*/&UriParser_InternalRegister_m7967_MethodInfo); Hashtable_t1291 * L_8 = V_0; DefaultUriParser_t1455 * L_9 = (DefaultUriParser_t1455 *)il2cpp_codegen_object_new (InitializedTypeInfo(&DefaultUriParser_t1455_il2cpp_TypeInfo)); DefaultUriParser__ctor_m7904(L_9, /*hidden argument*/&DefaultUriParser__ctor_m7904_MethodInfo); String_t* L_10 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeGopher_20; UriParser_InternalRegister_m7967(NULL /*static, unused*/, L_8, L_9, L_10, ((int32_t)70), /*hidden argument*/&UriParser_InternalRegister_m7967_MethodInfo); Hashtable_t1291 * L_11 = V_0; DefaultUriParser_t1455 * L_12 = (DefaultUriParser_t1455 *)il2cpp_codegen_object_new (InitializedTypeInfo(&DefaultUriParser_t1455_il2cpp_TypeInfo)); DefaultUriParser__ctor_m7904(L_12, /*hidden argument*/&DefaultUriParser__ctor_m7904_MethodInfo); String_t* L_13 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeHttp_21; UriParser_InternalRegister_m7967(NULL /*static, unused*/, L_11, L_12, L_13, ((int32_t)80), /*hidden argument*/&UriParser_InternalRegister_m7967_MethodInfo); Hashtable_t1291 * L_14 = V_0; DefaultUriParser_t1455 * L_15 = (DefaultUriParser_t1455 *)il2cpp_codegen_object_new (InitializedTypeInfo(&DefaultUriParser_t1455_il2cpp_TypeInfo)); DefaultUriParser__ctor_m7904(L_15, /*hidden argument*/&DefaultUriParser__ctor_m7904_MethodInfo); String_t* L_16 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeHttps_22; UriParser_InternalRegister_m7967(NULL /*static, unused*/, L_14, L_15, L_16, ((int32_t)443), /*hidden argument*/&UriParser_InternalRegister_m7967_MethodInfo); Hashtable_t1291 * L_17 = V_0; DefaultUriParser_t1455 * L_18 = (DefaultUriParser_t1455 *)il2cpp_codegen_object_new (InitializedTypeInfo(&DefaultUriParser_t1455_il2cpp_TypeInfo)); DefaultUriParser__ctor_m7904(L_18, /*hidden argument*/&DefaultUriParser__ctor_m7904_MethodInfo); String_t* L_19 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeMailto_23; UriParser_InternalRegister_m7967(NULL /*static, unused*/, L_17, L_18, L_19, ((int32_t)25), /*hidden argument*/&UriParser_InternalRegister_m7967_MethodInfo); Hashtable_t1291 * L_20 = V_0; DefaultUriParser_t1455 * L_21 = (DefaultUriParser_t1455 *)il2cpp_codegen_object_new (InitializedTypeInfo(&DefaultUriParser_t1455_il2cpp_TypeInfo)); DefaultUriParser__ctor_m7904(L_21, /*hidden argument*/&DefaultUriParser__ctor_m7904_MethodInfo); String_t* L_22 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeNetPipe_26; UriParser_InternalRegister_m7967(NULL /*static, unused*/, L_20, L_21, L_22, (-1), /*hidden argument*/&UriParser_InternalRegister_m7967_MethodInfo); Hashtable_t1291 * L_23 = V_0; DefaultUriParser_t1455 * L_24 = (DefaultUriParser_t1455 *)il2cpp_codegen_object_new (InitializedTypeInfo(&DefaultUriParser_t1455_il2cpp_TypeInfo)); DefaultUriParser__ctor_m7904(L_24, /*hidden argument*/&DefaultUriParser__ctor_m7904_MethodInfo); String_t* L_25 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeNetTcp_27; UriParser_InternalRegister_m7967(NULL /*static, unused*/, L_23, L_24, L_25, (-1), /*hidden argument*/&UriParser_InternalRegister_m7967_MethodInfo); Hashtable_t1291 * L_26 = V_0; DefaultUriParser_t1455 * L_27 = (DefaultUriParser_t1455 *)il2cpp_codegen_object_new (InitializedTypeInfo(&DefaultUriParser_t1455_il2cpp_TypeInfo)); DefaultUriParser__ctor_m7904(L_27, /*hidden argument*/&DefaultUriParser__ctor_m7904_MethodInfo); String_t* L_28 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeNews_24; UriParser_InternalRegister_m7967(NULL /*static, unused*/, L_26, L_27, L_28, ((int32_t)119), /*hidden argument*/&UriParser_InternalRegister_m7967_MethodInfo); Hashtable_t1291 * L_29 = V_0; DefaultUriParser_t1455 * L_30 = (DefaultUriParser_t1455 *)il2cpp_codegen_object_new (InitializedTypeInfo(&DefaultUriParser_t1455_il2cpp_TypeInfo)); DefaultUriParser__ctor_m7904(L_30, /*hidden argument*/&DefaultUriParser__ctor_m7904_MethodInfo); String_t* L_31 = ((Uri_t1318_StaticFields*)InitializedTypeInfo(&Uri_t1318_il2cpp_TypeInfo)->static_fields)->___UriSchemeNntp_25; UriParser_InternalRegister_m7967(NULL /*static, unused*/, L_29, L_30, L_31, ((int32_t)119), /*hidden argument*/&UriParser_InternalRegister_m7967_MethodInfo); Hashtable_t1291 * L_32 = V_0; DefaultUriParser_t1455 * L_33 = (DefaultUriParser_t1455 *)il2cpp_codegen_object_new (InitializedTypeInfo(&DefaultUriParser_t1455_il2cpp_TypeInfo)); DefaultUriParser__ctor_m7904(L_33, /*hidden argument*/&DefaultUriParser__ctor_m7904_MethodInfo); UriParser_InternalRegister_m7967(NULL /*static, unused*/, L_32, L_33, (String_t*) &_stringLiteral931, ((int32_t)389), /*hidden argument*/&UriParser_InternalRegister_m7967_MethodInfo); Object_t * L_34 = ((UriParser_t1456_StaticFields*)InitializedTypeInfo(&UriParser_t1456_il2cpp_TypeInfo)->static_fields)->___lock_object_0; V_1 = L_34; Object_t * L_35 = V_1; Monitor_Enter_m4664(NULL /*static, unused*/, L_35, /*hidden argument*/&Monitor_Enter_m4664_MethodInfo); } IL_00e6: try { // begin try (depth: 1) { IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&UriParser_t1456_il2cpp_TypeInfo)); Hashtable_t1291 * L_36 = ((UriParser_t1456_StaticFields*)InitializedTypeInfo(&UriParser_t1456_il2cpp_TypeInfo)->static_fields)->___table_1; if (L_36) { goto IL_00fb; } } IL_00f0: { Hashtable_t1291 * L_37 = V_0; IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&UriParser_t1456_il2cpp_TypeInfo)); ((UriParser_t1456_StaticFields*)InitializedTypeInfo(&UriParser_t1456_il2cpp_TypeInfo)->static_fields)->___table_1 = L_37; goto IL_00fd; } IL_00fb: { V_0 = (Hashtable_t1291 *)NULL; } IL_00fd: { IL2CPP_LEAVE(0x109, FINALLY_0102); } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { __last_unhandled_exception = (Exception_t154 *)e.ex; goto FINALLY_0102; } FINALLY_0102: { // begin finally (depth: 1) Object_t * L_38 = V_1; Monitor_Exit_m4665(NULL /*static, unused*/, L_38, /*hidden argument*/&Monitor_Exit_m4665_MethodInfo); IL2CPP_END_FINALLY(258) } // end finally (depth: 1) IL2CPP_CLEANUP(258) { IL2CPP_JUMP_TBL(0x109, IL_0109) IL2CPP_RETHROW_IF_UNHANDLED(Exception_t154 *) } IL_0109: { return; } } // System.Void System.UriParser::InternalRegister(System.Collections.Hashtable,System.UriParser,System.String,System.Int32) extern "C" void UriParser_InternalRegister_m7967 (Object_t * __this /* static, unused */, Hashtable_t1291 * ___table, UriParser_t1456 * ___uriParser, String_t* ___schemeName, int32_t ___defaultPort, MethodInfo* method) { DefaultUriParser_t1455 * V_0 = {0}; { UriParser_t1456 * L_0 = ___uriParser; String_t* L_1 = ___schemeName; NullCheck(L_0); UriParser_set_SchemeName_m7963(L_0, L_1, /*hidden argument*/&UriParser_set_SchemeName_m7963_MethodInfo); UriParser_t1456 * L_2 = ___uriParser; int32_t L_3 = ___defaultPort; NullCheck(L_2); UriParser_set_DefaultPort_m7965(L_2, L_3, /*hidden argument*/&UriParser_set_DefaultPort_m7965_MethodInfo); UriParser_t1456 * L_4 = ___uriParser; if (!((GenericUriParser_t1457 *)IsInst(L_4, InitializedTypeInfo(&GenericUriParser_t1457_il2cpp_TypeInfo)))) { goto IL_0026; } } { Hashtable_t1291 * L_5 = ___table; String_t* L_6 = ___schemeName; UriParser_t1456 * L_7 = ___uriParser; NullCheck(L_5); VirtActionInvoker2< Object_t *, Object_t * >::Invoke(&Hashtable_Add_m8007_MethodInfo, L_5, L_6, L_7); goto IL_0042; } IL_0026: { DefaultUriParser_t1455 * L_8 = (DefaultUriParser_t1455 *)il2cpp_codegen_object_new (InitializedTypeInfo(&DefaultUriParser_t1455_il2cpp_TypeInfo)); DefaultUriParser__ctor_m7904(L_8, /*hidden argument*/&DefaultUriParser__ctor_m7904_MethodInfo); V_0 = L_8; DefaultUriParser_t1455 * L_9 = V_0; String_t* L_10 = ___schemeName; NullCheck(L_9); UriParser_set_SchemeName_m7963(L_9, L_10, /*hidden argument*/&UriParser_set_SchemeName_m7963_MethodInfo); DefaultUriParser_t1455 * L_11 = V_0; int32_t L_12 = ___defaultPort; NullCheck(L_11); UriParser_set_DefaultPort_m7965(L_11, L_12, /*hidden argument*/&UriParser_set_DefaultPort_m7965_MethodInfo); Hashtable_t1291 * L_13 = ___table; String_t* L_14 = ___schemeName; DefaultUriParser_t1455 * L_15 = V_0; NullCheck(L_13); VirtActionInvoker2< Object_t *, Object_t * >::Invoke(&Hashtable_Add_m8007_MethodInfo, L_13, L_14, L_15); } IL_0042: { UriParser_t1456 * L_16 = ___uriParser; String_t* L_17 = ___schemeName; int32_t L_18 = ___defaultPort; NullCheck(L_16); VirtActionInvoker2< String_t*, int32_t >::Invoke(&UriParser_OnRegister_m7962_MethodInfo, L_16, L_17, L_18); return; } } // System.UriParser System.UriParser::GetParser(System.String) extern "C" UriParser_t1456 * UriParser_GetParser_m7968 (Object_t * __this /* static, unused */, String_t* ___schemeName, MethodInfo* method) { String_t* V_0 = {0}; { String_t* L_0 = ___schemeName; if (L_0) { goto IL_0008; } } { return (UriParser_t1456 *)NULL; } IL_0008: { IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&UriParser_t1456_il2cpp_TypeInfo)); UriParser_CreateDefaults_m7966(NULL /*static, unused*/, /*hidden argument*/&UriParser_CreateDefaults_m7966_MethodInfo); String_t* L_1 = ___schemeName; IL2CPP_RUNTIME_CLASS_INIT(InitializedTypeInfo(&CultureInfo_t1165_il2cpp_TypeInfo)); CultureInfo_t1165 * L_2 = CultureInfo_get_InvariantCulture_m8023(NULL /*static, unused*/, /*hidden argument*/&CultureInfo_get_InvariantCulture_m8023_MethodInfo); NullCheck(L_1); String_t* L_3 = String_ToLower_m8253(L_1, L_2, /*hidden argument*/&String_ToLower_m8253_MethodInfo); V_0 = L_3; Hashtable_t1291 * L_4 = ((UriParser_t1456_StaticFields*)InitializedTypeInfo(&UriParser_t1456_il2cpp_TypeInfo)->static_fields)->___table_1; String_t* L_5 = V_0; NullCheck(L_4); Object_t * L_6 = (Object_t *)VirtFuncInvoker1< Object_t *, Object_t * >::Invoke(&Hashtable_get_Item_m8006_MethodInfo, L_4, L_5); return ((UriParser_t1456 *)Castclass(L_6, InitializedTypeInfo(&UriParser_t1456_il2cpp_TypeInfo))); } } #ifndef _MSC_VER #else #endif extern TypeInfo UriPartial_t1464_il2cpp_TypeInfo; // System.UriPartial #include "System_System_UriPartialMethodDeclarations.h" // System.UriTypeConverter #include "System_System_UriTypeConverter.h" #ifndef _MSC_VER #else #endif extern TypeInfo UriTypeConverter_t1465_il2cpp_TypeInfo; // System.UriTypeConverter #include "System_System_UriTypeConverterMethodDeclarations.h" // System.Net.Security.RemoteCertificateValidationCallback #include "System_System_Net_Security_RemoteCertificateValidationCallba.h" #ifndef _MSC_VER #else #endif extern TypeInfo RemoteCertificateValidationCallback_t1324_il2cpp_TypeInfo; // System.Net.Security.RemoteCertificateValidationCallback #include "System_System_Net_Security_RemoteCertificateValidationCallbaMethodDeclarations.h" // System.Security.Cryptography.X509Certificates.X509Certificate #include "mscorlib_System_Security_Cryptography_X509Certificates_X509C.h" // System.Security.Cryptography.X509Certificates.X509Chain #include "System_System_Security_Cryptography_X509Certificates_X509Cha.h" // System.Net.Security.SslPolicyErrors #include "System_System_Net_Security_SslPolicyErrors.h" // System.Void System.Net.Security.RemoteCertificateValidationCallback::.ctor(System.Object,System.IntPtr) extern MethodInfo RemoteCertificateValidationCallback__ctor_m7969_MethodInfo; extern "C" void RemoteCertificateValidationCallback__ctor_m7969 (RemoteCertificateValidationCallback_t1324 * __this, Object_t * ___object, IntPtr_t ___method, MethodInfo* method) { __this->___method_ptr_0 = (methodPointerType)((MethodInfo*)___method.___m_value_0)->method; __this->___method_3 = ___method; __this->___m_target_2 = ___object; } // System.Boolean System.Net.Security.RemoteCertificateValidationCallback::Invoke(System.Object,System.Security.Cryptography.X509Certificates.X509Certificate,System.Security.Cryptography.X509Certificates.X509Chain,System.Net.Security.SslPolicyErrors) extern MethodInfo RemoteCertificateValidationCallback_Invoke_m7970_MethodInfo; extern "C" bool RemoteCertificateValidationCallback_Invoke_m7970 (RemoteCertificateValidationCallback_t1324 * __this, Object_t * ___sender, X509Certificate_t1316 * ___certificate, X509Chain_t1326 * ___chain, int32_t ___sslPolicyErrors, MethodInfo* method) { if(__this->___prev_9 != NULL) { RemoteCertificateValidationCallback_Invoke_m7970((RemoteCertificateValidationCallback_t1324 *)__this->___prev_9,___sender, ___certificate, ___chain, ___sslPolicyErrors, method); } il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found((MethodInfo*)(__this->___method_3.___m_value_0)); bool ___methodIsStatic = MethodIsStatic((MethodInfo*)(__this->___method_3.___m_value_0)); if (__this->___m_target_2 != NULL && ___methodIsStatic) { typedef bool (*FunctionPointerType) (Object_t *, Object_t * __this, Object_t * ___sender, X509Certificate_t1316 * ___certificate, X509Chain_t1326 * ___chain, int32_t ___sslPolicyErrors, MethodInfo* method); return ((FunctionPointerType)__this->___method_ptr_0)(NULL,__this->___m_target_2,___sender, ___certificate, ___chain, ___sslPolicyErrors,(MethodInfo*)(__this->___method_3.___m_value_0)); } else if (__this->___m_target_2 != NULL || ___methodIsStatic) { typedef bool (*FunctionPointerType) (Object_t * __this, Object_t * ___sender, X509Certificate_t1316 * ___certificate, X509Chain_t1326 * ___chain, int32_t ___sslPolicyErrors, MethodInfo* method); return ((FunctionPointerType)__this->___method_ptr_0)(__this->___m_target_2,___sender, ___certificate, ___chain, ___sslPolicyErrors,(MethodInfo*)(__this->___method_3.___m_value_0)); } else { typedef bool (*FunctionPointerType) (Object_t * __this, X509Certificate_t1316 * ___certificate, X509Chain_t1326 * ___chain, int32_t ___sslPolicyErrors, MethodInfo* method); return ((FunctionPointerType)__this->___method_ptr_0)(___sender, ___certificate, ___chain, ___sslPolicyErrors,(MethodInfo*)(__this->___method_3.___m_value_0)); } } extern "C" bool pinvoke_delegate_wrapper_RemoteCertificateValidationCallback_t1324(Il2CppObject* delegate, Object_t * ___sender, X509Certificate_t1316 * ___certificate, X509Chain_t1326 * ___chain, int32_t ___sslPolicyErrors) { // Marshaling of parameter '___sender' to native representation Object_t * ____sender_marshaled = { 0 }; il2cpp_codegen_raise_exception(il2cpp_codegen_get_not_supported_exception("Cannot marshal type 'System.Object'.")); } // System.IAsyncResult System.Net.Security.RemoteCertificateValidationCallback::BeginInvoke(System.Object,System.Security.Cryptography.X509Certificates.X509Certificate,System.Security.Cryptography.X509Certificates.X509Chain,System.Net.Security.SslPolicyErrors,System.AsyncCallback,System.Object) extern MethodInfo RemoteCertificateValidationCallback_BeginInvoke_m7971_MethodInfo; extern "C" Object_t * RemoteCertificateValidationCallback_BeginInvoke_m7971 (RemoteCertificateValidationCallback_t1324 * __this, Object_t * ___sender, X509Certificate_t1316 * ___certificate, X509Chain_t1326 * ___chain, int32_t ___sslPolicyErrors, AsyncCallback_t244 * ___callback, Object_t * ___object, MethodInfo* method) { void *__d_args[5] = {0}; __d_args[0] = ___sender; __d_args[1] = ___certificate; __d_args[2] = ___chain; __d_args[3] = Box(InitializedTypeInfo(&SslPolicyErrors_t1312_il2cpp_TypeInfo), &___sslPolicyErrors); return (Object_t *)il2cpp_delegate_begin_invoke((Il2CppDelegate*)__this, __d_args, (Il2CppDelegate*)___callback, (Il2CppObject*)___object); } // System.Boolean System.Net.Security.RemoteCertificateValidationCallback::EndInvoke(System.IAsyncResult) extern MethodInfo RemoteCertificateValidationCallback_EndInvoke_m7972_MethodInfo; extern "C" bool RemoteCertificateValidationCallback_EndInvoke_m7972 (RemoteCertificateValidationCallback_t1324 * __this, Object_t * ___result, MethodInfo* method) { Il2CppObject *__result = il2cpp_delegate_end_invoke((Il2CppAsyncResult*) ___result, 0); return *(bool*)UnBox ((Il2CppCodeGenObject*)__result); } // <PrivateImplementationDetails>/$ArrayType$128 #include "System_U3CPrivateImplementationDetailsU3E_$ArrayType$128.h" #ifndef _MSC_VER #else #endif extern TypeInfo $ArrayType$128_t1466_il2cpp_TypeInfo; // <PrivateImplementationDetails>/$ArrayType$128 #include "System_U3CPrivateImplementationDetailsU3E_$ArrayType$128MethodDeclarations.h" // Conversion methods for marshalling of: <PrivateImplementationDetails>/$ArrayType$128 void $ArrayType$128_t1466_marshal(const $ArrayType$128_t1466& unmarshaled, $ArrayType$128_t1466_marshaled& marshaled) { } void $ArrayType$128_t1466_marshal_back(const $ArrayType$128_t1466_marshaled& marshaled, $ArrayType$128_t1466& unmarshaled) { } // Conversion method for clean up from marshalling of: <PrivateImplementationDetails>/$ArrayType$128 void $ArrayType$128_t1466_marshal_cleanup($ArrayType$128_t1466_marshaled& marshaled) { } // <PrivateImplementationDetails>/$ArrayType$12 #include "System_U3CPrivateImplementationDetailsU3E_$ArrayType$12.h" #ifndef _MSC_VER #else #endif extern TypeInfo $ArrayType$12_t1467_il2cpp_TypeInfo; // <PrivateImplementationDetails>/$ArrayType$12 #include "System_U3CPrivateImplementationDetailsU3E_$ArrayType$12MethodDeclarations.h" // Conversion methods for marshalling of: <PrivateImplementationDetails>/$ArrayType$12 void $ArrayType$12_t1467_marshal(const $ArrayType$12_t1467& unmarshaled, $ArrayType$12_t1467_marshaled& marshaled) { } void $ArrayType$12_t1467_marshal_back(const $ArrayType$12_t1467_marshaled& marshaled, $ArrayType$12_t1467& unmarshaled) { } // Conversion method for clean up from marshalling of: <PrivateImplementationDetails>/$ArrayType$12 void $ArrayType$12_t1467_marshal_cleanup($ArrayType$12_t1467_marshaled& marshaled) { } // <PrivateImplementationDetails> #include "System_U3CPrivateImplementationDetailsU3E.h" #ifndef _MSC_VER #else #endif extern TypeInfo U3CPrivateImplementationDetailsU3E_t1468_il2cpp_TypeInfo; // <PrivateImplementationDetails> #include "System_U3CPrivateImplementationDetailsU3EMethodDeclarations.h" #ifdef __clang__ #pragma clang diagnostic pop #endif
ec4a8fb46125fe6fd9a8d94dd369b31e6de2a39b
78f48aad42523fb1d41341b5ab960e0f7bbf9acb
/TelaFim.h
b906d356ea60d867a63337997dec394e1b00ba40
[]
no_license
ArturEndress/AdventureGame
6ca1274172130df425ce55b3cb32ff5d40e673b9
0e44f9b7b86a9eb18f4f366c3a0627dea71f02a8
refs/heads/master
2020-04-28T12:26:01.237078
2019-03-12T18:51:09
2019-03-12T18:51:09
175,275,945
1
0
null
null
null
null
UTF-8
C++
false
false
267
h
TelaFim.h
#pragma once #include "Tela.h" class TelaFim : public Tela { public: TelaFim(); ~TelaFim(); void inicializar(stack <Tela *>* telas); void atualizar(); void desenhar(); void finalizar(); protected: stack <Tela *>* telas; Sprite fundoFim; bool ativo; };
97a321764332fc9dc8bc0eb69016cfb9a79cc089
bb6a9903e8a3067bbfd38c8293e6eadc0b01bb58
/TDP005/Squarehead for Windows/SourcecodeForWindows/source/HeadUpDisplay.cc
b35b50507a7e9f7cac7deb34d3769867b9d1464c
[]
no_license
TheNamlessGuy/Innovativ-Programmering
9814d34b67f60a1da922e01f48ddd4a4114d6cf9
1da772b28b6e49e774b980ae02493deb964b3794
refs/heads/master
2021-01-21T18:46:44.677139
2017-05-26T08:52:59
2017-05-26T08:52:59
92,082,762
0
0
null
null
null
null
UTF-8
C++
false
false
4,099
cc
HeadUpDisplay.cc
#include "../headers/HeadUpDisplay.h" #include <algorithm> #include <sstream> #include <SDL2/SDL_ttf.h> #include "../headers/Image.h" #include "../headers/Text.h" #include "../headers/Weapon.h" using namespace std; HeadUpDisplay::HeadUpDisplay(int const& x_i, int const& y_i, SDL_Renderer* const& r, TTF_Font* const& font) : x(x_i), y(y_i), weapon(new Image(0, 0, "src/images/weapons/pistol.png", r)) { Image* temp = new Image(0, 0, "src/images/powerups/armor.png", r); temp->get_hitbox().w -= 15; temp->get_hitbox().h -= 15; powerup_images.push_back(temp); temp = nullptr; temp = new Image(0, 0, "src/images/powerups/rapid.png", r); temp->get_hitbox().w -= 15; temp->get_hitbox().h -= 15; powerup_images.push_back(temp); temp = nullptr; temp = new Image(0, 0, "src/images/powerups/slow.png", r); temp->get_hitbox().w -= 15; temp->get_hitbox().h -= 15; powerup_images.push_back(temp); temp = nullptr; temp = new Image(0, 0, "src/images/powerups/penetrating.png", r); temp->get_hitbox().w -= 15; temp->get_hitbox().h -= 15; powerup_images.push_back(temp); temp = nullptr; temp = new Image(0, 0, "src/images/powerups/fast.png", r); temp->get_hitbox().w -= 15; temp->get_hitbox().h -= 15; powerup_images.push_back(temp); temp = nullptr; temp = new Image(0, 0, "src/images/powerups/slowfire.png", r); temp->get_hitbox().w -= 15; temp->get_hitbox().h -= 15; powerup_images.push_back(temp); temp = nullptr; score_text = new Text(10, 550, "Karma: 0", r, font); weapon_text = new Text(250, 550, "Weapon: ", r, font); powerups_text = new Text(450, 550, "Powerups: ", r, font); } HeadUpDisplay::~HeadUpDisplay() { for (Image* i : powerup_images) { delete i; } powerup_images.clear(); delete weapon; delete score_text; delete weapon_text; delete powerups_text; } void HeadUpDisplay::render(SDL_Renderer* const& r) const { score_text->render(r); weapon_text->render(r); powerups_text->render(r); for (unsigned int i = 0; i < current_powerups.size(); ++i) { powerup_images.at(current_powerups.at(i))->render(r, 600 + (40*i), 555); } weapon->render(r, 375, 545); } void HeadUpDisplay::add_powerup(int const& i) { current_powerups.push_back(i); if (current_powerups.size() > 5) { current_powerups.erase(current_powerups.begin()); } } bool HeadUpDisplay::remove_armor() { int armor = HeadUpDisplay::ARMOR; vector<int>::iterator iter = find(current_powerups.begin(), current_powerups.end(), armor); if (iter == current_powerups.end()) { return true; } else { current_powerups.erase(iter); return false; } } void HeadUpDisplay::change_weapon_image(int new_weapon, SDL_Renderer* const& r) { delete weapon; switch (new_weapon) { case Weapon::PISTOL: weapon = new Image(0, 0, "src/images/weapons/pistol.png", r); break; case Weapon::RIFLE: weapon = new Image(0, 0, "src/images/weapons/rifle.png", r); break; case Weapon::SHOTGUN: weapon = new Image(0, 0, "src/images/weapons/shotgun.png", r); break; case Weapon::GRENADE: weapon = new Image(0, 0, "src/images/weapons/grenade.png", r); break; default: break; } } void HeadUpDisplay::update_score(long long const& score, SDL_Renderer* const& r) { ostringstream ss; ss << "KARMA: "; ss << score; score_text->update_string(ss.str(), r); } int HeadUpDisplay::get_count(int powerup) const { return count(current_powerups.begin(), current_powerups.end(), powerup); } int HeadUpDisplay::get_armor_count() const { return get_count(HeadUpDisplay::ARMOR); } bool HeadUpDisplay::is_slow_enemies() const { return get_count(HeadUpDisplay::SLOW_ENEMIES); } bool HeadUpDisplay::is_penetrating() const { return get_count(HeadUpDisplay::PENETRATING); } bool HeadUpDisplay::is_rapidfire() const { return get_count(HeadUpDisplay::RAPIDFIRE); } bool HeadUpDisplay::is_fast_enemies() const { return get_count(HeadUpDisplay::FAST_ENEMIES); } bool HeadUpDisplay::is_slowfire() const { return get_count(HeadUpDisplay::SLOWFIRE); } void HeadUpDisplay::reset(SDL_Renderer* const& r) { current_powerups.clear(); change_weapon_image(Weapon::PISTOL, r); }
cad88560d89b12cd4be5b78466f123741ba0a078
66257fa9bf3025d4398d11d01f19e559a350ee5b
/MultiPlayer/GUI/Widgets/GameAnimListSearch.h
5d17610441a8e9ee7fd4a1fcaf53c58678bd8670
[]
no_license
Fleynaro/MultiPlayer
79a7e3e646ef23f5851d5ecc257ad0d77adc6ca1
eb4310e0c61ab7126b3e3e31b322add999cef44b
refs/heads/master
2023-06-12T16:00:53.713952
2021-05-14T14:14:15
2021-05-14T14:14:15
233,058,852
6
0
null
null
null
null
UTF-8
C++
false
false
3,602
h
GameAnimListSearch.h
#pragma once #include "Game/GameAppInfo.h" #include "SDK/World/Ped/Ped.h" #include "Template/CategoryListSearchWithPageNav.h" #include "ILoadContent.h" #include "TypeView.h" namespace GUI::Widget { class GameAnimListSearch : public Template::CategoryListSearchWithPageNav, public ILoadContentThreaded { LoadedContent<json>* m_animList; bool m_animListReleased = false; public: GameAnimListSearch() { m_clickTextToCopy = new Events::EventUI( EVENT_METHOD_PASS(clickTextToCopy) ); m_clickTextToCopy->setCanBeRemoved(false); getMainContainer().text("Loading..."); m_animList = new LoadedContent<json>; m_animList->load(&loadAnimList); getPageNav()->setItemCountOnPage(300); } ~GameAnimListSearch() { if (!m_animListReleased) m_animList->markAsNoLongerNeeded(); } static void loadAnimList(LoadedContent<json>* animList) { JSON_Res res("SDK_ANIMS", GameAppInfo::GetInstancePtr()->getDLL()); res.load(); if (!res.isLoaded()) { animList->markAsLoaded(); animList->markAsNoLongerNeeded(); return; } animList->setData( res.getData() ); animList->markAsLoaded(); } void loadingCheckUpdate() override { if (m_animListReleased || !m_animList->isLoadedAndNeeded()) return; getMainContainer().removeLastItem(); addNextPageNav(); for (json::iterator dict = m_animList->getData().begin(); dict != m_animList->getData().end(); ++dict) { auto& category = beginCategory(dict.key()); buildCategory(category, dict.key(), dict.value()); } addNextPageNav(); showAll(); m_animList->markAsNoLongerNeeded(); m_animListReleased = true; } class AnimItem : public Item { public: AnimItem(const std::string& dictName, const std::string& animName) : Item(new TreeNode(animName, false)), m_dictName(dictName), m_animName(animName) {} std::string& getDictName() { return m_dictName; } std::string& getAnimName() { return m_animName; } private: std::string m_dictName; std::string m_animName; }; void buildCategory(Category& cat, const std::string& dictName, json animsInDict) { for (auto anim : animsInDict) { cat.addItem( buildAnim(dictName, anim.get<std::string>()) ); } } Item* buildAnim(const std::string& dictName, const std::string& animName) { auto item = (new AnimItem(dictName, animName)); auto container = item->getContainer<TreeNode>(); (*container) .separator() .text("Dictionary: ").sameLine(0.f) .addItem( new TypeView::TextToCopy( dictName, ColorRGBA(0xC5F5D5AA), m_clickTextToCopy ) ) .text("Animation: ").sameLine(0.f) .addItem( new TypeView::TextToCopy( animName, ColorRGBA(0x73EC99AA), m_clickTextToCopy ) ) .newLine() .addItem( new GUI::Elements::Button::ButtonStd( "Play", new Events::EventSDK( EVENT_LAMBDA(info) { auto sender = (AnimItem*)((GUI::Elements::Button::ButtonStd*)info->getSender())->getParent(); SDK::Ped(SDK::Ped::GetLocalPlayerPed()).playAnim( SDK::ANIM::NEW( sender->getDictName(), sender->getAnimName() ) .setConfig(SDK::ANIM::CFG_Standart) ); } ) ) ); item->setKeywordList({ dictName, animName }); return item; } Events::EventUI* m_clickTextToCopy = nullptr; EVENT_METHOD(clickTextToCopy, info) { auto sender = (TypeView::TextToCopy*)info->getSender(); ImGui::SetClipboardText(sender->getText().c_str()); } }; };
0d7b8a5c258622587c9ad4fd3342026caf9178f5
7c3cf28bfe6001155319ecbcbf16f4c1f0607a67
/util/mouse_event.hpp
0536a1114227ef478b54ba55acff7a53f9c1b60a
[]
no_license
gongyu-lightmatter/terminal-OS
31c18a851d2085777fa0ab77f859d07ee0c2a7b5
273e9f58e25496f76c211bcc5519ea180c041c3f
refs/heads/master
2023-08-26T22:38:46.222757
2021-11-04T22:45:12
2021-11-04T22:45:12
null
0
0
null
null
null
null
UTF-8
C++
false
false
369
hpp
mouse_event.hpp
#pragma once #include "coordinates.hpp" struct MouseEvent { public: enum Type { Click, Unclick, Drag }; MouseEvent(Coordinates coordinates, Type eventType); Coordinates getCoords() const; bool isClick() const; bool isUnclick() const; bool isDrag() const; private: Coordinates _coords; Type _type; };
9115ee54d134b154a99c25c226d85c58b7bfaf88
447ff46abd45a26e2c294e6de63365edc996596d
/C++11/Functions.hpp
38e57a32839f5c3d9b68000a178e50a5eefb94f3
[]
no_license
claudejpschmit/NumRec-Roots
6fe2fb9062a81ebee87c0dd2290ce234cd10a9ad
0b7eae839db37fb433587f870a7161a0b79a7cec
refs/heads/master
2016-09-06T06:09:25.720914
2013-11-20T13:33:24
2013-11-20T13:33:24
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,525
hpp
Functions.hpp
#pragma once #include <iostream> #include <fstream> namespace ROOTFINDER { /** \brief A scaffold class to build functions from. * * Functions to be used by Rootfinders should derive * from this and their definition as well as first * and second derivatives should be specified. * */ class Function { public: /** Virtual destructor is necessary to be able * to delete pointers to derived classes when * they go out of scope */ virtual ~Function(){} /** \brief Contains the definition of f(x), to be * overloaded by the derived classes. * \param x value for which the function is to be * evaluated. */ virtual double evaluate(double x); /** \brief Contains the definition of the first derivative * of the function. To be overloaded by the derived * classes. * \param x value for which the first derivative is to * be evaluated. */ virtual double first_derivative(double x); /** \brief Contains the definition of the second derivative * of the function. To be overloaded by the derived * classes. * \param x value for which the second derivative is to be * evaluated. */ virtual double second_derivative(double x); /** \brief Writes the values of a function to the specified * output stream over some range in a format that is * readable by plotCurve.py. * \param x_min lower bound of the range that is to be plotted. * \param x_max upper bound of the range that is to be plotted. * \param n_points number of points that are to be plotted in * the range specified. * \param output pointer to the output stream that is to contain * the data to be plotted. */ void plot_over_range(double x_min, double x_max, int n_points, std::ofstream *output); }; /// \brief First function for which the roots should be found class f1 : public Function { public: f1(); /** \brief defines f(x) = x³ - 2.1 x² - 7.4 x + 10.2 * \param x free parameter in f. */ double evaluate(double x); /** \brief defines f'(x) = 3 x² - 4.2 x - 7.4 * \param x free parameter in f'. */ double first_derivative(double x); /** \brief defines f''(x) = 6 x - 4.2 * \param x free parameter in f''. */ double second_derivative(double x); }; /// \brief Second function for which the roots should be found class f2 : public Function { public: f2(); /** \brief defines f(x) = exp(x) - 2 * \param x free parameter in f. */ double evaluate(double x); /** \brief defines f'(x) = exp(x) * \param x free parameter in f'. */ double first_derivative(double x); /** \brief defines f''(x) = exp(x) * \param x free parameter in f''. */ double second_derivative(double x); }; }
2af75cae34ce42e3e005aadabd35528362a3b16f
4749b64b52965942f785b4e592392d3ab4fa3cda
/content/browser/service_worker/embedded_worker_instance_unittest.cc
be2fb59636a8ec54e5d2083ee7c9367f4bf64c98
[ "BSD-3-Clause" ]
permissive
crosswalk-project/chromium-crosswalk-efl
763f6062679727802adeef009f2fe72905ad5622
ff1451d8c66df23cdce579e4c6f0065c6cae2729
refs/heads/efl/crosswalk-10/39.0.2171.19
2023-03-23T12:34:43.905665
2014-12-23T13:44:34
2014-12-23T13:44:34
27,142,234
2
8
null
2014-12-23T06:02:24
2014-11-25T19:27:37
C++
UTF-8
C++
false
false
4,588
cc
embedded_worker_instance_unittest.cc
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/basictypes.h" #include "base/run_loop.h" #include "base/stl_util.h" #include "content/browser/service_worker/embedded_worker_instance.h" #include "content/browser/service_worker/embedded_worker_registry.h" #include "content/browser/service_worker/embedded_worker_test_helper.h" #include "content/browser/service_worker/service_worker_context_core.h" #include "content/browser/service_worker/service_worker_context_wrapper.h" #include "content/common/service_worker/embedded_worker_messages.h" #include "content/public/test/test_browser_thread_bundle.h" #include "testing/gmock/include/gmock/gmock.h" #include "testing/gtest/include/gtest/gtest.h" namespace content { static const int kRenderProcessId = 11; class EmbeddedWorkerInstanceTest : public testing::Test { protected: EmbeddedWorkerInstanceTest() : thread_bundle_(TestBrowserThreadBundle::IO_MAINLOOP) {} virtual void SetUp() OVERRIDE { helper_.reset(new EmbeddedWorkerTestHelper(kRenderProcessId)); } virtual void TearDown() OVERRIDE { helper_.reset(); } ServiceWorkerContextCore* context() { return helper_->context(); } EmbeddedWorkerRegistry* embedded_worker_registry() { DCHECK(context()); return context()->embedded_worker_registry(); } IPC::TestSink* ipc_sink() { return helper_->ipc_sink(); } TestBrowserThreadBundle thread_bundle_; scoped_ptr<EmbeddedWorkerTestHelper> helper_; private: DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerInstanceTest); }; static void SaveStatusAndCall(ServiceWorkerStatusCode* out, const base::Closure& callback, ServiceWorkerStatusCode status) { *out = status; callback.Run(); } TEST_F(EmbeddedWorkerInstanceTest, StartAndStop) { scoped_ptr<EmbeddedWorkerInstance> worker = embedded_worker_registry()->CreateWorker(); EXPECT_EQ(EmbeddedWorkerInstance::STOPPED, worker->status()); const int64 service_worker_version_id = 55L; const GURL pattern("http://example.com/"); const GURL url("http://example.com/worker.js"); // Simulate adding one process to the pattern. helper_->SimulateAddProcessToPattern(pattern, kRenderProcessId); // Start should succeed. ServiceWorkerStatusCode status; base::RunLoop run_loop; worker->Start( service_worker_version_id, pattern, url, false, base::Bind(&SaveStatusAndCall, &status, run_loop.QuitClosure())); run_loop.Run(); EXPECT_EQ(SERVICE_WORKER_OK, status); EXPECT_EQ(EmbeddedWorkerInstance::STARTING, worker->status()); base::RunLoop().RunUntilIdle(); // Worker started message should be notified (by EmbeddedWorkerTestHelper). EXPECT_EQ(EmbeddedWorkerInstance::RUNNING, worker->status()); EXPECT_EQ(kRenderProcessId, worker->process_id()); // Stop the worker. EXPECT_EQ(SERVICE_WORKER_OK, worker->Stop()); EXPECT_EQ(EmbeddedWorkerInstance::STOPPING, worker->status()); base::RunLoop().RunUntilIdle(); // Worker stopped message should be notified (by EmbeddedWorkerTestHelper). EXPECT_EQ(EmbeddedWorkerInstance::STOPPED, worker->status()); // Verify that we've sent two messages to start and terminate the worker. ASSERT_TRUE(ipc_sink()->GetUniqueMessageMatching( EmbeddedWorkerMsg_StartWorker::ID)); ASSERT_TRUE(ipc_sink()->GetUniqueMessageMatching( EmbeddedWorkerMsg_StopWorker::ID)); } TEST_F(EmbeddedWorkerInstanceTest, InstanceDestroyedBeforeStartFinishes) { scoped_ptr<EmbeddedWorkerInstance> worker = embedded_worker_registry()->CreateWorker(); EXPECT_EQ(EmbeddedWorkerInstance::STOPPED, worker->status()); const int64 service_worker_version_id = 55L; const GURL pattern("http://example.com/"); const GURL url("http://example.com/worker.js"); ServiceWorkerStatusCode status; base::RunLoop run_loop; // Begin starting the worker. context()->process_manager()->AddProcessReferenceToPattern( pattern, kRenderProcessId); worker->Start( service_worker_version_id, pattern, url, false, base::Bind(&SaveStatusAndCall, &status, run_loop.QuitClosure())); // But destroy it before it gets a chance to complete. worker.reset(); run_loop.Run(); EXPECT_EQ(SERVICE_WORKER_ERROR_ABORT, status); // Verify that we didn't send the message to start the worker. ASSERT_FALSE( ipc_sink()->GetUniqueMessageMatching(EmbeddedWorkerMsg_StartWorker::ID)); } } // namespace content
dee28f02b28bf87ef75013b5c0aac6722acd0cee
4ec26ae2924f7bacd366022dc892cdafe4dac30f
/wxaionexp/GatheringLog.h
06a9e796f65d71fa1948eff76acb60aad7d7783d
[ "MIT" ]
permissive
SixShoot/aiongrindmeter
92b55548486c3f5a2e458fd203d9fd6e541fc31b
c1c53590abffe966f05d3bcc8658e5f751e5965d
refs/heads/master
2023-03-17T17:25:52.843406
2016-06-24T22:39:34
2016-06-24T22:39:34
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,184
h
GatheringLog.h
#include <string> #include <sstream> #include <vector> #include <ctime> using namespace std; struct GatheringRecord{ string name; //int nameHash; int successes; int failures; int cancellations; }; struct GatherLevelUps{ int level; int numGathers; }; class GatheringLog{ public: vector<GatheringRecord> gatheringRecord; vector<GatheringRecord> craftingRecord; vector<GatherLevelUps> gatherLevelUps; vector<GatherLevelUps> craftLevelUps; int numGatheringSuccesses; int numGatheringFailures; int numGatheringCancellations; int numCraftingSuccesses; int numCraftingFailures; int numCraftingCancellations; int numCraftingProcs; int numGatheredSinceLevelUp; int numCraftedSinceLevelUp; int lastNumGatheredToLevelUp; int lastNumCraftedToLevelUp; int gatheringLvl; int craftingLvl; string lastItemGathered; string procBaseItem; bool isLevelCapped; bool currentlyCrafting; bool isInventoryFull; GatheringLog(); void gather(string line); void gatherSuccess(); void gatherFailure(string line); void gatherCancel(); void craft(string line); void craftSuccess(); void craftFailure(string line); void craftCancel(); void craftProcFailure(); void clearCraftingStatus(); void inventoryFull(); float getGatherSuccessRate(); float getGatherFailureRate(); float getGatherCancellationRate(); float getCraftSuccessRate(); float getCraftFailureRate(); float getCraftCancellationRate(); float getCraftProcRate(); void gainGatherExp(); void gainCraftExp(); void gatherLevelUp(string line); void craftLevelUp(string line); float estimatedGatherExpBar; // this value is between 0 and 1 float estimatedCraftExpBar; // this value is between 0 and 1 //int estimateNumGathersToNextLevel; //int estimateNumCraftsToNextLevel; void skillLevelTooLow(string line); void levelCapped(); float getNumGatheredPerHour(); float getNumCraftedPerHour(); float getNumGatherLvlsPerHour(); float getNumCraftLvlsPerHour(); void start(); void reset(); void tickCleanUp(); private: float startTime; bool gatheringListHasItem(string name); bool craftingListHasItem(string name); void calculateNextLevelRequirementEstimates(); };
2b190308eec77fb1ad0099e51e8210076cd3bcf4
184c82bf9fc0c45deb654ea028d432a0459827cf
/Alpha/Source/Joker.cpp
bac2b62ff225524dd6e89b405ecf095065143b66
[]
no_license
ElIgnis/AGdev
220b59c6134122b3bcdc5c5e9f9cb280d8176166
de83f1a19b3d19bdc5341c1ba36766d8d220fa6b
refs/heads/master
2021-01-10T17:07:31.374615
2016-02-11T13:08:01
2016-02-11T13:08:01
47,868,478
0
0
null
null
null
null
UTF-8
C++
false
false
7,287
cpp
Joker.cpp
#include "Joker.h" CJoker::CJoker() { } CJoker::~CJoker() { } void CJoker::Init(Vector3 currentPos, Vector3 currentDir, Mesh* playerMesh) { jokerNode = new SceneNode(); GO3D_Object = new GameObject3D(); jokerNode->SetGameObject(GO3D_Object); jokerNode->setActive(true); jokerNode->GetGameObject()->setPosition(currentPos); jokerNode->GetGameObject()->setMesh(playerMesh); jokerNode->GetGameObject()->setName("Joker"); jokerNode->GetGameObject()->setUpdate(true); jokerNode->GetGameObject()->setRender(true); jokerNode->GetGameObject()->setCollidable(true); Pistol = new Weapon(); } //Dir void CJoker::SetDirection(Vector3 newDirection) { this->direction = newDirection; } void CJoker::SetDirection_X(float newDir_X) { this->direction.x = newDir_X; } void CJoker::SetDirection_Y(float newDir_Y) { this->direction.y = newDir_Y; } void CJoker::SetDirection_Z(float newDir_Z) { this->direction.z = newDir_Z; } Vector3 CJoker::GetDirection(void) { return direction; } //Angle float CJoker::GetAngle(void) { return angle; } void CJoker::SetAngle(float newAngle) { this->angle = newAngle; } //Physics void CJoker::SetGravity(float newGravity) { this->gravity = newGravity; } float CJoker::GetGravity(void) { return gravity; } void CJoker::SetJumpSpeed(float newJSpeed) { this->jumpSpeed = newJSpeed; } float CJoker::GetJumpSpeed(void) { return jumpSpeed; } void CJoker::SetMoveSpeed(float newMSpeed) { this->moveSpeed = newMSpeed; } float CJoker::GetMoveSpeed(void) { return moveSpeed; } void CJoker::SetMoveSpeedMult(float newMSpeedMult) { this->moveSpeed_Mult = newMSpeedMult; } float CJoker::GetMoveSpeedMult(void) { return moveSpeed_Mult; } bool CJoker::GetIsMoving(void) { return moving; } void CJoker::SetIsMoving(bool moving) { this->moving = moving; } bool CJoker::GetInAir(void) { return inAir; } SceneNode* CJoker::GetNode(void) { return jokerNode; } void CJoker::RotateLimb(string nodeName, float angle, float rotateSpeed, bool playOnce, double dt, float axisX, float axisY, float axisZ) { //Left hand joint if (nodeName == "LeftHand_Joint") { this->GetNode()->GetChildNode(nodeName)->GetGameObject()->setRotation( LeftHand.Animate(this->GetNode()->GetChildNode(nodeName)->GetGameObject()->getRotateAngle(), angle, rotateSpeed, dt, playOnce), axisX, axisY, axisZ); } if (nodeName == "RightHand_Joint") { this->GetNode()->GetChildNode(nodeName)->GetGameObject()->setRotation( RightHand.Animate(this->GetNode()->GetChildNode(nodeName)->GetGameObject()->getRotateAngle(), angle, rotateSpeed, dt, playOnce), axisX, axisY, axisZ); } if (nodeName == "LeftLeg_Joint") { this->GetNode()->GetChildNode(nodeName)->GetGameObject()->setRotation( LeftLeg.Animate(this->GetNode()->GetChildNode(nodeName)->GetGameObject()->getRotateAngle(), angle, rotateSpeed, dt, playOnce), axisX, axisY, axisZ); } if (nodeName == "RightLeg_Joint") { this->GetNode()->GetChildNode(nodeName)->GetGameObject()->setRotation( RightLeg.Animate(this->GetNode()->GetChildNode(nodeName)->GetGameObject()->getRotateAngle(), angle, rotateSpeed, dt, playOnce), axisX, axisY, axisZ); } } void CJoker::RevertLimb(bool aimMode, double dt) { if (aimMode) { RotateLimb("LeftHand_Joint", 0, 100, false, dt, 1, 0, 0); RotateLimb("LeftLeg_Joint", 0, 100, false, dt, 1, 0, 0); RotateLimb("RightLeg_Joint", 0, 100, false, dt, 1, 0, 0); } else { RotateLimb("LeftHand_Joint", 0, 100, false, dt, 1, 0, 0); RotateLimb("RightHand_Joint", 0, 100, false, dt, 1, 0, 0); RotateLimb("LeftLeg_Joint", 0, 100, false, dt, 1, 0, 0); RotateLimb("RightLeg_Joint", 0, 100, false, dt, 1, 0, 0); } } //Update void CJoker::Update(double dt, float CamAngle) { //jokerNode->GetChildNode("Head")->SetWorldPosition(jokerNode->GetGameObject()->getPosition() + jokerNode->GetChildNode("Head")->GetGameObject()->getPosition()); } void CJoker::UpdateMovement(bool aimMode, double dt) { //Update animation RotateLimb("LeftHand_Joint", 35, 100, false, dt, 1, 0, 0); RotateLimb("RightHand_Joint", -35, 100, false, dt, 1, 0, 0); RotateLimb("LeftLeg_Joint", -35, 100, false, dt, 1, 0, 0); RotateLimb("RightLeg_Joint", 35, 100, false, dt, 1, 0, 0); moving = true; force.x = moveSpeed * moveSpeed_Mult; force.z = moveSpeed * moveSpeed_Mult; orientation = Math::DegreeToRadian(angle); direction.x = sinf(orientation); direction.z = cosf(orientation); Vector3 acceleration = force * (1.f / mass); //Used for collision response for all gameobjects this->GetNode()->GetGameObject()->setVelocity(Vector3(sinf(orientation) * acceleration.x, 0, cosf(orientation) * acceleration.z)); jokerNode->GetGameObject()->addPosition(this->GetNode()->GetGameObject()->getVelocity() * (float)dt); jokerNode->GetChildNode("Head")->SetWorldPosition(jokerNode->GetGameObject()->getPosition() + jokerNode->GetChildNode("Head")->GetGameObject()->getPosition()); jokerNode->GetChildNode("LeftHand_Joint")->SetWorldPosition(jokerNode->GetGameObject()->getPosition() + jokerNode->GetChildNode("LeftHand_Joint")->GetGameObject()->getPosition()); jokerNode->GetChildNode("LeftHand_Joint")->GetChildNode("LeftHand")->SetWorldPosition(jokerNode->GetGameObject()->getPosition() + jokerNode->GetChildNode("LeftHand_Joint")->GetChildNode("LeftHand")->GetGameObject()->getPosition()); jokerNode->GetChildNode("RightHand_Joint")->SetWorldPosition(jokerNode->GetGameObject()->getPosition() + jokerNode->GetChildNode("RightHand_Joint")->GetGameObject()->getPosition()); jokerNode->GetChildNode("RightHand_Joint")->GetChildNode("RightHand")->SetWorldPosition(jokerNode->GetGameObject()->getPosition() + jokerNode->GetChildNode("RightHand_Joint")->GetChildNode("RightHand")->GetGameObject()->getPosition()); jokerNode->GetChildNode("RightHand_Joint")->GetChildNode("RightHand")->GetChildNode("Weapon")->SetWorldPosition(jokerNode->GetGameObject()->getPosition() + jokerNode->GetChildNode("RightHand_Joint")->GetChildNode("RightHand")->GetChildNode("Weapon")->GetGameObject()->getPosition()); jokerNode->GetChildNode("LeftLeg_Joint")->SetWorldPosition(jokerNode->GetGameObject()->getPosition() + jokerNode->GetChildNode("LeftLeg_Joint")->GetGameObject()->getPosition()); jokerNode->GetChildNode("LeftLeg_Joint")->GetChildNode("LeftLeg")->SetWorldPosition(jokerNode->GetGameObject()->getPosition() + jokerNode->GetChildNode("LeftLeg_Joint")->GetChildNode("LeftLeg")->GetGameObject()->getPosition()); jokerNode->GetChildNode("RightLeg_Joint")->SetWorldPosition(jokerNode->GetGameObject()->getPosition() + jokerNode->GetChildNode("RightLeg_Joint")->GetGameObject()->getPosition()); jokerNode->GetChildNode("RightLeg_Joint")->GetChildNode("RightLeg")->SetWorldPosition(jokerNode->GetGameObject()->getPosition() + jokerNode->GetChildNode("RightLeg_Joint")->GetChildNode("RightLeg")->GetGameObject()->getPosition()); } void CJoker::UpdateAngle(float dt) { orientation = Math::DegreeToRadian(angle); direction.x = sinf(orientation); direction.z = cosf(orientation); } //Game related void CJoker::SetHealth(int newHealth) { this->health = newHealth; } void CJoker::SetLives(int newLives) { this->lives = newLives; } int CJoker::GetHealth(void) { return health; } int CJoker::GetLives(void) { return lives; } Weapon* CJoker::GetWeapon(void) { return Pistol; }
1b3b875f9cda95bc3faa0b8e0b495f05d8360915
e3b67db8b0ea9af2ba890dc4e119ff22876a2232
/extensions/mqtt/processors/PublishMQTT.h
ed4e8aa9013849f10535fd60566025a0f48410cd
[ "MPL-2.0", "Apache-2.0", "BSD-3-Clause", "curl", "OpenSSL", "libtiff", "bzip2-1.0.6", "MIT", "LicenseRef-scancode-public-domain-disclaimer", "MIT-0", "Beerware", "Zlib", "NCSA", "ISC", "CC0-1.0", "LicenseRef-scancode-object-form-exception-to-mit", "BSL-1.0", "LicenseRef-scancode-pu...
permissive
apache/nifi-minifi-cpp
90919e880bf7ac1ce51b8ad0f173cc4e3aded7fe
9b55dc0c0f17a190f3e9ade87070a28faf542c25
refs/heads/main
2023-08-29T22:29:02.420503
2023-08-25T17:21:53
2023-08-25T17:21:53
56,750,161
131
114
Apache-2.0
2023-09-14T05:53:30
2016-04-21T07:00:06
C++
UTF-8
C++
false
false
8,239
h
PublishMQTT.h
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #pragma once #include <limits> #include <memory> #include <string> #include <unordered_map> #include <utility> #include <vector> #include "FlowFileRecord.h" #include "RelationshipDefinition.h" #include "core/Processor.h" #include "RelationshipDefinition.h" #include "core/ProcessSession.h" #include "core/PropertyDefinitionBuilder.h" #include "core/Core.h" #include "core/Property.h" #include "core/logging/LoggerConfiguration.h" #include "AbstractMQTTProcessor.h" #include "utils/ArrayUtils.h" #include "utils/gsl.h" namespace org::apache::nifi::minifi::processors { class PublishMQTT : public processors::AbstractMQTTProcessor { public: explicit PublishMQTT(std::string name, const utils::Identifier& uuid = {}) : processors::AbstractMQTTProcessor(std::move(name), uuid, std::make_shared<PublishMQTTMetrics>(*this, in_flight_message_counter_)) { } EXTENSIONAPI static constexpr const char* Description = "PublishMQTT serializes FlowFile content as an MQTT payload, sending the message to the configured topic and broker."; EXTENSIONAPI static constexpr auto Topic = core::PropertyDefinitionBuilder<>::createProperty("Topic") .withDescription("The topic to publish to.") .isRequired(true) .supportsExpressionLanguage(true) .build(); EXTENSIONAPI static constexpr auto Retain = core::PropertyDefinitionBuilder<>::createProperty("Retain") .withDescription("Retain published message in broker") .withPropertyType(core::StandardPropertyTypes::BOOLEAN_TYPE) .withDefaultValue("false") .build(); EXTENSIONAPI static constexpr auto MessageExpiryInterval = core::PropertyDefinitionBuilder<>::createProperty("Message Expiry Interval") .withDescription("Time while message is valid and will be forwarded by broker. MQTT 5.x only.") .withPropertyType(core::StandardPropertyTypes::TIME_PERIOD_TYPE) .build(); EXTENSIONAPI static constexpr auto ContentType = core::PropertyDefinitionBuilder<>::createProperty("Content Type") .withDescription("Content type of the message. MQTT 5.x only.") .supportsExpressionLanguage(true) .build(); EXTENSIONAPI static constexpr auto Properties = utils::array_cat(AbstractMQTTProcessor::BasicProperties, std::array<core::PropertyReference, 4>{ Topic, Retain, MessageExpiryInterval, ContentType }, AbstractMQTTProcessor::AdvancedProperties); EXTENSIONAPI static constexpr auto Success = core::RelationshipDefinition{"success", "FlowFiles that are sent successfully to the destination are transferred to this relationship"}; EXTENSIONAPI static constexpr auto Failure = core::RelationshipDefinition{"failure", "FlowFiles that failed to be sent to the destination are transferred to this relationship"}; EXTENSIONAPI static constexpr auto Relationships = std::array{Success, Failure}; EXTENSIONAPI static constexpr bool SupportsDynamicProperties = false; EXTENSIONAPI static constexpr bool SupportsDynamicRelationships = false; EXTENSIONAPI static constexpr core::annotation::Input InputRequirement = core::annotation::Input::INPUT_REQUIRED; EXTENSIONAPI static constexpr bool IsSingleThreaded = false; ADD_COMMON_VIRTUAL_FUNCTIONS_FOR_PROCESSORS void readProperties(const std::shared_ptr<core::ProcessContext>& context) override; void onTriggerImpl(const std::shared_ptr<core::ProcessContext>& context, const std::shared_ptr<core::ProcessSession>& session) override; void initialize() override; private: /** * Counts unacknowledged QoS 1 and QoS 2 messages to respect broker's Receive Maximum */ class InFlightMessageCounter { public: void setEnabled(bool status) { enabled_ = status; } void setMax(uint16_t new_limit); void increase(); void decrease(); uint16_t getCounter() const; private: bool enabled_ = false; mutable std::mutex mutex_; std::condition_variable cv_; uint16_t counter_{0}; uint16_t limit_{MQTT_MAX_RECEIVE_MAXIMUM}; }; class PublishMQTTMetrics : public core::ProcessorMetrics { public: PublishMQTTMetrics(const core::Processor& source_processor, const InFlightMessageCounter& in_flight_message_counter); std::vector<state::response::SerializedResponseNode> serialize() override; std::vector<state::PublishedMetric> calculateMetrics() override; private: gsl::not_null<const InFlightMessageCounter*> in_flight_message_counter_; }; // MQTT static async callbacks, calling their notify with context being pointer to a packaged_task to notify() static void sendSuccess(void* context, MQTTAsync_successData* response); static void sendSuccess5(void* context, MQTTAsync_successData5* response); static void sendFailure(void* context, MQTTAsync_failureData* response); static void sendFailure5(void* context, MQTTAsync_failureData5* response); /** * Resolves topic from expression language */ std::string getTopic(const std::shared_ptr<core::ProcessContext>& context, const std::shared_ptr<core::FlowFile>& flow_file) const; /** * Resolves content type from expression language */ std::string getContentType(const std::shared_ptr<core::ProcessContext>& context, const std::shared_ptr<core::FlowFile>& flow_file) const; /** * Sends an MQTT message asynchronously * @param buffer contents of the message * @param topic topic of the message * @param content_type Content Type for MQTT 5 * @param flow_file Flow File being processed * @return success of message sending */ bool sendMessage(const std::vector<std::byte>& buffer, const std::string& topic, const std::string& content_type, const std::shared_ptr<core::FlowFile>& flow_file); /** * Callback for asynchronous message sending * @param success if message sending was successful * @param response_code response code for failure only * @param reason_code MQTT 5 reason code * @return if message sending was successful */ bool notify(bool success, std::optional<int> response_code, std::optional<MQTTReasonCodes> reason_code); /** * Set MQTT 5-exclusive properties * @param message message object * @param content_type content type * @param flow_file Flow File being processed */ void setMqtt5Properties(MQTTAsync_message& message, const std::string& content_type, const std::shared_ptr<core::FlowFile>& flow_file) const; /** * Adds flow file attributes as user properties to an MQTT 5 message * @param message message object * @param flow_file Flow File being processed */ static void addAttributesAsUserProperties(MQTTAsync_message& message, const std::shared_ptr<core::FlowFile>& flow_file); bool getCleanSession() const override { return true; } bool getCleanStart() const override { return true; } std::chrono::seconds getSessionExpiryInterval() const override { // non-persistent session as we only publish return std::chrono::seconds{0}; } void startupClient() override { // there is no need to do anything like subscribe in the beginning } void checkProperties() override; void checkBrokerLimitsImpl() override; bool retain_ = false; std::optional<std::chrono::seconds> message_expiry_interval_; InFlightMessageCounter in_flight_message_counter_; std::shared_ptr<core::logging::Logger> logger_ = core::logging::LoggerFactory<PublishMQTT>::getLogger(uuid_); }; } // namespace org::apache::nifi::minifi::processors
b03ad5132cc6fb2090fde0b46acc8fd6dc835ff7
ac3281345cb13c00e0150b4cfde5a6fffa3d0e0b
/src/Magnum/Platform/WindowlessCglApplication.cpp
ead7e0be5c65fe1685a993a393422281b17af037
[ "MIT" ]
permissive
mosra/magnum
dc2fc08d634dceaf454c0b8190d2ebd530bb8fa9
c9a2752545aa2aa8b7db4879834d3998c6cac655
refs/heads/master
2023-09-03T21:02:39.001932
2023-09-03T13:49:25
2023-09-03T16:07:04
1,182,756
4,747
535
NOASSERTION
2023-07-23T07:36:34
2010-12-19T22:19:59
C++
UTF-8
C++
false
false
5,771
cpp
WindowlessCglApplication.cpp
/* This file is part of Magnum. Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Vladimír Vondruš <mosra@centrum.cz> Copyright © 2013 <https://github.com/ArEnSc> Copyright © 2014 Travis Watkins <https://github.com/amaranth> Copyright © 2021 Konstantinos Chatzilygeroudis <costashatz@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include "WindowlessCglApplication.h" #include <Corrade/Utility/Assert.h> #include <Corrade/Utility/Debug.h> #include "Magnum/GL/Version.h" namespace Magnum { namespace Platform { WindowlessCglContext::WindowlessCglContext(const Configuration& configuration, GLContext*) { int formatCount; CGLPixelFormatAttribute attributes32[] = { kCGLPFAAccelerated, kCGLPFAOpenGLProfile, CGLPixelFormatAttribute(kCGLOGLPVersion_3_2_Core), CGLPixelFormatAttribute(0) }; if(CGLChoosePixelFormat(attributes32, &_pixelFormat, &formatCount) != kCGLNoError) { Warning() << "Platform::WindowlessCglContext: cannot choose pixel format for GL 3.2, falling back to 3.0"; CGLPixelFormatAttribute attributes30[] = { kCGLPFAAccelerated, kCGLPFAOpenGLProfile, CGLPixelFormatAttribute(kCGLOGLPVersion_GL3_Core), CGLPixelFormatAttribute(0) }; if(CGLChoosePixelFormat(attributes30, &_pixelFormat, &formatCount) != kCGLNoError) { Warning() << "Platform::WindowlessCglContext: cannot choose pixel format for GL 3.0, falling back to 2.1"; CGLPixelFormatAttribute attributes21[] = { kCGLPFAAccelerated, kCGLPFAOpenGLProfile, CGLPixelFormatAttribute(kCGLOGLPVersion_Legacy), CGLPixelFormatAttribute(0) }; if(CGLChoosePixelFormat(attributes21, &_pixelFormat, &formatCount) != kCGLNoError) { Error() << "Platform::WindowlessCglContext: cannot choose pixel format"; return; } } } if(CGLCreateContext(_pixelFormat, configuration.sharedContext(), &_context) != kCGLNoError) Error() << "Platform::WindowlessCglContext: cannot create context"; } WindowlessCglContext::WindowlessCglContext(WindowlessCglContext&& other) noexcept: _pixelFormat{other._pixelFormat}, _context{other._context} { other._pixelFormat = {}; other._context = {}; } WindowlessCglContext::~WindowlessCglContext() { if(_context) CGLDestroyContext(_context); if(_pixelFormat) CGLDestroyPixelFormat(_pixelFormat); } WindowlessCglContext& WindowlessCglContext::operator=(WindowlessCglContext&& other) noexcept { using std::swap; swap(other._pixelFormat, _pixelFormat); swap(other._context, _context); return *this; } bool WindowlessCglContext::makeCurrent() { if(CGLSetCurrentContext(_context) == kCGLNoError) return true; Error() << "Platform::WindowlessCglContext::makeCurrent(): cannot make context current"; return false; } bool WindowlessCglContext::release() { if(CGLSetCurrentContext(0) == kCGLNoError) return true; Error() << "Platform::WindowlessCglContext::release(): cannot release current context"; return false; } WindowlessCglContext::Configuration::Configuration() { GL::Context::Configuration::addFlags(GL::Context::Configuration::Flag::Windowless); } #ifndef DOXYGEN_GENERATING_OUTPUT WindowlessCglApplication::WindowlessCglApplication(const Arguments& arguments): WindowlessCglApplication{arguments, Configuration{}} {} #endif WindowlessCglApplication::WindowlessCglApplication(const Arguments& arguments, const Configuration& configuration): WindowlessCglApplication{arguments, NoCreate} { createContext(configuration); } WindowlessCglApplication::WindowlessCglApplication(const Arguments& arguments, NoCreateT): _glContext{NoCreate}, _context{NoCreate, arguments.argc, arguments.argv} {} WindowlessCglApplication::~WindowlessCglApplication() = default; void WindowlessCglApplication::createContext() { createContext({}); } void WindowlessCglApplication::createContext(const Configuration& configuration) { if(!tryCreateContext(configuration)) std::exit(1); } bool WindowlessCglApplication::tryCreateContext(const Configuration& configuration) { CORRADE_ASSERT(_context.version() == GL::Version::None, "Platform::WindowlessCglApplication::tryCreateContext(): context already created", false); WindowlessCglContext glContext{configuration, &_context}; if(!glContext.isCreated() || !glContext.makeCurrent() || !_context.tryCreate(configuration)) return false; _glContext = std::move(glContext); return true; } }}
2114c7450d3a7ad12bc52b112f420f27411ab59d
4ad08515fd48bf90d95666c0a7cb5045013882a4
/pract_SI/Pract. 03/Startup_tasks - Solutions/task1_solution1.cpp
988d53cd54073bde13657ff98407239d66115186
[]
no_license
petya8/Introduction_to_programming_FMI
2f9e01d54a90ab9b198d8d533633f4ee91de33bc
bf2b3c1b31b22fc3d035c2e116d0c6a471629ba1
refs/heads/main
2023-08-29T08:35:53.701033
2021-11-05T11:36:01
2021-11-05T11:36:01
425,670,154
0
0
null
2021-11-08T02:12:27
2021-11-08T02:12:27
null
UTF-8
C++
false
false
816
cpp
task1_solution1.cpp
#include <iostream> using namespace std; int main() { int n, initialSum; cin >> n; initialSum = n; int Hundred_Dollar_Bill = 0; int Fifty_Dollar_Bill = 0; int Twenty_Dollar_Bill = 0; int Ten_Dollar_Bill = 0; int Five_Dollar_Bill = 0; int Two_Dollar_Bill = 0; int One_Dollar_Bill = 0; Hundred_Dollar_Bill = n / 100; n %= 100; Fifty_Dollar_Bill = n / 50; n %= 50; Twenty_Dollar_Bill = n / 20; n %= 20; Ten_Dollar_Bill = n / 10; n %= 10; Five_Dollar_Bill = n / 5; n %= 5; Two_Dollar_Bill = n / 2; n %= 2; One_Dollar_Bill = n; cout << initialSum << " = " << Hundred_Dollar_Bill << "*100 + " << Fifty_Dollar_Bill << "*50 + " << Twenty_Dollar_Bill << "*20 + " << Ten_Dollar_Bill << "*10 + " << Five_Dollar_Bill << "*5 + " << Two_Dollar_Bill << "*2 + " << One_Dollar_Bill << "*1" << endl; }
176f3bbdc93bf2c8c126e9702dbb9589ad11415a
b022fdec418f392696e130f351232b6dec00f03f
/RustyBonesEngine/Meta/meta.generated.h
089984eff82fb902fa7b77e43a33e84dd5a68277
[]
no_license
matt2405warner/RustyBones
b75031010a11c8319a25e110038d09a33578e48f
54f4c3b80051b2945ebb4468cd2e0e453b434a84
refs/heads/master
2020-03-26T09:44:02.063883
2018-08-14T21:53:02
2018-08-14T21:53:02
144,762,147
0
0
null
null
null
null
UTF-8
C++
false
false
4,407
h
meta.generated.h
#pragma once #include <string> //#include "GuidGenerator.hpp" #include "Test\GraphicsComponent.hpp" #include "Test\MovementComponent.hpp" #include "Test\Test.hpp" namespace rusty { // Construct MetaData info for GraphicsComponent template <> MetaClass* construct_type<GraphicsComponent>() { static_assert(std::is_base_of_v<Object, GraphicsComponent>, "Cannot construct meta info for GraphicsComponent if it does not derive from Object"); auto generated = new MetaClass( 0, std::string("GraphicsComponent"), sizeof(GraphicsComponent), []() -> Object* { return static_cast<Object*>(new GraphicsComponent()); }, [](unsigned char* address) -> Object* { return static_cast<Object*>(new (address) GraphicsComponent()); }, [](Object* obj) { auto cls = reinterpret_cast<GraphicsComponent*>(obj); cls->~GraphicsComponent(); } ); // Generate class members /* generated->add_member("shader_name", OffsetOf(&GraphicsComponent::shader_name)); // Generate class functions */ MetaDB::instance().add_type(generated); return generated; } // Get meta data info for GraphicsComponent. // if nullptr then construct meta info for GraphicsComponent. template <> MetaClass* get_type<GraphicsComponent>() { static_assert(std::is_base_of_v<Object, GraphicsComponent>, "Cannot get meta info for GraphicsComponent if it does not derive from Object"); auto generated = MetaDB::instance().get_meta("GraphicsComponent"); if (generated != nullptr) return generated; generated = construct_type<GraphicsComponent>(); return generated; } // Construct MetaData info for MovementComponent template <> MetaClass* construct_type<MovementComponent>() { static_assert(std::is_base_of_v<Object, MovementComponent>, "Cannot construct meta info for MovementComponent if it does not derive from Object"); auto generated = new MetaClass( 1, std::string("MovementComponent"), sizeof(MovementComponent), []() -> Object* { return static_cast<Object*>(new MovementComponent()); }, [](unsigned char* address) -> Object* { return static_cast<Object*>(new (address) MovementComponent()); }, [](Object* obj) { auto cls = reinterpret_cast<MovementComponent*>(obj); cls->~MovementComponent(); } ); // Generate class members /* generated->add_member("x", OffsetOf(&MovementComponent::x)); generated->add_member("y", OffsetOf(&MovementComponent::y)); generated->add_member("z", OffsetOf(&MovementComponent::z)); generated->add_member("speed", OffsetOf(&MovementComponent::speed)); // Generate class functions */ MetaDB::instance().add_type(generated); return generated; } // Get meta data info for MovementComponent. // if nullptr then construct meta info for MovementComponent. template <> MetaClass* get_type<MovementComponent>() { static_assert(std::is_base_of_v<Object, MovementComponent>, "Cannot get meta info for MovementComponent if it does not derive from Object"); auto generated = MetaDB::instance().get_meta("MovementComponent"); if (generated != nullptr) return generated; generated = construct_type<MovementComponent>(); return generated; } // Construct MetaData info for Test template <> MetaClass* construct_type<Test>() { static_assert(std::is_base_of_v<Object, Test>, "Cannot construct meta info for Test if it does not derive from Object"); auto generated = new MetaClass( 2, std::string("Test"), sizeof(Test), []() -> Object* { return static_cast<Object*>(new Test()); }, [](unsigned char* address) -> Object* { return static_cast<Object*>(new (address) Test()); }, [](Object* obj) { auto cls = reinterpret_cast<Test*>(obj); cls->~Test(); } ); // Generate class members /* // Generate class functions */ MetaDB::instance().add_type(generated); return generated; } // Get meta data info for Test. // if nullptr then construct meta info for Test. template <> MetaClass* get_type<Test>() { static_assert(std::is_base_of_v<Object, Test>, "Cannot get meta info for Test if it does not derive from Object"); auto generated = MetaDB::instance().get_meta("Test"); if (generated != nullptr) return generated; generated = construct_type<Test>(); return generated; } static void InitMeta() { auto init_1 = construct_type<GraphicsComponent>(); auto init_2 = construct_type<MovementComponent>(); auto init_3 = construct_type<Test>(); } }
914b2efbabd73917dbe61df54a12c9a2a6036d83
2b1b459706bbac83dad951426927b5798e1786fc
/src/graphics/display/lib/designware/test/hdmi-dw-test.cc
c538ed63ab523a68f9db7c67d570eb3729711b60
[ "BSD-2-Clause" ]
permissive
gnoliyil/fuchsia
bc205e4b77417acd4513fd35d7f83abd3f43eb8d
bc81409a0527580432923c30fbbb44aba677b57d
refs/heads/main
2022-12-12T11:53:01.714113
2022-01-08T17:01:14
2022-12-08T01:29:53
445,866,010
4
3
BSD-2-Clause
2022-10-11T05:44:30
2022-01-08T16:09:33
C++
UTF-8
C++
false
false
15,666
cc
hdmi-dw-test.cc
// Copyright 2021 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <lib/ddk/debug.h> #include <lib/hdmi-dw/hdmi-dw.h> #include <fbl/array.h> #include <mock-mmio-reg/mock-mmio-reg.h> namespace hdmi_dw { namespace { constexpr size_t kRegSize = 0x00010000 / sizeof(uint8_t); // in 32 bits chunks. } // namespace using fuchsia_hardware_hdmi::wire::ColorDepth; using fuchsia_hardware_hdmi::wire::ColorFormat; using fuchsia_hardware_hdmi::wire::ColorParam; using fuchsia_hardware_hdmi::wire::StandardDisplayMode; class FakeHdmiIpBase : public HdmiIpBase { public: explicit FakeHdmiIpBase(fdf::MmioBuffer mmio) : HdmiIpBase(), mmio_(std::move(mmio)) {} void WriteIpReg(uint32_t addr, uint32_t data) { mmio_.Write8(data, addr); } uint32_t ReadIpReg(uint32_t addr) { return mmio_.Read8(addr); } private: fdf::MmioBuffer mmio_; }; class FakeHdmiDw : public HdmiDw { public: static std::unique_ptr<FakeHdmiDw> Create(fdf::MmioBuffer mmio) { fbl::AllocChecker ac; auto device = fbl::make_unique_checked<FakeHdmiDw>(&ac, std::move(mmio)); if (!ac.check()) { zxlogf(ERROR, "%s: device object alloc failed", __func__); return nullptr; } return device; } explicit FakeHdmiDw(fdf::MmioBuffer mmio) : HdmiDw(&base_), base_(std::move(mmio)) {} private: FakeHdmiIpBase base_; }; class HdmiDwTest : public zxtest::Test { public: void SetUp() override { fbl::AllocChecker ac; regs_ = fbl::Array(new (&ac) ddk_mock::MockMmioReg[kRegSize], kRegSize); if (!ac.check()) { zxlogf(ERROR, "%s: regs_ alloc failed", __func__); return; } mock_mmio_ = fbl::make_unique_checked<ddk_mock::MockMmioRegRegion>(&ac, regs_.get(), sizeof(uint32_t), kRegSize); if (!ac.check()) { zxlogf(ERROR, "%s: regs_ alloc failed", __func__); return; } hdmi_dw_ = FakeHdmiDw::Create(fdf::MmioBuffer(mock_mmio_->GetMmioBuffer())); ASSERT_NOT_NULL(hdmi_dw_); } void TearDown() override { mock_mmio_->VerifyAll(); } void ExpectScdcWrite(uint8_t addr, uint8_t val) { (*mock_mmio_)[0x7E00].ExpectWrite(0x54); // HDMITX_DWC_I2CM_SLAVE (*mock_mmio_)[0x7E01].ExpectWrite(addr); // HDMITX_DWC_I2CM_ADDR (*mock_mmio_)[0x7E02].ExpectWrite(val); // HDMITX_DWC_I2CM_DATAO (*mock_mmio_)[0x7E04].ExpectWrite(0x10); // HDMITX_DWC_I2CM_OPERATION } void ExpectScdcRead(uint8_t addr, uint8_t val) { (*mock_mmio_)[0x7E00].ExpectWrite(0x54); // HDMITX_DWC_I2CM_SLAVE (*mock_mmio_)[0x7E01].ExpectWrite(addr); // HDMITX_DWC_I2CM_ADDR (*mock_mmio_)[0x7E04].ExpectWrite(0x01); // HDMITX_DWC_I2CM_OPERATION (*mock_mmio_)[0x7E03].ExpectRead(val); // HDMITX_DWC_I2CM_DATAI } protected: std::unique_ptr<FakeHdmiDw> hdmi_dw_; // Mmio Regs and Regions fbl::Array<ddk_mock::MockMmioReg> regs_; std::unique_ptr<ddk_mock::MockMmioRegRegion> mock_mmio_; }; TEST_F(HdmiDwTest, InitHwTest) { (*mock_mmio_)[0x4006].ExpectWrite(0xff); // HDMITX_DWC_MC_LOCKONCLOCK (*mock_mmio_)[0x4001].ExpectWrite(0x00); // HDMITX_DWC_MC_CLKDIS (*mock_mmio_)[0x7E05].ExpectWrite(0x00); // HDMITX_DWC_I2CM_INT (*mock_mmio_)[0x7E06].ExpectWrite(0x00); // HDMITX_DWC_I2CM_CTLINT (*mock_mmio_)[0x7E07].ExpectWrite(0x00); // HDMITX_DWC_I2CM_DIV (*mock_mmio_)[0x7E0B].ExpectWrite(0x00); // HDMITX_DWC_I2CM_SS_SCL_HCNT_1 (*mock_mmio_)[0x7E0C].ExpectWrite(0xcf); // HDMITX_DWC_I2CM_SS_SCL_HCNT_0 (*mock_mmio_)[0x7E0D].ExpectWrite(0x00); // HDMITX_DWC_I2CM_SS_SCL_LCNT_1 (*mock_mmio_)[0x7E0E].ExpectWrite(0xff); // HDMITX_DWC_I2CM_SS_SCL_LCNT_0 (*mock_mmio_)[0x7E0F].ExpectWrite(0x00); // HDMITX_DWC_I2CM_FS_SCL_HCNT_1 (*mock_mmio_)[0x7E10].ExpectWrite(0x0f); // HDMITX_DWC_I2CM_FS_SCL_HCNT_0 (*mock_mmio_)[0x7E11].ExpectWrite(0x00); // HDMITX_DWC_I2CM_FS_SCL_LCNT_1 (*mock_mmio_)[0x7E12].ExpectWrite(0x20); // HDMITX_DWC_I2CM_FS_SCL_LCNT_0 (*mock_mmio_)[0x7E13].ExpectWrite(0x08); // HDMITX_DWC_I2CM_SDA_HOLD (*mock_mmio_)[0x7E14].ExpectWrite(0x00); // HDMITX_DWC_I2CM_SCDC_UPDATE hdmi_dw_->InitHw(); } TEST_F(HdmiDwTest, EdidTransferTest) { uint8_t in_data[] = {1, 2}; uint8_t out_data[16] = {0}; i2c_impl_op_t op_list[]{ { .address = 0x30, .data_buffer = &in_data[0], .data_size = 1, .is_read = false, .stop = false, }, { .address = 0x50, .data_buffer = &in_data[1], .data_size = 1, .is_read = false, .stop = false, }, { .address = 0x50, .data_buffer = &out_data[0], .data_size = 16, .is_read = true, .stop = true, }, }; (*mock_mmio_)[0x7E00].ExpectWrite(0x50); // HDMITX_DWC_I2CM_SLAVE (*mock_mmio_)[0x7E08].ExpectWrite(0x30); // HDMITX_DWC_I2CM_SEGADDR (*mock_mmio_)[0x7E0A].ExpectWrite(1); // HDMITX_DWC_I2CM_SEGPTR (*mock_mmio_)[0x7E01].ExpectWrite(2); // HDMITX_DWC_I2CM_ADDRESS (*mock_mmio_)[0x7E04].ExpectWrite(1 << 2); // HDMITX_DWC_I2CM_OPERATION (*mock_mmio_)[0x0105].ExpectRead(0x00).ExpectRead(0xff); // HDMITX_DWC_IH_I2CM_STAT0 (*mock_mmio_)[0x0105].ExpectWrite(0x02); // HDMITX_DWC_IH_I2CM_STAT0 (*mock_mmio_)[0x7E20].ExpectRead(8); // HDMITX_DWC_I2CM_READ_BUFF0 (*mock_mmio_)[0x7E21].ExpectRead(7); // HDMITX_DWC_I2CM_READ_BUFF1 (*mock_mmio_)[0x7E22].ExpectRead(6); // HDMITX_DWC_I2CM_READ_BUFF2 (*mock_mmio_)[0x7E23].ExpectRead(5); // HDMITX_DWC_I2CM_READ_BUFF3 (*mock_mmio_)[0x7E24].ExpectRead(4); // HDMITX_DWC_I2CM_READ_BUFF4 (*mock_mmio_)[0x7E25].ExpectRead(3); // HDMITX_DWC_I2CM_READ_BUFF5 (*mock_mmio_)[0x7E26].ExpectRead(2); // HDMITX_DWC_I2CM_READ_BUFF6 (*mock_mmio_)[0x7E27].ExpectRead(1); // HDMITX_DWC_I2CM_READ_BUFF7 (*mock_mmio_)[0x7E01].ExpectWrite(10); // HDMITX_DWC_I2CM_ADDRESS (*mock_mmio_)[0x7E04].ExpectWrite(1 << 2); // HDMITX_DWC_I2CM_OPERATION (*mock_mmio_)[0x0105].ExpectRead(0xff); // HDMITX_DWC_IH_I2CM_STAT0 (*mock_mmio_)[0x0105].ExpectWrite(0x02); // HDMITX_DWC_IH_I2CM_STAT0 (*mock_mmio_)[0x7E20].ExpectRead(1); // HDMITX_DWC_I2CM_READ_BUFF0 (*mock_mmio_)[0x7E21].ExpectRead(2); // HDMITX_DWC_I2CM_READ_BUFF1 (*mock_mmio_)[0x7E22].ExpectRead(3); // HDMITX_DWC_I2CM_READ_BUFF2 (*mock_mmio_)[0x7E23].ExpectRead(4); // HDMITX_DWC_I2CM_READ_BUFF3 (*mock_mmio_)[0x7E24].ExpectRead(5); // HDMITX_DWC_I2CM_READ_BUFF4 (*mock_mmio_)[0x7E25].ExpectRead(6); // HDMITX_DWC_I2CM_READ_BUFF5 (*mock_mmio_)[0x7E26].ExpectRead(7); // HDMITX_DWC_I2CM_READ_BUFF6 (*mock_mmio_)[0x7E27].ExpectRead(8); // HDMITX_DWC_I2CM_READ_BUFF7 hdmi_dw_->EdidTransfer(op_list, sizeof(op_list) / sizeof(op_list[0])); uint8_t expected_out[] = {8, 7, 6, 5, 4, 3, 2, 1, 1, 2, 3, 4, 5, 6, 7, 8}; for (uint32_t i = 0; i < 16; i++) { EXPECT_EQ(out_data[i], expected_out[i]); } } TEST_F(HdmiDwTest, ConfigHdmitxTest) { fidl::Arena allocator; StandardDisplayMode standard_display_mode{ .pixel_clock_10khz = 30, .h_addressable = 24, .h_front_porch = 15, .h_sync_pulse = 50, .h_blanking = 93, .v_addressable = 75, .v_front_porch = 104, .v_sync_pulse = 49, .v_blanking = 83, .flags = 0, }; ColorParam color{ .input_color_format = ColorFormat::kCfRgb, .output_color_format = ColorFormat::kCf444, .color_depth = ColorDepth::kCd30B, }; DisplayMode mode(allocator); mode.set_mode(allocator, standard_display_mode); mode.set_color(color); hdmi_param_tx p{ .vic = 9, .aspect_ratio = 0, .colorimetry = 1, .is4K = false, }; (*mock_mmio_)[0x0200].ExpectWrite(0x03); // HDMITX_DWC_TX_INVID0 (*mock_mmio_)[0x0201].ExpectWrite(0x00); // HDMITX_DWC_TX_INSTUFFING (*mock_mmio_)[0x0202].ExpectWrite(0x00); // HDMITX_DWC_TX_GYDATA0 (*mock_mmio_)[0x0203].ExpectWrite(0x00); // HDMITX_DWC_TX_GYDATA1 (*mock_mmio_)[0x0204].ExpectWrite(0x00); // HDMITX_DWC_TX_RCRDATA0 (*mock_mmio_)[0x0205].ExpectWrite(0x00); // HDMITX_DWC_TX_RCRDATA1 (*mock_mmio_)[0x0206].ExpectWrite(0x00); // HDMITX_DWC_TX_BCBDATA0 (*mock_mmio_)[0x0207].ExpectWrite(0x00); // HDMITX_DWC_TX_BCBDATA1 // ConfigCsc (*mock_mmio_)[0x4004].ExpectWrite(0x01); // HDMITX_DWC_MC_FLOWCTRL (*mock_mmio_)[0x4100].ExpectWrite(0x00); // HDMITX_DWC_CSC_CFG (*mock_mmio_)[0x4102].ExpectWrite(0x25); // HDMITX_DWC_CSC_COEF_A1_MSB (*mock_mmio_)[0x4103].ExpectWrite(0x91); // HDMITX_DWC_CSC_COEF_A1_LSB (*mock_mmio_)[0x4104].ExpectWrite(0x13); // HDMITX_DWC_CSC_COEF_A2_MSB (*mock_mmio_)[0x4105].ExpectWrite(0x23); // HDMITX_DWC_CSC_COEF_A2_LSB (*mock_mmio_)[0x4106].ExpectWrite(0x07); // HDMITX_DWC_CSC_COEF_A3_MSB (*mock_mmio_)[0x4107].ExpectWrite(0x4c); // HDMITX_DWC_CSC_COEF_A3_LSB (*mock_mmio_)[0x4108].ExpectWrite(0x00); // HDMITX_DWC_CSC_COEF_A4_MSB (*mock_mmio_)[0x4109].ExpectWrite(0x00); // HDMITX_DWC_CSC_COEF_A4_LSB (*mock_mmio_)[0x410A].ExpectWrite(0xe5); // HDMITX_DWC_CSC_COEF_B1_MSB (*mock_mmio_)[0x410B].ExpectWrite(0x34); // HDMITX_DWC_CSC_COEF_B1_LSB (*mock_mmio_)[0x410C].ExpectWrite(0x20); // HDMITX_DWC_CSC_COEF_B2_MSB (*mock_mmio_)[0x410D].ExpectWrite(0x00); // HDMITX_DWC_CSC_COEF_B2_LSB (*mock_mmio_)[0x410E].ExpectWrite(0xfa); // HDMITX_DWC_CSC_COEF_B3_MSB (*mock_mmio_)[0x410F].ExpectWrite(0xcc); // HDMITX_DWC_CSC_COEF_B3_LSB (*mock_mmio_)[0x4110].ExpectWrite(0x08); // HDMITX_DWC_CSC_COEF_B4_MSB (*mock_mmio_)[0x4111].ExpectWrite(0x00); // HDMITX_DWC_CSC_COEF_B4_LSB (*mock_mmio_)[0x4112].ExpectWrite(0xea); // HDMITX_DWC_CSC_COEF_C1_MSB (*mock_mmio_)[0x4113].ExpectWrite(0xcd); // HDMITX_DWC_CSC_COEF_C1_LSB (*mock_mmio_)[0x4114].ExpectWrite(0xf5); // HDMITX_DWC_CSC_COEF_C2_MSB (*mock_mmio_)[0x4115].ExpectWrite(0x33); // HDMITX_DWC_CSC_COEF_C2_LSB (*mock_mmio_)[0x4116].ExpectWrite(0x20); // HDMITX_DWC_CSC_COEF_C3_MSB (*mock_mmio_)[0x4117].ExpectWrite(0x00); // HDMITX_DWC_CSC_COEF_C3_LSB (*mock_mmio_)[0x4118].ExpectWrite(0x08); // HDMITX_DWC_CSC_COEF_C4_MSB (*mock_mmio_)[0x4119].ExpectWrite(0x00); // HDMITX_DWC_CSC_COEF_C4_LSB (*mock_mmio_)[0x4101].ExpectWrite(0x50); // HDMITX_DWC_CSC_COEF_C4_LSB // ConfigCsc end (*mock_mmio_)[0x0801].ExpectWrite(0x00); // HDMITX_DWC_VP_PR_CD (*mock_mmio_)[0x0802].ExpectWrite(0x00); // HDMITX_DWC_VP_STUFF (*mock_mmio_)[0x0803].ExpectWrite(0x00); // HDMITX_DWC_VP_REMAP (*mock_mmio_)[0x0804].ExpectWrite(0x46); // HDMITX_DWC_VP_CONF (*mock_mmio_)[0x0807].ExpectWrite(0xff); // HDMITX_DWC_VP_MASK (*mock_mmio_)[0x1000].ExpectWrite(0xf8); // HDMITX_DWC_FC_INVIDCONF (*mock_mmio_)[0x1001].ExpectWrite(24); // HDMITX_DWC_FC_INHACTV0 (*mock_mmio_)[0x1002].ExpectWrite(0); // HDMITX_DWC_FC_INHACTV1 (*mock_mmio_)[0x1003].ExpectWrite(93); // HDMITX_DWC_FC_INHBLANK0 (*mock_mmio_)[0x1004].ExpectWrite(0); // HDMITX_DWC_FC_INHBLANK1 (*mock_mmio_)[0x1005].ExpectWrite(75); // HDMITX_DWC_FC_INVACTV0 (*mock_mmio_)[0x1006].ExpectWrite(0); // HDMITX_DWC_FC_INVACTV1 (*mock_mmio_)[0x1007].ExpectWrite(83); // HDMITX_DWC_FC_INVBLANK (*mock_mmio_)[0x1008].ExpectWrite(15); // HDMITX_DWC_FC_HSYNCINDELAY0 (*mock_mmio_)[0x1009].ExpectWrite(0); // HDMITX_DWC_FC_HSYNCINDELAY1 (*mock_mmio_)[0x100A].ExpectWrite(50); // HDMITX_DWC_FC_HSYNCINWIDTH0 (*mock_mmio_)[0x100B].ExpectWrite(0); // HDMITX_DWC_FC_HSYNCINWIDTH1 (*mock_mmio_)[0x100C].ExpectWrite(104); // HDMITX_DWC_FC_VSYNCINDELAY (*mock_mmio_)[0x100D].ExpectWrite(49); // HDMITX_DWC_FC_VSYNCINWIDTH (*mock_mmio_)[0x1011].ExpectWrite(12); // HDMITX_DWC_FC_CTRLDUR (*mock_mmio_)[0x1012].ExpectWrite(32); // HDMITX_DWC_FC_EXCTRLDUR (*mock_mmio_)[0x1013].ExpectWrite(1); // HDMITX_DWC_FC_EXCTRLSPAC (*mock_mmio_)[0x1018].ExpectWrite(1); // HDMITX_DWC_FC_GCP (*mock_mmio_)[0x1019].ExpectWrite(0x42); // HDMITX_DWC_FC_AVICONF0 (*mock_mmio_)[0x101A].ExpectWrite(0x48); // HDMITX_DWC_FC_AVICONF1 (*mock_mmio_)[0x101B].ExpectWrite(0x0); // HDMITX_DWC_FC_AVICONF2 (*mock_mmio_)[0x1017].ExpectWrite(0x0); // HDMITX_DWC_FC_AVICONF3 (*mock_mmio_)[0x10E8].ExpectWrite(0x0); // HDMITX_DWC_FC_ACTSPC_HDLR_CFG (*mock_mmio_)[0x10E9].ExpectWrite(75); // HDMITX_DWC_FC_INVACT_2D_0 (*mock_mmio_)[0x10EA].ExpectWrite(0); // HDMITX_DWC_FC_INVACT_2D_1 (*mock_mmio_)[0x10D2].ExpectWrite(0xe7); // HDMITX_DWC_FC_MASK0 (*mock_mmio_)[0x10D6].ExpectWrite(0xfb); // HDMITX_DWC_FC_MASK1 (*mock_mmio_)[0x10DA].ExpectWrite(0x3); // HDMITX_DWC_FC_MASK2 (*mock_mmio_)[0x10E0].ExpectWrite(0x10); // HDMITX_DWC_FC_PRCONF (*mock_mmio_)[0x0100].ExpectWrite(0xff); // HDMITX_DWC_IH_FC_STAT0 (*mock_mmio_)[0x0101].ExpectWrite(0xff); // HDMITX_DWC_IH_FC_STAT1 (*mock_mmio_)[0x0102].ExpectWrite(0xff); // HDMITX_DWC_IH_FC_STAT2 (*mock_mmio_)[0x0103].ExpectWrite(0xff); // HDMITX_DWC_IH_AS_STAT0 (*mock_mmio_)[0x0104].ExpectWrite(0xff); // HDMITX_DWC_IH_PHY_STAT0 (*mock_mmio_)[0x0105].ExpectWrite(0xff); // HDMITX_DWC_IH_I2CM_STAT0 (*mock_mmio_)[0x0106].ExpectWrite(0xff); // HDMITX_DWC_IH_CEC_STAT0 (*mock_mmio_)[0x0107].ExpectWrite(0xff); // HDMITX_DWC_IH_VP_STAT0 (*mock_mmio_)[0x0108].ExpectWrite(0xff); // HDMITX_DWC_IH_I2CMPHY_STAT0 (*mock_mmio_)[0x5006].ExpectWrite(0xff); // HDMITX_DWC_A_APIINTCLR (*mock_mmio_)[0x790D].ExpectWrite(0xff); // HDMITX_DWC_HDCP22REG_STAT hdmi_dw_->ConfigHdmitx(mode, p); } TEST_F(HdmiDwTest, SetupInterruptsTest) { (*mock_mmio_)[0x0180].ExpectWrite(0xff); // HDMITX_DWC_IH_MUTE_FC_STAT0 (*mock_mmio_)[0x0181].ExpectWrite(0xff); // HDMITX_DWC_IH_MUTE_FC_STAT1 (*mock_mmio_)[0x0182].ExpectWrite(0x3); // HDMITX_DWC_IH_MUTE_FC_STAT2 (*mock_mmio_)[0x0183].ExpectWrite(0x7); // HDMITX_DWC_IH_MUTE_AS_STAT0 (*mock_mmio_)[0x0184].ExpectWrite(0x3f); // HDMITX_DWC_IH_MUTE_PHY_STAT0 (*mock_mmio_)[0x0185].ExpectWrite(1 << 1); // HDMITX_DWC_IH_MUTE_I2CM_STAT0 (*mock_mmio_)[0x0186].ExpectWrite(0x0); // HDMITX_DWC_IH_MUTE_CEC_STAT0 (*mock_mmio_)[0x0187].ExpectWrite(0xff); // HDMITX_DWC_IH_MUTE_VP_STAT0 (*mock_mmio_)[0x0188].ExpectWrite(0x03); // HDMITX_DWC_IH_MUTE_I2CMPHY_STAT0 (*mock_mmio_)[0x01FF].ExpectWrite(0x00); // HDMITX_DWC_IH_MUTE hdmi_dw_->SetupInterrupts(); } TEST_F(HdmiDwTest, ResetTest) { (*mock_mmio_)[0x4002].ExpectWrite(0x00).ExpectWrite(0x7d); // HDMITX_DWC_MC_SWRSTZREQ (*mock_mmio_)[0x100D].ExpectRead(0x41).ExpectWrite(0x41); // HDMITX_DWC_FC_VSYNCINWIDTH (*mock_mmio_)[0x4001].ExpectWrite(0x00); // HDMITX_DWC_MC_CLKDIS hdmi_dw_->Reset(); } TEST_F(HdmiDwTest, SetupScdcTest) { // is4k = true ExpectScdcRead(0x1, 0); ExpectScdcWrite(0x2, 0x1); ExpectScdcWrite(0x2, 0x1); ExpectScdcWrite(0x20, 0x3); ExpectScdcWrite(0x20, 0x3); hdmi_dw_->SetupScdc(true); // is4k = false ExpectScdcRead(0x1, 0); ExpectScdcWrite(0x2, 0x1); ExpectScdcWrite(0x2, 0x1); ExpectScdcWrite(0x20, 0x0); ExpectScdcWrite(0x20, 0x0); hdmi_dw_->SetupScdc(false); } TEST_F(HdmiDwTest, ResetFcTest) { (*mock_mmio_)[0x1000].ExpectRead(0xff).ExpectWrite(0xf7).ExpectRead(0x00).ExpectWrite( 0x08); // HDMITX_DWC_FC_INVIDCONF hdmi_dw_->ResetFc(); } TEST_F(HdmiDwTest, SetFcScramblerCtrlTest) { // is4k = true (*mock_mmio_)[0x10E1].ExpectRead(0x00).ExpectWrite(0x01); // HDMITX_DWC_FC_SCRAMBLER_CTRL hdmi_dw_->SetFcScramblerCtrl(true); // is4k = false (*mock_mmio_)[0x10E1].ExpectWrite(0x00); // HDMITX_DWC_FC_SCRAMBLER_CTRL hdmi_dw_->SetFcScramblerCtrl(false); } } // namespace hdmi_dw
fe6941284f62b0c3998aa0da0041e997ce097495
455ddd4a3c8e784f70c744c7a606b78b1bbd18b4
/maps.h
12326a3943ac05fe0b436132137423864e758233
[]
no_license
JaykumarPatel4802/c2c-embedded
0fa7d3d862328cf23641f857fa23b98d2f3b2b2a
c1b3960ffd2faf7db7cc49de1807874d500238a0
refs/heads/main
2023-05-27T06:20:52.073364
2021-06-14T15:52:01
2021-06-14T15:52:01
376,877,597
0
0
null
null
null
null
UTF-8
C++
false
false
287
h
maps.h
#ifndef MAPS_H #define MAPS_H #include <QDialog> namespace Ui { class Maps; } class Maps : public QDialog { Q_OBJECT public: explicit Maps(QWidget *parent = nullptr); ~Maps(); private slots: void on_backFM_clicked(); private: Ui::Maps *ui; }; #endif // MAPS_H
2429273ac868821519f949cca665abd5ec99f901
8b5c37c8a073e0f679f7ff3c984af1b19648f7fb
/app/include/custom_table_model.h
6b27f9ca8c5e0dcf81bed5c9b41b2e5ea598dc5c
[]
no_license
ANDR-ASCII/cstest
0941a86ed7115e96ed5618835c3aa9b7837a4ef4
bc1b28f635e88fedb4cea7f27d2d7a9c11231356
refs/heads/master
2021-01-24T02:29:50.412571
2018-03-04T19:03:53
2018-03-04T19:03:53
122,850,388
0
0
null
null
null
null
UTF-8
C++
false
false
667
h
custom_table_model.h
#pragma once namespace Test { class RowsCollection; class CustomTableModel : public QAbstractTableModel { Q_OBJECT public: CustomTableModel(const std::shared_ptr<RowsCollection>& collection, QObject* parent = nullptr); virtual int columnCount(const QModelIndex& parent = QModelIndex()) const override; virtual int rowCount(const QModelIndex& parent = QModelIndex()) const override; virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override; virtual Qt::ItemFlags flags(const QModelIndex& index) const override; private slots: void onAboutCollectionChanged(); private: std::shared_ptr<RowsCollection> m_collection; }; }
5c9ef4aad0acae5117ba3114d2ab638ed0bc773c
a8c3a937f0bd4a119ee268744fc46dbc02102883
/tetris/Game/TetrisParams.cc
0d3987ceba8a750d574074467d68be4a622c801d
[]
no_license
alexch/www.stinky.com
c1206ddba915daac40a6e6c7cb81ed292a98a7d2
ec2bbdc7c23632414540844e2ffc0dcccf0c2626
HEAD
2016-08-04T23:11:30.754826
2015-08-12T17:26:16
2015-08-12T17:26:16
7,101,205
0
0
null
null
null
null
UTF-8
C++
false
false
6,823
cc
TetrisParams.cc
/* Params parameters for tetris note that we should save these per population, but we use a single global instead */ #include "TetrisParams.h" #ifdef MACINTOSH #include "macintosh.h" #else typedef int Boolean; #define TRUE 1 #define FALSE 0 #endif // it's "C" for historical reasons // (and it's in src/tetrisprob.cc) extern "C" { extern void EnableFunction( char * func, Boolean fEnable ); }; int gParams[paramMax]; static char * szParams[] = { "board_x", "board_y", "mem_size", "mem_max", "val_min", "val_max", "num_fc", "num_validate", "mod_readboard", "drop_time", "score_piece", "score_line", "score_pixel", "score_hole", "piece_on_board", "auto_init_player", "show_mem", "game_time", "inc_drop", "rover_on_leash", "ping_pong", "smallest_fitness", "diff_fitness", "rand_start_loc", "efd_weight", "efd_threshold", "min_num_fc", "binary_tournament", "center_piece", "specialize_adf", "halt_allowed", "term_roving_sensor", "term_uniquad", "term_edges", "sensor_sees_edges", // these should move someday "fitness_queue", "catchup" }; int LookupParamName( char * sz ); void DefaultParams( void ) { gParams[param_board_x] = 16; /* x dimension of board */ gParams[param_board_y] = 16; /* y dimension of board */ gParams[param_mem_size] = 32; /* size of memory */ gParams[param_mem_max] = 32; /* contents of memory */ gParams[param_val_min] = 0; /* minimum value returned by */ /* eval */ gParams[param_val_max] = 32; /* maximum value returned by eval */ gParams[param_num_fc] = 5; /* number of fitness cases */ gParams[param_num_validate] = 0; /* number of validation trials */ // 0 => use fitness score as validation score gParams[param_mod_readboard] = 1; // 1 => readboard uses MOD math // 0 => readboard uses bounded math */ gParams[param_drop_time] = 10; /* number of time steps before dropping a piece one step */ gParams[param_score_piece] = 1; /* points per piece dropped */ gParams[param_score_line] = 10; /* points per line erased */ gParams[param_piece_on_board] = 1; // 0 => piece floats above board // 1 => piece bits are returned by board->GetBit() gParams[param_auto_init_player] = 0; // 0 => memory erased each game // 1 => memory erased each new piece gParams[param_show_mem] = 1; /* Should ShowTetris show memory */ gParams[param_game_time] = 2000; /* Clicks before game timeout */ gParams[param_inc_drop] = 1; /* Does piece fall incrementally? */ /* (or all at once) */ gParams[param_rover_on_leash] = 0; /* Does rover move with piece? */ /* DO NOT TURN ON IF inc_drop ON! */ /* because I said so */ /* Also, if you turn it on, disable functions moveup, moveleft, etc. */ /* Also, if you use BOARD, turn */ /* off! */ gParams[param_ping_pong] = 0; /* Instead of right/left moves, */ /* have move/reverse-direction. */ /* Also, bounce off walls */ gParams[param_smallest_fitness] = 0; /* Threshold under which a gen0 */ /* individual will be regenerated */ gParams[param_diff_fitness] = 0; /* Should a different game be used */ /* for each individual fitness */ /* case? */ gParams[param_rand_start_loc] = 0; /* Should init horiz piece pos be */ /* random (or center (= 0))? */ gParams[param_efd_weight] = 50; /* How much weight (%) to give curr */ /* expected fitness delta for */ /* updating overall efd */ gParams[param_efd_threshold] = 0; /* The efd under which fitness */ /* measurement halts. Default is */ /* never halt (until max num_fc) */ gParams[param_min_num_fc] = 0; /* Min num fitness cases per indiv */ gParams[param_binary_tournament] = 0; /* If non-zero, then efd disabled. */ /* This is the number of games */ /* played before half the */ /* population is "given up on", */ /* i.e. stops getting fitness cases.*/ gParams[param_center_piece] = 1; /* Piece starts in center, else */ /* left */ gParams[param_specialize_adf] = 0; // If on, level 0 has only // random-constant and adfN // for constants gParams[param_halt_allowed] = 1; // Do we give the program the // option to drop the piece // (i.e. explicit halt.) If not, // it must depend on time-out gParams[param_term_roving_sensor] = 1; /* Have 4 terminals for roving */ /* sensor */ gParams[param_term_uniquad] = 0; /* Have one terminal treating 4 */ /* sensors of rover as a binary */ /* number */ /* WARNING: INTERACT WITH MAX VAL!! */ /* CODE DOESN'T CHECK... */ gParams[param_term_edges] = 0; /* 4 terminals to flag when roving */ /* sensor is at the */ /* top/bottom/left/right */ gParams[param_score_pixel] = 1; gParams[param_score_hole] = -3; gParams[param_sensor_sees_edges] = 0; // 0 -> sensor only travels // inside board // 1 -> sensor can travel to // board edges gParams[param_fitness_queue] = 0; // if >0, make a fitness queue // of that size. NOTE: should // only use with pAlwaysEval // ALSO: interacts // with param_catchup gParams[param_catchup] = 0; // Fill fitness queue when new player // is created } int LookupParamName( char * sz ) { int i; for (i=0; i<paramMax; ++i) if (!strcasecmp(sz, szParams[i])) return i; return -1; } int ReadParam( char * name, char * val ) { int i; void * v; /* Look for a disable_function command */ if (!strcasecmp(name, "disable_function")) EnableFunction( val, FALSE ); else if (!strcasecmp(name, "enable_function")) EnableFunction( val, TRUE ); else { i = LookupParamName(name); if (i==-1) return 1; sscanf(val,"%d", &gParams[i]); if(i==param_term_uniquad) printf("SET %d %s to %d\n",i,name,gParams[param_term_uniquad]); } return 0; } /* Write parameters to stdio file */ int WriteParams( FILE * f ) { int i; for (i=0; i<paramMax; ++i) { fprintf(f, "%s = %d\n", szParams[i], gParams[i]); } return 0; } /* Write parameters to stream */ int WriteTetrisParams(ostream& str) { int i; for (i=0; i<paramMax; ++i) { str << szParams[i] << " = " << gParams[i] << endl; } return 0; } /* EOF */
ebe9afd770f5e9c8c6691ea5752493ac7802b541
972dbc49808311345d0d8c1137761df9adba179f
/src/Monsters.cpp
9936bf6df3ab29fc87d861cb00dc347da383a7b3
[]
no_license
HinaTK/MyGame
37aa6fd34450ba2d80dec5a0c3972fbab99286a5
0d8e9c0283bc5c9519b48248de7cfa49997e2821
refs/heads/master
2020-03-18T21:22:03.261540
2015-06-28T09:03:12
2015-06-28T09:03:12
null
0
0
null
null
null
null
GB18030
C++
false
false
12,614
cpp
Monsters.cpp
#include "Monsters.h" #include "luadata.h" CHero *myHero; CMonsters::CMonsters() { m_MonsterNum=2; m_MonsterRange=2; showlaser_step=2; } CMonsters::~CMonsters() { } void CMonsters::Init(int s) { LuaData lua; lua.InitLuaEnv(); //lua.SetLuaFile("Lua\\monster.lua"); if (!lua.LoadLuaFile("monster.lua")) { MessageBox(NULL,"加载数据文件出错","出错",MB_OK); exit(0); } if(s == 1) { lua.getGlobalProc("BaseMonster1Data"); } else { lua.getGlobalProc("BaseMonster2Data"); } lua_pcall(lua.GetLuaEnv(), 0, 17, 0); int Hasweapon=lua_tonumber(lua.GetLuaEnv(),-1); m_MonsterNum=lua_tonumber(lua.GetLuaEnv(),-2); m_MonsterRange=m_MonsterNum; m_LoadMonster=m_MonsterNum; int Skillcooltime=lua_tonumber(lua.GetLuaEnv(),-3); float Speed=lua_tonumber(lua.GetLuaEnv(),-4); float Scale=lua_tonumber(lua.GetLuaEnv(),-5); int Shootrange=lua_tonumber(lua.GetLuaEnv(),-6); int Chaserange=lua_tonumber(lua.GetLuaEnv(),-7); float Y=lua_tonumber(lua.GetLuaEnv(),-8); int Defense=lua_tonumber(lua.GetLuaEnv(),-9); float Angle=lua_tonumber(lua.GetLuaEnv(),-10); int Fullhp=lua_tonumber(lua.GetLuaEnv(),-11); int Hp=lua_tonumber(lua.GetLuaEnv(),-12); char *Wpmd2file=(char *)lua_tostring(lua.GetLuaEnv(),-13); char *Wptextture=(char *)lua_tostring(lua.GetLuaEnv(),-14); char *Md2file=(char *)lua_tostring(lua.GetLuaEnv(),-15); char *Textture=(char *)lua_tostring(lua.GetLuaEnv(),-16); float movedistance=lua_tonumber(lua.GetLuaEnv(),-17); srand(time(0)); float x,z; for (int i=0;i<m_MonsterNum;i++) { x=(float)(4700-(rand()%9400))/10.0f; z=(float)(4700-(rand()%9400))/10.0f; Monsters[i].BeHit=false; Monsters[i].HP=Hp; Monsters[i].m_FullHP=Fullhp; Monsters[i].IsDead=false; Monsters[i].m_angle=Angle; Monsters[i].m_MonsterCoord.x=x; Monsters[i].m_MonsterCoord.y=Y; Monsters[i].m_MonsterCoord.z=z; Monsters[i].m_MonsterDesCoord.x=Monsters[i].m_MonsterCoord.x; Monsters[i].m_MonsterDesCoord.y=Y; Monsters[i].m_MonsterDesCoord.z=Monsters[i].m_MonsterCoord.z; Monsters[i].ChaseRange=Chaserange; Monsters[i].ShootRange=Shootrange; Monsters[i].scale=Scale; Monsters[i].speed=Speed; Monsters[i].AttackDone=true; Monsters[i].IsShoot=false; Monsters[i].showlaser_step=8; Monsters[i].IsRun=true; Monsters[i].status=MODEL_IDLE; Monsters[i].HasWeapon=Hasweapon > 0 ? true : false; Monsters[i].moveDistance=movedistance; Monsters[i].SkillCoolTime=Skillcooltime; Monsters[i].md2.Load(Md2file, Textture); //Monsters[i].md2.Load("ogro\\rhino.md2", "ogro\\rhino.pcx"); if (Monsters[i].HasWeapon) { Monsters[i].m_weapon.Load(Wpmd2file, Wptextture); } } } void CMonsters::ReInit() { float x,z; m_MonsterNum=m_LoadMonster; m_MonsterRange=m_LoadMonster; srand(time(0)); for (int i=0;i<m_MonsterNum;i++) { x=(float)(4700-(rand()%9400))/10.0f; z=(float)(4700-(rand()%9400))/10.0f; Monsters[i].m_MonsterCoord.x=x; Monsters[i].m_MonsterCoord.z=z; Monsters[i].IsDead=false; Monsters[i].HP=Monsters[i].m_FullHP; } } void CMonsters::CutHP(unsigned int ID,unsigned int hp) { Monsters[ID].HP=Monsters[ID].HP-hp; } int CMonsters::GetHP(unsigned int ID) { return Monsters[ID].HP; } void CMonsters::ChaseHero(int id,float x,float z) { //tempX、tempZ为英雄与怪物之间相距坐标 float tempX,tempZ; int i=id; // for(int i=0;i<=m_MonsterRange;i++) // { // if (Monsters[i].IsDead) // { // continue; // } tempX= x - Monsters[i].m_MonsterCoord.x; tempZ= z - Monsters[i].m_MonsterCoord.z; if (fabs(tempX) < Monsters[i].ChaseRange && fabs(tempZ) < Monsters[i].ChaseRange)//当英雄在视野之内,去追击 { //MessageBox(NULL,"sdf","sdf",MB_OK); /************************************************************************/ /* 怪物转向,当正在发射激光炮的时候不改变怪物的方向 */ /************************************************************************/ if (!Monsters[i].IsShoot) { if (tempX < 0) { if (tempZ < 0) { Monsters[i].m_angle=90.0-atan(fabs(tempZ)/fabs(tempX))*(180.0/PI); } else { Monsters[i].m_angle=90.0+atan(fabs(tempZ)/fabs(tempX))*(180.0/PI); } } else { if (tempZ < 0) { Monsters[i].m_angle=270.0+atan(fabs(tempZ)/fabs(tempX))*(180.0/PI); } else { Monsters[i].m_angle=270.0-atan(fabs(tempZ)/fabs(tempX))*(180.0/PI); } } } float tempDis=(tempX * tempX) + (tempZ * tempZ); if (tempDis <= (Monsters[i].ShootRange * Monsters[i].ShootRange))//英雄已经在攻击范围之内,攻击,否则,跑到射击范围内 { Monsters[i].status=MODEL_IDLE;//设置成停顿 if (Monsters[i].ShootTime.ReachTime(3000))//隔3秒 { Monsters[i].status=MODEL_ATTACK;//设置成开火 Monsters[i].ShootDirection.x=Monsters[i].m_MonsterCoord.x + HitRandom(); Monsters[i].ShootDirection.z=Monsters[i].m_MonsterCoord.z + HitRandom(); Shoot(i,Monsters[i].ShootDirection.x,Monsters[i].ShootDirection.z); Monsters[i].ShootTime.SetTimenow(); Monsters[i].IsShoot=true; } else if (Monsters[i].IsShoot) //如果射击,则播放动画 { //if (Monsters[i].ShootTime.ReachTime(100))// //{ Shoot(i,Monsters[i].ShootDirection.x,Monsters[i].ShootDirection.z); Monsters[i].IsRun=false; //} } if ( Monsters[i].showlaser_step > Monsters[i].ShootRange)//如果射击完成则停止播放动画 { Monsters[i].IsShoot=false; } Monsters[i].IsRun=false; } else { Monsters[i].status=MODEL_RUN; if(Monsters[i].RunTime.ReachTime(40)) { Monsters[i].IsRun=Run(i,Monsters[i].m_MonsterCoord.x,Monsters[i].m_MonsterCoord.z,x,z); Monsters[i].RunTime.SetTimenow(); } } } else { Monsters[i].status=MODEL_IDLE;//当英雄不在怪物的视野范围之内,则设置成停顿 } // } } void CMonsters::Shoot(unsigned int ID,float x,float z) { float k,des_x,des_z; //因为当m_angle为0或者180时tan为无限在,所以分出来做特殊处理 if (Monsters[ID].m_angle!=0.0 && Monsters[ID].m_angle!=180.0) { if (Monsters[ID].m_angle<=180.0) { k=tan((90.0-Monsters[ID].m_angle)*PI/180.0); des_x=-sqrt((Monsters[ID].showlaser_step*Monsters[ID].showlaser_step)/(k*k+1))+x; des_z=k*(des_x-x)+z; } else { k=-tan((90+Monsters[ID].m_angle)*PI/180.0); des_x=sqrt((Monsters[ID].showlaser_step*Monsters[ID].showlaser_step)/(k*k+1))+x; des_z=k*(des_x-x)+z; } } else if(Monsters[ID].m_angle == 0.0) { des_x=x; des_z=z-Monsters[ID].showlaser_step; } else { des_x=x; des_z=z+Monsters[ID].showlaser_step; } glPushAttrib(GL_CURRENT_BIT); glPushMatrix(); glTranslatef(des_x,12.0,des_z); glColor3f(0.0, 1.0, 0.5); //auxSolidSphere(1.2); glPopMatrix(); glPopAttrib(); //showlaser_step应该是每个怪物维持一个 // glPushAttrib(GL_CURRENT_BIT); // glPushMatrix(); if (Monsters[ID].showlaser_step <= Monsters[ID].ShootRange) { Monsters[ID].showlaser_step += 8; } else { Monsters[ID].showlaser_step=8; Monsters[ID].IsShoot=false; } if(IsHitHero(x,z,des_x,des_z)) //当激光炮已经发射完后,检测是否击中怪物 { //Monsters[ID].showlaser_step += Monsters[ID].ShootRange; //击中后不再显示后面的动画 Monsters[ID].showlaser_step=8; Monsters[ID].IsShoot=false; } // glPopMatrix(); // glPopAttrib(); } bool CMonsters::IsHitHero(float sx,float sz,float dx,float dz) { float x1=0.0; Vector3 temp=myHero->m_RoleCoord; float k=(dz-sz)/(dx-sx); float x,z; float x2; if (dx >= sx) { x=sx; z=sz; x2=dx; } else { x=dx; z=dz; x2=sx; } while(x<=x2) { if ((temp.x-HITRANGE < x && x < temp.x+HITRANGE) && ((temp.z-HITRANGE) < z) && (z < (temp.z+HITRANGE))) { //m_Monster.SetBeHit(i,true); myHero->CutHP(10); return true; } x1=HITRANGE/sqrt(k*k+1); x+=x1; z=z+(x1*k); } return false; } //怪物击中的机率 int CMonsters::HitRandom() { srand((unsigned) time(NULL)); return rand()%8 - 4; } //由于desX 与 desZ不是怪物的目标坐标,因此可能会不对 bool CMonsters::Run(unsigned int ID,float &curX,float &curZ,float desX,float desZ) { //if(curX != desX && curZ != desZ) if(!(curX == desX && curZ == desZ)) { float k,x,z; float distance=Monsters[0].moveDistance; k=(desZ-curZ)/(desX-curX); //Vector3 tempPosition=m_Camera.getPosition(); //勾股定理 if (desX < curX) { x=0.0-sqrt(distance/(k*k+1)); } else { x=sqrt(distance/(k*k+1)); } z=k*x; if (curX < desX && desX < curX+x) { curX=desX; //tempPosition.x+=desX-curX; } else if (curX > desX && desX > curX+x) { curX=desX; //tempPosition.x+=desX-curX; } else { curX+=x; //tempPosition.x+=x; } if (curZ < desZ && desZ < curZ+z) { curZ=desZ; //tempPosition.z+=desZ-curZ; } else if (curZ > desZ && desZ > curZ+z) { curZ=desZ; //tempPosition.z+=desZ-curZ; } else { curZ+=z; //tempPosition.z+=z; } return true; } else { return false; } } void CMonsters::Run() { // for(int i=0;i<m_MonsterRange;i++) // { if (Monsters[0].IsDead || Monsters[0].IsShoot) { //continue; return; } // int sign,x,z; if (Monsters[0].IsRun==false && Monsters[0].IsShoot==false) { srand((int)time(0)); int sign=rand()%4; int x=rand()%25; int z=rand()%25; switch(sign) { //case 0 : 不变 case 1:x=-x; z=-z; break; case 2:z=-z; break; case 3:x=-x; break; } Monsters[0].m_MonsterDesCoord.x=Monsters[0].m_MonsterCoord.x+x; Monsters[0].m_MonsterDesCoord.z=Monsters[0].m_MonsterCoord.z+z; } Run(0,Monsters[0].m_MonsterCoord.x, Monsters[0].m_MonsterCoord.z, Monsters[0].m_MonsterDesCoord.x, Monsters[0].m_MonsterDesCoord.z); } Vector3 CMonsters::getMonsterCoord(unsigned int ID) { if (ID < m_MonsterRange && !Monsters[ID].IsDead) { return Monsters[ID].m_MonsterCoord; } //Vector3 temp={0,-100,0}; return Vector3(0, -100, 0);; } void CMonsters::ShowMonsterLife(unsigned int ID) { if (Monsters[ID].BeHit) { if(Monsters[ID].LifeTime.ReachTime(1500)) { Monsters[ID].BeHit=false; } unsigned char rasterallf[12] = { 0xff, 0xff,0xff, 0xff,0xff, 0xff, 0xff, 0xff,0xff, 0xff,0xff, 0xff }; glPushAttrib(GL_CURRENT_BIT); glPushMatrix(); glLoadIdentity(); glTranslatef(0.3f, 0.40f, -1.0f); glColor3f (0.0f, 0.0f, 0.0f); glRasterPos3f (0.0f, 0.0f,-0.1f); for (int i=0;i<MAXHP;i++) { glBitmap (8, 12, 0.0, 0.0, 8.0, 0.0, rasterallf); } glPopMatrix(); glPopAttrib(); glPushAttrib(GL_CURRENT_BIT); glPushMatrix(); glLoadIdentity(); glTranslatef(0.3f, 0.40, -1.0); glColor3f (0.0, 1.0, 0.0); glRasterPos3f (0.0, 0.0,-0.1); int temp; if(Monsters[ID].m_FullHP!=0) temp=Monsters[ID].HP*MAXHP/Monsters[ID].m_FullHP; for (int i=0;i<temp;i++) { glBitmap (8, 11, 0.0, 0.0, 8.0, 0.0, rasterallf); } glPopMatrix(); glPopAttrib(); } else if(Monsters[ID].LifeTime.ReachTime(1500))//当大于1秒时,从新设定当前时间 { Monsters[ID].LifeTime.SetTimenow(); } } bool CMonsters::MinusMonster(unsigned int ID) { Monsters[ID].IsDead=true; if (ID == m_MonsterRange - 1) { m_MonsterRange--; //当ID为最大时m_MonsterRange减1 } m_MonsterNum--; return true; } void CMonsters::Animate() { //glPushMatrix(); //glRotatef(-90.0, 1.0f, 0.0, 0.0); //两个是调整坐标 //glRotatef(90,0.0f,0.0f,1.0f); //ChaseHero(m_Hero.m_RoleCoord.x,m_Hero.m_RoleCoord.z); for (int i=0;i<m_MonsterRange;i++) { if (Monsters[i].IsDead) { continue; } ShowMonsterLife(i); ChaseHero(i,myHero->m_RoleCoord.x,myHero->m_RoleCoord.z); glPushMatrix(); glTranslatef(Monsters[i].m_MonsterCoord.x,Monsters[i].m_MonsterCoord.y ,Monsters[i].m_MonsterCoord.z); glScalef(0.4,0.4,0.4); //Opengl是右手坐标系,不过这里坐标系是,上:Z 右:X 前:Y glRotatef(-90.0, 1.0f, 0.0, 0.0); //两个是调整坐标 glRotatef(90,0.0f,0.0f,1.0f); glRotatef(Monsters[i].m_angle, 0.0f, 0.0f, 1.0f); Monsters[i].md2.SetState(Monsters[i].status); Monsters[i].m_weapon.SetState(Monsters[i].status); //Monsters[i] int *frame=Monsters[i].md2.GetFrame(Monsters[i].status); Monsters[i].md2.Animate(frame[0],frame[1],Monsters[i].speed); Monsters[i].m_weapon.Animate(frame[0],frame[1],Monsters[i].speed); glPopMatrix(); } //glPopMatrix(); } void CMonsters::setMonsterCoord(float x, float y, float z,unsigned int ID) { Monsters[ID].m_MonsterCoord.x=x; Monsters[ID].m_MonsterCoord.z=z; }
76809cee18cb56685e4b6e51f780ccc3f0d14389
cd470ad61c4dbbd37ff004785fd6d75980987fe9
/debug/bf.cpp
a6af6322e831a4e053cc2a1e6c0e8f4b90794ef2
[]
no_license
AutumnKite/Codes
d67c3770687f3d68f17a06775c79285edc59a96d
31b7fc457bf8858424172bc3580389badab62269
refs/heads/master
2023-02-17T21:33:04.604104
2023-02-17T05:38:57
2023-02-17T05:38:57
202,944,952
3
1
null
null
null
null
UTF-8
C++
false
false
1,948
cpp
bf.cpp
#include <bits/stdc++.h> int main() { std::ios_base::sync_with_stdio(false); std::cin.tie(nullptr); int n, m; std::cin >> n >> m; std::vector<int> a(n), b(m); for (int i = 0; i < n; ++i) { std::cin >> a[i]; } for (int i = 0; i < m; ++i) { std::cin >> b[i]; } std::vector<std::vector<int>> Ea(n), Eb(m); for (int i = 0; i < n - 1; ++i) { int u, v; std::cin >> u >> v; --u, --v; Ea[u].push_back(v); Ea[v].push_back(u); } for (int i = 0; i < m - 1; ++i) { int u, v; std::cin >> u >> v; --u, --v; Eb[u].push_back(v); Eb[v].push_back(u); } auto dfs = [&](auto &self, auto &E, int u, int fa, auto &id) -> void { if (fa != -1) { E[u].erase(std::find(E[u].begin(), E[u].end(), fa)); } id.push_back(u); for (int v : E[u]) { self(self, E, v, u, id); } }; std::vector<int> ida, idb; dfs(dfs, Ea, 0, -1, ida); dfs(dfs, Eb, 0, -1, idb); std::reverse(ida.begin(), ida.end()); std::reverse(idb.begin(), idb.end()); std::vector<std::vector<int>> f(n, std::vector<int>(m)); for (int x : ida) { for (int y : idb) { for (int yv : Eb[y]) { f[x][y] = std::max(f[x][y], f[x][yv]); } for (int xv : Ea[x]) { f[x][y] = std::max(f[x][y], f[xv][y]); } if (a[x] == b[y]) { auto func = [&](int i, int j) { if (i < (int)Ea[x].size() && j < (int)Eb[y].size()) { return f[Ea[x][i]][Eb[y][j]]; } else { return 0; } }; int c = std::max(Ea[x].size(), Eb[y].size()); std::vector<int> id(c); std::iota(id.begin(), id.end(), 0); do { int sum = 1; for (int i = 0; i < c; ++i) { sum += func(i, id[i]); } f[x][y] = std::max(f[x][y], sum); } while (std::next_permutation(id.begin(), id.end())); } } } std::cout << f[0][0] << "\n"; }
5c83cd3a7bfb52388c7392dcbea6a62948d744f9
f769e4df3e80746adadf5ef3c843dda5212809cf
/chuck-norris-joke-part2/HoundCpp/HoundJSON/StockRequestedListingJSON.cpp
c6a287660bab47f442ba0c8b9c8fd80d65fc11e7
[]
no_license
jiintonic/weekend-task
0758296644780e172a07b2308ed91d7e5a51b77d
07ec0ba5a0f809d424d134d33e0635376d290c69
refs/heads/master
2020-03-30T09:07:29.518881
2018-10-03T15:13:58
2018-10-03T15:13:58
151,061,148
1
0
null
null
null
null
UTF-8
C++
false
false
11,749
cpp
StockRequestedListingJSON.cpp
/* file "StockRequestedListingJSON.cpp" */ /* Generated automatically by Classy JSON. */ #pragma implementation "StockRequestedListingJSON.h" #include "StockRequestedListingJSON.h" StockRequestedListingJSON::StockRequestedListingJSON(const StockRequestedListingJSON &) { assert(false); } StockRequestedListingJSON &StockRequestedListingJSON::operator=(const StockRequestedListingJSON &other) { assert(false); throw "Illegal operator=() call."; } void StockRequestedListingJSON::fromJSONStockListing(JSONValue *json_value, bool ignore_extras) { assert(json_value != NULL); StockListingJSON *convert_classy = StockListingJSON::from_json(json_value, ignore_extras); convert_classy->add_reference(); setStockListing(convert_classy); convert_classy->remove_reference(); } void StockRequestedListingJSON::fromJSONListingRequestType(JSONValue *json_value, bool ignore_extras) { assert(json_value != NULL); StockListingRequestTypeJSON *convert_classy = StockListingRequestTypeJSON::from_json(json_value, ignore_extras); convert_classy->add_reference(); setListingRequestType(convert_classy); convert_classy->remove_reference(); } void StockRequestedListingJSON::fromJSONExchangeExplicit(JSONValue *json_value, bool ignore_extras) { assert(json_value != NULL); const JSONTrueValue *json_true = json_value->true_value(); bool the_bool; if (json_true != NULL) { the_bool = true; } else { const JSONFalseValue *json_false = json_value->false_value(); if (json_false != NULL) { the_bool = false; } else { throw("The value for field ExchangeExplicit of StockRequestedListingJSON is not true for false."); } } setExchangeExplicit(the_bool); } void StockRequestedListingJSON::fromJSONPrimaryHasData(JSONValue *json_value, bool ignore_extras) { assert(json_value != NULL); const JSONTrueValue *json_true = json_value->true_value(); bool the_bool; if (json_true != NULL) { the_bool = true; } else { const JSONFalseValue *json_false = json_value->false_value(); if (json_false != NULL) { the_bool = false; } else { throw("The value for field PrimaryHasData of StockRequestedListingJSON is not true for false."); } } setPrimaryHasData(the_bool); } void StockRequestedListingJSON::fromJSONAllowDataWarnings(JSONValue *json_value, bool ignore_extras) { assert(json_value != NULL); const JSONTrueValue *json_true = json_value->true_value(); bool the_bool; if (json_true != NULL) { the_bool = true; } else { const JSONFalseValue *json_false = json_value->false_value(); if (json_false != NULL) { the_bool = false; } else { throw("The value for field AllowDataWarnings of StockRequestedListingJSON is not true for false."); } } setAllowDataWarnings(the_bool); } void StockRequestedListingJSON::fromJSONAlternateListing(JSONValue *json_value, bool ignore_extras) { assert(json_value != NULL); StockListingJSON *convert_classy = StockListingJSON::from_json(json_value, ignore_extras); convert_classy->add_reference(); setAlternateListing(convert_classy); convert_classy->remove_reference(); } void StockRequestedListingJSON::fromJSONRemoteDelay(JSONValue *json_value, bool ignore_extras) { assert(json_value != NULL); JSONArrayValue *json_array1 = json_value->array_value(); if (json_array1 == NULL) throw("The value for field RemoteDelay of StockRequestedListingJSON is not an array."); size_t count1 = json_array1->componentCount(); std::vector< TypeRemoteDelay > vector_RemoteDelay1(count1); for (size_t num1 = 0; num1 < count1; ++num1) { TypeRemoteDelay or_result; bool or_done = false; if (!or_done) { try { const JSONRationalValue *json_rational = json_array1->component(num1)->rational_value(); double the_double; if (json_rational != NULL) { the_double = json_rational->getDouble(); } else { const JSONIntegerValue *json_integer = json_array1->component(num1)->integer_value(); if (json_integer != NULL) { the_double = json_integer->getLongInt(); } else { throw("The value for ??? is not a number."); } } or_result.u.choice0 = the_double; or_result.key = 0; or_done = true; } catch (char *e1) { free(e1); } catch (const char *e1) { } } if (!or_done) { try { or_result.key = 1; or_done = true; } catch (char *e1) { free(e1); } catch (const char *e1) { } } if (!or_done) throw("The value for an element of field RemoteDelay of StockRequestedListingJSON is not one of the allowed values."); vector_RemoteDelay1[num1] = or_result; } initRemoteDelay(); for (size_t num2 = 0; num2 < vector_RemoteDelay1.size(); ++num2) appendRemoteDelay(vector_RemoteDelay1[num2]); for (size_t num1 = 0; num1 < vector_RemoteDelay1.size(); ++num1) { switch (vector_RemoteDelay1[num1].key) { case 0: break; case 1: break; default: assert(false); } } } StockRequestedListingJSON::StockRequestedListingJSON(void) : flagHasStockListing(false), flagHasListingRequestType(false), flagHasExchangeExplicit(false), flagHasPrimaryHasData(false), flagHasAllowDataWarnings(false), flagHasAlternateListing(false), flagHasRemoteDelay(false) { extraIndex = create_string_index(); } StockRequestedListingJSON::~StockRequestedListingJSON(void) { if (flagHasStockListing) { storeStockListing->remove_reference(); } if (flagHasListingRequestType) { storeListingRequestType->remove_reference(); } if (flagHasAlternateListing) { storeAlternateListing->remove_reference(); } size_t extra_count = extraValues.size(); for (size_t extra_num = 0; extra_num < extra_count; ++extra_num) extraValues[extra_num]->remove_reference(); destroy_string_index(extraIndex); } bool StockRequestedListingJSON::hasStockListing(void) const { return flagHasStockListing; } StockListingJSON * StockRequestedListingJSON::getStockListing(void) { assert(flagHasStockListing); return storeStockListing; } const StockListingJSON * StockRequestedListingJSON::getStockListing(void) const { assert(flagHasStockListing); return storeStockListing; } bool StockRequestedListingJSON::hasListingRequestType(void) const { return flagHasListingRequestType; } StockListingRequestTypeJSON * StockRequestedListingJSON::getListingRequestType(void) { assert(flagHasListingRequestType); return storeListingRequestType; } const StockListingRequestTypeJSON * StockRequestedListingJSON::getListingRequestType(void) const { assert(flagHasListingRequestType); return storeListingRequestType; } StockListingRequestTypeJSON::TypeValue StockRequestedListingJSON::getListingRequestTypeValue(void) { return getListingRequestType()->getValue(); } const StockListingRequestTypeJSON::TypeValue StockRequestedListingJSON::getListingRequestTypeValue(void) const { return getListingRequestType()->getValue(); } const char *StockRequestedListingJSON::getListingRequestTypeAsChars(void) const { return getListingRequestType()->getValueAsChars(); } std::string StockRequestedListingJSON::getListingRequestTypeAsString(void) const { return getListingRequestType()->getValueAsString(); } bool StockRequestedListingJSON::hasExchangeExplicit(void) const { return flagHasExchangeExplicit; } bool StockRequestedListingJSON::getExchangeExplicit(void) { assert(flagHasExchangeExplicit); return storeExchangeExplicit; } const bool StockRequestedListingJSON::getExchangeExplicit(void) const { assert(flagHasExchangeExplicit); return storeExchangeExplicit; } bool StockRequestedListingJSON::hasPrimaryHasData(void) const { return flagHasPrimaryHasData; } bool StockRequestedListingJSON::getPrimaryHasData(void) { assert(flagHasPrimaryHasData); return storePrimaryHasData; } const bool StockRequestedListingJSON::getPrimaryHasData(void) const { assert(flagHasPrimaryHasData); return storePrimaryHasData; } bool StockRequestedListingJSON::hasAllowDataWarnings(void) const { return flagHasAllowDataWarnings; } bool StockRequestedListingJSON::getAllowDataWarnings(void) { assert(flagHasAllowDataWarnings); return storeAllowDataWarnings; } const bool StockRequestedListingJSON::getAllowDataWarnings(void) const { assert(flagHasAllowDataWarnings); return storeAllowDataWarnings; } bool StockRequestedListingJSON::hasAlternateListing(void) const { return flagHasAlternateListing; } StockListingJSON * StockRequestedListingJSON::getAlternateListing(void) { assert(flagHasAlternateListing); return storeAlternateListing; } const StockListingJSON * StockRequestedListingJSON::getAlternateListing(void) const { assert(flagHasAlternateListing); return storeAlternateListing; } bool StockRequestedListingJSON::hasRemoteDelay(void) const { return flagHasRemoteDelay; } size_t StockRequestedListingJSON::countOfRemoteDelay(void) const { assert(flagHasRemoteDelay); return storeRemoteDelay.size(); } StockRequestedListingJSON::TypeRemoteDelay StockRequestedListingJSON::elementOfRemoteDelay(size_t element_num) { assert(flagHasRemoteDelay); return storeRemoteDelay[element_num]; } const StockRequestedListingJSON::TypeRemoteDelay StockRequestedListingJSON::elementOfRemoteDelay(size_t element_num) const { assert(flagHasRemoteDelay); return storeRemoteDelay[element_num]; } std::vector< StockRequestedListingJSON::TypeRemoteDelay > StockRequestedListingJSON::getRemoteDelay(void) { assert(flagHasRemoteDelay); return storeRemoteDelay; } const std::vector< StockRequestedListingJSON::TypeRemoteDelay > StockRequestedListingJSON::getRemoteDelay(void) const { assert(flagHasRemoteDelay); return storeRemoteDelay; } StockRequestedListingJSON *StockRequestedListingJSON::from_json(JSONValue *json_value, bool ignore_extras) { StockRequestedListingJSON *result; { JSONHoldingGenerator<Generator, RCHandle<StockRequestedListingJSON>, StockRequestedListingJSON *, bool> generator("Type StockRequestedListing", ignore_extras); json_value->write(&generator); assert(generator.have_value); result = generator.value.referenced(); result->add_reference(); }; result->remove_reference_no_delete(); return result; }
d830646a0f0bdb924be16e103a7b08856f73332a
1a8f4b4e6b9cb3e83169031b47ad9c74180e316a
/include/messages/MbWriteAntiMsg.h
7629cd8cc0f80a34e18bbcc83382ec1a548deb47
[]
no_license
Sukiiichan/PDES-MAS
58e2abfe0e86ea79ae4abbc211c332ad1c12841d
83797c8b068b2303b7b9cf4837eb58586f7c40bf
refs/heads/master
2020-05-25T06:31:33.736478
2020-01-31T07:56:20
2020-01-31T07:56:20
187,668,896
0
0
null
2019-05-20T15:36:38
2019-05-20T15:36:38
null
UTF-8
C++
false
false
488
h
MbWriteAntiMsg.h
#ifndef PDES_MAS_MBWRITEANTIMSG_H #define PDES_MAS_MBWRITEANTIMSG_H #include "AntiMessage.h" #include "HasMBOwnerID.h" namespace pdesmas{ class MbWriteAntiMsg: public AntiMessage, public HasMBOwnerID{ private: static AbstractMessage* CreateInstance(); public: MbWriteAntiMsg(); virtual ~MbWriteAntiMsg(); pdesmasType GetType() const; void Serialise(ostream&) const; void Deserialise(istream&); }; } #endif //PDES_MAS_MBWRITEANTIMSG_H
566eeb5d1b517261fb481e1b43274324773f484d
076e8fdc56dc17768554d2d66f73814916a5e80c
/IDEs/xcode/project/Test3DTexture.cpp
982a511d359b3c421a47f9b339110fd91396d139
[ "MIT" ]
permissive
kristofe/VolumeRenderer
fe692a9ce3132310ca2cb261f80234e68af313ce
653976ef8c80d05fd1059ebc0b3d3542649879fc
refs/heads/master
2016-09-15T23:23:22.972257
2015-02-17T20:55:56
2015-02-17T20:55:56
18,602,968
0
0
null
null
null
null
UTF-8
C++
false
false
16,534
cpp
Test3DTexture.cpp
// // Test3DTexture.cpp // VolumeRenderIOS // // Created by Kristofer Schlachter on 5/16/14. // // #include "Test3DTexture.h" //////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// #include "trackball.h" #include "shadersource.h" #include "vmath.hpp" #include "Platform.h" extern "C" { #include "perlin.h" } using namespace renderlib; using namespace vmath; struct ProgramHandles { GLuint SinglePass; }; //Prototypes static ProgramHandles Programs; //static GLuint TriangleVbo; //static GLuint TriangleVao; //static GLuint CubeVbo; //static GLuint CubeVao; static Matrix4 ProjectionMatrix; static Matrix4 ModelviewMatrix; static Matrix4 ViewMatrix; static Matrix4 ModelviewProjection; static Point3 EyePosition; static int winWidth = 500; static int winHeight = 500; static GLuint CloudTexture; static float fieldOfView = 0.7f; static Trackball* trackball; static int mouseX, mouseY; static bool mouseDown = false; #include "glprogram.h" typedef struct { GLfloat x, y, z, r, g, b; } Triangle; const float unit = 1.0f; /* {-unit, -unit, unit, 0.f, 0.f, 1.f},//0 {-unit, unit, unit, 0.f, 1.f, 1.f},//1 { unit, unit, unit, 1.f, 1.f, 1.f},//2 { unit, -unit, unit, 1.f, 0.f, 1.f},//3 {-unit, -unit, -unit, 0.f, 0.f, 0.f},//4 {-unit, unit, -unit, 0.f, 1.f, 0.f},//5 { unit, unit, -unit, 1.f, 1.f, 0.f},//6 { unit, -unit, -unit, 1.f, 0.f, 0.f},//7 */ Triangle cube[6 * 6] = { //Front Face {-unit, -unit, unit, 0.f, 0.f, 1.f},//0 { unit, unit, unit, 1.f, 1.f, 1.f},//2 {-unit, unit, unit, 0.f, 1.f, 1.f},//1 { unit, -unit, unit, 1.f, 0.f, 1.f},//3 { unit, unit, unit, 1.f, 1.f, 1.f},//2 {-unit, -unit, unit, 0.f, 0.f, 1.f},//0 //Back Face { unit, -unit, -unit, 1.f, 0.f, 0.f},//7 {-unit, unit, -unit, 0.f, 1.f, 0.f},//5 { unit, unit, -unit, 1.f, 1.f, 0.f},//6 {-unit, -unit, -unit, 0.f, 0.f, 0.f},//4 {-unit, unit, -unit, 0.f, 1.f, 0.f},//5 { unit, -unit, -unit, 1.f, 0.f, 0.f},//7 //Top Face {-unit, unit, unit, 0.f, 1.f, 1.f},//1 { unit, unit, -unit, 1.f, 1.f, 0.f},//6 {-unit, unit, -unit, 0.f, 1.f, 0.f},//5 { unit, unit, unit, 1.f, 1.f, 1.f},//2 { unit, unit, -unit, 1.f, 1.f, 0.f},//6 {-unit, unit, unit, 0.f, 1.f, 1.f},//1 //Bottom Face {-unit, -unit, -unit, 0.f, 0.f, 0.f},//4 { unit, -unit, unit, 1.f, 0.f, 1.f},//3 {-unit, -unit, unit, 0.f, 0.f, 1.f},//0 { unit, -unit, -unit, 1.f, 0.f, 0.f},//7 { unit, -unit, unit, 1.f, 0.f, 1.f},//3 {-unit, -unit, -unit, 0.f, 0.f, 0.f},//4 //Left Face {-unit, -unit, -unit, 0.f, 0.f, 0.f},//4 {-unit, unit, unit, 0.f, 1.f, 1.f},//1 {-unit, unit, -unit, 0.f, 1.f, 0.f},//5 {-unit, -unit, unit, 0.f, 0.f, 1.f},//0 {-unit, unit, unit, 0.f, 1.f, 1.f},//1 {-unit, -unit, -unit, 0.f, 0.f, 0.f},//4 //Right Face { unit, -unit, unit, 1.f, 0.f, 1.f},//3 { unit, unit, -unit, 1.f, 1.f, 0.f},//6 { unit, unit, unit, 1.f, 1.f, 1.f},//2 { unit, -unit, -unit, 1.f, 0.f, 0.f},//7 { unit, unit, -unit, 1.f, 1.f, 0.f},//6 { unit, -unit, unit, 1.f, 0.f, 1.f},//3 }; Triangle quad[6] = { {-unit, -unit, 0.0f, 0.f, 0.f, 0.f}, { unit, unit, 0.0f, 1.f, 1.f, 0.f}, {-unit, unit, 0.0f, 0.f, 1.f, 0.f}, { unit, -unit, 0.0f, 1.f, 0.f, 0.f}, { unit, unit, 0.0f, 1.f, 1.f, 0.f}, {-unit, -unit, 0.0f, 0.f, 0.f, 0.f}, }; Triangle triangle[3] = { {-0.6f, -0.4f, 0.f, 1.f, 0.f, 0.f}, {0.6f, -0.4f, 0.f,0.f, 1.f, 0.f}, {0.f, 0.6f, 0.f,0.f, 0.f, 1.f} }; GLubyte indices[3] = { 0, 1, 2 }; GLuint gVAO = 0; GLuint gVBO = 0; GLProgram program1; void loadCubeVBO() { // make and bind the VAO glGenVertexArrays(1, &gVAO); glBindVertexArray(gVAO); // make and bind the VBO glGenBuffers(1, &gVBO); glBindBuffer(GL_ARRAY_BUFFER, gVBO); glBufferData(GL_ARRAY_BUFFER, sizeof(cube), cube, GL_STATIC_DRAW); // connect the xyz to the "vert" attribute of the vertex shader // GLint vertSlot = program1.getAttributeLocation("vert"); GLint vertSlot = program1.getAttributeLocation("Position"); glEnableVertexAttribArray(vertSlot); glVertexAttribPointer(vertSlot, 3, GL_FLOAT, GL_FALSE, sizeof(Triangle), BUFFER_OFFSET(0)); std::cout << "Setup Vert Slot = " << vertSlot << std::endl; std::cout.flush(); GLint colorSlot = program1.getAttributeLocation("color"); glEnableVertexAttribArray(colorSlot); glVertexAttribPointer(colorSlot, 3, GL_FLOAT, GL_FALSE, sizeof(Triangle), BUFFER_OFFSET(sizeof(GLfloat)*3)); std::cout << "Setup Color Slot = " << colorSlot << std::endl; std::cout.flush(); std::cout << "Done setting up triangle" << std::endl; std::cout.flush(); GetGLError(); } void loadTriangleAndProgram() { //Load Program std::string path; GetFullFilePathFromResource("triangleShaders.glsl", path); program1.loadShaders(path, "VS", "FS", ""); GetGLError(); loadCubeVBO(); CloudTexture = CreatePyroclasticVolume(128, 0.025f); // GetFullFilePathFromResource("volume_texture_uint16.raw", path); // CloudTexture = load3DScan(path, 512,512,512); GetGLError(); } void drawTriangle() { float secs = GetTicks() * 0.001f; glClearColor(0.1f, 0.2f, 0.4f, 0); glClear(GL_COLOR_BUFFER_BIT); glDisable(GL_DEPTH_TEST); // glDisable(GL_CULL_FACE); //glEnable(GL_DEPTH_TEST); glEnable(GL_CULL_FACE); glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); // Vector3 axis(1.0f,1.f,1.f); // Vector3 scale(0.5f,0.5f,0.5f); // Matrix4 scaleMat = Matrix4::identity(); // scaleMat = scaleMat.scale(scale); // Matrix4 rotMat = Matrix4::rotation(secs, normalize(axis)); // Matrix4 mat = scaleMat * rotMat; Matrix4 mat = Matrix4::identity(); // bind the program (the shaders) glUseProgram(program1.getID()); SetUniform("modelview", mat); SetUniform("time", secs); SetUniform("Density", 0); // bind the VAO (the triangle) glBindVertexArray(gVAO); // draw the VAO // glDrawArrays(GL_TRIANGLES, 0, sizeof(triangle)/sizeof(Triangle)); // glDrawArrays(GL_TRIANGLES, 0, sizeof(quad)/sizeof(Triangle)); glDrawArrays(GL_TRIANGLES, 0, sizeof(cube)/sizeof(Triangle)); // unbind the VAO //glBindVertexArray(0); GetGLError(); } //static void error_callback(int error, const char* description) //{ // fputs(description, stderr); //} // // // //static void mouseButtonHandler(GLFWwindow* window, int button, int action, int mods) //{ // if (button == GLFW_MOUSE_BUTTON_1 && action == GLFW_PRESS) // { // mouseDown = true; // trackball->MouseDown(mouseX, mouseY); // } // else if (button == GLFW_MOUSE_BUTTON_1 && action == GLFW_RELEASE) // { // mouseDown = false; // trackball->MouseUp(mouseX, mouseY); // } // else if (button == GLFW_MOUSE_BUTTON_2 && action == GLFW_PRESS) // { // trackball->ReturnHome(); // } //} // //static void mousePositionHandler(GLFWwindow* window, double x, double y) //{ // if(mouseX != (int)x || mouseY != (int)y){ // mouseX = (int)x; // mouseY = (int)y; // if(mouseDown) // trackball->MouseMove(x, y); // } //} // //void resizeViewport(GLFWwindow* window){ // glfwGetFramebufferSize(window, &winWidth, &winHeight); // glViewport(0, 0, winWidth, winHeight); // glClear(GL_COLOR_BUFFER_BIT); //} void resizeViewport(GLuint w, GLuint h) { winWidth = w; winHeight = h; glViewport(0, 0, (GLsizei) w, (GLsizei) h); } #include <iostream> #include <fstream> static GLuint load3DScan(const std::string& filename,int dx, int dy, int dz) { GLuint handle; glGenTextures(1, &handle); glBindTexture(GL_TEXTURE_3D, handle); glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_R, GL_CLAMP_TO_EDGE); glPixelStorei(GL_UNPACK_ALIGNMENT, 1); int array_size = dx*dy*dz; //unsigned short *data = new unsigned short[array_size]; unsigned char *char_data = new unsigned char[array_size]; int position = 0; size_t chunkSize = sizeof(unsigned short)*512; float scale = 255.0f/65535.0f; std::ifstream fin(filename.c_str(), std::ios::in|std::ios::binary); std::cout << " good()=" << fin.good(); std::cout << " eof()=" << fin.eof(); std::cout << " fail()=" << fin.fail(); std::cout << " bad()=" << fin.bad(); unsigned short buff[chunkSize]; //This copies the data straight into the array //while(fin.read((char*)data[position],chunkSize)){ // position += 512; // } //Convert the data from unsigned short to unsigned byte. while(fin.read((char*)buff,chunkSize)){ int count = fin.gcount() * 0.5;//Multiplied by half because unsigned short is two bytes for(int i = 0; i < count; i++) { char_data[position + i] = buff[i] * scale; } position += 512; } fin.close(); #if TARGETIPHONE GLint size; glGetIntegerv(GL_MAX_3D_TEXTURE_SIZE, &size); printf("GL_MAX_3D_TEXTURE_SIZE: %d\n", size); // glTexImage3D(GL_TEXTURE_3D, 0, // GL_R16UI, // dx, dy, dz, 0, // GL_RED_INTEGER, // GL_UNSIGNED_SHORT, // data); glTexImage3D(GL_TEXTURE_3D, 0, GL_LUMINANCE, dx, dy, dz, 0, GL_LUMINANCE, GL_UNSIGNED_BYTE, char_data); #else glTexImage3D(GL_TEXTURE_3D, 0, GL_RED, dx, dy, dz, 0, GL_RED, GL_UNSIGNED_BYTE, data); #endif GetGLError(); //delete[] data; delete[] char_data; return handle; } static GLuint CreatePyroclasticVolume(int n, float r) { GLuint handle; GetGLError(); glGenTextures(1, &handle); glBindTexture(GL_TEXTURE_3D, handle); GetGLError(); glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); GetGLError(); glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_R, GL_CLAMP_TO_EDGE); glPixelStorei(GL_UNPACK_ALIGNMENT, 1); unsigned char *data = new unsigned char[n*n*n]; unsigned char *ptr = data; float frequency = 3.0f / n; float center = n / 2.0f + 0.5f; for(int x=0; x < n; ++x) { for (int y=0; y < n; ++y) { for (int z=0; z < n; ++z) { float dx = center-x; float dy = center-y; float dz = center-z; float off = fabsf((float) PerlinNoise3D( x*frequency, y*frequency, z*frequency, 5, 6, 3)); //std::cout << off << " "; float d = sqrtf(dx*dx+dy*dy+dz*dz)/(n); bool isFilled = (d-off) < r; *ptr++ = isFilled ? 255 : 0; } //std::cout << std::endl; } fprintf(stdout,"Slice %d of %d\n", x, n); } #if TARGETIPHONE glTexImage3D(GL_TEXTURE_3D, 0, GL_LUMINANCE, n, n, n, 0, GL_LUMINANCE, GL_UNSIGNED_BYTE, data); GetGLError(); #else glTexImage3D(GL_TEXTURE_3D, 0, GL_RED, n, n, n, 0, GL_RED, GL_UNSIGNED_BYTE, data); #endif delete[] data; return handle; } void initialize() { // loadTriangleAndProgram(); trackball = new Trackball(winWidth * 1.0f, winHeight * 1.0f, winWidth * 0.5f); //Test volume render shaders std::string path; GetFullFilePathFromResource("SinglePassRayMarch.glsl", path); GetGLError(); program1.loadShaders(path, "VS", "FS_CTSCAN", ""); //CreateCubeVbo(Programs.SinglePass, &CubeVbo, &CubeVao); loadCubeVBO(); GetGLError(); CloudTexture = CreatePyroclasticVolume(64, 0.025f); //GetFullFilePathFromResource("volume_texture_uint16.raw", path); //CloudTexture = load3DScan(path, 512,512,512); GetGLError(); glDisable(GL_DEPTH_TEST); glEnable(GL_BLEND); glDisable(GL_CULL_FACE); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); } static void loadUniforms() { SetUniform("ModelviewProjection", ModelviewProjection); SetUniform("Modelview", ModelviewMatrix); SetUniform("ViewMatrix", ViewMatrix); SetUniform("ProjectionMatrix", ProjectionMatrix); SetUniform("RayStartPoints", 1); SetUniform("RayStopPoints", 2); SetUniform("EyePosition", EyePosition); Vector4 rayOrigin(transpose(ModelviewMatrix) * EyePosition); SetUniform("RayOrigin", rayOrigin.getXYZ()); float focalLength = 1.0f / tan(fieldOfView / 2); SetUniform("FocalLength", focalLength); SetUniform("WindowSize", float(winWidth), float(winHeight)); } void render() { // drawTriangle(); glClearColor(0.1f, 0.2f, 0.4f, 0); GetGLError(); glClear(GL_COLOR_BUFFER_BIT); GetGLError(); glBindTexture(GL_TEXTURE_3D, CloudTexture); GetGLError(); // glBindVertexArray(CubeCenterVao); // glBindBuffer(GL_ARRAY_BUFFER, CubeCenterVbo); glUseProgram(program1.getID()); GetGLError(); //glBindBuffer(GL_ARRAY_BUFFER, gVBO); loadUniforms(); GetGLError(); glBindVertexArray(gVAO); GetGLError(); // glDrawArrays(GL_POINTS, 0, 1); glDrawArrays(GL_TRIANGLES, 0, sizeof(cube)/sizeof(Triangle)); GetGLError(); } void update(double seconds) { // float dt = seconds; unsigned int microseconds = seconds * 1000 * 1000; ///////// trackball->Update(microseconds); EyePosition = Point3(0, 0, 5 + trackball->GetZoom()); Vector3 up(0, 1, 0); Point3 target(0); ViewMatrix = Matrix4::lookAt(EyePosition, target, up); //Matrix4 modelMatrix(transpose(trackball->GetRotation()), Vector3(0)); Vector3 axis(1.0f,1.f,1.f); Matrix4 modelMatrix = Matrix4::rotation(seconds, normalize(axis)); ModelviewMatrix = ViewMatrix * modelMatrix; float n = 1.0f; float f = 100.0f; ProjectionMatrix = Matrix4::perspective(fieldOfView, 1, n, f); ModelviewProjection = ProjectionMatrix * ModelviewMatrix; } //int main(void) //{ // //test(); // GLFWwindow* window; // glfwSetErrorCallback(error_callback); // if (!glfwInit()) // exit(EXIT_FAILURE); // // // // // hintOpenGL32CoreProfile(); // winWidth = 500; // winHeight = 500; // // window = glfwCreateWindow(winWidth, winHeight, "Volume Renderer", NULL, NULL); // // if (!window) // { // glfwTerminate(); // exit(EXIT_FAILURE); // } // // // // glfwMakeContextCurrent(window); // glfwSetKeyCallback(window, keyHandler); // glfwSetCursorPosCallback(window, mousePositionHandler); // glfwSetMouseButtonCallback(window, mouseButtonHandler); // // //#if!__APPLE__ // // initialise GLEW // glewExperimental = GL_TRUE; //stops glew crashing on OSX :-/ // if(glewInit() != GLEW_OK) // { // fprintf(stderr,"glewInit failed"); // return -1; // } //#endif // // std::cout << GLUtil::getOpenGLInfo() << std::endl;std::cout.flush(); // initialize(); // // mouseX = mouseY = 100; // // while (!glfwWindowShouldClose(window)) // { // update(glfwGetTime()); // render(); // // glfwSwapBuffers(window); // glfwPollEvents(); // } // glfwDestroyWindow(window); // glfwTerminate(); // exit(EXIT_SUCCESS); //}
94d228db9eca98f93de916372513790ef817a650
81eeb1b0ea8722a73ddaa18f8b914b981a9e18e3
/ual/grvc-ual/tsp_mtsp/src/mtsp_files/clases/matriz_c.h
77e70013b4645a27521816466faaec2ed77a5e2d
[ "MIT" ]
permissive
zlmone/TERRINet
9b750220f1dcce15bb839d5a635ddbdd90c18a45
89a830c48335b6fb37b8e2472bff040408247fc3
refs/heads/master
2023-07-09T02:09:03.539347
2019-12-02T10:46:35
2019-12-02T10:46:35
null
0
0
null
null
null
null
UTF-8
C++
false
false
801
h
matriz_c.h
#ifndef MATRIZ_C_H_ #define MATRIZ_C_H_ #include <ros/ros.h> #include <visualization_msgs/Marker.h> #include <cmath> #include <iostream> #include <string> #include <vector> #include <stack> #include <algorithm> class matriz_c { public: std::vector <std::vector <float>> reserva(int filas,int columnas); std::vector <std::vector <float>> llenar(); std::vector <std::vector <float>> llena_auto(); std::vector <std::vector <float>> copiar(std::vector <std::vector <float>> mat); void imprimir_2(std::vector <std::vector <float>> a); void imprimir_1(std::vector <float> a); private: std::vector <std::vector <float>> m_copiar; // lo devuelvo en teoría std::vector <std::vector <float>> m_llenar; // lo devuelvo en teoría }; #endif
f01053cc78f35ce86baa2192cb1e69e18e025825
31d6b0cad2a6dcf35342ffffcb8c352f01171585
/School/School.cpp
00181b76b8800d50abff314e246a50a1ca154167
[]
no_license
PapittoTie/Childhood
3b35bbcd7a90ee16b2fc5b97d6b0574841178769
02bb9beff7d3769c5cd80116feaece6691f9f601
refs/heads/master
2023-02-09T19:29:47.762042
2020-12-30T17:30:54
2020-12-30T17:30:54
324,100,504
1
0
null
2020-12-30T17:30:55
2020-12-24T07:58:15
null
UTF-8
C++
false
false
283
cpp
School.cpp
#include <iostream> using std::cin; using std::cout; int main() { int speed, time, distance_to_school; cin >> speed >> time >> distance_to_school; if (speed * time < distance_to_school) { cout << "NO"; } else { cout << "YES"; } return 0; }
e87d064de43db75cd5619088b78304db1016c969
e1b0868064a2961c5c54aac7717b1070565219f5
/AppleOnboardPCATA/AppleOnboardPCATA.h
09db74ffe1c7aeefe65d9f6616f9b1b2789a8f32
[]
no_license
Quantum-Platinum-Cloud/AppleOnboardPCATA
2a8fdf7bdd26350ec772f4865bc7aa9bcda22004
e6faab2067e8889022d14afaa7c8c6d41dc326b4
refs/heads/main
2023-08-05T16:17:04.571526
2004-11-13T00:10:23
2021-10-06T04:40:43
589,301,035
1
0
null
2023-01-15T18:22:53
2023-01-15T18:22:53
null
UTF-8
C++
false
false
2,904
h
AppleOnboardPCATA.h
/* * Copyright (c) 2004 Apple Computer, Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * * The contents of this file constitute Original Code as defined in and * are subject to the Apple Public Source License Version 2.0 (the * "License"). You may not use this file except in compliance with the * License. Please obtain a copy of the License at * http://www.apple.com/publicsource and read it before using this file. * * This Original Code and all software distributed under the License are * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the * License for the specific language governing rights and limitations * under the License. * * @APPLE_LICENSE_HEADER_END@ */ #ifndef _APPLEONBOARDPCATA_H #define _APPLEONBOARDPCATA_H #include <IOKit/ata/IOATATypes.h> #include <IOKit/ata/IOPCIATA.h> #include <IOKit/ata/ATADeviceNub.h> #include "AppleOnboardPCATAShared.h" #include "AppleOnboardPCATAChannel.h" class AppleOnboardPCATA : public IOPCIATA { OSDeclareAbstractStructors( AppleOnboardPCATA ) protected: AppleOnboardPCATAChannel * fChannelNub; UInt32 fChannelNumber; bool fHardwareLostPower; virtual bool publishDriveProperty( UInt32 driveUnit, const char * propKey, UInt32 value ); virtual bool openATAChannel( IOService * provider ); virtual void closeATAChannel( void ); virtual void attachATADeviceNubs( void ); virtual IOReturn synchronousIO( void ); virtual void restoreHardwareState( void ); virtual void initForPM( IOService * provider ); virtual void free( void ); public: virtual bool start( IOService * provider ); virtual void stop( IOService * provider ); virtual IOReturn message( UInt32 type, IOService * provider, void * argument ); virtual bool configureTFPointers( void ); virtual UInt32 scanForDrives( void ); virtual IOReturn handleQueueFlush( void ); virtual IOReturn createChannelCommands( void ); virtual bool allocDMAChannel( void ); virtual bool freeDMAChannel( void ); virtual void initATADMAChains( PRD * descPtr ); enum { kPowerStateOff = 0, kPowerStateDoze, kPowerStateOn, kPowerStateCount }; virtual IOReturn setPowerState( unsigned long stateIndex, IOService * whatDevice ); }; #endif /* !_APPLEONBOARDPCATA_H */
a5892370081a20da3a847dcdbefaf3b3a2843631
7659196e40baba7a7c8e4823a7f376daf3068aea
/viz/TrajectoryViz.hpp
0be6c3b0eff49e0140e4faae2d33a5c6e5c82058
[]
no_license
H2020-InFuse/infuse-ASN_Viz
74c3bc42d33d6d033f417c1a8cb8b082af1e6548
1d3c1e423a07877b21415f12ca775d43cb7bc48a
refs/heads/master
2020-03-21T07:24:28.134848
2018-12-21T16:15:42
2018-12-21T16:15:42
138,278,357
0
0
null
2018-08-15T15:48:06
2018-06-22T08:43:52
C++
UTF-8
C++
false
false
858
hpp
TrajectoryViz.hpp
#pragma once #include <vizkit3d/TrajectoryVisualization.hpp> #include <base_support/asn1Vector3dConvert.hpp> Q_DECLARE_METATYPE(asn1SccVector3d); namespace vizkit3d { class TrajectoryViz: public vizkit3d::TrajectoryVisualization, public vizkit3d::VizPluginAddType< asn1SccVector3d > { Q_OBJECT public: TrajectoryViz(){qRegisterMetaType<asn1SccVector3d>(); setMaxNumberOfPoints(100000); setLineWidth(4.0);}; virtual ~TrajectoryViz(){}; Q_INVOKABLE void updateData( const asn1SccVector3d &sample){ base::Vector3d rocktype; Vector3d_fromAsn1(rocktype,sample); vizkit3d::TrajectoryVisualization::updateTrajectory(rocktype); } virtual void updateDataIntern(const asn1SccVector3d &data){} }; }
336f2f45ea2b847f1fcc55269b51b64d292f5f06
93997ad9312957f8a677a298e92f407a30a5a0cf
/src/Core/Common/AddOffsetToIndex/Code.cxx
8526abb48a3672d2079dffffe9e550dc31d53e5e
[ "Apache-2.0" ]
permissive
GRSEB9S/ITKExamples
ccdf4ab4a3e8549815444228710c46133b896a2a
c04b9e5c195be6c3bb495efabe9e0069ab2d1625
refs/heads/master
2021-05-27T15:25:05.204218
2015-01-08T18:33:22
2015-01-08T18:33:22
null
0
0
null
null
null
null
UTF-8
C++
false
false
708
cxx
Code.cxx
#include "itkIndex.h" #include "itkOffset.h" #include <iostream> int main(int argc, char *argv[]) { const unsigned int Dimension = 2; itk::Index< Dimension > index; index.Fill( 5 ); itk::Offset< Dimension > offset; offset.Fill( 1 ); std::cout << "index: " << index << std::endl; std::cout << "offset: " << offset << std::endl; std::cout << "index + offset: " << index + offset << std::endl; std::cout << std::endl; offset[0] = -1; std::cout << "index: " << index << std::endl; std::cout << "offset: " << offset << std::endl; std::cout << "index + offset: " << index + offset << std::endl; std::cout << std::endl; return EXIT_SUCCESS; }
f1b55a575a73c6073c2842563b8155fb5e9f9da1
4262591e1586b909692756c48288e690af813b66
/src/project/DOTATribe/src/ErrorTipsDataManager.cpp
754b983916f0c253e200d5f35ee6d1f74edd10bc
[]
no_license
atom-chen/DotaTribe
924a6df4463bffb6cc08df5d8d5cdb4a1a5740fb
2f6409a78825250ffa38b18b9819dee3ec9d1182
refs/heads/master
2020-11-28T03:44:41.631302
2019-08-23T07:04:34
2019-08-23T07:04:34
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,305
cpp
ErrorTipsDataManager.cpp
#include "../include/DOTATribeApp.h" #include "../include/ErrorTipsDataManager.h" #include "../include/EngineSystem.h" #include "../include/TimeSystem.h" #include "../include/DBSystem.h" #include "../include/EventSystem.h" #include "../include/EventTyper.h" #include <include/common/FileLoader.h> #include <include/common/Parser.h> #include <include/common/String.h> #include <include/mem/EPacket.h> #include <include/mem/DPacket.h> #include <include/common/MD5Crypto.h> using namespace cobra_win; ErrorTipsData::ErrorTipsData() { errorFontStyleID=0; memset(errorBackImageFilePath,0,sizeof(errorBackImageFilePath)); errorWidth=0.0f; errorHeight=0.0f; errorAnchorX=0.5f; errorAnchorY=0.5f; errorRelateY=0.0f; errorAddHeight=0.0f; errorMaxLevel=0; errorDurationTime=0.0f; errorFadeOutTime=0.0f; } ErrorTipsData::~ErrorTipsData() { } bool ErrorTipsData::ParseBuffer(char* pBuffer, unsigned int iLen) { Parser parser(pBuffer, iLen, '\t'); if (!parser.parser_int_value(errorFontStyleID)) return false; if (!parser.parser_string_value(errorBackImageFilePath,sizeof(errorBackImageFilePath))) return false; if (!parser.parser_float_value(errorWidth)) return false; if (!parser.parser_float_value(errorHeight)) return false; if (!parser.parser_float_value(errorAnchorX)) return false; if (!parser.parser_float_value(errorAnchorY)) return false; if (!parser.parser_float_value(errorRelateY)) return false; if (!parser.parser_float_value(errorAddHeight)) return false; if (!parser.parser_int_value(errorMaxLevel)) return false; if (!parser.parser_float_value(errorDurationTime)) return false; if (!parser.parser_float_value(errorFadeOutTime)) return false; return true; } template<> ErrorTipsDataManager* cobra_win::Singleton2<ErrorTipsDataManager>::m_pMySelf = NULL; ErrorTipsDataManager::ErrorTipsDataManager(bool bLoadFromDB, bool bEncryption) : IDataManager(bLoadFromDB, bEncryption) { m_pErrorTipsData=NULL; } ErrorTipsDataManager::~ErrorTipsDataManager() { } ErrorTipsData * ErrorTipsDataManager::GetErrorTipsData() { return m_pErrorTipsData; } std::string ErrorTipsDataManager::GetName() { if (!m_bLoadFromDB) return "resource/data/errortipsdata.txt"; return "errortipsdata"; } unsigned int ErrorTipsDataManager::GetSize() { return sizeof(ErrorTipsData); } bool ErrorTipsDataManager::Init() { do { if (m_bLoadFromDB) { if (!LoadFromDB()) break; } else { if (!LoadFromFile()) break; } return true; } while(false); return false; } void ErrorTipsDataManager::Tick() { } void ErrorTipsDataManager::Destroy() { if(m_pErrorTipsData!=NULL) { delete m_pErrorTipsData; m_pErrorTipsData=NULL; } } bool ErrorTipsDataManager::Varify(IData* pData) { if (!DBSYSTEM->IsNeedVerify()) return true; ErrorTipsData* pRoleItem = (ErrorTipsData*)pData; assert(pRoleItem != NULL); return true; } bool ErrorTipsDataManager::VarifyAfterLoadAll() { return true; } bool ErrorTipsDataManager::LoadData(char* pBuffer, unsigned int iBufferLen) { ErrorTipsData* pItemData = new ErrorTipsData; if (!pItemData->ParseBuffer(pBuffer, iBufferLen)) return false; if (!Varify(pItemData)) return false; m_pErrorTipsData=pItemData; return true; }
d8db9f487dd04475c22fde8d0d52b07da99716b0
32b582d8ada9f3a77527aacfefe6c6bd7fe9458e
/class/main.cpp
1b46c850e9b729a1271afb5bed202e30e8739328
[]
no_license
revanthavs/cmput275-Revanth-
d690915f5074ac38aeccae698e82dacf17b20279
2046e533e238120f9cad0e114627909c3089b0fa
refs/heads/master
2023-05-21T20:49:46.970809
2021-06-12T16:23:30
2021-06-12T16:23:30
328,596,132
0
2
null
null
null
null
UTF-8
C++
false
false
2,104
cpp
main.cpp
#include "account.h" #include <iostream> using namespace std; void basic_class_test() { Account first; cout << first.get_balance() << endl; cout << first << endl; Account second("Omid", 1000); cout << second << endl; Account third = second; cout << third << endl; Account fourth("Zac", 1500); cout << fourth << endl; second.withdraw(600); cout << "Omid's account balance is " << second.get_balance() << endl; cout << "Zac's account balance is " << fourth.get_balance() << endl; if(second.transfer_to(fourth, 200)) { cout << "Money transfer was successful" << endl; cout << "Omid's account balance is " << second.get_balance() << endl; cout << "Zac's account balance is " << fourth.get_balance() << endl; } else cout << "Money transfer failed" << endl; if(second.transfer_to(fourth, 400)) { cout << "Money transfer was successful" << endl; cout << "Omid's account balance is " << second.get_balance() << endl; cout << "Zac's account balance is " << fourth.get_balance() << endl; } else cout << "Money transfer failed" << endl; } void polymorphic_inheritance_test() { Account first("Omid", 1000); Overdraft second("Omid", 1000, false, 500); cout << second.get_overdraft_limit() << endl; Account third("Zac", 1500); Account* first_ptr = &first; // we can't write first_ptr->get_overdraft_limit() // each instance of Overdraft is an instance of Account // hence implicit upcasting (from Overdraft* to Account*) takes place Account* second_ptr = &second; if(first_ptr->transfer_to(third, 1250)) cout << "Money transfer was successful" << endl; else cout << "Money transfer failed" << endl; if(second_ptr->transfer_to(third, 1250)) cout << "Money transfer was successful" << endl; else cout << "Money transfer failed" << endl; } void virtual_destructor_test() { Account* third_ptr = new Overdraft("Paul", 10000, false, 500); delete third_ptr; // if the destructor was not virtual then the base destructor would be called } int main() { // basic_class_test(); // polymorphic_inheritance_test(); virtual_destructor_test(); return 0; }
e1f65bd8b306d4ee8d561f67ced8312f6bc402dc
dd80a584130ef1a0333429ba76c1cee0eb40df73
/external/chromium/chrome/browser/chromeos/login/owner_manager.h
c44cf2dd981f125e37394813acb87419b8e4d067
[ "MIT", "BSD-3-Clause" ]
permissive
karunmatharu/Android-4.4-Pay-by-Data
466f4e169ede13c5835424c78e8c30ce58f885c1
fcb778e92d4aad525ef7a995660580f948d40bc9
refs/heads/master
2021-03-24T13:33:01.721868
2017-02-18T17:48:49
2017-02-18T17:48:49
81,847,777
0
2
MIT
2020-03-09T00:02:12
2017-02-13T16:47:00
null
UTF-8
C++
false
false
4,121
h
owner_manager.h
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_MANAGER_H_ #define CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_MANAGER_H_ #pragma once #include <vector> #include "base/basictypes.h" #include "base/memory/ref_counted.h" #include "crypto/rsa_private_key.h" #include "chrome/browser/chromeos/login/owner_key_utils.h" #include "content/browser/browser_thread.h" class FilePath; class NotificationDetails; class NotificationType; namespace chromeos { // This class allows the registration of an Owner of a Chromium OS device. // It handles generating the appropriate keys and storing them in the // appropriate locations. class OwnerManager : public base::RefCountedThreadSafe<OwnerManager> { public: // Return codes for public/private key operations. enum KeyOpCode { SUCCESS, KEY_UNAVAILABLE, // The necessary key isn't available yet. OPERATION_FAILED // The crypto operation failed. }; class Delegate { public: // Upon completion of a key operation, this method will be called. // |return_code| indicates what happened, |payload| will be used to pass // back any artifacts of the operation. For example, if the operation // was a signature attempt, the signature blob would come back in |payload|. virtual void OnKeyOpComplete(const KeyOpCode return_code, const std::vector<uint8>& payload) = 0; }; class KeyUpdateDelegate { public: // Called upon completion of a key update operation. virtual void OnKeyUpdated() = 0; }; OwnerManager(); virtual ~OwnerManager(); // Sets a new owner key from a provided memory buffer. void UpdateOwnerKey(const BrowserThread::ID thread_id, const std::vector<uint8>& key, KeyUpdateDelegate* d); // Pulls the owner's public key off disk and into memory. // // Call this on the FILE thread. void LoadOwnerKey(); bool EnsurePublicKey(); bool EnsurePrivateKey(); // Do the actual work of signing |data| with |private_key_|. First, // ensures that we have the keys we need. Then, computes the signature. // // On success, calls d->OnKeyOpComplete() on |thread_id| with a // successful return code, passing the signaure blob in |payload|. // On failure, calls d->OnKeyOpComplete() on |thread_id| with an appropriate // error and passes an empty string for |payload|. void Sign(const BrowserThread::ID thread_id, const std::string& data, Delegate* d); // Do the actual work of verifying that |signature| is valid over // |data| with |public_key_|. First, ensures we have the key we // need, then does the verify. // // On success, calls d->OnKeyOpComplete() on |thread_id| with a // successful return code, passing an empty string for |payload|. // On failure, calls d->OnKeyOpComplete() on |thread_id| with an appropriate // error code, passing an empty string for |payload|. void Verify(const BrowserThread::ID thread_id, const std::string& data, const std::vector<uint8>& signature, Delegate* d); private: // A helper method to send a notification on another thread. void SendNotification(NotificationType type, const NotificationDetails& details); // Calls back a key update delegate on a given thread. void CallKeyUpdateDelegate(KeyUpdateDelegate* d) { d->OnKeyUpdated(); } // A helper method to call back a delegte on another thread. void CallDelegate(Delegate* d, const KeyOpCode return_code, const std::vector<uint8>& payload) { d->OnKeyOpComplete(return_code, payload); } scoped_ptr<crypto::RSAPrivateKey> private_key_; std::vector<uint8> public_key_; scoped_refptr<OwnerKeyUtils> utils_; friend class OwnerManagerTest; DISALLOW_COPY_AND_ASSIGN(OwnerManager); }; } // namespace chromeos #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_MANAGER_H_
6eaead7afcfbb92f26432bb3d2e29e246f5f8105
c8b39acfd4a857dc15ed3375e0d93e75fa3f1f64
/Engine/Source/Developer/Merge/Private/SMergeGraphView.h
59035a005dba2d60cf0a4f616772f0205b698934
[ "MIT", "LicenseRef-scancode-proprietary-license" ]
permissive
windystrife/UnrealEngine_NVIDIAGameWorks
c3c7863083653caf1bc67d3ef104fb4b9f302e2a
b50e6338a7c5b26374d66306ebc7807541ff815e
refs/heads/4.18-GameWorks
2023-03-11T02:50:08.471040
2022-01-13T20:50:29
2022-01-13T20:50:29
124,100,479
262
179
MIT
2022-12-16T05:36:38
2018-03-06T15:44:09
C++
UTF-8
C++
false
false
1,738
h
SMergeGraphView.h
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. #pragma once #include "CoreMinimal.h" #include "Widgets/DeclarativeSyntaxSupport.h" #include "Input/Reply.h" #include "Widgets/SCompoundWidget.h" #include "BlueprintMergeData.h" #include "SBlueprintDiff.h" class FSpawnTabArgs; class FTabManager; class SMergeGraphView : public SCompoundWidget { public: SLATE_BEGIN_ARGS(SMergeGraphView){} SLATE_END_ARGS() void Construct( const FArguments InArgs , const FBlueprintMergeData& InData , FOnMergeNodeSelected SelectionCallback , TArray< TSharedPtr<FBlueprintDifferenceTreeEntry> >& OutTreeEntries , TArray< TSharedPtr<FBlueprintDifferenceTreeEntry> >& OutRealDifferences , TArray< TSharedPtr<FBlueprintDifferenceTreeEntry> >& OutConflicts); private: /** Helper functions and event handlers: */ void FocusGraph(FName GraphName); void HighlightEntry(const struct FMergeGraphRowEntry& Conflict); bool HasNoDifferences() const; TSharedRef<SDockTab> CreateGraphDiffViews(const FSpawnTabArgs& Args); TSharedRef<SDockTab> CreateMyBlueprintsViews(const FSpawnTabArgs& Args); FDiffPanel& GetRemotePanel() { return DiffPanels[EMergeParticipant::Remote]; } FDiffPanel& GetBasePanel() { return DiffPanels[EMergeParticipant::Base]; } FDiffPanel& GetLocalPanel() { return DiffPanels[EMergeParticipant::Local]; } FReply OnToggleLockView(); const FSlateBrush* GetLockViewImage() const; TArray< FDiffPanel > DiffPanels; FBlueprintMergeData Data; TSharedPtr< TArray< struct FMergeGraphEntry > > Differences; bool bViewsAreLocked; /** We can't use the global tab manager because we need to instance the merge control, so we have our own tab manager: */ TSharedPtr<FTabManager> TabManager; };
de8c5836d08a2588c63178c31a8759fbd50544c1
d7b0ad10c3e2b91d7d4503cf206f44b4848d3ff0
/incs/IA.hpp
1bc084aab685b6ec86594303bc6ca213a74b19e9
[ "Zlib" ]
permissive
nicolasOvejero/Bomberman
f795dc07bbd6f65c12321af1c0991a2938b7c60d
6e3fed6962d24c2e319440616d884fc2d6f6256c
refs/heads/master
2021-01-10T06:25:59.964860
2016-02-18T12:59:48
2016-02-18T12:59:48
52,006,528
0
0
null
null
null
null
UTF-8
C++
false
false
2,573
hpp
IA.hpp
#ifndef IA_HPP_ # define IA_HPP_ # include "AObject.hpp" # include "Camera.hpp" # include "Map.hpp" class IA : public IPerso { public: IA(int id = 1); IA(glm::vec3, int id = 1); virtual ~IA(); void ia_core(Map &map); bool checkLeft(Map &map); bool checkRight(Map &map); bool checkUp(Map &map); bool checkDown(Map &map); void putBomb(Map &map); bool check_danger(Map &map); void check_move(Map &map); virtual bool initialize(); virtual bool update(gdl::Clock const &, gdl::Input &, Camera &, Map &); virtual void draw(gdl::AShader &, gdl::Clock const &); virtual int getId() const { return _id; } virtual void setId(int const id) { _id = id; } virtual void setPos(glm::vec3 const pos) { (this->_transformation[3]).x = pos.x; (this->_transformation[3]).y = pos.y; (this->_transformation[3]).z = pos.z; } virtual float getPosX() const { return ((this->_transformation[3]).x); } virtual float getPosY() const { return ((this->_transformation[3]).y); } virtual float getPosZ() const { return ((this->_transformation[3]).z); } virtual void modifLife(int const x); virtual int getLife() const { return (this->_Life); } virtual void modifSpeed(int const x); virtual int getSpeed() const { return (this->_Speed); } virtual void modifBomb(int const x); virtual int getBomb() const { return (this->_Bomb); } virtual void modifRange(int const x); virtual int getRange() const { return (this->_Range); } virtual void setScore(int const value) { this->_score += value; } virtual int getScore() const { return this->_score; } virtual bool update(gdl::Clock const &, gdl::Input &, Camera &, int) {} virtual glm::vec3 getPosPlayer() const {} virtual glm::vec3 getDirPlayer() const {} private: float getAngleRota(eDirection); bool checkLeft(gdl::Input &, Camera &, Map &); bool checkRight(gdl::Input &, Camera &, Map &); bool checkUp(gdl::Input &, Camera &, Map &); bool checkDown(gdl::Input &, Camera &, Map &); void putBomb(Map &, gdl::Clock const &); bool checkLife(Map &, Camera &); protected: gdl::Clock _Clock; gdl::Model _model; eDirection _currentDir; glm::mat4 _transformation; int _Life; int _Bomb; int _Range; float _Speed; int _id; int _score; Camera _camera; int _bomb; int _left; int _right; int _up; int _down; bool _Up; bool _Down; bool _Left; bool _Right; char _Last_dir; steady_clock::time_point _timeSart; }; #endif /* IA_HPP_ */
2c044e8677e3cf6eadb29c8501706d52dba58edc
3033d31326bc844dbdbec57aab67bed61f6a57a0
/Src/Modules/Modeling/SoundSignalRecognizer/SoundSignalRecognizerDummy.h
197585f7cf2bc33521c2d857d1faeb2c28e5585f
[ "BSD-2-Clause" ]
permissive
yelite/BHumanCodeRelease
4b96c94b50822bcb56aa6ebbad7dba28760cf497
d6df4573dfa6ad6a1ddfb7c7a46d1957ae1b516a
refs/heads/master
2021-01-24T14:22:00.174065
2014-09-28T01:54:07
2014-09-28T01:54:07
null
0
0
null
null
null
null
UTF-8
C++
false
false
605
h
SoundSignalRecognizerDummy.h
/* * @file SoundSignalRecognizerDummy.h * */ #pragma once #include "Tools/Module/Module.h" #include "Representations/Infrastructure/FrameInfo.h" #include "Representations/Modeling/SoundSignal.h" MODULE(SoundSignalRecognizerDummy, {, REQUIRES(FrameInfo), PROVIDES_WITH_MODIFY(SoundSignal), }); /* * @class SoundSignalRecognizer * * Module that identifies signals in audio data */ class SoundSignalRecognizerDummy : public SoundSignalRecognizerDummyBase { /** * The method that detects the signals * * @param SoundSignal The identified signal */ void update(SoundSignal& soundSignal); };
01378c4aa8601a01743dd5163a02058fad39c2ff
293c244b17524210780b4fcb644c03d5cd6f1729
/src/bugengine/meta/include/builtin-value.script.hh
3b5add610453dec35c73e8aa98fabbfd8623f4b7
[ "BSD-3-Clause" ]
permissive
bugengine/BugEngine
380c0aee8ba48a07e5b820877352f922cbba0a21
1b3831d494ee06b0bd74a8227c939dd774b91226
refs/heads/master
2021-08-08T00:20:11.200535
2021-07-31T13:53:24
2021-07-31T13:53:24
20,094,089
4
1
null
null
null
null
UTF-8
C++
false
false
597
hh
builtin-value.script.hh
/* BugEngine <bugengine.devel@gmail.com> see LICENSE for detail */ #ifndef BE_META_BUILTIN_SCRIPT_HH_ #define BE_META_BUILTIN_SCRIPT_HH_ /**************************************************************************************************/ #include <bugengine/meta/stdafx.h> #include <bugengine/meta/builtin.hh> #include <bugengine/meta/classinfo.script.hh> #if 0 namespace BugEngine { namespace Meta { be_tag(Index(BugEngine::Meta::ClassType_Variant)) struct Value { }; }} #endif /**************************************************************************************************/ #endif
76003dfa86a867fdaa06e45fc60f127982b26f64
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5686313294495744_0/C++/weiszam/main.cpp
046d87015bb4461f6d965b56f3ad48348ae3ee37
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
C++
false
false
2,253
cpp
main.cpp
#include <iostream> #include <cstdio> using namespace std; struct par { int a,b; par(){}; par(int _a, int _b) { a = _a; b = _b; } }; int n; int typescount1, typescount2; string types1[20], types2[20]; par elem[20]; bool inc[20]; int gettype1(string s) { for (int i = 0; i<typescount1; i++) if (types1[i] == s) return i; types1[typescount1++] = s; return typescount1-1; } int gettype2(string s) { for (int i = 0; i<typescount2; i++) if (types2[i] == s) return i; types2[typescount2++] = s; return typescount2-1; } int ans = -1; bool x[20]; bool y[20]; void checksol() { for (int i = 0; i<20; i++) { x[i] = false; y[i] = false; } //printf("checking\n"); int c = 0; for (int i = 0; i<n; i++) { if (!inc[i]) { c++; continue; } //printf("included: %d\n", i); x[elem[i].a] = true; y[elem[i].b] = true; } for (int i = 0; i<typescount1; i++) { if (!x[i]) return; } for (int i = 0; i<typescount2; i++) { if (!y[i]) return; } //printf("accepted as %d\n", c); ans = max(ans, c); } void bt(int k) { if (k == n+1) { checksol(); return; } inc[k] = false; bt(k+1); inc[k] = true; bt(k+1); inc[k] = false; } int main() { int db; scanf("%d\n", &db); for (int cas = 1; cas <=db; cas++) { scanf("%d", &n); typescount1 = 0; typescount2 = 0; for (int i = 0; i<n; i++) { char c; string a = ""; string b = ""; scanf("%c", &c); while (c != ' ') { a+=c; scanf("%c", &c); } scanf("%c", &c); while (c != '\n') { b+=c; scanf("%c", &c); } elem[i] = par(gettype1(a), gettype2(b)); //printf("%d %d\n", elem[i].a, elem[i].b); } for (int i = 0; i<20; i++) inc[i] = false; //printf("tc %d %d\n", typescount1, typescount2); ans=-1; bt(0); printf("Case #%d: %d\n", cas, ans); } return 0; }
4546fff2594774d018ceaba8c6129d6f8226035b
bf769a3a3935a8e08f11fdf606f2e2e2bc6a5307
/MyProject/EducationalSystem/src/components/SwitchButton.h
1fb4954b100217561982bd294b2e72d1b4af1cea
[]
no_license
metanoia1989/QTStudy
b71f2c8cf6fd001a14db3f1b5ece82c1cc7f7a93
29465c6bb9fc0ef2e50a9bf2f66d996ecbd086c0
refs/heads/master
2021-12-25T16:50:26.915441
2021-10-10T01:26:14
2021-10-10T01:26:14
193,919,811
3
2
null
2021-01-25T09:23:30
2019-06-26T14:22:41
HTML
UTF-8
C++
false
false
3,820
h
SwitchButton.h
#ifndef SWITCHBUTTON_H #define SWITCHBUTTON_H #include <QWidget> #include <QTimer> #include <QColor> class SwitchButton : public QWidget { Q_OBJECT // Q_PROPERTY(int m_space READ space WRITE setSpace) // Q_PROPERTY(int m_radius READ radius WRITE setRadius) // Q_PROPERTY(bool m_checked READ checked WRITE setChecked) // Q_PROPERTY(bool m_showText READ showText WRITE setShowText) // Q_PROPERTY(bool m_showCircle READ showCircel WRITE setShowCircle) // Q_PROPERTY(bool m_animation READ animation WRITE setAnimation) // Q_PROPERTY(QColor m_bgColorOn READ bgColorOn WRITE setBgColorOn) // Q_PROPERTY(QColor m_bgColorOff READ bgColorOff WRITE setBgColorOff) // Q_PROPERTY(QColor m_sliderColorOn READ sliderColorOn WRITE setSliderColorOn) // Q_PROPERTY(QColor m_sliderColorOff READ sliderColorOff WRITE setSliderColorOff) // Q_PROPERTY(QColor m_textColor READ textColor WRITE setTextColor) // Q_PROPERTY(QString m_textOn READ textOn WRITE setTextOn) // Q_PROPERTY(QString m_textOff READ textOff WRITE setTextOff) // Q_PROPERTY(int m_step READ step WRITE setStep) // Q_PROPERTY(int m_startX READ startX WRITE setStartX) // Q_PROPERTY(int m_endX READ endX WRITE setEndX) public: explicit SwitchButton(QWidget *parent = 0); ~SwitchButton(){} signals: void statusChanged(bool checked); public slots: private slots: void updateValue(); private: void drawBackGround(QPainter *painter); void drawSlider(QPainter *painter); protected: void paintEvent(QPaintEvent *ev); void mousePressEvent(QMouseEvent *ev); private: int m_space; //滑块距离边界距离 int m_radius; //圆角角度 bool m_checked; //是否选中 bool m_showText; //是否显示文字 bool m_showCircle; //是否显示圆圈 bool m_animation; //是否使用动画 QColor m_bgColorOn; //打开时候的背景色 QColor m_bgColorOff; //关闭时候的背景色 QColor m_sliderColorOn; //打开时候滑块颜色 QColor m_sliderColorOff; //关闭时候滑块颜色 QColor m_textColor; //文字颜色 QString m_textOn; //打开时候的文字 QString m_textOff; //关闭时候的文字 QTimer *m_timer; //动画定时器 int m_step; //动画步长 int m_startX; //滑块开始X轴坐标 int m_endX; //滑块结束X轴坐标 public: int space() const; int radius() const; bool checked() const; bool showText() const; bool showCircel() const; bool animation() const; QColor bgColorOn() const; QColor bgColorOff() const; QColor sliderColorOn() const; QColor sliderColorOff() const; QColor textColor() const; QString textOn() const; QString textOff() const; int step() const; int startX() const; int endX() const; public Q_SLOTS: void setSpace(int space); void setRadius(int radius); void setChecked(bool checked); void setShowText(bool show); void setShowCircle(bool show); void setAnimation(bool ok); void setBgColorOn(const QColor &color); void setBgColorOff(const QColor &color); void setSliderColorOn(const QColor &color); void setSliderColorOff(const QColor &color); void setTextColor(const QColor &color); void setTextOn(const QString &text); void setTextOff(const QString &text); // void setStep(int step); // void setStartX(int startX); // void setEndX(int endX); }; #endif // SWITCHBUTTON_H
4cea694831f12e61bca9ac49622a973a7e31fb2e
08e02b157cd7ac94f638bd0133f40f11ead47b73
/src/ImwWindowManagerCustom.cpp
cfcb6b7d0e4d04c6e26abacdfd475fa90e74099d
[ "MIT" ]
permissive
thennequin/Texeled
9c040993e0608321a17a493a6ca6386e40428cbe
538dbc078b572754c012faa34f590ccf8a971af4
refs/heads/master
2022-11-16T16:54:24.260714
2022-11-10T20:32:04
2022-11-10T20:32:04
176,142,597
66
5
null
null
null
null
UTF-8
C++
false
false
3,170
cpp
ImwWindowManagerCustom.cpp
#define IMGUI_DEFINE_MATH_OPERATORS #include "ImwWindowManagerCustom.h" using namespace ImWindow; #include "IO/MemoryStream.h" #include "Texture/TextureLoader.h" #include "GraphicResources/Texture2D.h" #include "Resources/Icons/Default_24_png.h" #include "Program.h" #include "ImGuiUtils.h" ImwWindowManagerCustom::ImwWindowManagerCustom(bool bCustomFrame) : ImwWindowManagerDX11(bCustomFrame) , m_pIcon(NULL) { } ImwWindowManagerCustom::~ImwWindowManagerCustom() { InternalDestroy(); } bool ImwWindowManagerCustom::InternalInit() { if (ImwWindowManagerDX11::InternalInit() == false) return false; //Load Image Graphics::Texture oTexture; IO::MemoryStream oMemStream(Resources::Icons::Default_24_png::Data, Resources::Icons::Default_24_png::Size); CORE_VERIFY(Texture::LoadFromStream(&oTexture, &oMemStream) == ErrorCode::Ok); if (oTexture.IsValid()) { CORE_VERIFY_OK(GraphicResources::Texture2D::CreateFromTexture(&oTexture, &m_pIcon)); } return true; } void ImwWindowManagerCustom::InternalDestroy() { if (m_pIcon) { delete m_pIcon; m_pIcon = NULL; } ImwWindowManagerDX11::InternalDestroy(); } const float c_fIconSize = 24.f; float ImwWindowManagerCustom::GetTitleBarHeight() const { ImGuiContext* pContext = m_pMainPlatformWindow->GetContext(); float fContentSize = pContext->Style.FramePadding.y * 2.f + pContext->FontSize; if ((c_fIconSize + 1.f) > fContentSize) fContentSize = c_fIconSize + 1.f; return pContext->Style.WindowPadding.y + fContentSize; } void ImwWindowManagerCustom::PaintTitleBar(ImwPlatformWindow* pPlatformWindow, bool bDrawTitle) { ImGuiStyle& oStyle = ImGui::GetStyle(); ImVec4 oBackupChildWindowBg = oStyle.Colors[ImGuiCol_ChildWindowBg]; oStyle.Colors[ImGuiCol_ChildWindowBg].w = 0.f; if (ImGui::BeginChild("TitleBar", ImVec2(ImGui::GetContentRegionAvailWidth() - 3.f * 24.f, GetTitleBarHeight()), false, ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoScrollWithMouse | ImGuiWindowFlags_NoInputs)) { if (m_pIcon) { ImGui::Image((ImTextureID)m_pIcon->GetTextureView(), ImVec2(c_fIconSize, c_fIconSize)); ImGui::SameLine(); } const Fonts& oFonts = Program::GetInstance()->GetFonts(); ImGui::GetCurrentWindow()->DC.CurrentLineTextBaseOffset = (c_fIconSize - ImGui::GetFontSize()) / 2.f; ImGui::PushFont(oFonts.pFontConsolasBold); ImGui::TextUnformatted(GetMainTitle()); ImGui::PopFont(); ImGui::SameLine(); if (pPlatformWindow->IsMainWindow()) { if( Program::GetInstance()->GetTexture().IsValid() ) { const Core::String& sPath = Program::GetInstance()->GetTextureFilePath(); const char* pPath = sPath.c_str(); if(sPath.empty()) { pPath = "< Untitled >"; } ImGui::PushFont( oFonts.pFontConsolas ); ImGui::TextUnformatted( "-" ); ImGui::SameLine(); ImGuiUtils::TextPathWrapped( pPath ); ImGui::PopFont(); } } } ImGui::EndChild(); ImGui::SameLine(); oStyle.Colors[ImGuiCol_ChildWindowBg] = oBackupChildWindowBg; ImwWindowManager::PaintTitleBar(pPlatformWindow, false); } void ImwWindowManagerCustom::ClosePlatformWindow(ImwPlatformWindow* pPlatformWindow) { OnClosePlatformWindow(pPlatformWindow); }
de21f03de09c5729c3668b8409c82ccf8de5589d
c3f2d684483aea1df59475643fbaf94b2950376f
/mcore/plib/contiki-PtProcess/PtTimer.h
e6b6eafa1c08db88175d1a0433ce9aa10aa3f8d7
[]
no_license
thoulin/SMeshStudio_Core
290768347592318f1702fb658b7de75000470434
ebe909085686285d8ce79346eae7a7a2ab2b6032
refs/heads/master
2020-09-02T17:52:53.640286
2016-04-06T06:45:39
2016-04-06T06:45:39
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,847
h
PtTimer.h
/* * Copyright (c) 2011-2014, SmeshLink Technology Ltd. * All rights reserved. * * PtTimer.h * * Timer based on PtProcess. * * Author: Long */ #ifndef _PT_TIMER_H_ #define _PT_TIMER_H_ #include "PtProcess.h" /* * Timer based on PtProcess and Contiki etimer. */ class PtTimer : public PtProcess { private: /* * the interval to timeout */ clock_time_t interval; /* * the delay before starting the timer */ clock_time_t delay; /* * the associated etimer */ struct etimer timer; /* * the target PT_THREAD function to run */ PT_THREAD((*target)()); public: /* * Instantiates a timer. * * \param interval the interval to timeout * \param delay (optional) the delay before starting timing * \param name (optional) the name of this timer * \param autostart (optional) true if to be started automatically, otherwise false. The default value is true. */ // PtTimer(clock_time_t interval, clock_time_t delay = 0, const char *name = NULL, bool autostart = true); /* * Instantiates a timer. * * \param interval the interval to timeout in seconds * \param delay (optional) the delay before starting timing in seconds * \param name (optional) the name of this timer * \param autostart (optional) true if to be started automatically, otherwise false. The default value is true. */ PtTimer(float interval, float delay = 0, const char *name = NULL, bool autostart = true); /* * Instantiates a timer. * * \param target the target function to run periodically * \param interval the interval to timeout * \param delay (optional) the delay before starting timing * \param name (optional) the name of this timer * \param autostart (optional) true if to be started automatically, otherwise false. The default value is true. */ // PtTimer(PT_THREAD((*target)()), clock_time_t interval, clock_time_t delay = 0, const char *name = NULL, bool autostart = true); /* * Instantiates a timer. * * \param target the target function to run periodically * \param interval the interval to timeout in seconds * \param delay (optional) the delay before starting timing in seconds * \param name (optional) the name of this timer * \param autostart (optional) true if to be started automatically, otherwise false. The default value is true. */ PtTimer(PT_THREAD((*target)()), float interval, float delay = 0, const char *name = NULL, bool autostart = true); #if !CC_NO_VIRTUAL_DESTRUCTOR virtual #endif ~PtTimer(); protected: PT_THREAD(run(struct pt *process_pt, process_event_t ev, process_data_t data)); /* * Overrides this method to run periodically. * To stop this timer, return PT_ENDED, otherwise return 0. */ virtual PT_THREAD(run()); }; #endif /* _PT_TIMER_H_ */
6e9bf2c0449b5d8a7c8c67c5d8260802fe989004
79bbb99c94eace3da78d4c7d7ff6c10ccf317a81
/ZUIMgr.cpp
abfcec4e93d06bfd69f1a602492ef631c9bef65c
[]
no_license
yarpee/ZUI
32d5b49126e45b4bee2768ddc86ff0cf7ad08a3b
1e4ba7f97f5c17972bbda7eececdb4f87cd3d59c
refs/heads/master
2021-01-01T17:06:26.302999
2013-03-30T03:59:02
2013-03-30T03:59:02
null
0
0
null
null
null
null
GB18030
C++
false
false
11,287
cpp
ZUIMgr.cpp
#include "ZUIMgr.h" #include "ZWindow.h" #include "ZControl.h" #include <WindowsX.h> CZUIMgr::CZUIMgr(void) : m_pWindow(NULL) , m_pHoverCtrl(NULL) , m_pFocusCtrl(NULL) , m_pClickCtrl(NULL) , m_hPaintDC(NULL) , m_hOffscreenDC(NULL) , m_hOffscreenBmp(NULL) , m_hBackgroundDC(NULL) , m_hBackgroundBmp(NULL) { } CZUIMgr::~CZUIMgr(void) { Detach(); } VOID CZUIMgr::Attach(CZWindow* pWindow) { ATLASSERT(pWindow != NULL && ::IsWindow(*pWindow)); m_pWindow = pWindow; m_hPaintDC = ::GetDC(*m_pWindow); ATLASSERT(m_hPaintDC != NULL); m_pWindow->AttachZUIMgr(this); } CZWindow* CZUIMgr::Detach() { if(m_pWindow != NULL) { m_pWindow->DetachZUIMgr(); } if(m_hPaintDC != NULL) { ::ReleaseDC(*m_pWindow, m_hPaintDC); m_hPaintDC = NULL; } if(m_hOffscreenDC != NULL) { ::DeleteDC(m_hOffscreenDC); m_hOffscreenDC = NULL; } if(m_hOffscreenBmp != NULL) { ::DeleteObject(m_hOffscreenBmp); m_hOffscreenBmp = NULL; } if(m_hBackgroundDC != NULL) { ::DeleteDC(m_hBackgroundDC); m_hBackgroundDC = NULL; } if(m_hBackgroundBmp != NULL) { ::DeleteObject(m_hBackgroundBmp); m_hBackgroundBmp = NULL; } CZWindow* pWindow = m_pWindow; m_pWindow = NULL; return pWindow; } ////////////////////////////////////////////////////////////////////////// // Notify start VOID CZUIMgr::AddNotifier(INotify* pNotifier) { ATLASSERT(pNotifier != NULL); if(pNotifier != NULL) { CZCritSecLock Lock(m_cs); m_aNotifier.Add(pNotifier); } } BOOL CZUIMgr::RemoveNotifier(INotify* pNotifier) { BOOL bRet = FALSE; ATLASSERT(pNotifier != NULL); if(pNotifier != NULL) { CZCritSecLock Lock(m_cs); bRet = m_aNotifier.Remove(pNotifier); } return bRet; } VOID CZUIMgr::Notify(const NOTIFY& notify) { CZCritSecLock Lock(m_cs); for(int i = 0; i < m_aNotifier.GetSize(); ++i) { ATLASSERT(m_aNotifier[i] != NULL); if(m_aNotifier[i] != NULL) { m_aNotifier[i]->Notify(notify); } } } // Notify end ////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////// // MessageHandler start LRESULT CZUIMgr::HandleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled) { ATLASSERT(m_pWindow != NULL && ::IsWindow(*m_pWindow)); bHandled = FALSE; LRESULT lRes = 0; switch(uMsg) { case WM_SIZE: { // TODO: http://msdn.microsoft.com/en-us/library/ms632646%28VS.85%29.aspx } break; case WM_PAINT: { bHandled = OnPaint(); } break; case WM_CLOSE: { bHandled = OnClose(); } break; case WM_ERASEBKGND: { // TODO: 返回值表示背景已由我们处理, 需要添加代码. bHandled = TRUE; lRes = 1; } break; case WM_SETCURSOR: { // TODO: http://msdn.microsoft.com/zh-cn/library/ms648382.aspx } break; case WM_GETMINMAXINFO: { // TODO: http://msdn.microsoft.com/en-us/library/ms632626(v=vs.85).aspx } break; case WM_NOTIFY: { // TODO: http://msdn.microsoft.com/en-us/library/bb775583 } break; case WM_CONTEXTMENU: { // TODO: http://msdn.microsoft.com/zh-cn/library/ms647592.aspx } break; case WM_KEYDOWN: { // TODO: http://msdn.microsoft.com/en-us/library/ms646280.aspx } break; case WM_KEYUP: { // TODO: http://msdn.microsoft.com/en-us/library/ms646281.aspx } break; case WM_CHAR: { // TODO: http://msdn.microsoft.com/en-us/library/ms646276.aspx } break; case WM_COMMAND: { // TODO: http://msdn.microsoft.com/en-us/library/ms647591(v=vs.85).aspx } break; case WM_TIMER: { // TODO: 分发Timer } break; case WM_CTLCOLOREDIT: { // TODO: http://msdn.microsoft.com/zh-cn/library/windows/desktop/bb761691(v=vs.85).aspx } break; case WM_CTLCOLORSTATIC: { // TODO: http://msdn.microsoft.com/zh-cn/library/bb787524(v=vs.85) } break; case WM_MOUSEMOVE: { POINT pt = {0}; pt.x = GET_X_LPARAM(lParam); pt.y = GET_Y_LPARAM(lParam); bHandled = OnMouseMove(pt); } break; case WM_LBUTTONDOWN: { POINT pt = {0}; pt.x = GET_X_LPARAM(lParam); pt.y = GET_Y_LPARAM(lParam); bHandled = OnLButtonDown(pt); } break; case WM_LBUTTONUP: { POINT pt = {0}; pt.x = GET_X_LPARAM(lParam); pt.y = GET_Y_LPARAM(lParam); bHandled = OnLButtonUp(pt); } break; case WM_LBUTTONDBLCLK: { POINT pt = {0}; pt.x = GET_X_LPARAM(lParam); pt.y = GET_Y_LPARAM(lParam); bHandled = OnLButtonDbClk(pt); } break; case WM_RBUTTONDOWN: { // TODO: http://msdn.microsoft.com/en-us/library/ms646242(VS.85).aspx } break; case WM_MOUSEWHEEL: { // TODO: http://msdn.microsoft.com/zh-SG/library/ms645617 } break; case WM_MOUSEHOVER: { // TODO: Tooltip } break; case WM_MOUSELEAVE: { // TODO: Tooltip } break; case WM_PRINTCLIENT: { // TODO: http://technet.microsoft.com/zh-cn/library/dd145217 } break; default: { } break; } return lRes; } BOOL CZUIMgr::OnPaint() { ATLASSERT((m_pWindow != NULL) && ::IsWindow(*m_pWindow)); BOOL bHandled = FALSE; CZControl* pRootCtrl = m_pWindow->GetRootControl(); if(pRootCtrl != NULL) { RECT rcUpdate = {0}; if(::GetUpdateRect(*m_pWindow, &rcUpdate, FALSE)) { PAINTSTRUCT ps = {0}; ::BeginPaint(*m_pWindow, &ps); // 创建离屏DC和Bmp if(NULL == m_hOffscreenDC) { RECT rcClient = {0}; ::GetClientRect(*m_pWindow, &rcClient); m_hOffscreenDC = ::CreateCompatibleDC(m_hPaintDC); m_hOffscreenBmp = ::CreateCompatibleBitmap(m_hPaintDC, GetRectWidth(rcClient), GetRectHeight(rcClient)); ATLASSERT(m_hOffscreenDC != NULL && m_hOffscreenBmp != NULL); } // 关联离屏DC和Bmp HBITMAP hOldBmp = (HBITMAP)::SelectObject(m_hOffscreenDC, m_hOffscreenBmp); int nIndex = ::SaveDC(m_hOffscreenDC); // 创建背景DC和Bmp并关联, BitBlt ps.hdc到m_hBackgroundDC if(NULL == m_hBackgroundDC) { RECT rcClient = {0}; ::GetClientRect(*m_pWindow, &rcClient); m_hBackgroundDC = ::CreateCompatibleDC(m_hPaintDC); m_hBackgroundBmp = ::CreateCompatibleBitmap(m_hPaintDC, GetRectWidth(rcClient), GetRectHeight(rcClient)); ATLASSERT(m_hBackgroundDC != NULL && m_hBackgroundBmp != NULL); ::SelectObject(m_hBackgroundDC, m_hBackgroundBmp); ::BitBlt(m_hBackgroundDC, ps.rcPaint.left, ps.rcPaint.top, GetRectWidth(ps.rcPaint), GetRectHeight(ps.rcPaint), ps.hdc, ps.rcPaint.left, ps.rcPaint.top, SRCCOPY); } else { //::SelectObject(m_hBackgroundDC, m_hBackgroundBmp); } // BitBlt m_hBackgroundDC到m_hOffscreenDC ::BitBlt(m_hOffscreenDC, ps.rcPaint.left, ps.rcPaint.top, GetRectWidth(ps.rcPaint), GetRectHeight(ps.rcPaint), m_hBackgroundDC, ps.rcPaint.left, ps.rcPaint.top, SRCCOPY); // 各控件绘制 pRootCtrl->OnPaint(m_hOffscreenDC, ps.rcPaint); // BitBlt m_hOffscreenDC到ps.hdc ::RestoreDC(m_hOffscreenDC, nIndex); ::BitBlt(ps.hdc, ps.rcPaint.left, ps.rcPaint.top, GetRectWidth(ps.rcPaint), GetRectHeight(ps.rcPaint), m_hOffscreenDC, ps.rcPaint.left, ps.rcPaint.top, SRCCOPY); ::SelectObject(m_hOffscreenDC, hOldBmp); ::EndPaint(*m_pWindow, &ps); bHandled = TRUE; } } return bHandled; } BOOL CZUIMgr::OnClose() { // 结束未结束的事件 if(m_pHoverCtrl != NULL) { EVENT e = {0}; e.dwEventID = E_MOUSELEAVE; e.dwTimestamp = ::GetTickCount(); m_pHoverCtrl->HandleEvent(e); } SetFocus(NULL); if(m_pClickCtrl != NULL) { EVENT e = {0}; e.dwEventID = E_LBUTTONUP; e.dwTimestamp = ::GetTickCount(); m_pClickCtrl->HandleEvent(e); } // TODO: 这里可以增加一个应用程序退出的NOTIFY, 但在CZWindow中通过捕获WM_CLOSE消息也可以实现. // 需要注意捕获WM_CLOSE消息进行处理后bHandled要置为FALSE, 由CZUIMgr处理WM_CLOSE消息进入这里. return TRUE; } BOOL CZUIMgr::OnMouseMove(POINT& pt) { ATLASSERT((m_pWindow != NULL) && ::IsWindow(*m_pWindow)); BOOL bRet = FALSE; do { CZControl* pRootCtrl = m_pWindow->GetRootControl(); if(NULL == pRootCtrl) { break; } CZControl* pHoverCtrl = pRootCtrl->FindControl(pt); if(NULL == pHoverCtrl) { if(m_pHoverCtrl != NULL) { EVENT e = {0}; e.dwEventID = E_MOUSELEAVE; e.dwTimestamp = ::GetTickCount(); e.ptMouse = pt; m_pHoverCtrl->HandleEvent(e); m_pHoverCtrl = NULL; } } else { if(m_pHoverCtrl != pHoverCtrl) { if(m_pHoverCtrl != NULL) { EVENT e = {0}; e.dwEventID = E_MOUSELEAVE; e.dwTimestamp = ::GetTickCount(); e.ptMouse = pt; m_pHoverCtrl->HandleEvent(e); } m_pHoverCtrl = pHoverCtrl; EVENT e = {0}; e.dwEventID = E_MOUSEMOVE; e.dwTimestamp = ::GetTickCount(); e.ptMouse = pt; m_pHoverCtrl->HandleEvent(e); } } bRet = TRUE; } while (0); return bRet; } BOOL CZUIMgr::OnLButtonDown(POINT& pt) { ATLASSERT((m_pWindow != NULL) && ::IsWindow(*m_pWindow)); BOOL bRet = FALSE; do { CZControl* pRootCtrl = m_pWindow->GetRootControl(); if(NULL == pRootCtrl) { break; } CZControl* pCtrl = pRootCtrl->FindControl(pt); if(pCtrl != NULL) { ::SetCapture(*m_pWindow); SetFocus(pCtrl); m_pClickCtrl = pCtrl; EVENT e = {0}; e.dwEventID = E_LBUTTONDOWN; e.dwTimestamp = ::GetTickCount(); e.ptMouse = pt; m_pClickCtrl->HandleEvent(e); } bRet = TRUE; } while (0); return bRet; } BOOL CZUIMgr::OnLButtonUp(POINT& pt) { ATLASSERT((m_pWindow != NULL) && ::IsWindow(*m_pWindow)); BOOL bRet = FALSE; do { CZControl* pRootCtrl = m_pWindow->GetRootControl(); if(NULL == pRootCtrl) { break; } if(m_pClickCtrl != NULL) { ::ReleaseCapture(); EVENT e = {0}; e.dwEventID = E_LBUTTONUP; e.dwTimestamp = ::GetTickCount(); e.ptMouse = pt; m_pClickCtrl->HandleEvent(e); m_pClickCtrl = NULL; } bRet = TRUE; } while (0); return bRet; } BOOL CZUIMgr::OnLButtonDbClk(POINT& pt) { ATLASSERT((m_pWindow != NULL) && ::IsWindow(*m_pWindow)); BOOL bRet = FALSE; do { CZControl* pRootCtrl = m_pWindow->GetRootControl(); if(NULL == pRootCtrl) { break; } CZControl* pCtrl = pRootCtrl->FindControl(pt); if(pCtrl != NULL) { ::SetCapture(*m_pWindow); SetFocus(pCtrl); m_pClickCtrl = pCtrl; EVENT e = {0}; e.dwEventID = E_LBUTTONDBCLK; e.dwTimestamp = ::GetTickCount(); e.ptMouse = pt; m_pClickCtrl->HandleEvent(e); } bRet = TRUE; } while (0); return bRet; } // MessageHandler end ////////////////////////////////////////////////////////////////////////// VOID CZUIMgr::InvalidateRect(RECT& rc, BOOL bEraseBG /* = FALSE */) { ATLASSERT(m_pWindow != NULL && ::IsWindow(*m_pWindow)); ::InvalidateRect(*m_pWindow, &rc, bEraseBG); } VOID CZUIMgr::SetFocus(CZControl* pCtrl) { if(pCtrl != m_pFocusCtrl) { HWND hWnd = ::GetFocus(); if(hWnd != *m_pWindow) { ::SetFocus(*m_pWindow); } // KillFocus if(m_pFocusCtrl != NULL) { EVENT e = {0}; e.dwEventID = E_KILLFOCUS; e.dwTimestamp = ::GetTickCount(); m_pFocusCtrl->HandleEvent(e); } // SetFocus m_pFocusCtrl = pCtrl; if(m_pFocusCtrl != NULL) { EVENT e = {0}; e.dwEventID = E_SETFOCUS; e.dwTimestamp = ::GetTickCount(); m_pFocusCtrl->HandleEvent(e); } } }
eb06231b289e2b3962a56e7490d443c08821ff0f
646baef67b89ae60f6f15d30b7b12e5a41ec9de2
/modules/src/io/serializationhelper.cpp
e99ac5ad0d6175aeb4f7a431c04aed88ed5f1aa7
[ "MIT" ]
permissive
phernst/ctl
7e0e1fb69b37087ebcc96b933e0a0bd6ec7311b0
f2369cf3141ff6a696219f99b09fd60c0ea12eac
refs/heads/master
2020-09-29T01:56:36.898268
2020-05-11T13:11:26
2020-05-11T13:11:26
226,919,252
0
0
null
null
null
null
UTF-8
C++
false
false
2,889
cpp
serializationhelper.cpp
#include "serializationhelper.h" #include "acquisition/abstractpreparestep.h" #include "components/systemcomponent.h" #include "models/abstractdatamodel.h" #include "projectors/abstractprojector.h" namespace CTL { SerializationHelper& SerializationHelper::instance() { static SerializationHelper helper; return helper; } const QMap<int, SerializationHelper::SerializableFactoryFunction>& SerializationHelper::componentFactories() const { return _componentFactories; } const QMap<int, SerializationHelper::SerializableFactoryFunction>& SerializationHelper::modelFactories() const { return _modelFactories; } const QMap<int, SerializationHelper::SerializableFactoryFunction>& SerializationHelper::prepareStepFactories() const { return _prepareStepFactories; } const QMap<int, SerializationHelper::SerializableFactoryFunction>& SerializationHelper::projectorFactories() const { return _projectorFactories; } const QMap<int, SerializationHelper::SerializableFactoryFunction>& SerializationHelper::miscFactories() const { return _miscFactories; } SystemComponent* SerializationHelper::parseComponent(const QVariant& variant) { auto ptr = parse(variant, instance().componentFactories()); auto castedPtr = dynamic_cast<SystemComponent*>(ptr); if(castedPtr == nullptr) // conversion not successful delete ptr; return castedPtr; } AbstractDataModel* SerializationHelper::parseDataModel(const QVariant& variant) { auto ptr = parse(variant, instance().modelFactories()); auto castedPtr = dynamic_cast<AbstractDataModel*>(ptr); if(castedPtr == nullptr) // conversion not successful delete ptr; return castedPtr; } AbstractPrepareStep* SerializationHelper::parsePrepareStep(const QVariant& variant) { auto ptr = parse(variant, instance().prepareStepFactories()); auto castedPtr = dynamic_cast<AbstractPrepareStep*>(ptr); if(castedPtr == nullptr) // conversion not successful delete ptr; return castedPtr; } AbstractProjector* SerializationHelper::parseProjector(const QVariant& variant) { auto ptr = parse(variant, instance().projectorFactories()); auto castedPtr = dynamic_cast<AbstractProjector*>(ptr); if(castedPtr == nullptr) // conversion not successful delete ptr; return castedPtr; } SerializationInterface* SerializationHelper::parseMiscObject(const QVariant& variant) { return parse(variant, instance().miscFactories()); } SerializationInterface* SerializationHelper::parse(const QVariant& variant, const FactoryMap& factoryMap) { auto varMap = variant.toMap(); if(!varMap.contains("type-id")) return nullptr; auto typeID = varMap.value("type-id").toInt(); if(!factoryMap.contains(typeID)) return nullptr; return factoryMap[typeID](variant); } } // namespace CTL
bf78ec747dd920098f0f196d26a974c046a1b592
1a6d23327411ee62a489b3d1f35f3f4c02c99b85
/pinkbullet.h
9a3706477308ad2b8cc41b687bee1be73b0dae6e
[]
no_license
fyzl233/bighomework
d34397c7022bd04b882bc596b11c11b60ae86e0e
d93e8b60aaa1e591406385e765bb76afbd06841f
refs/heads/master
2022-11-09T19:49:58.892003
2020-06-26T07:29:33
2020-06-26T07:29:33
269,557,438
1
1
null
null
null
null
UTF-8
C++
false
false
267
h
pinkbullet.h
#ifndef PINKBULLET_H #define PINKBULLET_H #include <bullet.h> class Pinkbullet: public Bullet { public: Pinkbullet(); Pinkbullet(int _x,int _y); void distanceattack(Smallbug &a); protected: void paintEvent(QPaintEvent *); }; #endif // PINKBULLET_H
ac5b3e5eace88318ac5745d2809960ba5cec85fc
a2d8721b10bd87d0fbef162f4eeae3adf52cf42c
/app/LatinIME/native/dicttoolkit/src/utils/arguments_parser.h
32bd328d4ead7415e92b307d2cdde15ab90eed4e
[ "MIT" ]
permissive
makerforceio/auto_emojiboard
7c0bf2ef2be5ee4164cfedd18d35065cc98f07a6
c15fed723a6a63394cce7b43d777fc1adc8c3ea8
refs/heads/master
2023-07-07T11:55:26.377440
2023-07-01T05:14:02
2023-07-01T05:14:02
119,136,248
0
1
MIT
2023-07-01T05:14:04
2018-01-27T05:34:22
Java
UTF-8
C++
false
false
4,486
h
arguments_parser.h
/* * Copyright (C) 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef LATINIME_DICT_TOOLKIT_ARGUMENTS_PARSER_H #define LATINIME_DICT_TOOLKIT_ARGUMENTS_PARSER_H #include <string> #include <unordered_map> #include <vector> #include "dict_toolkit_defines.h" #include "utils/arguments_and_options.h" namespace latinime { namespace dicttoolkit { class OptionSpec { public: // Default constructor and assignment operator is enabled to be used with std::unordered_map. OptionSpec() = default; OptionSpec &operator=(const OptionSpec &) = default; static OptionSpec keyValueOption(const std::string &valueName, const std::string &defaultValue, const std::string &description) { return OptionSpec(true /* needsValue */, valueName, defaultValue, description); } static OptionSpec switchOption(const std::string &description) { return OptionSpec(false /* needsValue */, "" /* valueName */, "" /* defaultValue */, description); } bool needsValue() const { return mNeedsValue; } const std::string &getValueName() const { return mValueName; } const std::string &getDefaultValue() const { return mDefaultValue; } const std::string &getDescription() const { return mDescription; } private: OptionSpec(const bool needsValue, const std::string &valueName, const std::string &defaultValue, const std::string &description) : mNeedsValue(needsValue), mValueName(valueName), mDefaultValue(defaultValue), mDescription(description) {} // Whether the option have to be used with a value or just a switch. // e.g. 'f' in "command -f /path/to/file" is mNeedsValue == true. // 'f' in "command -f -t" is mNeedsValue == false. bool mNeedsValue; // Name of the value used to show usage. std::string mValueName; std::string mDefaultValue; std::string mDescription; }; class ArgumentSpec { public: static const size_t UNLIMITED_COUNT; static ArgumentSpec singleArgument(const std::string &name, const std::string &description) { return ArgumentSpec(name, 1 /* minCount */, 1 /* maxCount */, description); } static ArgumentSpec variableLengthArguments(const std::string &name, const size_t minCount, const size_t maxCount, const std::string &description) { return ArgumentSpec(name, minCount, maxCount, description); } const std::string &getName() const { return mName; } size_t getMinCount() const { return mMinCount; } size_t getMaxCount() const { return mMaxCount; } const std::string &getDescription() const { return mDescription; } private: DISALLOW_DEFAULT_CONSTRUCTOR(ArgumentSpec); ArgumentSpec(const std::string &name, const size_t minCount, const size_t maxCount, const std::string &description) : mName(name), mMinCount(minCount), mMaxCount(maxCount), mDescription(description) {} const std::string mName; const size_t mMinCount; const size_t mMaxCount; const std::string mDescription; }; class ArgumentsParser { public: ArgumentsParser(const std::unordered_map<std::string, OptionSpec> &&optionSpecs, const std::vector<ArgumentSpec> &&argumentSpecs) : mOptionSpecs(std::move(optionSpecs)), mArgumentSpecs(std::move(argumentSpecs)) {} const ArgumentsAndOptions parseArguments(const int argc, char **argv, const bool printErrorMessage) const; bool validateSpecs() const; void printUsage(const std::string &commandName, const std::string &description) const; private: DISALLOW_DEFAULT_CONSTRUCTOR(ArgumentsParser); DISALLOW_ASSIGNMENT_OPERATOR(ArgumentsParser); const std::unordered_map<std::string, OptionSpec> mOptionSpecs; const std::vector<ArgumentSpec> mArgumentSpecs; }; } // namespace dicttoolkit } // namespace latinime #endif // LATINIME_DICT_TOOLKIT_ARGUMENTS_PARSER_H
46d851b02e6e1c25db4b0bc6fe07c9013f8cdcbc
7a291d31128ddf2b9af386b35d32180ca5fab26c
/CombattantsQT/targetview.cpp
71900c086a5590d1cc2a02cb35aec1266745368a
[]
no_license
TVPDamienL/CombattantQT
2104441b518822682c7de70400daf5200f5ff55c
055e3ea639c357b26b62128146d1927f442af891
refs/heads/master
2020-03-29T09:24:36.220086
2018-11-12T14:03:50
2018-11-12T14:03:50
149,756,789
0
0
null
null
null
null
UTF-8
C++
false
false
634
cpp
targetview.cpp
#include "targetview.h" #include "combattant.h" #include "combattantmodel.h" cTargetView::~cTargetView() { } cTargetView::cTargetView( QWidget* iParent ) : tSuperClass( iParent ) { ui.setupUi( this ); mMappy = new QDataWidgetMapper( this ); mMappy->setOrientation( Qt::Vertical ); } void cTargetView::ShowTarget( cCombattant* iCombattant ) { // The combattant model and the mapper delete mMappy->model(); mMappy->setModel( new cCombattantModel( iCombattant ) ); mMappy->clearMapping(); mMappy->addMapping( ui.lineEdit, 0 ); mMappy->addMapping( ui.spinBox, 3 ); mMappy->toFirst(); }
1fa648e34f311a6b9350e1cddea0e45097dd79d0
6efb2755f7d0749f60c19a72133f1cd8e892b5c8
/tessViewer/ShaderManager.cpp
6d1f9a65af69166bcdf1bc53e6844465403fbea9
[]
no_license
araki-syun/tessViewer
954f5becc3775c81184bcf0ea37b8ff81e7a87e4
06c0ac5cad0e4d6412157a739ed61ef26d0f20d9
refs/heads/master
2022-03-22T18:38:28.146450
2019-12-06T12:15:37
2019-12-06T12:15:37
210,823,541
0
0
null
null
null
null
UTF-8
C++
false
false
2,770
cpp
ShaderManager.cpp
#include "ShaderManager.h" #include "log.h" //glShaderUniformBuffer::glShaderUniformBuffer(/*GLuint program,*/ int buf_size, const char * name) : // _binding(_bindindex++),_buffer(0), _bufSize(buf_size) //{ // this->Set(/*program,*/ name); //} //glShaderUniformBuffer::~glShaderUniformBuffer() //{ // if (_buffer) // glDeleteBuffers(1, &_buffer); // --_bindindex; //} // //void glShaderUniformBuffer::Update(const void * val) const //{ // glNamedBufferSubData(_buffer, 0, _bufSize, val); // // glBindBufferBase(GL_UNIFORM_BUFFER, _binding, _buffer); //} //void glShaderUniformBuffer::Set(/*GLuint program,*/ const char * name) //{ // if (_buffer) // glDeleteBuffers(1, &_buffer); // glCreateBuffers(1, &_buffer); // glNamedBufferData(_buffer, _bufSize, nullptr, GL_DYNAMIC_DRAW); //} //GLuint glShaderUniformBuffer::GetBuffer() //{ // return _buffer; //} //GLuint glShaderUniformBuffer::GetBinding() //{ // return _binding; //} // //GLuint glShaderUniformBuffer::_bindindex = 0; namespace tv { ShaderManager::ShaderManager() = default; ShaderManager::~ShaderManager() = default; ShaderManager::shader_iterator ShaderManager::_add(const GlslProgram::GlslInfo& glsl) { auto it = _shader_list.emplace( std::piecewise_construct, std::forward_as_tuple(glsl.Str()), std::forward_as_tuple(new GlslProgram(glsl))); if (it.second) { return it.first; } { throw GraphicsError(LogLevel::Error, "Shader Insert ERROR"); } } ShaderManager::shader_iterator ShaderManager::_add(const GlslProgram::GlslInfo& glsl, const OsdInfo& osd) { auto it = _shader_list.emplace( std::piecewise_construct, std::forward_as_tuple(glsl.Str() + osd.Str()), std::forward_as_tuple(new GlslProgram(glsl, osd))); if (it.second) { return it.first; } { throw GraphicsError(LogLevel::Error, "Shader Insert ERROR"); } } const GlslProgram& ShaderManager::Get(const GlslProgram::GlslInfo& glsl) { auto it = _shader_list.find(glsl.Str()); if (it != _shader_list.cend()) { return *(it->second.get()); } auto it2 = _add(glsl); return *(it2->second.get()); } const GlslProgram& ShaderManager::Get(const GlslProgram::GlslInfo& glsl, const OsdInfo& osd) { auto it = _shader_list.find(glsl.Str() + osd.Str()); if (it != _shader_list.cend()) { return *(it->second.get()); } auto it2 = _add(glsl, osd); return *(it2->second.get()); } //const glShaderUniformBuffer * ShaderManager::GetUniformBuffer(const std::string & name) //{ // auto it = uniformBuffer_map.find(name); // if (it != uniformBuffer_map.cend()) // return it->second.get(); // return nullptr; //} //void ShaderManager::GenUniformBuffer(const std::string & name, int buf_size) //{ // uniformBuffer_map[name].reset(new glShaderUniformBuffer(buf_size, name.c_str())); //} } // namespace tv
8374ae4505c6e7d578405f13c5fe5548cb23ed71
911c6c8da18d05d2cd8fefefdf57e2db7273ce3c
/TrenchCoatAdministrator-GUI-MVC/AbstractRepository.cpp
f75d8b886bddfdeabe82f392f3d722d3194a0ff0
[]
no_license
ComanacDragos/Assembly-C-CPP-Projects
db1d34f05e4eaa9f978330503f81da0468682ce9
5aa306032319ae7840b30928b3268878b6e18869
refs/heads/master
2023-04-15T02:16:10.782569
2021-03-16T13:41:16
2021-03-16T13:41:16
261,495,900
0
0
null
null
null
null
UTF-8
C++
false
false
32
cpp
AbstractRepository.cpp
#include "AbstractRepository.h"
14eb337d26ad40bb5301c4b6e841216c95430b22
af1f72ae61b844a03140f3546ffc56ba47fb60df
/src/framework/config/op_config_prefix.hpp
056b513e0e9c44338b3e42e993ebb1d75bf2c00d
[ "Apache-2.0" ]
permissive
Spirent/openperf
23dac28e2e2e1279de5dc44f98f5b6fbced41a71
d89da082e00bec781d0c251f72736602a4af9b18
refs/heads/master
2023-08-31T23:33:38.177916
2023-08-22T03:23:25
2023-08-22T07:13:15
143,898,378
23
16
Apache-2.0
2023-08-22T07:13:16
2018-08-07T16:13:07
C++
UTF-8
C++
false
false
211
hpp
op_config_prefix.hpp
#ifndef _OP_CONFIG_PREFIX_HPP_ #define _OP_CONFIG_PREFIX_HPP_ #include <string> #include <optional> namespace openperf::config { std::optional<std::string> get_prefix(); } #endif /* _OP_CONFIG_PREFIX_HPP_ */
379c25ae63f41d3f23d5aede84418a708dbca8a6
2b17b2963e71119edc8d368c0493f53a642d07f2
/Settings.h
cb48c271e054b3b3cd7850143713e986c11d02d9
[]
no_license
lisaqpham/GameOfLife
3b1b923ac46c78159f1a40bd7c692d43fd0c5f0e
a0fd4d2f919c0b7ecc23ab8b9c1eba9c4bc2b5a2
refs/heads/master
2020-08-04T19:42:18.298320
2019-10-02T06:44:03
2019-10-02T06:44:03
212,257,072
0
0
null
null
null
null
UTF-8
C++
false
false
318
h
Settings.h
#include <iostream> using namespace std; class Settings{ public: int fileSet, outputSet, boundarySet; int dimX, dimY; double density; string inFile, outFile; Settings(); void randomSet(); void mapSet(); int fileSettings(); int outputSettings(); int boundarySettings(); };
d11ca5e0222c472849eca7f866e8dffb9c684efd
0a5081f0a5477f4dd359806fcd672be9a4de774e
/src/Patrol.h
71e5b0b83852b70e46afbf3fa87fa4b35a021ba6
[]
no_license
azmoaum/seng330a2
7e78a5efaa9cae23b7866f3184ba489dbafc5327
e8c303ee2a2b208b3a359446423d04357def7746
refs/heads/master
2021-05-30T12:10:40.171117
2015-11-14T19:47:06
2015-11-14T19:47:06
null
0
0
null
null
null
null
UTF-8
C++
false
false
426
h
Patrol.h
/* * Patrol.h * * Created on: Nov 8, 2015 * Author: aodhzhao */ #ifndef PATROL_H_ #define PATROL_H_ #include "Ship.h" /** * A derived class of Ship representing a Patrol */ class Patrol: public Ship { public: /** * Constructs a Patrol with the specified name and health. */ Patrol(std::string n, int h); Ship* clone(); //!< Create and return a pointer to a copy of this object }; #endif /* PATROL_H_ */
5728445c7c98e19a286988ed2c871cecfb419d85
8cc820c34c0bdff966c1a9d71b9a1ffbc027c8ae
/12.3树的子结构.cpp
3a5ef2e32e70e4863ee97e4430d2768c9b5c065d
[]
no_license
37Vision/offer
89afa982fb06740ed783730fc8e48734bc58effa
b6f113badb3666b0faa1bec2a9bd27771265aa92
refs/heads/master
2021-06-08T03:20:10.491167
2021-04-26T03:58:42
2021-04-26T03:58:42
153,893,586
0
0
null
2018-10-25T02:08:56
2018-10-20T10:16:42
C++
UTF-8
C++
false
false
1,348
cpp
12.3树的子结构.cpp
/* struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) { } };*/ class Solution { public: bool flag = false; bool Subtree(TreeNode* pRoot1, TreeNode* pRoot2) { //树二等于NULL,则说明树二已经遍历匹配完成 if(pRoot2 == NULL) return true; else if(pRoot1 == NULL) return false; //如果顶点相同,则判断子结构 else if(pRoot1->val == pRoot2->val) return Subtree(pRoot1->left,pRoot2->left) && Subtree(pRoot1->right,pRoot2->right); else return false; } //遍历树1 void travel(TreeNode* pRoot1, TreeNode* pRoot2) { if(pRoot1 == NULL) return; else if(pRoot1->val == pRoot2->val) //如果两棵树的顶点值相同,则判断两棵树子树 flag |= Subtree(pRoot1->left,pRoot2->left) && Subtree(pRoot1->right,pRoot2->right); //因为树一中有可能有多个结点的值和树二的顶点相同,所以或上flag travel(pRoot1->left,pRoot2); travel(pRoot1->right,pRoot2); } bool HasSubtree(TreeNode* pRoot1, TreeNode* pRoot2) { if(pRoot1 == NULL || pRoot2 == NULL) return false; travel(pRoot1, pRoot2); return flag; } };
882cf41c349b476d7360f7e6e50fc3f573b5f8e8
91526043b1b07cc61786231eaa5c0b50c1d8c637
/testing_CPP/testing_potts.cpp
a05eb323c7e86b1acfe9af75ac2964054c43e826
[]
no_license
JSHBaxter/DeepFlow
48349012a2dcf2b6bd478fa4efdf192ed775ddae
8b6864602afe5a0b3697a5547111c920bb4c4702
refs/heads/master
2022-08-09T17:09:55.937245
2022-07-07T13:09:18
2022-07-07T13:09:18
179,251,288
0
0
null
null
null
null
UTF-8
C++
false
false
6,611
cpp
testing_potts.cpp
#include <iostream> #include "../CPP/potts_auglag3d_gpu_solver.h" #include "../CPP/potts_meanpass3d_gpu_solver.h" #include "../CPP/gpu_kernels.h" #define DEBUG true void print_gpu_buffer(cudaStream_t& dev, const float* const buffer, int size){ if(!DEBUG) return; float* buffer_c = new float[size]; get_from_gpu(dev,buffer,buffer_c,size*sizeof(float)); for(int i = 0; i < size; i++) std::cout << buffer_c[i] << " "; std::cout << std::endl; delete[] buffer_c; } int main(int argc, char** argv){ std::cout << "Starting" << std::endl; cudaSetDevice(0); std::cout << "Got device" << std::endl; cudaStream_t dev; cudaStreamCreate (&dev); std::cout << "Made stream" << std::endl; //get tensor sizing information int n_b = 1; int n_c = 3; int n_x = 4; int n_y = 4; int n_z = 4; int n_s = n_c*n_x*n_y*n_z; std::cout << "Starting to make input tensors" << std::endl; //get input buffers float * data_buf = 0; cudaMalloc(&data_buf, n_b*n_s*sizeof(float)); float * rx_buf = 0; cudaMalloc(&rx_buf, n_b*n_s*sizeof(float)); float * ry_buf = 0; cudaMalloc(&ry_buf, n_b*n_s*sizeof(float)); float * rz_buf = 0; cudaMalloc(&rz_buf, n_b*n_s*sizeof(float)); float * u_buf = 0; cudaMalloc(&u_buf, n_b*n_s*sizeof(float)); float * out_buf = 0; cudaMalloc(&out_buf, n_b*n_s*sizeof(float)); float * g_buf = 0; cudaMalloc(&g_buf, n_b*n_s*sizeof(float)); set_buffer(dev, g_buf, 0.0, n_b*n_s); for(int b = 0; b < n_b; b++) set_buffer(dev, g_buf+b*n_s+(n_s-1), 1.0, 1); clear_buffer(dev, data_buf, n_b*n_s); clear_buffer(dev, rx_buf, n_b*n_s); clear_buffer(dev, ry_buf, n_b*n_s); clear_buffer(dev, rz_buf, n_b*n_s); set_buffer(dev, rx_buf, 0.1, n_b*n_s); set_buffer(dev, ry_buf, 0.1, n_b*n_s); set_buffer(dev, rz_buf, 0.1, n_b*n_s); for(int b = 0; b < n_b; b++) set_buffer(dev, data_buf+b*n_s+(n_s-1), 1.0, 1); std::cout << "Made input tensors" << std::endl; //get the temporary buffers int num_buffers_full = std::max(POTTS_AUGLAG_GPU_SOLVER_3D::num_buffers_full(),POTTS_MEANPASS_GPU_SOLVER_3D::num_buffers_full()); int num_buffers_img = POTTS_AUGLAG_GPU_SOLVER_3D::num_buffers_images(); float* buffer = 0; int success = cudaMalloc( &buffer, (n_s+num_buffers_full*n_s+num_buffers_img*(n_s/n_c))*sizeof(float)); std::cout << "cudaMalloc code : " << success <<std::endl; float* u_init_buf = buffer; float* buffer_ptr = buffer+n_s; float** buffers_full = new float* [num_buffers_full]; float** buffers_img = new float* [num_buffers_img]; for(int b = 0; b < num_buffers_full; b++) { buffers_full[b] = buffer_ptr; buffer_ptr += n_s; } for(int b = 0; b < num_buffers_img; b++) { buffers_img[b] = buffer_ptr; buffer_ptr += n_s/n_c; } //create and run the solver std::cout << "Run forward solvers" << std::endl; int data_sizes [3] = {n_x,n_y,n_z}; for(int b = 0; b < n_b; b++){ auto solver_auglag = POTTS_AUGLAG_GPU_SOLVER_3D(dev, b, n_c, data_sizes, data_buf+b*n_s, rx_buf+b*n_s, ry_buf+b*n_s, rz_buf+b*n_s, u_buf+b*n_s, buffers_full, buffers_img); solver_auglag(); exp(dev,u_buf+b*n_s,u_buf+b*n_s,n_s); std::cout << "data_buf" << std::endl; print_gpu_buffer(dev,data_buf+b*n_s,n_s); std::cout << "\nrx_buf" << std::endl; print_gpu_buffer(dev,rx_buf+b*n_s,n_s); std::cout << "\nry_buf" << std::endl; print_gpu_buffer(dev,ry_buf+b*n_s,n_s); std::cout << "\nrz_buf" << std::endl; print_gpu_buffer(dev,rz_buf+b*n_s,n_s); std::cout << "\nu" << std::endl; print_gpu_buffer(dev,u_buf+b*n_s,n_s); std::cout << "\npt" << std::endl; print_gpu_buffer(dev,buffers_full[0],n_s); std::cout << "\nps" << std::endl; print_gpu_buffer(dev,buffers_img[0],n_s/n_c); std::cout << "\ndiv" << std::endl; print_gpu_buffer(dev,buffers_full[1],n_s); std::cout << "\ng" << std::endl; print_gpu_buffer(dev,buffers_full[2],n_s); std::cout << "\npx" << std::endl; print_gpu_buffer(dev,buffers_full[3],n_s); std::cout << "\npy" << std::endl; print_gpu_buffer(dev,buffers_full[4],n_s); std::cout << "\npz" << std::endl; print_gpu_buffer(dev,buffers_full[5],n_s); auto solver_meanpass = POTTS_MEANPASS_GPU_SOLVER_3D(dev, b, n_c, data_sizes, data_buf+b*n_s, rx_buf+b*n_s, ry_buf+b*n_s, rz_buf+b*n_s, u_buf+b*n_s, out_buf+b*n_s, buffers_full); solver_meanpass(); std::cout << "out_buf" << std::endl; print_gpu_buffer(dev,out_buf+b*n_s,n_s); std::cout << "r_eff" << std::endl; print_gpu_buffer(dev,buffers_full[0],n_s); } //free temporary memory cudaFree(buffer); delete [] buffers_full; delete [] buffers_img; //get the temporary buffers num_buffers_full = POTTS_MEANPASS_GPU_GRADIENT_3D::num_buffers_full(); buffer = 0; success = cudaMalloc(&buffer, num_buffers_full*n_s*sizeof(float)); std::cout << "cudaMalloc code : " << success <<std::endl; buffer_ptr = buffer; buffers_full = new float* [num_buffers_full]; for(int b = 0; b < num_buffers_full; b++) { buffers_full[b] = buffer_ptr; buffer_ptr += n_s; } //make output tensor float* g_data_buf = 0; cudaMalloc(&g_data_buf, n_b*n_s*sizeof(float)); float* g_rx_buf = 0; cudaMalloc(&g_rx_buf, n_b*n_s*sizeof(float)); float* g_ry_buf = 0; cudaMalloc(&g_ry_buf, n_b*n_s*sizeof(float)); float* g_rz_buf = 0; cudaMalloc(&g_rz_buf, n_b*n_s*sizeof(float)); //create and run the solver std::cout << "Run backward solvers" << std::endl; for(int b = 0; b < n_b; b++){ auto grad_meanpass = POTTS_MEANPASS_GPU_GRADIENT_3D(dev, b, n_c, data_sizes, out_buf+b*n_s, g_buf+b*n_s, rx_buf+b*n_s, ry_buf+b*n_s, rz_buf+b*n_s, g_data_buf+b*n_s, g_rx_buf+b*n_s, g_ry_buf+b*n_s, g_rz_buf+b*n_s, buffers_full); grad_meanpass(); std::cout << "g_data" << std::endl; print_gpu_buffer(dev,g_data_buf+b*n_s,n_s); std::cout << "g_rx" << std::endl; print_gpu_buffer(dev,g_rx_buf+b*n_s,n_s); std::cout << "g_ry" << std::endl; print_gpu_buffer(dev,g_ry_buf+b*n_s,n_s); std::cout << "g_rz" << std::endl; print_gpu_buffer(dev,g_rz_buf+b*n_s,n_s); } //free temporary memory cudaFree(buffer); delete [] buffers_full; //free 'images' cudaFree(rx_buf); cudaFree(ry_buf); cudaFree(rz_buf); cudaFree(g_rx_buf); cudaFree(g_ry_buf); cudaFree(g_rz_buf); cudaFree(u_buf); cudaFree(g_buf); cudaFree(g_data_buf); return 0; }
3d35384b4d5546b9c6ad563aec79afc9a9569aec
610850e092ddc8ff38fbc3f909f1c52bc519929e
/1305. All Elements in Two Binary Search Trees.cpp
a925f24a5cb0699eaecb539a4b993100d4772a85
[]
no_license
shahkairav/Leetcode
82ba7c455b456825ba942fe1b1016aabcd539845
0a7512e0c63d086f498bc05e72bddc90f8e8f0ad
refs/heads/master
2022-12-01T23:13:14.459664
2020-08-15T16:54:01
2020-08-15T16:54:01
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,012
cpp
1305. All Elements in Two Binary Search Trees.cpp
/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ class Solution { public: vector<int> preOrder(TreeNode* root) { vector<int> ret; if(root == NULL) { return ret; } ret.push_back(root->val); vector<int> ret1 = preOrder(root->left); ret.insert(ret.end(), ret1.begin(), ret1.end()); vector<int> ret2 = preOrder(root->right); ret.insert(ret.end(), ret2.begin(), ret2.end()); return ret; } vector<int> getAllElements(TreeNode* root1, TreeNode* root2) { vector<int> ret1 = preOrder(root1); vector<int> ret2 = preOrder(root2); ret1.insert(ret1.end(), ret2.begin(), ret2.end()); sort(ret1.begin(), ret1.end()); return ret1; } };
280352fb528d637f95151dadde3621228067ebac
b6fae7f2b437b53dcf7fa27764ef796851f1500c
/OS.cpp
e8fbb298e5f27aa81fd3f4a9b5c994ad4f77f86e
[]
no_license
theartfuldodger1/MemoryProjectCSCI360
474d0b8f3ce244d49597f4dcc572d2092f12940d
347b834fc5dac155e7daa2f93c6e1a918b990194
refs/heads/master
2020-04-01T17:09:23.230184
2018-12-16T19:48:21
2018-12-16T19:48:21
153,415,809
0
0
null
null
null
null
UTF-8
C++
false
false
68,173
cpp
OS.cpp
/* Author: Cordell Hurst, Alex BOrtoc, Johnny Zhu Course: CSCI 360, Computer Architecture III Instructor: Xiaojie Zhang Assignment: Software Simulator/Multi-Level Memory Memory Hierarchy This program... */ /* R Opcode I IX AC Address 000001 0 0 11 101100 15 10 9 8 76 5 0 */ #include "OS.h" using namespace std; OS::OS() { MyCache.setIndexRegister_X0(1);//hard coded and not modified anywhere in code at this time } //Destructor OS::~OS() { } //Switch - where all the magic happens. void OS::switchGo(/*processor CPU, main_memory memory_module, HDD HDDArray*/) { /* Initialization Menu ---------------------------------------------------- 1. Add Instruction File 2. Add Instruction Line By Line 3. Display Empty Registers 4. Display Instructions 5. Display Empty Memory 6. Help 7. Quit ==>> */ unsigned short int param = 0; bool check = 0; do { cout << "\n"; param = 0; if (param < 0 || param > 9) { cout << "\n\tIncorrect input:" << endl; param = 0; } if (param == 0) { if (check == 0) initializationMenu(); cin >> param; } check = 0; if (cin.fail()) { check = 1; cin.clear(); cin.ignore(255, '\n'); } if (param > 0 || param < 9) switch (param) { case 1: //Add Instruction File { param = menu1A(); } break; case 2: //Add Instruction Line By Line { param = menu1B(); } break; case 3: //Display Empty Registers { MyCache.printRegisters(); } break; case 4: //Display Instructions { printInstructions();//no stepping } break; case 5: //Display Empty Memory { MyMemory.printMemory(); } break; case 6: //Help { //call help file needed cout << "\t\nHelp File incomplete..." << endl; //bitset<16> tt("0000010011010111"); //LDR(tt); //bitset<16> aa = MyCache.getGeneralPurposeRegisters_GPRs(3); //STR(aa); //bitset<16> dd("1010010000001001"); //LDX(dd); //bitset<16> xx("1010100000110010"); //STX(xx); //bitset<16> comp("0100010000000000"); //CMP(comp); //cout << "ZF: " << MyCache.get_ZF() << " CF: " << MyCache.get_CF() << " SF: " << MyCache.get_SF() << endl; //bitset<16> load_val("0000000000001010"); //int load_v; //bitset<16> comp_val("0100010000000000"); //bitset<16> head(""); /*while (MyCache.get_ZF() != 1) { MyCache.setGeneralPurposeRegisters_GPRs(0, load_val); CMP(MyCache.getIndexRegister_X0()); load_v = load_val.to_ulong(); load_v--; cout << MyCache.getIndexRegister_X0().to_ulong() << endl; cout << load_v << endl; bitset<16> temp (load_v); load_val = temp; cout << "ZF: " << MyCache.get_ZF() << " CF: " << MyCache.get_CF() << " SF: " << MyCache.get_SF() << endl; } */ //cout << "ZF: " << MyCache.get_ZF() << " CF: " << MyCache.get_CF() << " SF: " << MyCache.get_SF() << endl; //JGE(); } break; case 7: //Set cache { int set_num, block_num; cout << "Enter set number: "; cin >> set_num; cout << "Enter block number: "; cin >> block_num; MyCache.setInstrCache(set_num, block_num); } case 8: //Quit { //exit cout << "Bye!" << endl; } break; } } while (param != 8); } //catches failed input cast and resets istream void OS::failCheck(istream &cin) { if (cin.fail()) { cout << "Incorrect input:" << endl; cin.clear(); cin.ignore(255, '\n'); } } void OS::initializationMenu() { cout << right; cout << setw(45) << setfill(' ') << "Initialization Menu" << "\n\t----------------------------------------------------" << "\n\t1. Add Instruction File" << "\n\t2. Add Instruction Line By Line" << "\n\t3. Display Empty Registers" << "\n\t4. Display Instructions" << "\n\t5. Display Empty Memory" << "\n\t6. Help" << "\n\t7. Set cache" << "\n\t8. Quit" << "\n\n\t==>> "; } //add instruction file from Menu1, choice 1 unsigned short int OS::menu1A() { string fileIn; ifstream instructionFile; bool fileFail = 1; do { cout << right; cout << setw(45) << "Add an Instruction File" << "\n\t---------------------------------------------------" << "\n\tPlease ensure usage of proper case." << "\n\n\t==>> "; cin >> fileIn; instructionFile.open(fileIn); if (!instructionFile.is_open()) cerr << "\n\tCould not open file\n\n"; } while (!instructionFile.is_open()); processFile(instructionFile, instructionSet_OS); unsigned short int paramOut = menu2(); return paramOut; } // add individual instructions from Menu1, choice 2 unsigned short int OS::menu1B() { cin.ignore(255, '\n'); cout << right; cout << setw(45) << "Add Individual Instructions" << "\n\t---------------------------------------------------" << "\n\tEnter Instructions in the following form: " << "\n\tLDR 3, 1, 1, 54 or LDX 1,0,54 as appropriate" << "\n\tPress Enter after each instruction." << "\n\tEnter Q if you are finished." << "\n\n\t=>> "; string instructionIn; int peek = cin.peek(); while (peek != 81 && peek != 113) { peek = cin.peek(); if(peek != 81 && peek != 113)//(s[0] == 'Q' || s[0] == 'q') { processFile(cin); cout << "\n\t=>> "; } else { unsigned short int paramOut = menu2(); //allows user to quit after indiv input; return paramOut; } } unsigned short int paramOut = 0;//menu2(); return paramOut; } //accepts a bitset<16> instruction. The instruction's effective address is calculated based on values of I and IX //A new bitset<16> is returned with the effective address ///////////////////////////////////////////////////////////// WORK IN PROGRESS bitset<16> OS::effectiveAddress_EA(bitset<16> & instructionIn) { /* R Opcode I IX AC Address 000001 0 0 11 101100 15 10 9 8 76 5 0 */ bitset<16> address; bool IX = instructionIn[8]; bool I = instructionIn[9]; bitset<16> effectiveAddress_EA; //Acquire and encode address - BEGIN for (int i = 0; i < 6; i++) { address[i] = instructionIn[i]; } // Acquire and encode address - END if (I == 0) { if (IX == 0) effectiveAddress_EA = address; if (IX == 1) effectiveAddress_EA = (constant * MyCache.getIndexRegister_X0().to_ulong()) + address.to_ulong(); } if (I == 1) { if (IX == 0) effectiveAddress_EA = constant * address.to_ulong(); if (IX == 1) effectiveAddress_EA = constant * (constant * MyCache.getIndexRegister_X0().to_ulong() + address.to_ulong()); } return effectiveAddress_EA; } //simulation menu, follows addition of instructions (menu1A or 1B). Choice 1 returns the user to Menu 1 (Initialization Menu) unsigned short int OS::menu2() { unsigned short int paramOut = 0; unsigned short int param = 0; bool check = 0; int first = 0; do { if (cin.fail()) { check = 1; cin.clear(); cin.ignore(255, '\n'); } cin.clear(); cout << "\n"; param = 0; if (param < 0 || param > 8) { cout << "\n\tIncorrect input:" << endl; param = 0; } if (param == 0) { if (check == 0) { cout << right; cout << setw(40) << setfill(' ') << "Simulation Menu" << "\n\t---------------------------------------------------" << "\n\t1. Clear All Data and Start Over" << "\n\t2. Add Instruction Line to End of Queue" << "\n\t3. Load Program into Main Memory" << "\n\t4. Display Empty Registers" << "\n\t5. Display Instructions" << "\n\t6. Display Empty Memory" << "\n\t7. Help" << "\n\t8. Quit" << "\n\n\t=>> "; } cin >> param; } check = 0; if (cin.fail()) { check = 1; cin.clear(); cin.ignore(255, '\n'); } else //if (param > 0 || param < 9) switch (param) { case 1://1. Clear All Data and Start Over ////Return to Initialization Menu { clearAllData(); param = 8; } break; case 2://2. Add Instruction Line to End of Queue { menu1B(); } break; case 3://3. Load Program into Main Memory { loadInstructionsIntoMain();//cleared or quit all data in from menu2A and will now return to initializationMenu paramOut = menu2A(); if(paramOut == 7 || paramOut == 1) param = 8; } break; case 4://4. Display Empty Registers { MyCache.printRegisters(); } break; case 5://5. Display Instructions { printInstructions();//no stepping } break; case 6://6. Display Empty Memory { MyMemory.printMemory(); } break; case 7://7. Help { //call help file needed cout << "\t\nHelp File incomplete..." << endl; } break; case 8://8. Quit { paramOut = 7; param = 8; } break; } } while (param != 8); return paramOut; } //follows loading of program into main memory - choice 3 from menu2/simulation menu //if user selects choice 1, return to Menu 1, initializatinMenu() unsigned short int OS::menu2A() { unsigned short int paramOut = 0; unsigned short int param = 0; bool check = 0; do { if (cin.fail()) { check = 1; cin.clear(); cin.ignore(255, '\n'); } cin.clear(); cout << "\n"; param = 0; if (param < 0 || param > 8) { cout << "param: " << param << endl; cout << "\n\tIncorrect input:" << endl; cout << "param: " << param << endl; param = 0; } if (param == 0) { if (check == 0) { cout << setw(40) << setfill(' ') << "Simulation Menu" << "\n\t---------------------------------------------------" << "\n\t1. Clear All Data and Start Over" << "\n\t2. Add Instruction Line to End of Queue" << "\n\t3. Display Registers" << "\n\t4. Display Instructions" << "\n\t5. Display Memory" << "\n\t6. Help" << "\n\t7. Quit" << "\n\n\t=>> "; } cin >> param; } check = 0; if (cin.fail()) { check = 1; cin.clear(); cin.ignore(255, '\n'); } if (param > 0 || param < 9) switch (param) { case 1://1. Clear All Data and Start Over ////Return to Initialization Menu { clearAllData(); param = 7; paramOut = 1; } break; case 2://2. Add Instruction Line to End of Queue { param = menu1B(); } break; case 3://3. Display Registers { MyCache.printRegisters(); } break; case 4://4. Display Instructions WITH stepping { stepInstructions(); //printInstructions();//no stepping } break; case 5://5. Display Memory { MyMemory.printMemory(); } break; case 6://6. Help { //call help file needed cout << "\t\nHelp File incomplete..." << endl; } break; case 7://7. Quit { paramOut = 7; } break; } } while (param != 7); return paramOut; } void OS::processFile(istream &cin) { /* R Opcode I IX AC Address 000001 0 0 11 101100 15 10 9 8 76 5 0 */ bitset<16> buildSet; bool firstPass = 1; bool stringFlag = 1; string inFile; buildSet.reset(); //Acquire and encode opCode - BEGIN bitset<6> opCode = streamToOpCode(cin); int j = 10; for (int i = 0; i < 6; i++) { buildSet[j] = opCode[i]; j++; } //Acquire and encode opCode - END //Load/Store Instructions //Comparison Instruction -> LDR(1), STR(2), AMR(4), SMR(5), CMP(17) //Form --> opCode r, i, x, address if (opCode == 1 || opCode == 2 || opCode == 4 || opCode == 5 || opCode == 17) codeRIXA(cin, buildSet, stringFlag); //Load/Store Instructions //Transfer Instructions -> LDX(41), STX(42), JE(10), JNE(11), JG(12), JGE(14), JL(15), JLE(16), JMP(13) //Form --> opCode i, x, address else if (opCode == 41 || opCode == 42 || opCode == 10 || opCode == 11 || opCode == 12 || opCode == 13 || opCode == 14 || opCode == 15 || opCode == 16) codeIXA(cin, buildSet, stringFlag); //Basic Arithmetic and Logic Instructions -> AIR(6), SIR(7) //Form --> opCode, r, immed else if (opCode == 6 || opCode == 7) codeRimmed(cin, buildSet, stringFlag); //-> DEC(8), INC(9) //Form --> opCode, r, immed else if (opCode == 8 || opCode == 9) codeR(cin, buildSet, stringFlag); //Advanced Arithmetic and Logical Instructions -> MUL(20), DIV(21), TER(22), AND(23), ORR(24) //form --> opCode, rx, ry else if (opCode == 20 || opCode == 21 || opCode == 22 || opCode == 23 || opCode == 24) codeRxRy(cin, buildSet, stringFlag); //-> NOT(25) //form --> opCode, rx else if (opCode == 25) codeRx(cin, buildSet, stringFlag); //-> ADD(26), SUB(27) //form --> opCode, rx, ry, i, ix else if (opCode == 26 || opCode == 26) codeRRII(cin, buildSet, stringFlag); instructionSet_OS.push_back(buildSet); cin.clear(); cin.ignore(255, '\n'); } void OS::processFile(ifstream &inFile, list <bitset<16>> &instructions) { /* R Opcode I IX AC Address 000001 0 0 11 101100 15 10 9 8 76 5 0 */ bitset<16> buildSet; bool firstPass = 1; bool stringFlag = 0; bitset<6> opCode; while(!inFile.eof()) { buildSet.reset(); //Acquire and encode opCode - BEGIN opCode = streamToOpCode(inFile); int j = 10; for (int i = 0; i < 6; i++) { buildSet[j] = opCode[i]; j++; } //Acquire and encode opCode - END //Load/Store Instructions //Comparison Instruction -> LDR(1), STR(2), AMR(4), SMR(5), CMP(17) //Form --> opCode r, i, x, address if (opCode == 1 || opCode == 2 || opCode == 4 || opCode == 5 || opCode == 17 ) codeRIXA(inFile, buildSet, stringFlag); //Load/Store Instructions //Transfer Instructions -> LDX(41), STX(42), JE(10), JNE(11), JG(12), JGE(14), JL(15), JLE(16), JMP(13) //Form --> opCode i, x, address else if (opCode == 41 || opCode == 42 || opCode == 10 || opCode ==11 || opCode == 12 || opCode == 13 || opCode == 14 || opCode == 15 || opCode == 16) codeIXA(inFile, buildSet, stringFlag); //Basic Arithmetic and Logic Instructions -> AIR(6), SIR(7) //Form --> opCode, r, immed else if (opCode == 6 || opCode == 7) codeRimmed(inFile, buildSet, stringFlag); //-> DEC(8), INC(9) //Form --> opCode, r, immed else if (opCode == 8 || opCode == 9) codeR(inFile, buildSet, stringFlag); //Advanced Arithmetic and Logical Instructions -> MUL(20), DIV(21), TER(22), AND(23), ORR(24) //form --> opCode, rx, ry else if (opCode == 20 || opCode == 21 || opCode == 22 || opCode == 23 || opCode == 24) codeRxRy(inFile, buildSet, stringFlag); //-> NOT(25) //form --> opCode, rx else if (opCode == 25) codeRx(inFile, buildSet, stringFlag); //-> ADD(26), SUB(27) //form --> opCode, rx, ry, i, ix else if (opCode == 26 || opCode == 27 ) codeRRII(inFile, buildSet, stringFlag); instructionCount++; //for testing BEGIN char char1 = inFile.peek(); cout << " inFilePeek: " << char1 << " opCode in processFile: " << opCodeToString(opCode) << " Count: " << instructionCount << endl; //for testing END instructions.push_back(buildSet); } } //Encodes 16 bit instruction for LDR, STR, AMR, SMR, CMP void OS::codeRIXA(istream &inFile, bitset<16> &buildSet, bool stringFlag) { /* R Opcode I IX AC Address 000001 0 0 11 101100 15 10 9 8 76 5 0 */ //Acquire and encode R - BEGIN char delim = ','; bitset<2> twoBits; string rCode = fileIterator(inFile, delim); twoBits = stoi(rCode); buildSet[6] = twoBits[0]; buildSet[7] = twoBits[1]; //Acquire and encode R - END //Acquire and encode I - BEGIN delim = ','; string iCode = fileIterator(inFile, delim); buildSet[9] = stoi(iCode); //Acquire and encode I - END //Acquire and encode X - BEGIN delim = ','; string xCode = fileIterator(inFile, delim); buildSet[8] = stoi(xCode); //Acquire and encode X - END //Acquire and encode address BEGIN encodeAddress(inFile, buildSet, stringFlag); //Acquire and encode address END } //Encodes 16 bit instruction for LDX, LDX, JE, JNE, JG, JGE, JL, JLE, JMP //Form --> opCode i, x, address void OS::codeIXA(istream &inFile, bitset<16> &buildSet, bool stringFlag) { /* R Opcode I IX AC Address 000001 0 0 11 101100 15 10 9 8 76 5 0 */ char delim = ','; //Acquire and encode I - BEGIN delim = ','; string iCode = fileIterator(inFile, delim); buildSet[9] = stoi(iCode); //Acquire and encode I - END //Acquire and encode X - BEGIN delim = ','; string xCode = fileIterator(inFile, delim); buildSet[8] = stoi(xCode); //Acquire and encode X - END //Acquire and encode address BEGIN encodeAddress(inFile, buildSet, stringFlag); //Acquire and encode address END } //Encodes 16 bit instruction for Basic Arithmetic and Logic Instructions -> AIR(6), SIR(7) //Form --> opCode, r, immed void OS::codeRimmed(istream &inFile, bitset<16> &buildSet, bool stringFlag)//Form --> opCode r, immed; { /* R Opcode I IX AC Address 000001 0 0 11 101100 15 10 9 8 76 5 0 */ char delim = ','; //Acquire and encode R - BEGIN bitset<2> twoBits; string rCode = fileIterator(inFile, delim); twoBits = stoi(rCode); buildSet[6] = twoBits[0]; buildSet[7] = twoBits[1]; //Acquire and encode R - END //Acquire and encode immidiate value BEGIN encodeAddress(inFile, buildSet, stringFlag); //Acquire and encode immidiate value END } //Encodes 16 instructions for //-> DEC(8), INC(9) //Form --> opCode, r, immed void OS::codeR(istream &inFile, bitset<16> &buildSet, bool stringFlag)//Form --> opCode r; { /* R Opcode I IX AC Address 000001 0 0 11 101100 15 10 9 8 76 5 0 */ //Acquire and encode R - BEGIN char delim = '\n'; bitset<2> twoBits; string rCode = fileIterator(inFile, delim); twoBits = stoi(rCode); buildSet[6] = twoBits[0]; buildSet[7] = twoBits[1]; //Acquire and encode R - END } //Encodes 16 bit instructions for Advanced Arithmetic and Logical Instructions -> MUL(20), DIV(21), TER(22), AND(23), ORR(24) //form --> opCode, rx, ry void OS::codeRxRy(istream &inFile, bitset<16> &buildSet, bool stringFlag)//Form --> opCode rx, ry; { /* Opcode Rx Ry Address 000001 00 01 000000 15 10 98 76 5 0 */ //MUL rx, ry //ignores address char delim = ','; //Acquire and encode Rx - BEGIN bitset<2> twoBits; string rxCode = fileIterator(inFile, delim); twoBits = stoi(rxCode); buildSet[8] = twoBits[0]; buildSet[9] = twoBits[1]; //Acquire and encode Rx - END delim = '\n'; //Acquire and encode Ry - BEGIN bitset<2> twoMoreBits; string ryCode = fileIterator(inFile, delim); twoMoreBits = stoi(ryCode); buildSet[6] = twoMoreBits[0]; buildSet[7] = twoMoreBits[1]; //Acquire and encode Ry - END } //Encodes 16 bit instructions for //-> NOT(25) //form --> opCode, rx void OS::codeRx(istream &inFile, bitset<16> &buildSet, bool stringFlag)//Form --> opCode rx; { /* Opcode Rx Ry Address 000001 00 01 000000 15 10 98 76 5 0 */ //NOT rx char delim = '\n'; //Acquire and encode Rx - BEGIN bitset<2> twoBits; string rCode = fileIterator(inFile, delim); twoBits = stoi(rCode); buildSet[8] = twoBits[0]; buildSet[9] = twoBits[1]; //Acquire and encode Rx - END } //Encodes 16 bit instructions for //-> ADD(26), SUB(27) //form --> opCode, rx, ry, i, ix void OS::codeRRII(istream &inFile, bitset<16> &buildSet, bool stringFlag)//Form --> opCode, r, r, i, ix; { /* Opcode Rx Ry I IX 000001 00 01 0 0 0000 15 10 98 76 5 4 3 0 */ //ADD rx, ry, i, ix //SUB rx, ry, i, ix char delim = ','; //Acquire and encode Rx - BEGIN bitset<2> twoBits; string rxCode = fileIterator(inFile, delim); twoBits = stoi(rxCode); buildSet[8] = twoBits[0]; buildSet[9] = twoBits[1]; //Acquire and encode Rx - END delim = ','; //Acquire and encode Ry - BEGIN bitset<2> twoMoreBits; string ryCode = fileIterator(inFile, delim); twoMoreBits = stoi(ryCode); buildSet[6] = twoMoreBits[0]; buildSet[7] = twoMoreBits[1]; //Acquire and encode Ry - END //Acquire and encode I - BEGIN delim = ','; string iCode = fileIterator(inFile, delim); buildSet[5] = stoi(iCode); //Acquire and encode I - END //Acquire and encode IX - BEGIN delim = '\n'; string xCode = fileIterator(inFile, delim); buildSet[4] = stoi(xCode); //Acquire and encode IX - END } //encodes 6 bit address from user input from string or file from input file into buildSet void OS::encodeAddress(istream &inFile, bitset<16> &buildSet, bool stringFlag) { char delim = '\n'; string addyCode; if (stringFlag) cin >> addyCode; else addyCode = fileIterator(inFile, delim); bitset<6> sixBits(stoi(addyCode)); for (int i = 0; i < 6; i++) buildSet[i] = sixBits[i]; } //encodes 6 bit address onto a bitset<16> bitset<16> OS::getAddress(bitset<16> &instructionIn) { bitset<16> temp; for (int i = 0; i < 6; i++) temp[i] = instructionIn[i]; return temp; } //stream input is read and encoded onto a bitset that is them returned bitset<6> OS::streamToOpCode(istream &input) { char delim = ' '; string opCode = fileIterator(input, delim); bitset<6> bitOpCode; if (opCode == "LDR")//Form --> opCode r, i, x, address --> uses codeRIXA(istream &inFile, bitset<16> &buildSet) bitOpCode = 1; else if (opCode == "STR")//Form --> opCode r, i, x, address --> uses codeRIXA(istream &inFile, bitset<16> &buildSet) bitOpCode = 2; else if (opCode == "LDX")//Form --> opCode i, x, address --> uses codeIXA(istream &inFile, bitset<16> &buildSet) bitOpCode = 41; else if (opCode == "STX")//Form --> opCode i, x, address --> uses codeIXA(istream &inFile, bitset<16> &buildSet) bitOpCode = 42; //Comparison Instruction else if (opCode == "CMP")//Form --> opCode r, i, x, address --> uses codeRIXA(istream &inFile, bitset<16> &buildSet) bitOpCode = 17; //Transfer Instructions else if (opCode == "JE")//Form --> opCode i, x, address --> uses codeIXA(istream &inFile, bitset<16> &buildSet) bitOpCode = 10; else if (opCode == "JNE")//Form --> opCode i, x, address --> uses codeIXA(istream &inFile, bitset<16> &buildSet) bitOpCode = 11; else if (opCode == "JG")//Form --> opCode i, x, address --> uses codeIXA(istream &inFile, bitset<16> &buildSet) bitOpCode = 12; else if (opCode == "JGE")//Form --> opCode i, x, address --> uses codeIXA(istream &inFile, bitset<16> &buildSet) bitOpCode = 14; else if (opCode == "JL")//Form --> opCode i, x, address --> uses codeIXA(istream &inFile, bitset<16> &buildSet) bitOpCode = 15; else if (opCode == "JLE")//Form --> opCode i, x, address --> uses codeIXA(istream &inFile, bitset<16> &buildSet) bitOpCode = 16; else if (opCode == "JUMP")//Form --> opCode i, x, address --> uses codeIXA(istream &inFile, bitset<16> &buildSet) bitOpCode = 13; //Basic Arithmetic and Logic Instructions else if (opCode == "AMR")//Form --> opCode r, i, x, address --> uses codeRIXA(istream &inFile, bitset<16> &buildSet) bitOpCode = 4; else if (opCode == "SMR")//Form --> opCode r, i, x, address --> uses codeRIXA(istream &inFile, bitset<16> &buildSet) bitOpCode = 5; else if (opCode == "AIR")//Form --> opCode, r, immed --> usus codeRimmed(istream &inFile, bitset<16> &buildSet) bitOpCode = 6; else if (opCode == "SIR")//Form --> opCode, r, immed --> usus codeRimmed(istream &inFile, bitset<16> &buildSet) bitOpCode = 7; else if (opCode == "DEC")//form --> opCode, r --> usus codeR(istream &inFile, bitset<16> &buildSet) bitOpCode = 8; else if (opCode == "INC")//form --> opCode, r --> usus codeR(istream &inFile, bitset<16> &buildSet) bitOpCode = 9; //Advanced Arithmetic and Logical Instructions else if (opCode == "MUL")//form --> opCode, rx, ry -->uses codeRxRy(istream &inFile, bitset<16> &buildSet) bitOpCode = 20; else if (opCode == "DIV")//form --> opCode, rx, ry -->uses codeRxRy(istream &inFile, bitset<16> &buildSet) bitOpCode = 21; else if (opCode == "TER")//form --> opCode, rx, ry -->uses codeRxRy(istream &inFile, bitset<16> &buildSet) bitOpCode = 22; else if (opCode == "AND")//form --> opCode, rx, ry -->uses codeRxRy(istream &inFile, bitset<16> &buildSet) bitOpCode = 23; else if (opCode == "ORR")//form --> opCode, rx, ry -->uses codeRxRy(istream &inFile, bitset<16> &buildSet) bitOpCode = 24; else if (opCode == "NOT")//form --> opCode, rx -->uses codeRx(istream &inFile, bitset<16> &buildSet) bitOpCode = 25; else if (opCode == "ADD")//form --> opCode, rx, ry, i, ix -->uses codeRRII(istream &inFile, bitset<16> &buildSet) bitOpCode = 26; else if (opCode == "SUB")//form --> opCode, rx, ry, i, ix -->uses codeRRII(istream &inFile, bitset<16> &buildSet) bitOpCode = 27; return bitOpCode; } //bitset opCode is read and encoded onto a string in letters form and returned string OS::opCodeToString(bitset<6>&opCode) { string opCodeString; if (opCode == 1)//Form --> opCode r, i, x, address --> uses codeRIXA(istream &inFile, bitset<16> &buildSet) opCodeString = "LDR"; else if (opCode == 2)//Form --> opCode r, i, x, address --> uses codeRIXA(istream &inFile, bitset<16> &buildSet) opCodeString = "STR"; else if (opCode == 41)//Form --> opCode i, x, address --> uses codeIXA(istream &inFile, bitset<16> &buildSet) opCodeString = "LDX"; else if (opCode == 42)//Form --> opCode i, x, address --> uses codeIXA(istream &inFile, bitset<16> &buildSet) opCodeString = "STX"; //Comparison Instruction else if (opCode == 17)//Form --> opCode r, i, x, address --> uses codeRIXA(istream &inFile, bitset<16> &buildSet) opCodeString = "CMP"; //Transfer Instructions else if (opCode == 10)//Form --> opCode i, x, address --> uses codeIXA(istream &inFile, bitset<16> &buildSet) opCodeString = "JE"; else if (opCode == 11)//Form --> opCode i, x, address --> uses codeIXA(istream &inFile, bitset<16> &buildSet) opCodeString = "JNE"; else if (opCode == 12)//Form --> opCode i, x, address --> uses codeIXA(istream &inFile, bitset<16> &buildSet) opCodeString = "JG"; else if (opCode == 14)//Form --> opCode i, x, address --> uses codeIXA(istream &inFile, bitset<16> &buildSet) opCodeString = "JGE"; else if (opCode == 15)//Form --> opCode i, x, address --> uses codeIXA(istream &inFile, bitset<16> &buildSet) opCodeString = "JL"; else if (opCode == 16)//Form --> opCode i, x, address --> uses codeIXA(istream &inFile, bitset<16> &buildSet) opCodeString = "JLE"; else if (opCode == 13)//Form --> opCode i, x, address --> uses codeIXA(istream &inFile, bitset<16> &buildSet) opCodeString = "JMP"; //Basic Arithmetic and Logic Instructions else if (opCode == 4)//Form --> opCode r, i, x, address --> uses codeRIXA(istream &inFile, bitset<16> &buildSet) opCodeString = "AMR"; else if (opCode == 5)//Form --> opCode r, i, x, address --> uses codeRIXA(istream &inFile, bitset<16> &buildSet) opCodeString = "SMR"; else if (opCode == 6)//Form --> opCode, r, immed --> usus codeRimmed(istream &inFile, bitset<16> &buildSet) opCodeString = "AIR"; else if (opCode == 7)//Form --> opCode, r, immed --> usus codeRimmed(istream &inFile, bitset<16> &buildSet) opCodeString = "SIR"; else if (opCode == 8)//form --> opCode, r --> usus codeR(istream &inFile, bitset<16> &buildSet) opCodeString = "DEC"; else if (opCode == 9)//form --> opCode, r --> usus codeR(istream &inFile, bitset<16> &buildSet) opCodeString = "INC"; //Advanced Arithmetic and Logical Instructions else if (opCode == 20)//form --> opCode, rx, ry -->uses codeRxRy(istream &inFile, bitset<16> &buildSet) opCodeString = "MUL"; else if (opCode == 21)//form --> opCode, rx, ry -->uses codeRxRy(istream &inFile, bitset<16> &buildSet) opCodeString = "DIV"; else if (opCode == 22)//form --> opCode, rx, ry -->uses codeRxRy(istream &inFile, bitset<16> &buildSet) opCodeString = "TER"; else if (opCode == 23)//form --> opCode, rx, ry -->uses codeRxRy(istream &inFile, bitset<16> &buildSet) opCodeString = "AND"; else if (opCode == 24)//form --> opCode, rx, ry -->uses codeRxRy(istream &inFile, bitset<16> &buildSet) opCodeString = "ORR"; else if (opCode == 25)//form --> opCode, rx -->uses codeRx(istream &inFile, bitset<16> &buildSet) opCodeString = "NOT"; else if (opCode == 26)//form --> opCode, rx, ry, i, ix -->uses codeRRII(istream &inFile, bitset<16> &buildSet) opCodeString = "ADD"; else if (opCode == 27)//form --> opCode, rx, ry, i, ix -->uses codeRRII(istream &inFile, bitset<16> &buildSet) opCodeString = "SUB"; return opCodeString; } //takes list from OS of all instructions input by user and copies the list into MM vector sequentially using MyMemory.insertInstruction() void OS::loadInstructionsIntoMain() { if (instructionSet_OS.empty()) cout << "Instruction Set is empty." << "\nPlease add instructions before attempting to load to main memory" << endl; else { list<bitset<16>>::iterator iterInstSet = instructionSet_OS.begin(); int count = 0;//instructionStart; while (iterInstSet != instructionSet_OS.end()) { if(count == 0) MyCache.setInstructionRegister_IR(*iterInstSet);//Loads first instruction into IR if(count == 1) MyCache.set_ProgramCounter(1);//loads next sequential instruction into PC MyMemory.insertInstruction(*iterInstSet, count);//Loads instructions into MM sequentially iterInstSet++; count++; } } } //when isntructions are not yet loaded void OS::printInstructions() { //This function is NOT TO STEP because it is for before instructions are loaded to MM /* Instructions ------------------------------------------------------ 0 PC ==>> LDR R0, 0, 0, 63 000000 0 0 00 000000 1 STR R1, 0, 0, 5 000000 0 0 00 000000 ------------------------------------------------------ R.Run S.Step Q.Menu H.Help */ /* R Opcode I IX AC Address 000001 0 0 11 101100 15 10 9 8 76 5 0 */ bitset<6> opCode; bitset<2> reg; bitset<6> addy; list<bitset<16>>::iterator iSetIter = instructionSet_OS.begin(); bitset<16> instruction; string opCodeString; char input; do { cout << right; cout << setw(40) << "Instructions" << "\n\t\t----------------------------------"; if (instructionSet_OS.empty()) { cout << "\n" << setw(45) << "Instructions not loaded" << endl; bitset<1> OneBitZeroed = 0; cout << "\t\t" << setw(4) << setfill(' ') << "1" << " " << "N/A" << " R" << reg.to_ulong() << ", " << OneBitZeroed << ", " << OneBitZeroed << ", " << addy; } else { int count = 0; while (iSetIter != instructionSet_OS.end()) { instruction = *iSetIter; int z = 0; for (int i = 10; i < 16; i++) { opCode[z] = instruction[i]; z++; } z = 0; for (int i = 6; i < 8; i++) { reg[z] = instruction[i]; z++; } z = 0; for (int i = 0; i < 6; i++) { addy[z] = instruction[i]; z++; } cout << "\n\t\t" << setw(4) << setfill(' ') << count << " " << opCodeToString(opCode) << " R" << reg.to_ulong() << ", " << instruction[9] << ", " << instruction[8] << ", " << addy; count++; iSetIter++; } } cout << "\n\t\t----------------------------------" << "\n\t" << setw(21) << setfill(' ') << "Q. Menu" << setw(15) << setfill(' ') << "H. Help" << "\n\n\t\t==>> "; cin >> input; cin.ignore(255, '\n'); failCheck(cin); //call help file needed if (input == 'H' || input == 'h') cout << "\t\nHelp File incomplete..." << endl; } while (input != 'Q' && input != 'q'); } //instructions already loaded in main memory. this function can step or run through the instructions void OS::stepInstructions() { /* Instructions ------------------------------------------------------ 0 PC ==>> LDR R0, 0, 0, 63 000000 0 0 00 000000 1 STR R1, 0, 0, 5 000000 0 0 00 000000 ------------------------------------------------------ R.Run S.Step Q.Menu H.Help */ /* R Opcode I IX AC Address 000001 0 0 11 101100 15 10 9 8 76 5 0 */ list<bitset<16>>::iterator iSetIter;//for displaying entire instruction set from OS list<bitset<16>>::iterator setEnd = instructionSet_OS.end();//for executing instructions setEnd--; char input; bool runFlag = 0; bool endOfInstructions = 0; do { MyMemory.printMemory(); MyCache.printRegisters(1); cout << endl; cout << endl; cout << "\t\t" << "Instruction Cache" << " Instruction. Value. Valid. Timer" << endl; cout << endl; MyCache.printCache(); cout << "\n"; cout << right; cout << setw(40) << setfill(' ') << "Instructions" << "\n\t\t----------------------------------"; firstPassFlag = 0; iSetIter = instructionSet_OS.begin(); while (iSetIter != instructionSet_OS.end()) { instructionDisplaySwitch(*iSetIter); iSetIter++; } if (endOfInstructions != 1) cout << "\n\t\t----------------------------------" << "\n\t" << setw(13) << setfill(' ') << "R. Run" << setw(10) << setfill(' ') << setw(10) << setfill(' ') << "S. Step" << setw(10) << setfill(' ') << "Q. Menu" << setw(10) << setfill(' ') << "H. Help" << "\n\n\t\t==>> "; else cout << "\n\t\t----------------------------------" << "\n\t\t" << setw(21) << setfill(' ') << "All instructions executed" << "\n\t" << setw(21) << setfill(' ') << "Q. Menu" << setw(15) << setfill(' ') << "H. Help" << "\n\n\t\t==>> "; if (runFlag != 1) { cin >> input; cin.ignore(255, '\n'); failCheck(cin); if (input == 'R' || input == 'r') runFlag = 1; } if (*setEnd == MyCache.getInstructionRegister_IR()) { runFlag = 0; endOfInstructions = 1; } if (input == 'R' || input == 'r' || input == 'S' || input == 's') { executeInstruction(MyCache.getInstructionRegister_IR()); bitset<16> instr_c = MyCache.getInstructionRegister_IR(); MyCache.addInstruction(instr_c); } MyCache.setInstructionRegister_IR(MyMemory.getInstruction(MyCache.getProgramCounter_PC())); int pc_int = MyCache.getProgramCounter_PC().to_ulong(); pc_int++; bitset<16> temp1 = pc_int; MyCache.set_ProgramCounter(temp1); //call help file needed if (input == 'H' || input == 'h') cout << "\t\nHelp File incomplete..." << endl; }while (input != 'Q' && input != 'q'); } //called in stepInstructions(). this func calls a print function specific to the opCode //of the instruction and prints it to console in the correct format void OS::instructionDisplaySwitch(bitset<16> &instructionIn) { int j = 0; bitset<6> opCode; for (int i = 10; i < 16; i++) { opCode[j] = instructionIn[i]; j++; } //Load/Store Instructions //Comparison Instruction -> LDR(1), STR(2), AMR(4), SMR(5), CMP(17) //Form --> opCode r, i, x, address if (opCode == 1 || opCode == 2 || opCode == 4 || opCode == 5 || opCode == 17) printCodeRIXA(instructionIn); //Load/Store Instructions //Transfer Instructions -> LDX(41), STX(42), JE(10), JNE(11), JG(12), JGE(14), JL(15), JLE(16), JMP(13) //Form --> opCode i, x, address else if (opCode == 41 || opCode == 42 || opCode == 10 || opCode == 11 || opCode == 12 || opCode == 13 || opCode == 14 || opCode == 15 || opCode == 16) printCodeIXA(instructionIn); //Basic Arithmetic and Logic Instructions -> AIR(6), SIR(7) //Form --> opCode, r, immed else if (opCode == 6 || opCode == 7) printCodeRimmed(instructionIn); //-> DEC(8), INC(9) //Form --> opCode, r, immed else if (opCode == 8 || opCode == 9) printCodeR(instructionIn); //Advanced Arithmetic and Logical Instructions -> MUL(20), DIV(21), TER(22), AND(23), ORR(24) //form --> opCode, rx, ry else if (opCode == 20 || opCode == 21 || opCode == 22 || opCode == 23 || opCode == 24) printCodeRxRy(instructionIn); //-> NOT(25) //form --> opCode, rx else if (opCode == 25) printCodeRx(instructionIn); //-> ADD(26), SUB(27) //form --> opCode, rx, ry, i, ix else if (opCode == 26 || opCode == 27) printCodeRRII(instructionIn); } /* Instructions ------------------------------------------------------ 0 PC ==>> LDR R0, 0, 0, 63 000000 0 0 00 000000 1 STR R1, 0, 0, 5 000000 0 0 00 000000 ------------------------------------------------------ R.Run S.Step Q.Menu H.Help */ //for instruction display //LDR, STR, AMR, SMR, CMP void OS::printCodeRIXA(bitset<16> &instructionIn/*, int count*/)//for instruction display { /* R Opcode I IX AC address 000001 0 0 11 101100 15 10 9 8 76 5 0 */ bitset<6> opCode; bitset<2> R; bitset<6> address; bitset<16> addressPC; string opCodeString; int j = 0; for (int i = 10; i < 16; i++)//6 bits { opCode[j] = instructionIn[i]; j++; } j = 0; for (int i = 6; i < 8; i++)//2 bits { R[j] = instructionIn[i]; j++; } j = 0; for (int i = 0; i < 6; i++)//6 bits { address[j] = instructionIn[i]; j++; } cout << right; if (MyCache.getProgramCounter_PC().to_ulong() == Pcount && firstPassFlag == 0) { cout << "\n\t\t" << setw(4) << setfill(' ') << Pcount << " PC==>" << opCodeToString(opCode) << " R" << R.to_ulong() << ", " << instructionIn[9] << ", " << instructionIn[8] << " " << address; firstPassFlag = 1; } else cout << "\n\t\t" << setw(4) << setfill(' ') << Pcount << " " << opCodeToString(opCode) << " R" << R.to_ulong() << ", " << instructionIn[9] << ", " << instructionIn[8] << " " << address; } //for instruction display //LDX, LDX, JE, JNE, JG, JGE, JL, JLE, JMP //Form --> opCode i, x, address void OS::printCodeIXA(bitset<16> &instructionIn) { /* R Opcode I IX AC address 000001 0 0 00 101100 15 10 9 8 76 5 0 */ bitset<6> opCode; bitset<6> address; int j = 0; for (int i = 10; i < 16; i++)//6 bits { opCode[j] = instructionIn[i]; j++; } j = 0; for (int i = 0; i < 6; i++)//6 bits { address[j] = instructionIn[i]; j++; } string strOpCode = opCodeToString(opCode); if (strOpCode == "JG" || strOpCode == "JE" || strOpCode == "JL") { strOpCode += " "; } cout << right; if (MyCache.getProgramCounter_PC().to_ulong() == Pcount && firstPassFlag == 0) { cout << "\n\t\t" << setw(4) << setfill(' ') << Pcount << " PC==>" << strOpCode << " " << instructionIn[9] << ", " << instructionIn[8] << " " << address; firstPassFlag = 1; } else cout << "\n\t\t" << setw(4) << setfill(' ') << Pcount << " " << strOpCode << " " << instructionIn[9] << ", " << instructionIn[8] << " " << address; } //for instruction display // Basic Arithmetic and Logic Instructions -> AIR(6), SIR(7) //Form --> opCode, r, immed void OS::printCodeRimmed(bitset<16> &instructionIn) { /* R Opcode I IX AC address 000001 0 0 11 101100 15 10 9 8 76 5 0 */ bitset<6> opCode; bitset<2> R; bitset<6> address; int j = 0; for (int i = 10; i < 16; i++)//6 bits { opCode[j] = instructionIn[i]; j++; } j = 0; for (int i = 6; i < 8; i++)//2 bits { R[j] = instructionIn[i]; j++; } j = 0; for (int i = 0; i < 6; i++)//6 bits { address[j] = instructionIn[i]; j++; } cout << right; if (MyCache.getProgramCounter_PC().to_ulong() == Pcount && firstPassFlag == 0) { cout << "\n\t\t" << setw(4) << setfill(' ') << Pcount << " PC==>" << opCodeToString(opCode) << " R" << R.to_ulong() << " " << address; firstPassFlag = 1; } else cout << "\n\t\t" << setw(4) << setfill(' ') << Pcount << " " << opCodeToString(opCode) << " R" << R.to_ulong() << " " << address; } //for instruction display //-> DEC(8), INC(9) //Form --> opCode, r, immed void OS::printCodeR(bitset<16> &instructionIn) { /* R Opcode I IX AC address 000001 0 0 11 101100 15 10 9 8 76 5 0 */ bitset<6> opCode; bitset<2> R; int j = 0; for (int i = 10; i < 16; i++)//6 bits { opCode[j] = instructionIn[i]; j++; } j = 0; for (int i = 6; i < 8; i++)//2 bits { R[j] = instructionIn[i]; j++; } cout << right; if (MyCache.getProgramCounter_PC().to_ulong() == Pcount && firstPassFlag == 0) { cout << "\n\t\t" << setw(4) << setfill(' ') << Pcount << " PC==>" << opCodeToString(opCode) << " R" << R.to_ulong() << " " << " "; firstPassFlag = 1; } else cout << "\n\t\t" << setw(4) << setfill(' ') << Pcount << " " << opCodeToString(opCode) << " R" << R.to_ulong() << " " << " "; } //for instruction display // Advanced Arithmetic and Logical Instructions -> MUL(20), DIV(21), TER(22), AND(23), ORR(24) //form --> opCode, rx, ry void OS::printCodeRxRy(bitset<16> &instructionIn) { /* Opcode Rx Ry Address 000001 00 01 000000 15 10 98 76 5 0 */ //MUL rx, ry //ignores address bitset<6> opCode; bitset<2> Rx; bitset<2> Ry; int j = 0; for (int i = 10; i < 16; i++)//6 bits { opCode[j] = instructionIn[i]; j++; } j = 0; for (int i = 6; i < 8; i++)//2 bits { Ry[j] = instructionIn[i]; j++; } j = 0; for (int i = 8; i < 10; i++)//2 bits { Rx[j] = instructionIn[i]; j++; } cout << right; if (MyCache.getProgramCounter_PC().to_ulong() == Pcount && firstPassFlag == 0) { cout << "\n\t\t" << setw(4) << setfill(' ') << Pcount << " PC==>" << opCodeToString(opCode) << " Rx" << Rx.to_ulong() << ", Ry" << Rx.to_ulong(); firstPassFlag = 1; } else cout << "\n\t\t" << setw(4) << setfill(' ') << Pcount << " " << opCodeToString(opCode) << " Rx" << Rx.to_ulong() << ", Ry" << Rx.to_ulong(); } //for instruction display //-> NOT(25) //form --> opCode, rx void OS::printCodeRx(bitset<16> &instructionIn) { /* Opcode Rx Ry Address 000001 00 01 000000 15 10 98 76 5 0 */ //ignores address bitset<6> opCode; bitset<2> Rx; int j = 0; for (int i = 10; i < 16; i++)//6 bits { opCode[j] = instructionIn[i]; j++; } j = 0; for (int i = 8; i < 10; i++)//2 bits { Rx[j] = instructionIn[i]; j++; } cout << right; if (MyCache.getProgramCounter_PC().to_ulong() == Pcount && firstPassFlag == 0) { cout << "\n\t\t" << setw(4) << setfill(' ') << Pcount << " PC==>" << opCodeToString(opCode) << " R" << Rx.to_ulong(); firstPassFlag = 1; } else cout << "\n\t\t" << setw(4) << setfill(' ') << Pcount << " " << opCodeToString(opCode) << " R" << Rx.to_ulong(); } //for instruction display //-> ADD(26), SUB(27) //form --> opCode, rx, ry, i, ix void OS::printCodeRRII(bitset<16> &instructionIn) { /* Opcode Rx Ry I IX 000001 00 01 0 0 0000 15 10 98 76 5 4 3 0 */ //ADD rx, ry, i, ix //SUB rx, ry, i, ix bitset<6> opCode; bitset<2> Rx; bitset<2> Ry; int j = 0; for (int i = 10; i < 16; i++)//6 bits { opCode[j] = instructionIn[i]; j++; } j = 0; for (int i = 6; i < 8; i++)//2 bits { Ry[j] = instructionIn[i]; j++; } j = 0; for (int i = 8; i < 10; i++)//2 bits { Rx[j] = instructionIn[i]; j++; } cout << right; if (MyCache.getProgramCounter_PC().to_ulong() == Pcount && firstPassFlag == 0) { cout << "\n\t\t" << setw(4) << setfill(' ') << Pcount << " PC==>" << opCodeToString(opCode) << " Rx" << Rx.to_ulong() << ", Ry" << Rx.to_ulong() << ", " << instructionIn[5] << ", " << instructionIn[4]; firstPassFlag = 1; } else cout << "\n\t\t" << setw(4) << setfill(' ') << Pcount << " " << opCodeToString(opCode) << " Rx" << Rx.to_ulong() << ", Ry" << Rx.to_ulong() << ", " << instructionIn[5] << ", " << instructionIn[4]; } //calls functions for executing instructions void OS::executeInstruction(bitset<16> instructionIn) { bitset<6> opCode; int a = 0; for (int i = 10; i < 16; i++) { opCode[a] = instructionIn[i]; a++; } if (opCode == 1) //LDR LDR(instructionIn); else if (opCode == 2) //STR STR(instructionIn); else if (opCode == 41) //LDX LDX(instructionIn); else if (opCode == 42) //STX STX(instructionIn); else if (opCode == 10) //JE JE(instructionIn); else if (opCode == 11) //JNE JNE(instructionIn); else if (opCode == 12) //JG JG(instructionIn); else if (opCode == 13) //JMP JUMP(instructionIn); else if (opCode == 14) //JGE JGE(instructionIn); else if (opCode == 15) //JL JL(instructionIn); else if (opCode == 16) //JLE JLE(instructionIn); else if (opCode == 17) //CMP CMP(instructionIn); //else if (opCode == 18) //else if (opCode == 19) else if (opCode == 4) //AMR AMR(instructionIn); else if (opCode == 5) //SMR SMR(instructionIn); else if (opCode == 6) //AIR AIR(instructionIn); else if (opCode == 7) //SIR SIR(instructionIn); else if (opCode == 8) //DEC DEC(instructionIn); else if (opCode == 9) //INC INC(instructionIn); else if (opCode == 20) //MUL MUL(instructionIn); else if (opCode == 21) //DIV DIV(instructionIn); else if (opCode == 22) //TER TER(instructionIn); else if (opCode == 23) //AND AND(instructionIn); else if (opCode == 24) //ORR ORR(instructionIn); else if (opCode == 25) //NOT NOT(instructionIn); else if (opCode == 26) //ADD ADD(instructionIn); else if (opCode == 27) //SUB SUB(instructionIn); } //effects containers as appropriate to empty or clear contents. Memory container is NEVER destroyed, just emptied void OS::clearAllData() { MyCache.resetAllRegisters();//resets all bitsets to 0's instructionSet_OS.clear();//removes all elements leaving the container with a size of 0 MyMemory.clearMemory();//removes all elements leaving the container with a size of 0 } //Scrolls through file data for processing specific fields as required //Returns next data field as a string. string OS::fileIterator(istream &input, char delim) { string newString; int endFlag = 0; getline(input, newString, delim); endFlag = scrollChars(input); return newString; } //allows skipping of parenthesis and iterates through whitespace after a word that may be //or is expected to be the last entry in order to find next entry or eof //used only in fileIterator(). Returns next char as int int OS::scrollChars(istream &instructionFile) { int temp = instructionFile.peek(); //catch parenthesis here if (temp == '"') { do { instructionFile.ignore(); temp = instructionFile.peek(); } while (temp != '"'); } //9 == horizontal tab while (temp == ' ' || temp == 9)//skip trailing white space { instructionFile.ignore(); temp = instructionFile.peek(); } return temp; } //iterates through whitespace after a word that may be or is expected to be the last entry //in order to find eof. Used by UserPrompt() for user input processing (cin). Returns next char as int //Precondition: 2nd or 3rd word of getInstruction term input //Postcondition: cin loaded with next non-whitespace data int OS::scrollWhiteSpace(istream &cin) { int temp = cin.peek(); //9 == horizontal tab while (temp == ' ' || temp == 9) { cin.ignore(); temp = cin.peek(); } return temp; } ////////////// /*Adds 2 bitsets. Helper function.*/ bitset<16> addBitSets(std::bitset<16> a, std::bitset<16> b) //adds bitsets { std::bitset<16> const m("1"); std::bitset<16> result; for (unsigned int i = 0; i < result.size(); ++i) { std::bitset<16> const diff(((a >> i)&m).to_ullong() + ((b >> i)&m).to_ullong() + (result >> i).to_ullong()); result ^= (diff ^ (result >> i)) << i; } return result; } //Load Register to memory. Takes a 16 bitset and extracts necessary bits to calculate the //effective address. Bus class is used to temporarily hold address and data. void OS::LDR(bitset<16> temp) { bitset<2> reg; //holds bits that identify the register bitset<16> mar; reg[1] = temp[7]; reg[0] = temp[6]; unsigned long gpr_num = reg.to_ulong(); bitset<16> effectiveAddress_EA; //indexed addressing requires 16, i believe it is okay to simply bufffer the unused bits with 0s bitset<16> content; //holds values that are being transferred if (temp[9] == 0) { if (temp[8] == 0) { for (int i = 5; i >= 0; i--) { effectiveAddress_EA[i] = temp[i]; } unsigned long effective_address = effectiveAddress_EA.to_ulong(); mar = effectiveAddress_EA.to_ulong(); SystemBus.setAddressBus(effective_address); content = SystemBus.getDataBus(); MyCache.setGeneralPurposeRegisters_GPRs(gpr_num, content); MyCache.setMemoryAddressRegister_MAR(mar); MyCache.setMemoryBufferRegister_MBR(content); } else if (temp[8] == 1) { bitset<16> index = MyCache.getIndexRegister_X0(); bitset<16> address; for (int i = 5; i >= 0; i--) { address[i] = temp[i]; } address = addBitSets(address, index); for (int i = 15; i >= 0; i--) { effectiveAddress_EA[i] = address[i]; } unsigned long effective_address = effectiveAddress_EA.to_ulong(); mar = effectiveAddress_EA.to_ulong(); SystemBus.setAddressBus(effective_address); content = SystemBus.getDataBus(); MyCache.setGeneralPurposeRegisters_GPRs(gpr_num, content); MyCache.setMemoryAddressRegister_MAR(mar); MyCache.setMemoryBufferRegister_MBR(content); } } else if (temp[9] == 1) { if (temp[8] == 0) { //for (int i = 5; i >= 0; i--) //{ //effectiveAddress_EA[i] = temp[i]; //} unsigned long effective_address = temp.to_ulong(); mar = temp.to_ulong(); SystemBus.setAddressBus(effective_address); content = SystemBus.getDataBus(); MyCache.setGeneralPurposeRegisters_GPRs(gpr_num, content); MyCache.setMemoryAddressRegister_MAR(mar); MyCache.setMemoryBufferRegister_MBR(content); } else if (temp[8] == 1) { bitset<16> index = MyCache.getIndexRegister_X0(); bitset<16> address; //for (int i = 5; i >= 0; i--) //{ //address[i] = temp[i]; //} address = addBitSets(temp, index); for (int i = 15; i >= 0; i--) { effectiveAddress_EA[i] = address[i]; } unsigned long effective_address = effectiveAddress_EA.to_ulong(); mar = effectiveAddress_EA.to_ulong(); SystemBus.setAddressBus(effective_address); content = SystemBus.getDataBus(); MyCache.setGeneralPurposeRegisters_GPRs(gpr_num, content); MyCache.setMemoryAddressRegister_MAR(mar); MyCache.setMemoryBufferRegister_MBR(content); } } } //Store Register to memory. Takes a 16 bitset and extracts necessary bits to calculate the //effective address. Bus class is used to temporarily hold address and data. void OS::STR(bitset<16> setIn) { bitset<2> reg; //holds bits that identify the register reg[1] = setIn[7]; reg[0] = setIn[6]; unsigned long gpr_num = reg.to_ulong(); bitset<16> effectiveAddress_EA; //indexed addressing requires 16, i believe it is okay to simply buffer the unused bits with 0s bitset<16> content; //holds values that are being transferred if (setIn[9] == 0) { if (setIn[8] == 0) { for (int i = 5; i >= 0; i--) { effectiveAddress_EA[i] = setIn[i]; } unsigned long effective_address = effectiveAddress_EA.to_ulong(); SystemBus.setAddressBus(effective_address); content = MyCache.getGeneralPurposeRegisters_GPRs(gpr_num); MyMemory.setMemoryElement(effective_address, content); } else if (setIn[8] == 1) { bitset<16> index = MyCache.getIndexRegister_X0(); bitset<16> address; for (int i = 5; i >= 0; i--) { address[i] = setIn[i]; } address = addBitSets(address, index); for (int i = 15; i >= 0; i--) { effectiveAddress_EA[i] = address[i]; } unsigned long effective_address = effectiveAddress_EA.to_ulong(); SystemBus.setAddressBus(effective_address); content = MyCache.getGeneralPurposeRegisters_GPRs(gpr_num); MyMemory.setMemoryElement(effective_address, content); } } else if (setIn[9] == 1) { if (setIn[8] == 0) { //for (int i = 5; i >= 0; i--) //{ //effectiveAddress_EA[i] = setIn[i]; //} unsigned long effective_address = setIn.to_ulong(); SystemBus.setAddressBus(effective_address); content = MyCache.getGeneralPurposeRegisters_GPRs(gpr_num); MyMemory.setMemoryElement(effective_address, content); } else if (setIn[8] == 1) { bitset<16> index = MyCache.getIndexRegister_X0(); bitset<16> address; //for (int i = 5; i >= 0; i--) //{ //address[i] = setIn[i]; //} address = addBitSets(setIn, index); for (int i = 15; i >= 0; i--) { effectiveAddress_EA[i] = address[i]; } unsigned long effective_address = effectiveAddress_EA.to_ulong(); SystemBus.setAddressBus(effective_address); content = MyCache.getGeneralPurposeRegisters_GPRs(gpr_num); MyMemory.setMemoryElement(effective_address, content); } } } //Load Index Register from memory. Takes a 16 bitset and extracts necessary bits to calculate the //effective address. Bus class is used to temporarily hold address and data. void OS::LDX(bitset<16> temp) { bitset<16> mar; bitset<16> effectiveAddress_EA; //indexed addressing requires 16, i believe it is okay to simply bufffer the unused bits with 0s bitset<16> content; //holds values that are being transferred cout << "LDX TOP" << endl; if (temp[9] == 0) { cout << "LDX IF" << endl; if (temp[8] == 0) { cout << "LDX IF IF" << endl; for (int i = 5; i >= 0; i--) { effectiveAddress_EA[i] = temp[i]; } unsigned long effective_address = effectiveAddress_EA.to_ulong(); mar = effectiveAddress_EA.to_ulong(); SystemBus.setAddressBus(effective_address); content = SystemBus.getDataBus(); MyCache.setIndexRegister_X0(content); MyCache.setMemoryAddressRegister_MAR(mar); MyCache.setMemoryBufferRegister_MBR(content); } else if (temp[8] == 1) { cout << "LDX IF, ELSE IF" << endl; bitset<16> index = MyCache.getIndexRegister_X0(); bitset<16> address; for (int i = 5; i >= 0; i--) { address[i] = temp[i]; } address = addBitSets(address, index); for (int i = 15; i >= 0; i--) { effectiveAddress_EA[i] = address[i]; } unsigned long effective_address = effectiveAddress_EA.to_ulong(); mar = effectiveAddress_EA.to_ulong(); SystemBus.setAddressBus(effective_address); content = SystemBus.getDataBus(); MyCache.setIndexRegister_X0(content); MyCache.setMemoryAddressRegister_MAR(mar); MyCache.setMemoryBufferRegister_MBR(content); } } else if (temp[9] == 1) { cout << "LDX ELSE IF" << endl; if (temp[8] == 0) { cout << "LDX ELSE IF, IF" << endl; //for (int i = 5; i >= 0; i--) //{ //effectiveAddress_EA[i] = temp[i]; //} unsigned long effective_address = temp.to_ulong(); cout << "what is temp: " << temp.to_ulong() << endl; mar = temp.to_ulong(); SystemBus.setAddressBus(effective_address); content = SystemBus.getDataBus(); MyCache.setIndexRegister_X0(content); MyCache.setMemoryAddressRegister_MAR(mar); MyCache.setMemoryBufferRegister_MBR(content); cout << "Bottom of else if if..." << endl; } else if (temp[8] == 1) { cout << "LDX ELSE IF, ELSE IF" << endl; bitset<16> index = MyCache.getIndexRegister_X0(); bitset<16> address; //for (int i = 5; i >= 0; i--) //{ //address[i] = temp[i]; //} address = addBitSets(temp, index); for (int i = 15; i >= 0; i--) { effectiveAddress_EA[i] = address[i]; } unsigned long effective_address = effectiveAddress_EA.to_ulong(); mar = effectiveAddress_EA.to_ulong(); SystemBus.setAddressBus(effective_address); content = SystemBus.getDataBus(); MyCache.setIndexRegister_X0(content); MyCache.setMemoryAddressRegister_MAR(mar); MyCache.setMemoryBufferRegister_MBR(content); } } cout << "LDX BOTTOM" << endl; } //Store Index Register to memory. Takes a 16 bitset and extracts necessary bits to calculate the //effective address. Bus class is used to temporarily hold address and data. void OS::STX(bitset<16> setIn) { bitset<16> effectiveAddress_EA; //indexed addressing requires 16, i believe it is okay to simply bufffer the unused bits with 0s bitset<16> content; //holds values that are being transferred if (setIn[9] == 0) { if (setIn[8] == 0) { for (int i = 5; i >= 0; i--) { effectiveAddress_EA[i] = setIn[i]; } unsigned long effective_address = effectiveAddress_EA.to_ulong(); SystemBus.setAddressBus(effective_address); content = MyCache.getIndexRegister_X0(); MyMemory.setMemoryElement(effective_address, content); } else if (setIn[8] == 1) { bitset<16> index = MyCache.getIndexRegister_X0(); bitset<16> address; for (int i = 5; i >= 0; i--) { address[i] = setIn[i]; } address = addBitSets(address, index); for (int i = 15; i >= 0; i--) { effectiveAddress_EA[i] = address[i]; } unsigned long effective_address = effectiveAddress_EA.to_ulong(); SystemBus.setAddressBus(effective_address); content = MyCache.getIndexRegister_X0(); MyMemory.setMemoryElement(effective_address, content); } } else if (setIn[9] == 1) { if (setIn[8] == 0) { //for (int i = 5; i >= 0; i--) //{ //effectiveAddress_EA[i] = setIn[i]; //} unsigned long effective_address = setIn.to_ulong(); SystemBus.setAddressBus(effective_address); content = MyCache.getIndexRegister_X0(); MyMemory.setMemoryElement(effective_address, content); } else if (setIn[8] == 1) { bitset<16> index = MyCache.getIndexRegister_X0(); bitset<16> address; //for (int i = 5; i >= 0; i--) //{ //address[i] = setIn[i]; //} address = addBitSets(setIn, index); for (int i = 15; i >= 0; i--) { effectiveAddress_EA[i] = address[i]; } unsigned long effective_address = effectiveAddress_EA.to_ulong(); SystemBus.setAddressBus(effective_address); content = MyCache.getIndexRegister_X0(); MyMemory.setMemoryElement(effective_address, content); } } } //Compares the values that are held in the indicated memory address and register and sets ZF, CF and SF //flags to their appropriate values void OS::CMP(bitset<16> setIn) { bitset<2> reg; //holds bits that identify the register bitset<16> mar; reg[1] = setIn[7]; reg[0] = setIn[6]; unsigned long gpr_num = reg.to_ulong(); bitset<16> effectiveAddress_EA; //indexed addressing requires 16, i believe it is okay to simply bufffer the unused bits with 0s bitset<16> content_mem; //holds mem value bitset<16> content_reg; //holds reg value unsigned long mem_cont; //converted bitset memory value for comparison unsigned long reg_cont; //converted bitset register value for comparison if (setIn[9] == 0) { if (setIn[8] == 0) { for (int i = 5; i >= 0; i--) { effectiveAddress_EA[i] = setIn[i]; } unsigned long effective_address = effectiveAddress_EA.to_ulong(); mar = effectiveAddress_EA.to_ulong(); SystemBus.setAddressBus(effective_address); content_mem = SystemBus.getDataBus(); content_reg = MyCache.getGeneralPurposeRegisters_GPRs(gpr_num); mem_cont = content_mem.to_ulong(); reg_cont = content_reg.to_ulong(); if (mem_cont == reg_cont) { MyCache.set_ZF(1); MyCache.set_CF(0); MyCache.set_SF(0); cout << "Equal" << endl; } else if (reg_cont < mem_cont) { MyCache.set_ZF(0); MyCache.set_CF(1); MyCache.set_SF(1); cout << "Reg is smaller" << endl; } else if (reg_cont > mem_cont) { MyCache.set_ZF(0); MyCache.set_CF(0); MyCache.set_SF(0); cout << "Reg is greater" << endl; } MyCache.setMemoryAddressRegister_MAR(mar); MyCache.setMemoryBufferRegister_MBR(content_mem); } else if (setIn[8] == 1) { bitset<16> index = MyCache.getIndexRegister_X0(); bitset<16> address; for (int i = 5; i >= 0; i--) { address[i] = setIn[i]; } address = addBitSets(address, index); for (int i = 15; i >= 0; i--) { effectiveAddress_EA[i] = address[i]; } unsigned long effective_address = effectiveAddress_EA.to_ulong(); mar = effectiveAddress_EA.to_ulong(); SystemBus.setAddressBus(effective_address); content_mem = SystemBus.getDataBus(); content_reg = MyCache.getGeneralPurposeRegisters_GPRs(gpr_num); mem_cont = content_mem.to_ulong(); reg_cont = content_reg.to_ulong(); if (mem_cont == reg_cont) { MyCache.set_ZF(1); MyCache.set_CF(0); MyCache.set_SF(0); cout << "Equal" << endl; } else if (reg_cont < mem_cont) { MyCache.set_ZF(0); MyCache.set_CF(1); MyCache.set_SF(1); cout << "Reg is smaller" << endl; } else if (reg_cont > mem_cont) { MyCache.set_ZF(0); MyCache.set_CF(0); MyCache.set_SF(0); cout << "Reg is greater" << endl; } MyCache.setMemoryAddressRegister_MAR(mar); MyCache.setMemoryBufferRegister_MBR(content_mem); } } else if (setIn[9] == 1) { if (setIn[8] == 0) { //for (int i = 5; i >= 0; i--) //{ //effectiveAddress_EA[i] = setIn[i]; //} unsigned long effective_address = setIn.to_ulong(); mar = setIn.to_ulong(); SystemBus.setAddressBus(effective_address); content_mem = SystemBus.getDataBus(); content_reg = MyCache.getGeneralPurposeRegisters_GPRs(gpr_num); mem_cont = content_mem.to_ulong(); reg_cont = content_reg.to_ulong(); if (mem_cont == reg_cont) { MyCache.set_ZF(1); MyCache.set_CF(0); MyCache.set_SF(0); cout << "Equal" << endl; } else if (reg_cont < mem_cont) { MyCache.set_ZF(0); MyCache.set_CF(1); MyCache.set_SF(1); cout << "Reg is smaller" << endl; } else if (reg_cont > mem_cont) { MyCache.set_ZF(0); MyCache.set_CF(0); MyCache.set_SF(0); cout << "Reg is greater" << endl; } MyCache.setMemoryAddressRegister_MAR(mar); MyCache.setMemoryBufferRegister_MBR(content_mem); } else if (setIn[8] == 1) { bitset<16> index = MyCache.getIndexRegister_X0(); bitset<16> address; //for (int i = 5; i >= 0; i--) //{ //address[i] = setIn[i]; //} address = addBitSets(setIn, index); for (int i = 15; i >= 0; i--) { effectiveAddress_EA[i] = address[i]; } unsigned long effective_address = effectiveAddress_EA.to_ulong(); mar = effectiveAddress_EA.to_ulong(); SystemBus.setAddressBus(effective_address); content_mem = SystemBus.getDataBus(); content_reg = MyCache.getGeneralPurposeRegisters_GPRs(gpr_num); mem_cont = content_mem.to_ulong(); reg_cont = content_reg.to_ulong(); if (mem_cont == reg_cont) { MyCache.set_ZF(1); MyCache.set_CF(0); MyCache.set_SF(0); cout << "Equal" << endl; } else if (reg_cont < mem_cont) { MyCache.set_ZF(0); MyCache.set_CF(1); MyCache.set_SF(1); cout << "Reg is smaller" << endl; } else if (reg_cont > mem_cont) { MyCache.set_ZF(0); MyCache.set_CF(0); MyCache.set_SF(0); cout << "Reg is greater" << endl; } MyCache.setMemoryAddressRegister_MAR(mar); MyCache.setMemoryBufferRegister_MBR(content_mem); } } } void OS::JE(bitset<16> setIn) { if (MyCache.get_ZF() == 1) { JUMP(setIn); } else { return; } } void OS::JNE(bitset<16> setIn) { if (MyCache.get_ZF() == 0) { JUMP(setIn); } else { return; } } void OS::JG(bitset<16> setIn) { if (MyCache.get_ZF() == 0 && MyCache.get_SF() == 0) { JUMP(setIn); } else { return; } } void OS::JGE(bitset<16> setIn) { if (MyCache.get_ZF() == 1 || MyCache.get_SF() == 0) { JUMP(setIn); } else { return; } } void OS::JL(bitset<16> setIn) { if (MyCache.get_SF() == 1) { JUMP(setIn); } else { return; } } void OS::JLE(bitset<16> setIn) { if (MyCache.get_ZF() == 1 || MyCache.get_SF() == 1) { JUMP(setIn); } else { return; } } void OS::JUMP(bitset<16> setIn) { bitset<16> effectiveAddress_EA; //indexed addressing requires 16, i believe it is okay to simply bufffer the unused bits with 0s bitset<16> content; //holds values that are being transferred bitset<16> mar; if (setIn[9] == 0) { if (setIn[8] == 0) { for (int i = 5; i >= 0; i--) { effectiveAddress_EA[i] = setIn[i]; } unsigned long effective_address = effectiveAddress_EA.to_ulong(); mar = effectiveAddress_EA.to_ulong(); SystemBus.setAddressBus(effective_address); content = SystemBus.getDataBus(); MyCache.setInstructionRegister_IR(content); //IR register gets the instruction from the address in main mem MyCache.set_ProgramCounter(effective_address++); //PC gets the next address } else if (setIn[8] == 1) { bitset<16> index = MyCache.getIndexRegister_X0(); bitset<16> address; for (int i = 5; i >= 0; i--) { address[i] = setIn[i]; } address = addBitSets(address, index); for (int i = 15; i >= 0; i--) { effectiveAddress_EA[i] = address[i]; } unsigned long effective_address = effectiveAddress_EA.to_ulong(); mar = effectiveAddress_EA.to_ulong(); SystemBus.setAddressBus(effective_address); content = SystemBus.getDataBus(); MyCache.setInstructionRegister_IR(content); MyCache.set_ProgramCounter(effective_address++); } } else if (setIn[9] == 1) { if (setIn[8] == 0) { //for (int i = 5; i >= 0; i--) //{ //effectiveAddress_EA[i] = temp[i]; //} unsigned long effective_address = setIn.to_ulong(); mar = setIn.to_ulong(); SystemBus.setAddressBus(effective_address); content = SystemBus.getDataBus(); MyCache.setInstructionRegister_IR(content); MyCache.set_ProgramCounter(effective_address++); } else if (setIn[8] == 1) { bitset<16> index = MyCache.getIndexRegister_X0(); bitset<16> address; //for (int i = 5; i >= 0; i--) //{ //address[i] = temp[i]; //} address = addBitSets(setIn, index); for (int i = 15; i >= 0; i--) { effectiveAddress_EA[i] = address[i]; } unsigned long effective_address = effectiveAddress_EA.to_ulong(); mar = effectiveAddress_EA.to_ulong(); SystemBus.setAddressBus(effective_address); content = SystemBus.getDataBus(); MyCache.setInstructionRegister_IR(content); MyCache.set_ProgramCounter(effective_address++); } } MyCache.setMemoryAddressRegister_MAR(mar); MyCache.setMemoryBufferRegister_MBR(content); } void OS::AMR(bitset<16> setIn) { } void OS::SMR(bitset<16> setIn) { } void OS::AIR(bitset<16> setIn) { } void OS::SIR(bitset<16> setIn) { } void OS::DEC(bitset<16> setIn) { } void OS::INC(bitset<16> setIn) { } void OS::MUL(bitset<16> setIn) { } void OS::DIV(bitset<16> setIn) { } void OS::TER(bitset<16> setIn) { } void OS::AND(bitset<16> setIn) { } void OS::ORR(bitset<16> setIn) { } void OS::NOT(bitset<16> setIn) { } void OS::ADD(bitset<16> setIn) { } void OS::SUB(bitset<16> setIn) { }
0ff09b1c76aeba6676fc65c256cd97ec21ef6ee4
c138207aa6a261b243867fd93ce8bda68b528df7
/server_c+/server_c+/CircularBuffer.cpp
11ad11dbcad535ecf374d31cccb1580fc414a137
[]
no_license
JinName/Senier-Project
7761a5b21e6db429787ddbf8ecb295d4cb76b474
b47bb5c2604b4c9891cb57cfd0bdb8b765dec5b4
refs/heads/master
2023-04-17T21:25:22.738835
2021-05-05T06:40:02
2021-05-05T06:40:02
211,883,062
0
0
null
null
null
null
UHC
C++
false
false
6,526
cpp
CircularBuffer.cpp
#include <string.h> #include "CircularBuffer.h" CircularBuffer::CircularBuffer() { memset(m_Buffer, 0, RINGBUF_SIZE); m_pBufferEnd = m_Buffer + RINGBUF_SIZE; m_pPrimaryCursor = m_Buffer; m_PrimarySize = 0; m_pSecondCursor = nullptr; m_SecondSize = 0; } CircularBuffer::~CircularBuffer() { m_pBufferEnd = nullptr; m_pPrimaryCursor = nullptr; m_PrimarySize = 0; m_pSecondCursor = nullptr; m_SecondSize = 0; memset(m_Buffer, 0, RINGBUF_SIZE); } /// private functions //////////////////////////////////////////////////////// /// <summary> /// 두번째 커서를 버퍼의 시작지점으로 이동시킨다. /// </summary> void CircularBuffer::allocateSecondPointer() { m_pSecondCursor = m_Buffer; } /// <summary> /// 첫번째 커서부터 쌓인 데이터 끝지점에서 버퍼의 끝지점 까지 남은 공간을 반환한다. /// </summary> /// <returns> size_t </returns> size_t CircularBuffer::getAvailablePrimaryBufferSize() { return (m_pBufferEnd - (m_pPrimaryCursor + m_PrimarySize)); } /// <summary> /// 두번째 커서부터 쌓인 데이터 끝지점에서 첫번째 커서까지 남은 공간을 반환한다. /// </summary> /// <returns> size_t </returns> size_t CircularBuffer::getAvailableSecondBufferSize() { if (m_pSecondCursor == nullptr) { return 0; } else { return (m_pPrimaryCursor - (m_pSecondCursor + m_SecondSize)); } } ////////////////////////////////////////////////////////////////////////////////// /// <summary> /// 현재 삽입 가능한 버퍼내의 공간을 계산하여 반환. /// 공간을 계산하며 커서의 위치에 따라 삽입 지점을 조절한다. /// GetWritablePointer() 이전에 선행되어야 하는 함수이다. /// </summary> /// <returns> size_t </returns> size_t CircularBuffer::GetAvailableBufferSize() { if (m_pSecondCursor != nullptr) { return getAvailableSecondBufferSize(); } else { // Primary Buffer 의 여유공간이 MAX_PACKET_SIZE 보다 작을 경우 // Second Pointer 에 전체 버퍼의 첫 지점을 할당하여 // Second Pointer 부터 데이터를 삽입하도록 함 if (MAX_PACKET_SIZE > getAvailablePrimaryBufferSize()) { allocateSecondPointer(); return getAvailableSecondBufferSize(); } else { return getAvailablePrimaryBufferSize(); } } } /// <summary> /// 버퍼 삽입 가능한 지점을 반환. /// GetAvailableBufferSize() 함수가 선행되어야 한다. /// </summary> /// <returns> char* </returns> char* CircularBuffer::GetWritablePointer() { if (m_pSecondCursor != nullptr) { return m_pSecondCursor + m_SecondSize; } else { return m_pPrimaryCursor + m_PrimarySize; } } /// <summary> /// 현재 버퍼내에 데이터가 차지하고 있는 공간을 반환한다. /// </summary> /// <returns> size_t </returns> size_t CircularBuffer::GetWritedDataSize() { return m_PrimarySize + m_SecondSize; } /// <summary> /// Recv() 로 버퍼가 도착한 이후 삽입된 데이터 길이만큼을 업데이트한다. /// </summary> /// <param name="len"> 현재 삽입된 데이터의 길이 </param> void CircularBuffer::CommitDataSize(size_t len) { if (m_pSecondCursor != nullptr) { m_SecondSize += len; } else { m_PrimarySize += len; } } /// <summary> /// Peek() : 버퍼 내의 데이터에서 Head 만을 확인하여 Pop 해야하는 데이터의 길이를 확인한다. /// </summary> /// <param name="outBuffer"> Peek 결과 값 </param> /// <param name="len"> Peek 할 길이 </param> /// <returns> bool type </returns> bool CircularBuffer::Peek(char* outBuffer, size_t len) { if (GetWritedDataSize() < len) { // 에러가 발생한 클래스, 함수, 원인 등을 출력 printError(this, __func__, "writed buffer size less than require"); return false; } size_t cnt = len; // Primary Buffer 에서 Peek 하는 경우 if (m_PrimarySize > 0) { size_t peekSize = (cnt > m_PrimarySize) ? m_PrimarySize : cnt; // 버퍼 복사 memcpy(outBuffer, m_pPrimaryCursor, peekSize); cnt -= peekSize; } // Primary Buffer 에서 Peek 이후 Second Buffer 에서 마저 Peek 해야 하는 경우 if (cnt > 0 && m_SecondSize > 0) { size_t peekSize = (cnt > m_SecondSize) ? m_SecondSize : cnt; // 버퍼 복사 memcpy(outBuffer + (len - cnt), m_pSecondCursor, peekSize); cnt -= peekSize; } return true; } /// <summary> /// Pop() : 버퍼에서 원하는 길이만큼 데이터를 추출하고 삭제한다. /// </summary> /// <param name="outBuffer"> Pop 결과 값 </param> /// <param name="len"> Pop 할 길이 </param> /// <returns> bool type </returns> bool CircularBuffer::Pop(char* outBuffer, size_t len) { // Pop 하려는 데이터 길이가 버퍼에 담겨있는 데이터 길이보다 클 경우, // return false; if (GetWritedDataSize() < len) { // 에러가 발생한 클래스, 함수, 원인 등을 출력 printError(this, __func__, "writed buffer size less than require"); return false; } size_t cnt = len; // Primary Buffer 에서 Pop 하는 경우 if (m_PrimarySize > 0) { size_t popSize = (cnt > m_PrimarySize) ? m_PrimarySize : cnt; // 버퍼 복사 memcpy(outBuffer, m_pPrimaryCursor, popSize); // 내용 삭제 memset(m_pPrimaryCursor, 0, popSize); m_PrimarySize -= popSize; m_pPrimaryCursor += popSize; cnt -= popSize; } // Primary Buffer 에서 Pop 이후 Second Buffer 에서 마저 Pop 해야 하는 경우 if (cnt > 0 && m_SecondSize > 0) { size_t popSize = (cnt > m_SecondSize) ? m_SecondSize : cnt; // 버퍼 복사 memcpy(outBuffer + (len - cnt), m_pSecondCursor, popSize); // 내용 삭제 memset(m_pSecondCursor, 0, popSize); m_SecondSize -= popSize; m_pSecondCursor += popSize; cnt -= popSize; } // Pop 이후 Primary Buffer 는 비어있고 if (m_PrimarySize == 0) { // Second Buffer 에 데이터가 남아있을 경우 if (m_SecondSize > 0) { // Second Buffer Data 를 시작지점으로 복사 if (m_pSecondCursor != m_Buffer) memcpy(m_Buffer, m_pSecondCursor, m_SecondSize); // Primary Buffer Cursor 를 시작지점으로 변경 // + Primary Buffer 지점에 삽입되어있는 사이즈 변경 m_pPrimaryCursor = m_Buffer; m_PrimarySize = m_SecondSize; } // Second Buffer 도 비어있는 경우 else { // Primary Buffer Cursor 를 시작지점으로 변경 m_pPrimaryCursor = m_Buffer; m_PrimarySize = 0; } // Cursor 이동이 끝나면 Second Cursor 초기화 m_pSecondCursor = nullptr; m_SecondSize = 0; } return true; }
2e87f8e140d8f3a1c46b4d3ab59e6f08ab8b59c8
282185473c26c259c03b53357dd418f47ec9961b
/build-moonlight-qt-Desktop_Qt_6_0_3_MSVC2019_64bit-Debug/app/debug/moc_systemproperties.cpp
48d6f1c564146a050b3360b6933536c12bff906f
[]
no_license
hzlujunyi/HPLD-IC
9cf27ddd4104ec01c20d03656581955d9406bbd6
409622103f303fb9875c29eb702884665de34387
refs/heads/main
2023-06-13T02:25:10.798515
2021-06-27T17:41:15
2021-06-27T17:41:15
380,802,714
0
0
null
null
null
null
UTF-8
C++
false
false
10,038
cpp
moc_systemproperties.cpp
/**************************************************************************** ** Meta object code from reading C++ file 'systemproperties.h' ** ** Created by: The Qt Meta Object Compiler version 68 (Qt 6.0.3) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include <memory> #include "../../../moonlight-qt/app/backend/systemproperties.h" #include <QtCore/qbytearray.h> #include <QtCore/qmetatype.h> #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'systemproperties.h' doesn't include <QObject>." #elif Q_MOC_OUTPUT_REVISION != 68 #error "This file was generated using the moc from 6.0.3. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE QT_WARNING_PUSH QT_WARNING_DISABLE_DEPRECATED struct qt_meta_stringdata_SystemProperties_t { const uint offsetsAndSize[40]; char stringdata0[357]; }; #define QT_MOC_LITERAL(ofs, len) \ uint(offsetof(qt_meta_stringdata_SystemProperties_t, stringdata0) + ofs), len static const qt_meta_stringdata_SystemProperties_t qt_meta_stringdata_SystemProperties = { { QT_MOC_LITERAL(0, 16), // "SystemProperties" QT_MOC_LITERAL(17, 23), // "unmappedGamepadsChanged" QT_MOC_LITERAL(41, 0), // "" QT_MOC_LITERAL(42, 15), // "refreshDisplays" QT_MOC_LITERAL(58, 20), // "getDesktopResolution" QT_MOC_LITERAL(79, 12), // "displayIndex" QT_MOC_LITERAL(92, 19), // "getNativeResolution" QT_MOC_LITERAL(112, 23), // "hasHardwareAcceleration" QT_MOC_LITERAL(136, 24), // "rendererAlwaysFullScreen" QT_MOC_LITERAL(161, 16), // "isRunningWayland" QT_MOC_LITERAL(178, 17), // "isRunningXWayland" QT_MOC_LITERAL(196, 7), // "isWow64" QT_MOC_LITERAL(204, 22), // "friendlyNativeArchName" QT_MOC_LITERAL(227, 21), // "hasDesktopEnvironment" QT_MOC_LITERAL(249, 10), // "hasBrowser" QT_MOC_LITERAL(260, 21), // "hasDiscordIntegration" QT_MOC_LITERAL(282, 16), // "unmappedGamepads" QT_MOC_LITERAL(299, 25), // "maximumStreamingFrameRate" QT_MOC_LITERAL(325, 17), // "maximumResolution" QT_MOC_LITERAL(343, 13) // "versionString" }, "SystemProperties\0unmappedGamepadsChanged\0" "\0refreshDisplays\0getDesktopResolution\0" "displayIndex\0getNativeResolution\0" "hasHardwareAcceleration\0" "rendererAlwaysFullScreen\0isRunningWayland\0" "isRunningXWayland\0isWow64\0" "friendlyNativeArchName\0hasDesktopEnvironment\0" "hasBrowser\0hasDiscordIntegration\0" "unmappedGamepads\0maximumStreamingFrameRate\0" "maximumResolution\0versionString" }; #undef QT_MOC_LITERAL static const uint qt_meta_data_SystemProperties[] = { // content: 9, // revision 0, // classname 0, 0, // classinfo 4, 14, // methods 13, 46, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 1, // signalCount // signals: name, argc, parameters, tag, flags, initial metatype offsets 1, 0, 38, 2, 0x06, 13 /* Public */, // methods: name, argc, parameters, tag, flags, initial metatype offsets 3, 0, 39, 2, 0x02, 14 /* Public */, 4, 1, 40, 2, 0x02, 15 /* Public */, 6, 1, 43, 2, 0x02, 17 /* Public */, // signals: parameters QMetaType::Void, // methods: parameters QMetaType::Void, QMetaType::QRect, QMetaType::Int, 5, QMetaType::QRect, QMetaType::Int, 5, // properties: name, type, flags 7, QMetaType::Bool, 0x00015401, uint(-1), 0, 8, QMetaType::Bool, 0x00015401, uint(-1), 0, 9, QMetaType::Bool, 0x00015401, uint(-1), 0, 10, QMetaType::Bool, 0x00015401, uint(-1), 0, 11, QMetaType::Bool, 0x00015401, uint(-1), 0, 12, QMetaType::QString, 0x00015401, uint(-1), 0, 13, QMetaType::Bool, 0x00015401, uint(-1), 0, 14, QMetaType::Bool, 0x00015401, uint(-1), 0, 15, QMetaType::Bool, 0x00015401, uint(-1), 0, 16, QMetaType::QString, 0x00015003, uint(0), 0, 17, QMetaType::Int, 0x00015401, uint(-1), 0, 18, QMetaType::QSize, 0x00015401, uint(-1), 0, 19, QMetaType::QString, 0x00015401, uint(-1), 0, 0 // eod }; void SystemProperties::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) { if (_c == QMetaObject::InvokeMetaMethod) { auto *_t = static_cast<SystemProperties *>(_o); (void)_t; switch (_id) { case 0: _t->unmappedGamepadsChanged(); break; case 1: _t->refreshDisplays(); break; case 2: { QRect _r = _t->getDesktopResolution((*reinterpret_cast< int(*)>(_a[1]))); if (_a[0]) *reinterpret_cast< QRect*>(_a[0]) = std::move(_r); } break; case 3: { QRect _r = _t->getNativeResolution((*reinterpret_cast< int(*)>(_a[1]))); if (_a[0]) *reinterpret_cast< QRect*>(_a[0]) = std::move(_r); } break; default: ; } } else if (_c == QMetaObject::IndexOfMethod) { int *result = reinterpret_cast<int *>(_a[0]); { using _t = void (SystemProperties::*)(); if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SystemProperties::unmappedGamepadsChanged)) { *result = 0; return; } } } #ifndef QT_NO_PROPERTIES else if (_c == QMetaObject::ReadProperty) { auto *_t = static_cast<SystemProperties *>(_o); (void)_t; void *_v = _a[0]; switch (_id) { case 0: *reinterpret_cast< bool*>(_v) = _t->hasHardwareAcceleration; break; case 1: *reinterpret_cast< bool*>(_v) = _t->rendererAlwaysFullScreen; break; case 2: *reinterpret_cast< bool*>(_v) = _t->isRunningWayland; break; case 3: *reinterpret_cast< bool*>(_v) = _t->isRunningXWayland; break; case 4: *reinterpret_cast< bool*>(_v) = _t->isWow64; break; case 5: *reinterpret_cast< QString*>(_v) = _t->friendlyNativeArchName; break; case 6: *reinterpret_cast< bool*>(_v) = _t->hasDesktopEnvironment; break; case 7: *reinterpret_cast< bool*>(_v) = _t->hasBrowser; break; case 8: *reinterpret_cast< bool*>(_v) = _t->hasDiscordIntegration; break; case 9: *reinterpret_cast< QString*>(_v) = _t->unmappedGamepads; break; case 10: *reinterpret_cast< int*>(_v) = _t->maximumStreamingFrameRate; break; case 11: *reinterpret_cast< QSize*>(_v) = _t->maximumResolution; break; case 12: *reinterpret_cast< QString*>(_v) = _t->versionString; break; default: break; } } else if (_c == QMetaObject::WriteProperty) { auto *_t = static_cast<SystemProperties *>(_o); (void)_t; void *_v = _a[0]; switch (_id) { case 9: if (_t->unmappedGamepads != *reinterpret_cast< QString*>(_v)) { _t->unmappedGamepads = *reinterpret_cast< QString*>(_v); Q_EMIT _t->unmappedGamepadsChanged(); } break; default: break; } } else if (_c == QMetaObject::ResetProperty) { } else if (_c == QMetaObject::BindableProperty) { } #endif // QT_NO_PROPERTIES } const QMetaObject SystemProperties::staticMetaObject = { { QMetaObject::SuperData::link<QObject::staticMetaObject>(), qt_meta_stringdata_SystemProperties.offsetsAndSize, qt_meta_data_SystemProperties, qt_static_metacall, nullptr, qt_incomplete_metaTypeArray<qt_meta_stringdata_SystemProperties_t , QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<QSize, std::true_type>, QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type> , QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QRect, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<QRect, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type> >, nullptr } }; const QMetaObject *SystemProperties::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; } void *SystemProperties::qt_metacast(const char *_clname) { if (!_clname) return nullptr; if (!strcmp(_clname, qt_meta_stringdata_SystemProperties.stringdata0)) return static_cast<void*>(this); return QObject::qt_metacast(_clname); } int SystemProperties::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QObject::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { if (_id < 4) qt_static_metacall(this, _c, _id, _a); _id -= 4; } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { if (_id < 4) *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); _id -= 4; } #ifndef QT_NO_PROPERTIES else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty || _c == QMetaObject::RegisterPropertyMetaType) { qt_static_metacall(this, _c, _id, _a); _id -= 13; } #endif // QT_NO_PROPERTIES return _id; } // SIGNAL 0 void SystemProperties::unmappedGamepadsChanged() { QMetaObject::activate(this, &staticMetaObject, 0, nullptr); } QT_WARNING_POP QT_END_MOC_NAMESPACE
e8b4f929ef13f0b34b03b18cfd415ad8574464be
47ab03c03d8a33be6c848c9132c85170697f7f27
/include/OysterRectangle.h
26eed85edbef9ebbd3305baaa86c7c3855e497b3
[ "WTFPL" ]
permissive
RileyA/Oyster
bf8ea07b9d681cc9ce5a3363e6098dc125fb84e5
1d6478e0b93b045add89a9b18ace495e1380a1c4
refs/heads/master
2021-01-02T23:13:34.523406
2012-01-01T12:58:55
2012-01-01T12:58:55
2,017,340
0
0
null
null
null
null
UTF-8
C++
false
false
2,909
h
OysterRectangle.h
#ifndef OYSTER_RECTANGLE_H #define OYSTER_RECTANGLE_H #include "OysterStdHeaders.h" #include "OysterDrawable.h" namespace Oyster { typedef unsigned char DirtyFlags; /** A simple rectangle */ class Rectangle : public Drawable { public: Rectangle(Atlas* atlas) :Drawable(atlas) { for(int i = 0; i < 4; ++i) vertColors[i] = mColor; setSolidColor(); } //------------------------------------------------------------------- virtual ~Rectangle() { } //------------------------------------------------------------------- virtual void update(DirtyFlags flag, Mesh& out) { bool updatePos = flag & (1<<3) || flag & (1); bool updateTex = flag & (1<<3) || flag & (1<<1); bool updateCol = flag & (1<<3) || flag & (1<<2); bool updateAll = flag & (1<<3); // positions if(updatePos) { out.vertex(mPosX, mPosY); out.vertex(mPosX + mScaleX, mPosY); out.vertex(mPosX + mScaleX, mPosY + mScaleY); out.vertex(mPosX, mPosY + mScaleY); } // indices if(updateAll) { uint16_t startInd = out.vertices.size()/3 - 4; // tri 1 out.indices.push_back(startInd); out.indices.push_back(startInd+1); out.indices.push_back(startInd+2); // tri 2 out.indices.push_back(startInd); out.indices.push_back(startInd+2); out.indices.push_back(startInd+3); } if(updateTex) { for(int i = 0; i < 4; ++i) out.texcoord(static_cast<int>(u[i]), static_cast<int>(v[i])); } if(updateCol) { for(int i = 0; i < 4; ++i) out.color(vertColors[i]); } mFlags = 0; } //------------------------------------------------------------------- void setColor(unsigned int r, unsigned int g, unsigned int b, unsigned int a) { mFlags |= 1<<2; Color c = Color(r,g,b,a); for(int i = 0; i < 4; ++i) vertColors[i] = c; } //------------------------------------------------------------------- void setColor(unsigned int index, unsigned int r, unsigned int g, unsigned int b, unsigned int a) { mFlags |= 1<<2; vertColors[index] = Color(r,g,b,a); } //------------------------------------------------------------------- void setSprite(String name) { Sprite* temp = mAtlas->getSprite(name); u[0] = temp->x; u[1] = temp->x + temp->w; u[2] = temp->x + temp->w; u[3] = temp->x; v[0] = temp->y; v[1] = temp->y; v[2] = temp->y + temp->h; v[3] = temp->y + temp->h; mFlags |= 2; } //------------------------------------------------------------------- void setSolidColor() { Sprite* temp = mAtlas->getWhitePixel(); u[0] = temp->x; u[1] = temp->x + temp->w; u[2] = temp->x + temp->w; u[3] = temp->x; v[0] = temp->y; v[1] = temp->y; v[2] = temp->y + temp->h; v[3] = temp->y + temp->h; mFlags |= 2; } protected: Color vertColors[4]; size_t u[4]; size_t v[4]; }; } #endif
1fd5cac3490973f8ca416a189180de2ec06f7a8b
2e0186dc5f6b8ccc338b45b25e1a4051dc6b263f
/plugins/fossil/fossilsettings.cpp
fc5d63b9d94b0a1f4b921fb99976f67c202058d0
[]
no_license
00mjk/plugin-fossil-scm
3020784e662e68b2377679cacf1b9137e7bec202
7fd9cde17ac6d1c6f140c55b491b2fca00e2dd78
refs/heads/master
2023-03-26T01:46:20.671994
2021-03-29T05:19:17
2021-03-29T06:51:25
null
0
0
null
null
null
null
UTF-8
C++
false
false
6,627
cpp
fossilsettings.cpp
/**************************************************************************** ** ** Copyright (c) 2018 Artur Shepilko ** Contact: https://www.qt.io/licensing/ ** ** This file is part of Qt Creator. ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this file in ** accordance with the commercial license agreement provided with the ** Software or, alternatively, in accordance with the terms contained in ** a written agreement between you and The Qt Company. For licensing terms ** and conditions see https://www.qt.io/terms-conditions. For further ** information use the contact form at https://www.qt.io/contact-us. ** ** GNU General Public License Usage ** Alternatively, this file may be used under the terms of the GNU ** General Public License version 3 as published by the Free Software ** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT ** included in the packaging of this file. Please review the following ** information to ensure the GNU General Public License requirements will ** be met: https://www.gnu.org/licenses/gpl-3.0.html. ** ****************************************************************************/ #include "fossilsettings.h" #include "constants.h" #include "fossilclient.h" #include <coreplugin/icore.h> #include <utils/layoutbuilder.h> #include <utils/pathchooser.h> #include <vcsbase/vcsbaseconstants.h> using namespace Utils; namespace Fossil { namespace Internal { FossilSettings::FossilSettings() { setSettingsGroup(Constants::FOSSIL); setAutoApply(false); registerAspect(&binaryPath); binaryPath.setDisplayStyle(StringAspect::PathChooserDisplay); binaryPath.setExpectedKind(PathChooser::ExistingCommand); binaryPath.setDefaultValue(Constants::FOSSILDEFAULT); binaryPath.setDisplayName(tr("Fossil Command")); binaryPath.setHistoryCompleter("Fossil.Command.History"); binaryPath.setLabelText(tr("Command:")); registerAspect(&defaultRepoPath); defaultRepoPath.setSettingsKey("defaultRepoPath"); defaultRepoPath.setDisplayStyle(StringAspect::PathChooserDisplay); defaultRepoPath.setExpectedKind(PathChooser::Directory); defaultRepoPath.setDisplayName(tr("Fossil Repositories")); defaultRepoPath.setLabelText(tr("Default path:")); defaultRepoPath.setToolTip(tr("Directory to store local repositories by default.")); registerAspect(&userName); userName.setDisplayStyle(StringAspect::LineEditDisplay); userName.setLabelText(tr("Default user:")); userName.setToolTip(tr("Existing user to become an author of changes made to the repository.")); registerAspect(&sslIdentityFile); sslIdentityFile.setSettingsKey("sslIdentityFile"); sslIdentityFile.setDisplayStyle(StringAspect::PathChooserDisplay); sslIdentityFile.setExpectedKind(PathChooser::File); sslIdentityFile.setDisplayName(tr("SSL/TLS Identity Key")); sslIdentityFile.setLabelText(tr("SSL/TLS identity:")); sslIdentityFile.setToolTip(tr("SSL/TLS client identity key to use if requested by the server.")); registerAspect(&diffIgnoreAllWhiteSpace); diffIgnoreAllWhiteSpace.setSettingsKey("diffIgnoreAllWhiteSpace"); registerAspect(&diffStripTrailingCR); diffStripTrailingCR.setSettingsKey("diffStripTrailingCR"); registerAspect(&annotateShowCommitters); annotateShowCommitters.setSettingsKey("annotateShowCommitters"); registerAspect(&annotateListVersions); annotateListVersions.setSettingsKey("annotateListVersions"); registerAspect(&timelineWidth); timelineWidth.setSettingsKey("timelineWidth"); timelineWidth.setLabelText(tr("Log width:")); timelineWidth.setToolTip(tr("The width of log entry line (>20). " "Choose 0 to see a single line per entry.")); registerAspect(&timelineLineageFilter); timelineLineageFilter.setSettingsKey("timelineLineageFilter"); registerAspect(&timelineVerbose); timelineVerbose.setSettingsKey("timelineVerbose"); registerAspect(&timelineItemType); timelineItemType.setDefaultValue("all"); timelineItemType.setSettingsKey("timelineItemType"); registerAspect(&disableAutosync); disableAutosync.setSettingsKey("disableAutosync"); disableAutosync.setDefaultValue(true); disableAutosync.setLabelText(tr("Disable auto-sync")); disableAutosync.setToolTip(tr("Disable automatic pull prior to commit or update and " "automatic push after commit or tag or branch creation.")); registerAspect(&timeout); timeout.setLabelText(tr("Timeout:")); timeout.setSuffix(tr("s")); registerAspect(&logCount); logCount.setLabelText(tr("Log count:")); logCount.setToolTip(tr("The number of recent commit log entries to show. " "Choose 0 to see all entries.")); }; RepositorySettings::RepositorySettings() : autosync(AutosyncOn) { } // OptionsPage class OptionsPageWidget final : public Core::IOptionsPageWidget { Q_DECLARE_TR_FUNCTIONS(Fossil::Internal::OptionsPageWidget) public: OptionsPageWidget(const std::function<void()> &onApply, FossilSettings *settings); void apply() final; private: const std::function<void()> m_onApply; FossilSettings *m_settings; }; void OptionsPageWidget::apply() { if (!m_settings->isDirty()) return; m_settings->apply(); m_onApply(); } OptionsPageWidget::OptionsPageWidget(const std::function<void()> &onApply, FossilSettings *settings) : m_onApply(onApply), m_settings(settings) { FossilSettings &s = *m_settings; using namespace Layouting; const Break nl; Column { Group { Title(tr("Configuration")), Row { s.binaryPath } }, Group { Title(tr("Local Repositories")), Row { s.defaultRepoPath } }, Group { Title(tr("User")), Form { s.userName, nl, s.sslIdentityFile } }, Group { Title(tr("Miscellaneous")), Row { s.logCount, s.timelineWidth, s.timeout, Stretch() }, s.disableAutosync }, Stretch() }.attachTo(this); } OptionsPage::OptionsPage(const std::function<void()> &onApply, FossilSettings *settings) { setId(Constants::VCS_ID_FOSSIL); setDisplayName(OptionsPageWidget::tr("Fossil")); setWidgetCreator([onApply, settings]() { return new OptionsPageWidget(onApply, settings); }); setCategory(VcsBase::Constants::VCS_SETTINGS_CATEGORY); } } // Internal } // Fossil
c094199372a315d88b9f82c45e5ae93af6f25fa3
468cd559cb5374e737bb1b5f42f5fe73dd98dd8b
/source/frontend/views/custom_widgets/rmv_tree_map_view.cpp
5604e11697c10bb61286741caf0d11f33d4d6882
[ "MIT" ]
permissive
GPUOpen-Tools/radeon_memory_visualizer
31b84ceeb44573e654876df7af9cbf0063015898
87d9ca84492432f384e1cc8e93e59c3700ef0e3f
refs/heads/master
2023-09-01T00:41:37.480829
2023-07-12T15:02:57
2023-08-16T18:44:26
245,466,905
117
17
null
null
null
null
UTF-8
C++
false
false
3,791
cpp
rmv_tree_map_view.cpp
//============================================================================= // Copyright (c) 2017-2023 Advanced Micro Devices, Inc. All rights reserved. /// @author AMD Developer Tools Team /// @file /// @brief Implementation of a tree map view. //============================================================================= #include "views/custom_widgets/rmv_tree_map_view.h" #include <QDebug> #include "qt_common/utils/qt_util.h" #include "qt_common/utils/scaling_manager.h" #include "rmt_assert.h" #include "managers/message_manager.h" #include "util/string_util.h" static const uint32_t kViewMargin = 8; RMVTreeMapView::RMVTreeMapView(QWidget* parent) : QGraphicsView(parent) , tree_map_models_(nullptr) , overview_model_(nullptr) { setMouseTracking(true); setFrameStyle(QFrame::NoFrame); setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); scene_ = new QGraphicsScene(); setScene(scene_); RMVTreeMapBlocksConfig config = {}; blocks_ = new RMVTreeMapBlocks(config); scene_->addItem(blocks_); resource_tooltip_.CreateToolTip(scene_, false); } RMVTreeMapView::~RMVTreeMapView() { } void RMVTreeMapView::mousePressEvent(QMouseEvent* event) { QGraphicsView::mousePressEvent(event); } void RMVTreeMapView::mouseMoveEvent(QMouseEvent* event) { QGraphicsView::mouseMoveEvent(event); UpdateToolTip(event->pos()); #if 0 QPoint mouse_coords = mapFromGlobal(QCursor::pos()); QPointF scene_coords = mapToScene(mouse_coords); qDebug() << "mouse: " << mouse_coords; qDebug() << "scene coords: " << scene_coords; qDebug() << "---------"; #endif } void RMVTreeMapView::leaveEvent(QEvent* event) { Q_UNUSED(event); resource_tooltip_.HideToolTip(); } void RMVTreeMapView::resizeEvent(QResizeEvent* event) { QGraphicsView::resizeEvent(event); const uint32_t view_width = width(); const uint32_t view_height = height(); const QRectF scene_rect = QRectF(1, 1, view_width - kViewMargin, view_height - kViewMargin); scene_->setSceneRect(scene_rect); blocks_->UpdateDimensions(view_width - kViewMargin, view_height - kViewMargin); UpdateTreeMap(); } void RMVTreeMapView::SetModels(const rmv::ResourceOverviewModel* overview_model, const TreeMapModels* tree_map_models, const rmv::Colorizer* colorizer) { overview_model_ = overview_model; tree_map_models_ = tree_map_models; blocks_->SetColorizer(colorizer); } void RMVTreeMapView::UpdateTreeMap() { RMT_ASSERT(tree_map_models_ != nullptr); RMT_ASSERT(overview_model_ != nullptr); if (tree_map_models_ != nullptr && overview_model_ != nullptr) { blocks_->GenerateTreemap(overview_model_, *tree_map_models_, width() - kViewMargin, height() - kViewMargin); blocks_->update(); } } void RMVTreeMapView::Reset() { blocks_->Reset(); } void RMVTreeMapView::SelectResource(RmtResourceIdentifier resource_identifier) { blocks_->SelectResource(resource_identifier); } void RMVTreeMapView::UpdateColorCache() { blocks_->update(); } RMVTreeMapBlocks* RMVTreeMapView::BlocksWidget() { return blocks_; } void RMVTreeMapView::UpdateSliceTypes(const QVector<RMVTreeMapBlocks::SliceType>& slice_types) { blocks_->UpdateSliceTypes(slice_types); } void RMVTreeMapView::UpdateToolTip(const QPoint& mouse_pos) { QString text_string; if (overview_model_->GetTooltipString(blocks_->GetHoveredResource(), text_string)) { const QPointF scene_pos = mapToScene(mouse_pos); resource_tooltip_.SetText(text_string); resource_tooltip_.UpdateToolTip(mouse_pos, scene_pos, scene_->width(), scene_->height()); } else { resource_tooltip_.HideToolTip(); } }
293c61fb9fecbccebd72994a84123aa198dac638
2db714b354b15d8daaba0364d9bc58cf4989c09c
/src/engine/systems/components/audio_event_system.h
3c7b0277be3e613b7134831ae3a4dd7950c8f18c
[ "Apache-2.0" ]
permissive
extrasaucestudio/ProjectSulphur
5e306a006ff9f06bc8d00a155304f11defb111cf
cb9ee8298f5020fda4a9130802e72034408f050f
refs/heads/master
2023-03-17T23:06:12.129839
2018-06-08T12:53:46
2018-06-08T12:53:46
null
0
0
null
null
null
null
UTF-8
C++
false
false
18,693
h
audio_event_system.h
#pragma once #include "engine/core/entity_system.h" #include "engine/systems/component_system.h" #include "engine/audio/audio_event.h" #include "engine/scripting/scriptable_object.h" #include "engine/audio/audio_system.h" namespace sulphur { namespace engine { class AudioEventSystem; /** * @class sulphur::engine::AudioEventComponent * @brief Component that interfaces to an audio event * @author Rodi Lankester */ SCRIPT_CLASS() class AudioEventComponent : public ComponentHandleBase { public: SCRIPT_NAME(AudioEventComponent); SCRIPT_COMPONENT(); using System = AudioEventSystem; //!< The system type that this component uses /** * @brief Constructs an audio event component */ AudioEventComponent(); /** * @brief Constructs an audio event component with a system and a handle * @param[in] system (System&) The system that created this component * @param[in] handle (size_t) the handle that belongs to this component */ AudioEventComponent(System& system, size_t handle); /** * @brief Set the bank where to load the event from * @param[in] bank (foundation::String) The bank name */ SCRIPT_FUNC() void SetBank(foundation::String bank); /** * @brief Set the path where to load the event from * @param[in] bank (foundation::String) The path name */ SCRIPT_FUNC() void SetPath(foundation::String path); /** @brief Get the current bank name @returns (foundation::String) The current bank name */ SCRIPT_FUNC() foundation::String GetBank(); /** @brief Get the current path @returns (foundation::String) The current path */ SCRIPT_FUNC() foundation::String GetPath(); /** * @brief Release the event and underlying data */ SCRIPT_FUNC() void Release(); /** * @brief Get the AudioEventDescription where this event is created from * @returns (AudioEventDescription) The event description */ AudioEventDescription* GetDescription(); /** * @brief Get the amount of parameters this event has * @returns (int) The amount of parameters this event has */ SCRIPT_FUNC() int GetParameterCount(); /** * @brief Get a parameter by name * @param[in] name (foundation::String) The name of the parameter * @returns (AudioParameter) The parameter that belongs to the name */ AudioParameter GetParameter(foundation::String name); /** * @brief Get a parameter by index * @param[in] index (int) The index of the parameter * @returns (AudioParameter) The parameter that belongs to the index */ AudioParameter GetParameterByIndex(int index); /** * @brief Get the value of a parameter by name * @param[in] name (foundation::String) The name of the parameter * @returns (float) The value */ SCRIPT_FUNC() float GetParameterValue(foundation::String name); /** * @brief Get the value of a parameter by index * @param[in] index (int) The index of the parameter * @returns (float) The value */ SCRIPT_FUNC()float GetParameterValueByIndex(int index); /** * @brief Is this event paused? * @returns (bool) If this event is paused */ SCRIPT_FUNC() bool GetPaused(); /** * @brief Get the current pitch of the event * @returns (float) The current pitch */ SCRIPT_FUNC() float GetPitch(); /** * @brief Get the current PlaybackState of the event * @returns (PlaybackState) The current playback state */ PlaybackState GetPlaybackState(); /** * @brief Get the current reverb level of the event * @param[in] index (int) index of the low level reverb instance (0-3) * @returns (float) The current reverb level */ SCRIPT_FUNC() float GetReverbLevel(int index); /** * @brief Get the current timeline position of the event * @returns (int) The current timeline position of the event */ SCRIPT_FUNC() int GetTimelinePosition(); /** * @brief Get the current volume of the event * @returns (float) The current volume of the event */ SCRIPT_FUNC() float GetVolume(); /** * @brief Get if this event is virtual * @returns (bool) Is the event currently virtual */ SCRIPT_FUNC() bool IsVirtual(); /** * @brief Set the value of a parameter by name * @param[in] name (foundation::String) The name of the parameter * @param[in] value (float) The value to set it to */ SCRIPT_FUNC() void SetParameterValue(foundation::String name, float value); /** * @brief Set the value of a parameter by name * @param[in] index (int) The index of the parameter * @param[in] value (float) The value to set it to */ SCRIPT_FUNC() void SetParameterValueByIndex(int index, float value); /** * @brief Set the values of parameters by a list of indices and values * @param[in] indices (foundation::Vector<int>) A list of indices to set * @param[in] values (foundation::Vector<float>) A list of values to set the indices to */ void SetParameterValuesByIndices(foundation::Vector<int> indices, foundation::Vector<float> values); /** * @brief Set if the event is paused * @param[in] (bool) Is the event paused? */ SCRIPT_FUNC() void SetPaused(bool paused); /** * @brief Set the current pitch of the event * @param[in] pitch (float) The pitch you want to set it to */ SCRIPT_FUNC() void SetPitch(float pitch); /** * @brief Set the reverb level of the event * @param[in] index (int) Index of the low level reverb instance (0-3) * @param[in] reverb (float) The reverb level to set it to */ SCRIPT_FUNC() void SetReverbLevel(int index, float reverb); /** * @brief Set the time line position of the event * @param[in] position (int) The position to set it to */ SCRIPT_FUNC() void SetTimelinePosition(int position); /** * @brief Set the volume of the event * @param[in] volume (float) The volume to set it to */ SCRIPT_FUNC() void SetVolume(float volume); /** * @brief Start the event */ SCRIPT_FUNC()void Start(); /** * @brief Stop the event * @param[in] fadeout (bool) Do you want the event to fade out? */ SCRIPT_FUNC() void Stop(bool fadeout = false); /** * @brief Trigger a cue to move the timeline past a sustain point */ SCRIPT_FUNC() void TriggerCue(); private: AudioEventSystem* system_; //!< The system that belongs to this event }; /** * @class sulphur::engine::AudioEventData * @brief The data belonging to audio event components * @author Rodi Lankester */ class AudioEventData { public: /** * @brief Create an instance of AudioEventData */ AudioEventData() : data((void**)&bank_path) { } using ComponentSystemData = SystemData < foundation::String, foundation::String, foundation::SharedPointer<AudioEvent>, AudioBank*, bool, Entity >; //!< Specifies the data types to use foundation::String* bank_path; //!< The path to the current audio bank foundation::String* event_path; //!< The current event path foundation::SharedPointer<AudioEvent>* audio_event; //!< The instance of the currently loaded event AudioBank** audio_bank; //!< The currently selected audio bank bool* loaded; //!< Is this event loaded Entity* entity; //!< The entity to which this component belongs ComponentSystemData data; //!< The actual data container of this component }; /** * @class sulphur::engine::AudioEventSystem * @brief The system belonging the the audio event component * @author Rodi Lankester */ class AudioEventSystem : public IComponentSystem { public: /** * @brief Constructs an audio event system */ AudioEventSystem(); /** * @see sulphur::engine::IComponentSystem::Create */ template<typename ComponentT> ComponentT Create(Entity& entity) { return Create(entity); }; /** * @see sulphur::engine::IComponentSystem::Destroy */ void Destroy(ComponentHandleBase handle) override; /** * @brief Create an audio event component belonging to the passed entity * @param[in] entity (Entity&) The entity this component belongs to * @returns (AudioEventComponent) The created audio event component */ AudioEventComponent Create(Entity& entity); /** * @internal * @see sulphur::engine::IComponentSystem::OnInitialize */ void OnInitialize(Application& app, foundation::JobGraph& job_graph) override; /** * @internal * @see sulphur::engine::IComponentSystem::OnTerminate */ void OnTerminate() override; /** * @brief Set the bank where to load the event from * @param[in] handle (AudioEventComponent) The handle of the component to perform this action for * @param[in] bank (foundation::String) The bank name */ SCRIPT_FUNC() void SetBank(AudioEventComponent handle, foundation::String bank); /** * @brief Set the path of the event * @param[in] handle (AudioEventComponent) The handle of the component to perform this action for * @param[in] bank (foundation::String) The path */ SCRIPT_FUNC() void SetPath(AudioEventComponent handle, foundation::String path); /** @brief Get the current bank name * @param[in] handle (AudioEventComponent) The handle of the component to perform this action for @returns (foundation::String) The current bank name */ SCRIPT_FUNC() foundation::String GetBank(AudioEventComponent handle); /** @brief Get the current path * @param[in] handle (AudioEventComponent) The handle of the component to perform this action for @returns (foundation::String) The current path */ SCRIPT_FUNC() foundation::String GetPath(AudioEventComponent handle); /** * @brief Release the event and underlying data */ void Release(ComponentHandleBase handle); /** * @brief Get the AudioEventDescription where this event is created from * @param[in] handle (AudioEventComponent) The handle of the component to perform this action for * @returns (AudioEventDescription) The event description */ AudioEventDescription* GetDescription(AudioEventComponent handle); /** * @brief Get the amount of parameters this event has * @param[in] handle (AudioEventComponent) The handle of the component to perform this action for * @returns (int) The amount of parameters this event has */ int GetParameterCount(AudioEventComponent handle); /** * @brief Get a parameter by name * @param[in] handle (AudioEventComponent) The handle of the component to perform this action for * @param[in] name (foundation::String) The name of the parameter * @returns (AudioParameter) The parameter that belongs to the name */ AudioParameter GetParameter(AudioEventComponent handle, foundation::String name); /** * @brief Get a parameter by index * @param[in] handle (AudioEventComponent) The handle of the component to perform this action for * @param[in] index (int) The index of the parameter * @returns (AudioParameter) The parameter that belongs to the index */ AudioParameter GetParameterByIndex(AudioEventComponent handle, int index); /** * @brief Get the value of a parameter by name * @param[in] handle (AudioEventComponent) The handle of the component to perform this action for * @param[in] name (foundation::String) The name of the parameter * @returns (float) The value */ float GetParameterValue(AudioEventComponent handle, foundation::String name); /** * @brief Get the value of a parameter by index * @param[in] handle (AudioEventComponent) The handle of the component to perform this action for * @param[in] index (int) The index of the parameter * @returns (float) The value */ float GetParameterValueByIndex(AudioEventComponent handle, int index); /** * @brief Is this event paused? * @param[in] handle (AudioEventComponent) The handle of the component to perform this action for * @returns (bool) If this event is paused */ bool GetPaused(AudioEventComponent handle); /** * @brief Get the current pitch of the event * @param[in] handle (AudioEventComponent) The handle of the component to perform this action for * @returns (float) The current pitch */ float GetPitch(AudioEventComponent handle); /** * @brief Get the current PlaybackState of the event * @param[in] handle (AudioEventComponent) The handle of the component to perform this action for * @returns (PlaybackState) The current playback state */ PlaybackState GetPlaybackState(AudioEventComponent handle); /** * @brief Get the current reverb level of the event * @param[in] handle (AudioEventComponent) The handle of the component to perform this action for * @param[in] index (int) index of the low level reverb instance (0-3) * @returns (float) The current reverb level */ float GetReverbLevel(AudioEventComponent handle, int index); /** * @brief Get the current timeline position of the event * @param[in] handle (AudioEventComponent) The handle of the component to perform this action for * @returns (int) The current timeline position of the event */ int GetTimelinePosition(AudioEventComponent handle); /** * @brief Get the current volume of the event * @param[in] handle (AudioEventComponent) The handle of the component to perform this action for * @returns (float) The current volume of the event */ float GetVolume(AudioEventComponent handle); /** * @brief Get if this event is virtual * @param[in] handle (AudioEventComponent) The handle of the component to perform this action for * @returns (bool) Is the event currently virtual */ bool IsVirtual(AudioEventComponent handle); /** * @brief Set the value of a parameter by name * @param[in] handle (AudioEventComponent) The handle of the component to perform this action for * @param[in] name (foundation::String) The name of the parameter * @param[in] value (float) The value to set it to */ void SetParameterValue(AudioEventComponent handle, foundation::String name, float value); /** * @brief Set the value of a parameter by name * @param[in] handle (AudioEventComponent) The handle of the component to perform this action for * @param[in] index (int) The index of the parameter * @param[in] value (float) The value to set it to */ void SetParameterValueByIndex(AudioEventComponent handle, int index, float value); /** * @brief Set the values of parameters by a list of indices and values * @param[in] handle (AudioEventComponent) The handle of the component to perform this action for * @param[in] indices (foundation::Vector<int>) A list of indices to set * @param[in] values (foundation::Vector<float>) A list of values to set the indices to */ void SetParameterValuesByIndices(AudioEventComponent handle, foundation::Vector<int> indices, foundation::Vector<float> values); /** * @brief Set if the event is paused * @param[in] handle (AudioEventComponent) The handle of the component to perform this action for * @param[in] (bool) Is the event paused? */ void SetPaused(AudioEventComponent handle, bool paused); /** * @brief Set the current pitch of the event * @param[in] handle (AudioEventComponent) The handle of the component to perform this action for * @param[in] pitch (float) The pitch you want to set it to */ void SetPitch(AudioEventComponent handle, float pitch); /** * @brief Set the reverb level of the event * @param[in] handle (AudioEventComponent) The handle of the component to perform this action for * @param[in] index (int) Index of the low level reverb instance (0-3) * @param[in] reverb (float) The reverb level to set it to */ void SetReverbLevel(AudioEventComponent handle, int index, float reverb); /** * @brief Set the time line position of the event * @param[in] handle (AudioEventComponent) The handle of the component to perform this action for * @param[in] position (int) The position to set it to */ void SetTimelinePosition(AudioEventComponent handle, int position); /** * @brief Set the volume of the event * @param[in] handle (AudioEventComponent) The handle of the component to perform this action for * @param[in] volume (float) The volume to set it to */ void SetVolume(AudioEventComponent handle, float volume); /** * @brief Start the event * @param[in] handle (AudioEventComponent) The handle of the component to perform this action for */ void Start(AudioEventComponent handle); /** * @brief Stop the event * @param[in] handle (AudioEventComponent) The handle of the component to perform this action for * @param[in] fadeout (bool) Do you want the event to fade out? */ void Stop(AudioEventComponent handle, bool fadeout); /** * @brief Trigger a cue to move the timeline past a sustain point * @param[in] handle (AudioEventComponent) The handle of the component to perform this action for */ void TriggerCue(AudioEventComponent handle); private: /** * @brief Update the position of all audio event components */ void UpdatePositions(); AudioSystem* audio_system_; AudioEventData component_data_; //!< An instance of the container that stores per-component data }; } }
d794def4f972d7e14a0c6ad552cfca84888a825e
f83ef53177180ebfeb5a3e230aa29794f52ce1fc
/ACE/ACE_wrappers/TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer_Command.cpp
d3971798566d22d0f3500c9a32c0ba54972c9d15
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-sun-iiop" ]
permissive
msrLi/portingSources
fe7528b3fd08eed4a1b41383c88ee5c09c2294ef
57d561730ab27804a3172b33807f2bffbc9e52ae
refs/heads/master
2021-07-08T01:22:29.604203
2019-07-10T13:07:06
2019-07-10T13:07:06
196,183,165
2
1
Apache-2.0
2020-10-13T14:30:53
2019-07-10T10:16:46
null
UTF-8
C++
false
false
6,689
cpp
Periodic_Consumer_Command.cpp
#include "Periodic_Consumer_Command.h" #include "LookupManager.h" #include "Name.h" #include "Periodic_Consumer.h" #include "Relay_Consumer.h" #include "Direct_Consumer.h" #include "Activation_Manager.h" #include "Options_Parser.h" #include "orbsvcs/NotifyExtC.h" TAO_Notify_Tests_Periodic_Consumer_Command::TAO_Notify_Tests_Periodic_Consumer_Command (void) { } TAO_Notify_Tests_Periodic_Consumer_Command::~TAO_Notify_Tests_Periodic_Consumer_Command () { } const char* TAO_Notify_Tests_Periodic_Consumer_Command::get_name (void) { return TAO_Notify_Tests_Periodic_Consumer_Command::name (); } const char* TAO_Notify_Tests_Periodic_Consumer_Command::name (void) { return TAO_Notify_Tests_Name::periodic_consumer_command; } void TAO_Notify_Tests_Periodic_Consumer_Command::init (ACE_Arg_Shifter& arg_shifter) { if (arg_shifter.is_anything_left ()) { /// -Create consumer_name admin_name -POA [POA_name] consumer_specific_options if (arg_shifter.cur_arg_strncasecmp (ACE_TEXT("-Create")) == 0) { this->command_ = CREATE; arg_shifter.consume_arg (); this->name_ = ACE_TEXT_ALWAYS_CHAR(arg_shifter.get_current ()); arg_shifter.consume_arg (); int is_relay = 0; int is_direct = 0; ACE_CString relay_destination; if (arg_shifter.cur_arg_strncasecmp (ACE_TEXT("-Relay")) == 0) { is_relay = 1; arg_shifter.consume_arg (); relay_destination = ACE_TEXT_ALWAYS_CHAR(arg_shifter.get_current ()); arg_shifter.consume_arg (); } else if (arg_shifter.cur_arg_strncasecmp (ACE_TEXT("-Direct")) == 0) { is_direct = 1; arg_shifter.consume_arg (); } TAO_Notify_Tests_Periodic_Consumer* consumer = 0; // create the consumer if (is_relay == 1) consumer = new TAO_Notify_Tests_Relay_Consumer (relay_destination); else if (is_direct == 1) consumer = new TAO_Notify_Tests_Direct_Consumer (); else consumer = new TAO_Notify_Tests_Periodic_Consumer (); consumer->set_name (this->name_); TAO_Notify_Tests_Activation_Manager* act_mgr = 0; LOOKUP_MANAGER->resolve (act_mgr); { act_mgr->_register (consumer, this->name_.c_str ()); } consumer->init_state (arg_shifter); } /* -Create */ else if (arg_shifter.cur_arg_strncasecmp (ACE_TEXT("-Subscription")) == 0) // -Subscription admin_name +added_type1 +-added_type2 ... -added_type3 -added_type4.. { this->command_ = SUBSCRIPTION; arg_shifter.consume_arg (); this->name_ = ACE_TEXT_ALWAYS_CHAR(arg_shifter.get_current ()); arg_shifter.consume_arg (); TAO_Notify_Tests_Options_Parser options_parser; options_parser.execute (this->added_, this->removed_, arg_shifter); } /* Subscription */ else if (arg_shifter.cur_arg_strncasecmp (ACE_TEXT("-Disconnect")) == 0) // { this->command_ = DISCONNECT; arg_shifter.consume_arg (); this->name_ = ACE_TEXT_ALWAYS_CHAR(arg_shifter.get_current ()); arg_shifter.consume_arg (); } /* disconnect */ else if (arg_shifter.cur_arg_strncasecmp (ACE_TEXT("-Deactivate")) == 0) // { this->command_ = DEACTIVATE; arg_shifter.consume_arg (); this->name_ = ACE_TEXT_ALWAYS_CHAR(arg_shifter.get_current ()); arg_shifter.consume_arg (); } /* deactivate */ else if (arg_shifter.cur_arg_strncasecmp (ACE_TEXT("-Status")) == 0) // { this->command_ = DUMP_STATE; arg_shifter.consume_arg (); this->name_ = ACE_TEXT_ALWAYS_CHAR(arg_shifter.get_current ()); arg_shifter.consume_arg (); } /* -Dump */ else if (arg_shifter.cur_arg_strncasecmp (ACE_TEXT("-Set_QoS")) == 0) // -Set_QoS ec_name [Qos Options] { this->command_ = SET_QOS; arg_shifter.consume_arg (); this->name_ = ACE_TEXT_ALWAYS_CHAR(arg_shifter.get_current ()); arg_shifter.consume_arg (); TAO_Notify_Tests_Options_Parser qos_parser; qos_parser.execute (this->qos_, arg_shifter); } } } TAO_Notify_Tests_Periodic_Consumer* TAO_Notify_Tests_Periodic_Consumer_Command::consumer (void) { TAO_Notify_Tests_Activation_Manager* act_mgr = 0; LOOKUP_MANAGER->resolve (act_mgr); // Locate the consumer TAO_Notify_Tests_Periodic_Consumer* consumer = 0; { act_mgr->resolve (consumer, this->name_.c_str ()); } if (consumer == 0) ACE_DEBUG ((LM_DEBUG, "Consumer %s not found by Lookup Manager\n", this->name_.c_str ())); return consumer; } void TAO_Notify_Tests_Periodic_Consumer_Command::handle_set_qos (void) { this->consumer ()->set_qos (this->qos_); } void TAO_Notify_Tests_Periodic_Consumer_Command::handle_create (void) { TAO_Notify_Tests_Periodic_Consumer* consumer = this->consumer (); if (consumer == 0) return; consumer->connect (); ACE_DEBUG ((LM_DEBUG, "Consumer %s is connected\n", this->name_.c_str ())); } void TAO_Notify_Tests_Periodic_Consumer_Command::handle_subscriptions (void) { TAO_Notify_Tests_Periodic_Consumer* consumer= this->consumer (); if (consumer == 0) return; consumer->subscription_change (this->added_, this->removed_); } void TAO_Notify_Tests_Periodic_Consumer_Command::handle_disconnect (void) { TAO_Notify_Tests_Periodic_Consumer* consumer= this->consumer (); if (consumer == 0) return; consumer->disconnect (); } void TAO_Notify_Tests_Periodic_Consumer_Command::handle_deactivate (void) { TAO_Notify_Tests_Periodic_Consumer* consumer = this->consumer (); if (consumer == 0) return; consumer->deactivate (); } void TAO_Notify_Tests_Periodic_Consumer_Command::handle_status (void) { TAO_Notify_Tests_Periodic_Consumer* consumer = this->consumer (); if (consumer == 0) return; consumer->status (); } void TAO_Notify_Tests_Periodic_Consumer_Command::execute_i (void) { if (this->command_ == CREATE) { this->handle_create (); } else if (this->command_ == SUBSCRIPTION) { this->handle_subscriptions (); } else if (this->command_ == DISCONNECT) { this->handle_disconnect (); } else if (this->command_ == DEACTIVATE) { this->handle_deactivate (); } else if (this->command_ == DUMP_STATE) { this->handle_status (); } else if (this->command_ == SET_QOS) { this->handle_set_qos (); } }
f7f1f27a640518b4ae9ec5899edf958a7a585f75
000f4abd306b06146146b43aa40162cbe2d3b43a
/cs10/lab2/money/main.cpp
cfc2154a003782df6ea4d557777a698d5f1cfeeb
[]
no_license
Bpara001/CS_UCR
e3a68e54e2d671344c528876e6cf27ae7e5edf47
b9c628ab8e84bf737dd95fda3e3b097762dd85aa
refs/heads/master
2021-01-22T05:24:54.697229
2013-06-13T01:17:44
2013-06-13T01:17:44
null
0
0
null
null
null
null
UTF-8
C++
false
false
868
cpp
main.cpp
// Course: CS 10 quarter 1 , 2009 // // First Name: Christopher // Last Name: Wong // Login id: wongc // email address: cwong030@ucr.edu // Student id: 860 923 521 // // Lecture Section: 002 // Lab Section: 026 // TA:Muzaffer Akbay // // Assignment: lab2 exercise1 // // I hereby certify that the code in this file // is ENTIRELY my own original work.#include<iostream> #include <iostream> using namespace std; int main() { cout << "Input US dollars: "; double usd; cin >> usd; const double euros = usd * .74; const double yen = usd * 99.4; const double rand = usd * 9.07; const double rupees = usd * 49.90; const double pesos = usd * 13.83; cout << "Euros: " << euros << "\n"; cout << "Yen: " << yen << "\n"; cout << "Rand: " << rand << "\n"; cout << "Rupees: " << rupees << "\n"; cout << "Pesos: " << pesos << "\n"; return 0; }
18f6e30c60bf889f620bd514e3740b3ae61a1bb1
8d211ca4022e7af8d05a620e030745325ee1f186
/subject/alg_data/test.cpp
bfbc4ad551790acff4cf2993623a080c784ffc0a
[]
no_license
always0124/test_code
55235d1164761dc6a9c8bd0f75cb4529e8cfc7c5
a33d75ca78e0c566878749cf8d8c8ad8e43351bd
refs/heads/master
2021-07-18T03:41:04.477569
2021-06-29T07:06:43
2021-06-29T07:06:43
252,658,172
0
0
null
null
null
null
UTF-8
C++
false
false
502
cpp
test.cpp
#include <vector> #include <map> #include <iostream> #include "backtrace.cpp" #include "binarySearch.cpp" #include "hash.cpp" #include "math.cpp" #include "string.cpp" #include "stack.cpp" #include "sort.cpp" #include "trie.cpp" #include "two_pointer.cpp" using namespace std; int main() { //test_trie(); test_sort(); //test_backtrace(); //test_hash(); //test_binary_search(); //test_math(); //test_two_pointer(); //test_stack(); //test_string(); return 0; }
4a705e95575dcae407611ac8f88bd16341f74911
324084284b5d45baeb5e1af4f08c906844177448
/src/status_test.cpp
d905649fac8397ff9c7c493f0bbb909631aed1a5
[ "Apache-2.0" ]
permissive
pfiembedded/mongoose-os
7295ec179894eb053fbbe956e99314ec4cf42878
139759ae49a7ca393040d7e9cc6315ee344a9a3c
refs/heads/master
2023-01-24T01:05:16.171710
2023-01-03T19:27:14
2023-01-03T19:27:14
210,228,082
0
0
NOASSERTION
2019-09-22T23:32:21
2019-09-22T23:32:21
null
UTF-8
C++
false
false
2,407
cpp
status_test.cpp
#include <common/util/status.h> #include <sstream> #include <string> #include <gtest/gtest.h> #include <common/util/logging.h> namespace util { using util::Status; void VerifyOk(const Status *s) { EXPECT_TRUE(s->ok()); EXPECT_EQ(error::OK, s->error_code()); EXPECT_EQ("", s->error_message()); EXPECT_EQ("OK", s->ToString()); } TEST(StatusTest, DefaultConstructedOK) { Status s; VerifyOk(&s); } TEST(StatusTest, ConstantOK) { VerifyOk(&Status::OK); } TEST(StatusTest, ConstantCancelled) { EXPECT_FALSE(Status::CANCELLED.ok()); EXPECT_EQ(error::CANCELLED, Status::CANCELLED.error_code()); EXPECT_EQ("", Status::CANCELLED.error_message()); EXPECT_EQ("CANCELLED", Status::CANCELLED.ToString()); } TEST(StatusTest, ConstantUnknown) { EXPECT_FALSE(Status::UNKNOWN.ok()); EXPECT_EQ(error::UNKNOWN, Status::UNKNOWN.error_code()); EXPECT_EQ("", Status::UNKNOWN.error_message()); EXPECT_EQ("UNKNOWN", Status::UNKNOWN.ToString()); } TEST(StatusTest, CustomCodeAndEmptyMessage) { Status s(error::NOT_FOUND, ""); EXPECT_EQ(error::NOT_FOUND, s.error_code()); EXPECT_EQ("", s.error_message()); EXPECT_EQ("NOT_FOUND", s.ToString()); } TEST(StatusTest, CustomCodeAndMessage) { Status s(error::NOT_FOUND, "Nothing here"); EXPECT_EQ(error::NOT_FOUND, s.error_code()); EXPECT_EQ("Nothing here", s.error_message()); EXPECT_EQ("NOT_FOUND: Nothing here", s.ToString()); } TEST(StatusTest, Equality) { Status s1(error::NOT_FOUND, "Nothing here"); Status s2(error::NOT_FOUND, "Nothing here"); EXPECT_EQ(s1, s2); Status s3(error::NOT_FOUND, "Nothing here."); EXPECT_NE(s1, s3); EXPECT_EQ(s1.error_code(), s3.error_code()); Status s4(error::INTERNAL, "Nothing here"); EXPECT_EQ(s1.error_message(), s2.error_message()); EXPECT_NE(s1, s4); } TEST(StatusTest, CopyConstruction) { Status s1(error::NOT_FOUND, "Nothing here"); Status s2(error::NOT_FOUND, "Nothing here"); Status s3(s2); EXPECT_EQ(s2, s3); EXPECT_EQ(s1, s3); } TEST(StatusTest, Assignment) { Status s1(error::NOT_FOUND, "Nothing here"); Status s2; { Status s3(error::NOT_FOUND, "Nothing here"); s2 = s3; } EXPECT_EQ(s1, s2); } TEST(StatusTest, Streamification) { Status s(error::NOT_FOUND, "Nothing here"); std::stringstream ss; ss << s; const std::string stream_output = ss.rdbuf()->str(); EXPECT_EQ(s.ToString(), stream_output); } } // namespace util
06849b142505899e4a64ddf02a80e45ec22d25d7
2c5b547379d69e181a63d3ba24662b5b82c53a43
/read_inp.h
5bcb1dd4e7f1a4335c1381393b7d7eaa63f20800
[]
no_license
shaoyulu/OLED-GA
24362df3dd63ec74dbaa794cae154123ce3bc1e0
c1645ac000d1a47e6e15e5ed5fa30f9af22243ad
refs/heads/master
2021-05-14T19:25:18.862638
2018-01-03T20:46:18
2018-01-03T20:46:18
116,157,504
0
0
null
null
null
null
UTF-8
C++
false
false
5,438
h
read_inp.h
#ifndef READINP_H #define READINP_H #include "stringtools.h" #include <string.h> //todo: check connection error for xyzfile //todo: generate a complete input file including all the default value class readinp { private: // vector<string> vars; // string rfolder; // vector<string> r_sym_vars; public: string rfolder; vector<vector<string> > r_sym; string fitness_f; /*filename of fitness.inp*/ // void gen_basisfile(string rfolder); string ref_f; int n_temp; int n_rfiles; /*number of files in R library*/ vector<string> feature_list; // indices of features we are interested in at the begining vector<string> temp_f; /*filename of base cats*/ void read_all(); /*read .inp & gen .basis files*/ void read_ga(string filename); /*read GA.inp*/ void read_dft(string filename); /*read DFT.inp*/ void read_mopac(string filename); /*read MOPAC.inp*/ // void read_refxyzf(string inpfile); /*read reference .xyz file*/ void read_ref(string filename); void read_tempxyzf(vector<string> & inpfiles); /*read template .xyz file(s)*/ void get_basisfile(string filedir); void read_seed(string filename); int load_lib(int n, string libname); //store variables in GA.inp struct INP_SGEN { int mode; int nlayers; int layer_min; int layer_max; string lib; int n_regs; int n_caps; int n_seeds; bool symm; string seed; //filename of seed double HOST_HOMO, HOST_LUMO, ETL_HOMO, ETL_LUMO, HTL_HOMO, HTL_LUMO; int jobtype =1; bool bestRestart; bool isWriteFragScore; double fscore; int TransportType =1 ; } inp_sgen; struct SEED { int nhandles; int nbranches; // different branches int natoms; vector<int> xyzw; vector<string> label; vector<string> name; vector<double> coords; } seed; struct REF_XYZ { int natoms; vector<string> anames; vector<double> coords; } ref_xyz; struct INP_GA { int ox_state; int num_r; int use_dft; int use_mopac; int pop_size; int ga_stop; double cross_r; double muta_r; int out_molden; int out_excel; bool RWS; bool SUS; bool B_Tournament; bool L_Rank; double L_Rank_rate; bool E_Rank; double E_Rank_base; bool force_mutation; INP_GA() { RWS = false; SUS = false; B_Tournament = false; L_Rank = false; E_Rank = false; force_mutation = true; } } inp_ga; struct xyzfile { int natoms; int nlabels; int charge; int multi; vector<string> element; vector<double> coords; vector<vector<string> > label; vector<vector<int> > joint; void reset() { natoms = -9999; nlabels = -9999; charge = -99999; multi = -9999; vector<string>().swap(element); vector<double>().swap(coords); vector<vector<string> >().swap(label); vector<vector<int> >().swap(joint); } }; xyzfile xyzf_ref; vector<xyzfile> xyzf_temp; struct INP_MOPAC { string method; string walltime; bool use_aux; double gnorm; bool uhf; } mopac; //store variables in DFT.inp struct singlepoint { string functional; string unres; string scf_algo; int scf_max_cycles; string basis; string wavefunction_analysis; int scf_conv; string sym_ignore; string sym; void initial() { functional = "B3LYP"; //set B3LYP as default functional unres = "TRUE"; scf_algo = "rca_diis"; scf_max_cycles = 150; basis = "LANL2DZ"; // set LAN2DZ as default basis set wavefunction_analysis = "FALSE"; scf_conv = 6; sym_ignore = "TRUE"; sym = "FALSE"; } } sp; // // struct optimization { string functional; string unres; string scf_algo; int scf_max_cycles; string basis; string wavefunction_analysis; int opt_max_cycles; int opt_tol_displacement; int opt_tol_gradient; int opt_tol_energy; int scf_conv; string sym_ignore; string sym; void initial() { functional = "B3LYP"; //set B3LYP as default functional unres = "TRUE"; scf_algo = "rca_diis"; scf_max_cycles = 150; basis = "LANL2DZ"; // set LAN2DZ as default basis set wavefunction_analysis = "FALSE"; scf_conv = 6; opt_max_cycles = 300; opt_tol_displacement = 2500; opt_tol_gradient = 800; opt_tol_energy = 5000; sym_ignore = "TRUE"; sym = "FALSE"; } } opt; // // struct transitionstate { string functional; string unres; string scf_algo; int scf_max_cycles; string basis; string wavefunction_analysis; int scf_conv; string sym_ignore; string sym; void initial() { functional = "B3LYP"; //set B3LYP as default functional unres = "TRUE"; scf_algo = "rca_diis"; scf_max_cycles = 150; basis = "LAN2DZ"; // set LAN2DZ as default basis set wavefunction_analysis = "FALSE"; scf_conv = 6; sym_ignore = "TRUE"; sym = "FALSE"; } } ts; }; #endif
0fdcec254fcf9514ebba3ee3639c874005e7cf81
0a2e2b2073beafc0b3fde25ada7aaa492bd04976
/third_party/opengm/inference/visitors/visitor.hxx
fbffac90dc63680823061297ad43aedf5a89befb
[ "MIT" ]
permissive
huangqx/image_shape_align
76e2833f077dd258aa94afd1d0a2630129ca63c7
c2417efb24b3c1bd174b64173d78cca2d60ace07
refs/heads/master
2021-01-18T06:27:09.177992
2017-05-28T16:34:27
2017-05-28T16:34:27
42,831,903
49
14
null
null
null
null
UTF-8
C++
false
false
81,883
hxx
visitor.hxx
#ifndef OPENGM_VERBOSE_VISITOR_HXX #define OPENGM_VERBOSE_VISITOR_HXX #include <string> #include <vector> #include <map> #include <iostream> #include <iomanip> #include <opengm/opengm.hxx> #include <opengm/utilities/timer.hxx> #include <opengm/inference/visitors/visitorspecializations.hxx> namespace opengm { /// \cond HIDDEN_SYMBOLS namespace detail_visitor{ struct VerboseVisitor{}; struct TimingVisitor{}; struct EmptyVisitor{}; template<size_t STATE,size_t FORMAT> class Print{ static const size_t stepSpace_=8; static const size_t valueSpace_=9; static const size_t boundSpace_=9; static const size_t extraNumber1Space_=9; static const size_t extraNumber2Space_=9; private: typedef opengm::meta::And< opengm::meta::EqualNumber<FORMAT,0>::value, opengm::meta::EqualNumber<STATE,1>::value > SameLineAtBegin; typedef opengm::meta::Or< opengm::meta::EqualNumber<FORMAT,1>::value , opengm::meta::Not< opengm::meta::EqualNumber<STATE,1>::value >::value > NewLineAtEnd; typedef opengm::meta::And< opengm::meta::EqualNumber<FORMAT,0>::value, opengm::meta::EqualNumber<STATE,2>::value > NewLineAtBeginEnd; public: template<class S,class V,class B> static void print(const S ,const V ,const B ); template<class S,class V,class B,class E1> static void print(const S ,const V ,const B ,const std::string & ,const E1 ); template<class S,class V,class B,class E1,class E2> static void print(const S ,const V ,const B ,const std::string & ,const E1 ,const std::string & ,const E2 ); }; template<bool MULTI_LINE> class PrintFormated{ public: template<class S,class V,class B> static void printAtBegin(const S ,const V ,const B bound); template<class S,class V,class B> static void printAtVisit(const S ,const V ,const B bound); template<class S,class V,class B> static void printAtEnd(const S ,const V ,const B bound); template<class S,class V,class B,class E1> static void printAtBegin(const S ,const V ,const B ,const std::string & ,const E1 ); template<class S,class V,class B,class E1> static void printAtVisit(const S ,const V ,const B ,const std::string & ,const E1 ); template<class S,class V,class B,class E1> static void printAtEnd(const S ,const V ,const B ,const std::string & ,const E1 ); template<class S,class V,class B,class E1,class E2> static void printAtBegin(const S ,const V ,const B ,const std::string & ,const E1 ,const std::string & ,const E2 ); template<class S,class V,class B,class E1,class E2> static void printAtVisit(const S ,const V ,const B ,const std::string & ,const E1 ,const std::string & ,const E2 ); template<class S,class V,class B,class E1,class E2> static void printAtEnd(const S ,const V ,const B ,const std::string & ,const E1 ,const std::string & ,const E2 ); }; template<class INFERENCE_TYPE,class VISITOR_TYPE> struct VisitorImplementation; /// empty visitors template<class INFERENCE_TYPE> class VisitorImplementation<INFERENCE_TYPE,EmptyVisitor>{ public: VisitorImplementation(); void visit(const INFERENCE_TYPE &)const; void beginVisit(const INFERENCE_TYPE &)const; void endVisit(const INFERENCE_TYPE &)const; template<class E1> void visit(const INFERENCE_TYPE &,const std::string &,const E1)const; template<class E1> void beginVisit(const INFERENCE_TYPE &,const std::string &,const E1)const; template<class E1> void endVisit(const INFERENCE_TYPE &,const std::string &,const E1)const; template<class E1,class E2> void visit(const INFERENCE_TYPE &,const std::string &,const E1,const std::string &,const E2)const; template<class E1,class E2> void beginVisit(const INFERENCE_TYPE &,const std::string &,const E1,const std::string &,const E2)const; template<class E1,class E2> void endVisit(const INFERENCE_TYPE &,const std::string &,const E1,const std::string &,const E2)const; template<class E1,class E2,class E3> void visit(const INFERENCE_TYPE &,const std::string &,const E1,const std::string &,const E2,const std::string &,const E3)const; template<class E1,class E2,class E3> void beginVisit(const INFERENCE_TYPE &,const std::string &,const E1,const std::string &,const E2,const std::string &,const E3)const; template<class E1,class E2,class E3> void endVisit(const INFERENCE_TYPE &,const std::string &,const E1,const std::string &,const E2,const std::string &,const E3)const; template<class T1,class T2> void visit(T1 a1 ,T2 a2) const; template<class T1,class T2,class E1> void visit(T1 a1 ,T2 a2,const std::string &,const E1) const; template<class T1,class T2,class E1,class E2> void visit(T1 a1 ,T2 a2,const std::string &,const E1,const std::string &,const E2) const; template<class T1,class T2,class E1,class E2,class E3> void visit(T1 a1 ,T2 a2,const std::string &,const E1,const std::string &,const E2,const std::string &,const E3) const; template<class T1,class T2> void beginVisit(T1 a1 ,T2 a2) const; template<class T1,class T2,class E1> void beginVisit(T1 a1 ,T2 a2,const std::string &,const E1) const; template<class T1,class T2,class E1,class E2> void beginVisit(T1 a1 ,T2 a2,const std::string &,const E1,const std::string &,const E2) const; template<class T1,class T2,class E1,class E2,class E3> void beginVisit(T1 a1 ,T2 a2,const std::string &,const E1,const std::string &,const E2,const std::string &,const E3) const; template<class T1,class T2> void endVisit(T1 a1 ,T2 a2) const; template<class T1,class T2,class E1> void endVisit(T1 a1 ,T2 a2,const std::string &,const E1) const; template<class T1,class T2,class E1,class E2> void endVisit(T1 a1 ,T2 a2,const std::string &,const E1,const std::string &,const E2) const; template<class T1,class T2,class E1,class E2,class E3> void endVisit(T1 a1 ,T2 a2,const std::string &,const E1,const std::string &,const E2,const std::string &,const E3) const; }; /// verbose visitors template<class INFERENCE_TYPE> class VisitorImplementation<INFERENCE_TYPE,VerboseVisitor>{ public: VisitorImplementation(const size_t = 1,bool = true); void assign(const size_t = 1,bool = true); void visit(const INFERENCE_TYPE &); void beginVisit(const INFERENCE_TYPE &); void endVisit(const INFERENCE_TYPE &); template<class E1> void visit(const INFERENCE_TYPE &,const std::string &,const E1); template<class E1> void beginVisit(const INFERENCE_TYPE &,const std::string &,const E1); template<class E1> void endVisit(const INFERENCE_TYPE &,const std::string &,const E1); template<class E1,class E2> void visit(const INFERENCE_TYPE &,const std::string &,const E1,const std::string &,const E2); template<class E1,class E2> void beginVisit(const INFERENCE_TYPE &,const std::string &,const E1,const std::string &,const E2); template<class E1,class E2> void endVisit(const INFERENCE_TYPE &,const std::string &,const E1,const std::string &,const E2); template<class E1,class E2,class E3> void visit(const INFERENCE_TYPE &,const std::string &,const E1,const std::string &,const E2,const std::string &,const E3); template<class E1,class E2,class E3> void beginVisit(const INFERENCE_TYPE &,const std::string &,const E1,const std::string &,const E2,const std::string &,const E3); template<class E1,class E2,class E3> void endVisit(const INFERENCE_TYPE &,const std::string &,const E1,const std::string &,const E2,const std::string &,const E3); template<class T1,class T2> void visit(T1 a1 ,T2 a2) ; template<class T1,class T2,class E1> void visit(T1 a1 ,T2 a2,const std::string &,const E1) ; template<class T1,class T2,class E1,class E2> void visit(T1 a1 ,T2 a2,const std::string &,const E1,const std::string &,const E2) ; template<class T1,class T2,class E1,class E2,class E3> void visit(T1 a1 ,T2 a2,const std::string &,const E1,const std::string &,const E2,const std::string &,const E3) ; template<class T1,class T2> void beginVisit(T1 a1 ,T2 a2) ; template<class T1,class T2,class E1> void beginVisit(T1 a1 ,T2 a2,const std::string &,const E1) ; template<class T1,class T2,class E1,class E2> void beginVisit(T1 a1 ,T2 a2,const std::string &,const E1,const std::string &,const E2) ; template<class T1,class T2,class E1,class E2,class E3> void beginVisit(T1 a1 ,T2 a2,const std::string &,const E1,const std::string &,const E2,const std::string &,const E3) ; template<class T1,class T2> void endVisit(T1 a1 ,T2 a2) ; template<class T1,class T2,class E1> void endVisit(T1 a1 ,T2 a2,const std::string &,const E1) ; template<class T1,class T2,class E1,class E2> void endVisit(T1 a1 ,T2 a2,const std::string &,const E1,const std::string &,const E2) ; template<class T1,class T2,class E1,class E2,class E3> void endVisit(T1 a1 ,T2 a2,const std::string &,const E1,const std::string &,const E2,const std::string &,const E3) ; private: size_t visitNth_; size_t visitNumber_; bool multiline_; }; /// verbose timing visitors template<class INFERENCE_TYPE> class VisitorImplementation<INFERENCE_TYPE,TimingVisitor>{ public: typedef typename INFERENCE_TYPE::ValueType ValueType; typedef ValueType BoundType; typedef opengm::DefaultTimingType TimeType; typedef size_t IterationType; VisitorImplementation(const size_t visitNth=1,const size_t = 0,bool = false,bool = false); void assign(const size_t visitNth=1,const size_t = 0,bool = false,bool = false); const std::vector<TimeType > & getTimes() const; const std::vector<ValueType > & getValues() const; const std::vector<BoundType > & getBounds() const; const std::vector<IterationType> & getIterations() const; void visit(const INFERENCE_TYPE &); void beginVisit(const INFERENCE_TYPE &); void endVisit(const INFERENCE_TYPE &); template<class E1> void visit(const INFERENCE_TYPE &,const std::string &,const E1); template<class E1> void beginVisit(const INFERENCE_TYPE &,const std::string &,const E1); template<class E1> void endVisit(const INFERENCE_TYPE &,const std::string &,const E1); template<class E1,class E2> void visit(const INFERENCE_TYPE &,const std::string &,const E1,const std::string &,const E2); template<class E1,class E2> void beginVisit(const INFERENCE_TYPE &,const std::string &,const E1,const std::string &,const E2); template<class E1,class E2> void endVisit(const INFERENCE_TYPE &,const std::string &,const E1,const std::string &,const E2); template<class E1,class E2,class E3> void visit(const INFERENCE_TYPE &,const std::string &,const E1,const std::string &,const E2,const std::string &,const E3); template<class E1,class E2,class E3> void beginVisit(const INFERENCE_TYPE &,const std::string &,const E1,const std::string &,const E2,const std::string &,const E3); template<class E1,class E2,class E3> void endVisit(const INFERENCE_TYPE &,const std::string &,const E1,const std::string &,const E2,const std::string &,const E3); template<class T1,class T2> void visit(T1 a1 ,T2 a2) ; template<class T1,class T2,class E1> void visit(T1 a1 ,T2 a2,const std::string &,const E1) ; template<class T1,class T2,class E1,class E2> void visit(T1 a1 ,T2 a2,const std::string &,const E1,const std::string &,const E2) ; template<class T1,class T2,class E1,class E2,class E3> void visit(T1 a1 ,T2 a2,const std::string &,const E1,const std::string &,const E2,const std::string &,const E3) ; template<class T1,class T2> void beginVisit(T1 a1 ,T2 a2) ; template<class T1,class T2,class E1> void beginVisit(T1 a1 ,T2 a2,const std::string &,const E1) ; template<class T1,class T2,class E1,class E2> void beginVisit(T1 a1 ,T2 a2,const std::string &,const E1,const std::string &,const E2) ; template<class T1,class T2,class E1,class E2,class E3> void beginVisit(T1 a1 ,T2 a2,const std::string &,const E1,const std::string &,const E2,const std::string &,const E3) ; template<class T1,class T2> void endVisit(T1 a1 ,T2 a2) ; template<class T1,class T2,class E1> void endVisit(T1 a1 ,T2 a2,const std::string &,const E1) ; template<class T1,class T2,class E1,class E2> void endVisit(T1 a1 ,T2 a2,const std::string &,const E1,const std::string &,const E2) ; template<class T1,class T2,class E1,class E2,class E3> void endVisit(T1 a1 ,T2 a2,const std::string &,const E1,const std::string &,const E2,const std::string &,const E3) ; public: typedef std::map<std::string, std::vector<double> > LogMapType; // call only once in "beginVisit" void reserveMapVector(const std::string & name) { logs_[name].reserve(times_.capacity()); } void pushBackStringLogData(const std::string & name,const double data) { logs_[name].push_back(data); } const LogMapType & getLogsMap()const{ return logs_; } private: LogMapType logs_; size_t visitNth_; size_t visitNumber_; std::vector<TimeType > times_; std::vector<ValueType > values_; std::vector<BoundType > bounds_; std::vector<IterationType> iterations_; opengm::Timer timer_; bool verbose_; bool multiline_; }; /// implementation of the generic visitor interface template<class INFERENCE_TYPE,class VISITOR_TYPE> class Visitor : public VisitorImplementation<INFERENCE_TYPE,VISITOR_TYPE>{ typedef INFERENCE_TYPE InferenceType; typedef typename InferenceType::AccumulationType AccumulationType; typedef typename InferenceType::GraphicalModelType GraphicalModelType; public: Visitor(); template<class T1,class T2,class E1> void operator() (const INFERENCE_TYPE & inference ,const T1 t1,const T2 t2,const std::string & n1 ,const E1 e1) { this->visit(inference,t1,t2,n1,e1); } template<class T1,class T2,class E1,class E2> void operator() (const INFERENCE_TYPE & inference ,const T1 t1,const T2 t2,const std::string & n1 ,const E1 e1,const std::string & n2 ,const E2 e2) { this->visit(inference,t1,t2,n1,e1,n2,e2); } template<class T1,class T2,class E1,class E2,class E3> void operator() (const INFERENCE_TYPE & inference ,const T1 t1,const T2 t2,const std::string & n1 ,const E1 e1,const std::string & n2 ,const E2 e2,const std::string & n3 ,const E2 e3) { this->visit(inference,t1,t2,n1,e1,n2,e2,n3,e3); } template<class E1> void operator() (const INFERENCE_TYPE & inference ,const std::string & n1 ,const E1 e1) { this->visit(inference,n1,e1); } template<class E1,class E2> void operator() (const INFERENCE_TYPE & inference ,const std::string & n1 ,const E1 e1,const std::string & n2 ,const E2 e2) { this->visit(inference,n1,e1,n2,e2); } template<class E1,class E2,class E3> void operator() (const INFERENCE_TYPE & inference ,const std::string & n1 ,const E1 e1,const std::string & n2 ,const E2 e2,const std::string & n3 ,const E2 e3) { this->visit(inference,n1,e1,n2,e2,n3,e3); } void operator()(); void operator() (const INFERENCE_TYPE & inference ); template<class T1> void operator()(const INFERENCE_TYPE & ,const T1); template<class T1,class T2> void operator()(const INFERENCE_TYPE & ,const T1,const T2 ); template<class T1,class T2,class T3> void operator()(const INFERENCE_TYPE & ,const T1,const T2 ,const T3 & ); template<class T1,class T2,class T3,class T4> void operator()(const INFERENCE_TYPE & ,const T1,const T2 ,const T3 &,const T4 & ); template<class T1,class T2,class T3,class T4,class T5> void operator()(const INFERENCE_TYPE & ,const T1,const T2 ,const T3 &,const T4 &,const T5 &); template<class T1,class T2,class T3,class T4,class T5,class T6> void operator()(const INFERENCE_TYPE & ,const T1,const T2 ,const T3 &,const T4 &,const T5 &,const T6 &); template<class T1,class T2,class T3,class T4,class T5,class T6,class T7> void operator()(const INFERENCE_TYPE & ,const T1,const T2 ,const T3 &,const T4 &,const T5 &,const T6 &,const T7 & ); template<class T1,class T2,class T3,class T4,class T5,class T6,class T7,class T8> void operator()(const INFERENCE_TYPE & ,const T1,const T2 ,const T3 &,const T4 &,const T5 &,const T6 &,const T7 &,const T8 & ); template<class T1,class T2,class T3,class T4,class T5,class T6,class T7,class T8,class T9> void operator()(const INFERENCE_TYPE & ,const T1,const T2 ,const T3 &,const T4 &,const T5 &,const T6 &,const T7 &,const T8 & ,const T9 &); void begin(); template<class T1,class T2,class E1> void begin (const INFERENCE_TYPE & inference ,const T1 t1,const T2 t2,const std::string & n1 ,const E1 e1) { this->beginVisit(inference,t1,t2,n1,e1); } template<class T1,class T2,class E1,class E2> void begin(const INFERENCE_TYPE & inference ,const T1 t1,const T2 t2,const std::string & n1 ,const E1 e1,const std::string & n2 ,const E2 e2) { this->beginVisit(inference,t1,t2,n1,e1,n2,e2); } template<class T1,class T2,class E1,class E2,class E3> void begin(const INFERENCE_TYPE & inference ,const T1 t1,const T2 t2,const std::string & n1 ,const E1 e1,const std::string & n2 ,const E2 e2,const std::string & n3 ,const E2 e3) { this->beginVisit(inference,t1,t2,n1,e1,n2,e2,n3,e3); } template<class E1> void begin(const INFERENCE_TYPE & inference ,const std::string & n1 ,const E1 e1) { this->beginVisit(inference,n1,e1); } template<class E1,class E2> void begin(const INFERENCE_TYPE & inference ,const std::string & n1 ,const E1 e1,const std::string & n2 ,const E2 e2) { this->beginVisit(inference,n1,e1,n2,e2); } template<class E1,class E2,class E3> void begin(const INFERENCE_TYPE & inference ,const std::string & n1 ,const E1 e1,const std::string & n2 ,const E2 e2,const std::string & n3 ,const E2 e3) { this->beginVisit(inference,n1,e1,n2,e2,n3,e3); } void begin (const INFERENCE_TYPE & inference ); template<class T1> void begin(const INFERENCE_TYPE & ,const T1); template<class T1,class T2> void begin(const INFERENCE_TYPE & ,const T1,const T2 ); template<class T1,class T2,class T3> void begin(const INFERENCE_TYPE & ,const T1,const T2 ,const T3 &); template<class T1,class T2,class T3,class T4> void begin(const INFERENCE_TYPE & ,const T1,const T2 ,const T3 &,const T4 & ); template<class T1,class T2,class T3,class T4,class T5> void begin(const INFERENCE_TYPE & ,const T1,const T2 ,const T3 &,const T4 &,const T5 &); template<class T1,class T2,class T3,class T4,class T5,class T6> void begin(const INFERENCE_TYPE & ,const T1,const T2 ,const T3 &,const T4 &,const T5 &,const T6 &); template<class T1,class T2,class T3,class T4,class T5,class T6,class T7> void begin(const INFERENCE_TYPE & ,const T1,const T2 ,const T3 &,const T4 &,const T5 &,const T6 &,const T7 & ); template<class T1,class T2,class T3,class T4,class T5,class T6,class T7,class T8> void begin(const INFERENCE_TYPE & ,const T1,const T2 ,const T3 &,const T4 &,const T5 &,const T6 &,const T7 &,const T8 & ); template<class T1,class T2,class T3,class T4,class T5,class T6,class T7,class T8,class T9> void begin(const INFERENCE_TYPE & ,const T1,const T2 ,const T3 &,const T4 &,const T5 &,const T6 &,const T7 &,const T8 & ,const T9 &); void end(); template<class T1,class T2,class E1> void end (const INFERENCE_TYPE & inference ,const T1 t1,const T2 t2,const std::string & n1 ,const E1 e1) { this->endVisit(inference,t1,t2,n1,e1); } template<class T1,class T2,class E1,class E2> void end(const INFERENCE_TYPE & inference ,const T1 t1,const T2 t2,const std::string & n1 ,const E1 e1,const std::string & n2 ,const E2 e2) { this->endVisit(inference,t1,t2,n1,e1,n2,e2); } template<class T1,class T2,class E1,class E2,class E3> void end(const INFERENCE_TYPE & inference ,const T1 t1,const T2 t2,const std::string & n1 ,const E1 e1,const std::string & n2 ,const E2 e2,const std::string & n3 ,const E2 e3) { this->endVisit(inference,t1,t2,n1,e1,n2,e2,n3,e3); } template<class E1> void end(const INFERENCE_TYPE & inference ,const std::string & n1 ,const E1 e1) { this->endVisit(inference,n1,e1); } template<class E1,class E2> void end(const INFERENCE_TYPE & inference ,const std::string & n1 ,const E1 e1,const std::string & n2 ,const E2 e2) { this->endVisit(inference,n1,e1,n2,e2); } template<class E1,class E2,class E3> void end(const INFERENCE_TYPE & inference ,const std::string & n1 ,const E1 e1,const std::string & n2 ,const E2 e2,const std::string & n3 ,const E2 e3) { this->endVisit(inference,n1,e1,n2,e2,n3,e3); } void end (const INFERENCE_TYPE & inference ); template<class T1> void end(const INFERENCE_TYPE & ,const T1); template<class T1,class T2> void end(const INFERENCE_TYPE & ,const T1,const T2 ); template<class T1,class T2,class T3> void end(const INFERENCE_TYPE & ,const T1,const T2 ,const T3 &); template<class T1,class T2,class T3,class T4> void end(const INFERENCE_TYPE & ,const T1,const T2 ,const T3 &,const T4 & ); template<class T1,class T2,class T3,class T4,class T5> void end(const INFERENCE_TYPE & ,const T1,const T2 ,const T3 &,const T4 &,const T5 &); template<class T1,class T2,class T3,class T4,class T5,class T6> void end(const INFERENCE_TYPE & ,const T1,const T2 ,const T3 &,const T4 &,const T5 &,const T6 &); template<class T1,class T2,class T3,class T4,class T5,class T6,class T7> void end(const INFERENCE_TYPE & ,const T1,const T2 ,const T3 &,const T4 &,const T5 &,const T6 &,const T7 & ); template<class T1,class T2,class T3,class T4,class T5,class T6,class T7,class T8> void end(const INFERENCE_TYPE & ,const T1,const T2 ,const T3 &,const T4 &,const T5 &,const T6 &,const T7 &,const T8 & ); template<class T1,class T2,class T3,class T4,class T5,class T6,class T7,class T8,class T9> void end(const INFERENCE_TYPE & ,const T1,const T2 ,const T3 &,const T4 &,const T5 &,const T6 &,const T7 &,const T8 & ,const T9 &); }; }// end namespace detail_visitor /// \endcond /// base class for empty visitor template<class INFERENCE_TYPE> class EmptyVisitorBase : public detail_visitor::Visitor<INFERENCE_TYPE,detail_visitor::EmptyVisitor>{ public: EmptyVisitorBase(); }; /// base class for verbose visitor template<class INFERENCE_TYPE> class VerboseVisitorBase : public detail_visitor::Visitor<INFERENCE_TYPE,detail_visitor::VerboseVisitor>{ public: VerboseVisitorBase(const size_t =1,const bool=true); }; /// base class for timing visitor template<class INFERENCE_TYPE> class TimingVisitorBase : public detail_visitor::Visitor<INFERENCE_TYPE,detail_visitor::TimingVisitor>{ public: TimingVisitorBase(const size_t = 1,size_t = 0,bool = false,bool = true); }; /// default empty visitor template<class INFERENCE_TYPE> class EmptyVisitor : public EmptyVisitorBase<INFERENCE_TYPE>{ public: EmptyVisitor(); }; /// default verbose visitor template<class INFERENCE_TYPE> class VerboseVisitor : public VerboseVisitorBase<INFERENCE_TYPE>{ public: VerboseVisitor(const size_t=1,bool=true); }; /// default timing visitor template<class INFERENCE_TYPE> class TimingVisitor : public TimingVisitorBase<INFERENCE_TYPE>{ public: TimingVisitor(const size_t = 1,size_t = 0,bool = false,bool = true); }; // constructor template<class INFERENCE_TYPE> EmptyVisitorBase<INFERENCE_TYPE>::EmptyVisitorBase() : detail_visitor::Visitor<INFERENCE_TYPE,detail_visitor::EmptyVisitor>() { } /// constructor /// \param visitNth print each nth visit /// \param do multi-line or single-line cout's template<class INFERENCE_TYPE> VerboseVisitorBase<INFERENCE_TYPE>::VerboseVisitorBase ( const size_t visitNth, bool multilineCout ) : detail_visitor::Visitor<INFERENCE_TYPE,detail_visitor::VerboseVisitor>() { this->assign(visitNth,multilineCout); } /// constructor /// \param visitNth print each nth visit /// \param reserve reserve memory for n visits /// \param verbose do verbose visiting ? /// \param do multi-line or single-line cout's template<class INFERENCE_TYPE> TimingVisitorBase<INFERENCE_TYPE>::TimingVisitorBase ( const size_t visitNth, size_t reserve, bool verbose, bool multilineCout ) : detail_visitor::Visitor<INFERENCE_TYPE,detail_visitor::TimingVisitor>() { this->assign(visitNth,reserve,verbose,multilineCout); } /// constructor template<class INFERENCE_TYPE> EmptyVisitor<INFERENCE_TYPE>::EmptyVisitor() : EmptyVisitorBase<INFERENCE_TYPE> () { } /// constructor /// \param visitNth print each nth visit /// \param do multi-line or single-line cout's template<class INFERENCE_TYPE> VerboseVisitor<INFERENCE_TYPE>::VerboseVisitor ( const size_t visitNth, bool multilineCout ) : VerboseVisitorBase<INFERENCE_TYPE>(visitNth,multilineCout) { } /// constructor /// \param visitNth print each nth visit /// \param reserve reserve memory for n visits /// \param verbose do verbose visiting ? /// \param do multi-line or single-line cout's template<class INFERENCE_TYPE> TimingVisitor<INFERENCE_TYPE>::TimingVisitor ( const size_t visitNth, size_t reserve, bool verbose, bool multilineCout ) : TimingVisitorBase<INFERENCE_TYPE>(visitNth,reserve,verbose,multilineCout) { } // implementation of the classes in detail_visitor /// \cond HIDDEN_SYMBOLS namespace detail_visitor{ template<size_t STATE,size_t FORMAT> template<class S,class V,class B> inline void Print<STATE,FORMAT>::print ( const S step, const V value, const B bound ) { std::cout<<((NewLineAtBeginEnd::value )? "\n" : "") <<((SameLineAtBegin::value )? "\r" : "") << (opengm::meta::EqualNumber<STATE,0>::value ? "Begin : " : (opengm::meta::EqualNumber<STATE,1>::value ? "Step : " : "End : ")) << std::scientific<<std::setw(Print::stepSpace_) << (opengm::meta::EqualNumber<STATE,1>::value ? step : step) << " Value : " <<std::scientific<<std::setw(Print::valueSpace_)<<value << " Bound : " <<std::scientific<<std::setw(Print::boundSpace_)<<bound << ((NewLineAtEnd::value )? "\n":"")<<std::flush; } template<size_t STATE,size_t FORMAT> template<class S,class V,class B,class E1> inline void Print<STATE,FORMAT>::print ( const S step, const V value, const B bound, const std::string & extraName1, const E1 extra1 ) { std::cout<<((NewLineAtBeginEnd::value )? "\n" : "") <<((SameLineAtBegin::value )? "\r" : "") << (opengm::meta::EqualNumber<STATE,0>::value ? "Begin : " : (opengm::meta::EqualNumber<STATE,1>::value ? "Step : " : "End : ")) << std::scientific<<std::setw(Print::stepSpace_) << (opengm::meta::EqualNumber<STATE,1>::value ? step : step) << " Value : " <<std::scientific<<std::setw(Print::valueSpace_)<<value << " Bound : " <<std::scientific<<std::setw(Print::boundSpace_)<<bound << " "<<extraName1<<" : " <<std::scientific<<std::setw(Print::extraNumber1Space_)<<extra1 << ((NewLineAtEnd::value )? "\n":"")<<std::flush; } template<size_t STATE,size_t FORMAT> template<class S,class V,class B,class E1,class E2> inline void Print<STATE,FORMAT>::print ( const S step, const V value, const B bound, const std::string & extraName1, const E1 extra1, const std::string & extraName2, const E2 extra2 ) { std::cout<<((NewLineAtBeginEnd::value )? "\n" : "") <<((SameLineAtBegin::value )? "\r" : "") << (opengm::meta::EqualNumber<STATE,0>::value ? "Begin : " : (opengm::meta::EqualNumber<STATE,1>::value ? "Step : " : "End : ")) << std::scientific<<std::setw(Print::stepSpace_) << (opengm::meta::EqualNumber<STATE,1>::value ? step : step) << " Value : " <<std::scientific<<std::setw(Print::valueSpace_)<<value << " Bound : " <<std::scientific<<std::setw(Print::boundSpace_)<<bound << " "<<extraName1<<" : " <<std::scientific<<std::setw(Print::extraNumber1Space_)<<extra1 << " "<<extraName2<<" : " <<std::scientific<<std::setw(Print::extraNumber2Space_)<<extra2 << ((NewLineAtEnd::value )? "\n":"")<<std::flush; } template<bool MULTI_LINE> template<class S,class V,class B> inline void PrintFormated<MULTI_LINE>::printAtBegin ( const S step, const V value, const B bound ) { Print<0,MULTI_LINE>::print(step,value,bound); } template<bool MULTI_LINE> template<class S,class V,class B> inline void PrintFormated<MULTI_LINE>::printAtVisit ( const S step, const V value, const B bound ) { Print<1,MULTI_LINE>::print(step,value,bound); } template<bool MULTI_LINE> template<class S,class V,class B> inline void PrintFormated<MULTI_LINE>::printAtEnd ( const S step, const V value, const B bound ) { Print<2,MULTI_LINE>::print(step,value,bound); } template<bool MULTI_LINE> template<class S,class V,class B,class E1> inline void PrintFormated<MULTI_LINE>::printAtBegin ( const S step, const V value, const B bound, const std::string & extraName1, const E1 extra1 ) { Print<0,MULTI_LINE>::print(step,value,bound,extraName1,extra1); } template<bool MULTI_LINE> template<class S,class V,class B,class E1> inline void PrintFormated<MULTI_LINE>::printAtVisit ( const S step, const V value, const B bound, const std::string & extraName1, const E1 extra1 ) { Print<1,MULTI_LINE>::print(step,value,bound,extraName1,extra1); } template<bool MULTI_LINE> template<class S,class V,class B,class E1> inline void PrintFormated<MULTI_LINE>::printAtEnd ( const S step, const V value, const B bound, const std::string & extraName1, const E1 extra1 ) { Print<2,MULTI_LINE>::print(step,value,bound,extraName1,extra1); } template<bool MULTI_LINE> template<class S,class V,class B,class E1,class E2> inline void PrintFormated<MULTI_LINE>::printAtBegin ( const S step, const V value, const B bound, const std::string & extraName1, const E1 extra1, const std::string & extraName2, const E2 extra2 ) { Print<0,MULTI_LINE>::print(step,value,bound,extraName1,extra1,extraName2,extra2); } template<bool MULTI_LINE> template<class S,class V,class B,class E1,class E2> inline void PrintFormated<MULTI_LINE>::printAtVisit ( const S step, const V value, const B bound, const std::string & extraName1, const E1 extra1, const std::string & extraName2, const E2 extra2 ) { Print<1,MULTI_LINE>::print(step,value,bound,extraName1,extra1,extraName2,extra2); } template<bool MULTI_LINE> template<class S,class V,class B,class E1,class E2> inline void PrintFormated<MULTI_LINE>::printAtEnd ( const S step, const V value, const B bound, const std::string & extraName1, const E1 extra1, const std::string & extraName2, const E2 extra2 ) { Print<2,MULTI_LINE>::print(step,value,bound,extraName1,extra1,extraName2,extra2); } // implementation empty visitor template<class INFERENCE_TYPE> VisitorImplementation<INFERENCE_TYPE,EmptyVisitor>::VisitorImplementation() { } template<class INFERENCE_TYPE> inline void VisitorImplementation<INFERENCE_TYPE,EmptyVisitor>::visit ( const INFERENCE_TYPE & inf )const{ } template<class INFERENCE_TYPE> inline void VisitorImplementation<INFERENCE_TYPE,EmptyVisitor>::beginVisit ( const INFERENCE_TYPE & inf )const{ } template<class INFERENCE_TYPE> inline void VisitorImplementation<INFERENCE_TYPE,EmptyVisitor>::endVisit ( const INFERENCE_TYPE & inf )const{ } template<class INFERENCE_TYPE> template<class E1> inline void VisitorImplementation<INFERENCE_TYPE,EmptyVisitor>::visit(const INFERENCE_TYPE & inf,const std::string & n1,const E1 e1)const{ } template<class INFERENCE_TYPE> template<class E1> inline void VisitorImplementation<INFERENCE_TYPE,EmptyVisitor>::beginVisit(const INFERENCE_TYPE & inf,const std::string & n1,const E1 e1)const{ } template<class INFERENCE_TYPE> template<class E1> inline void VisitorImplementation<INFERENCE_TYPE,EmptyVisitor>::endVisit(const INFERENCE_TYPE & inf,const std::string & n1,const E1 e1)const{ } template<class INFERENCE_TYPE> template<class E1,class E2> inline void VisitorImplementation<INFERENCE_TYPE,EmptyVisitor>::visit(const INFERENCE_TYPE & inf,const std::string & n1,const E1 e1,const std::string & n2,const E2 e2)const{ } template<class INFERENCE_TYPE> template<class E1,class E2> inline void VisitorImplementation<INFERENCE_TYPE,EmptyVisitor>::beginVisit(const INFERENCE_TYPE & inf,const std::string & n1,const E1 e1,const std::string & n2,const E2 e2)const{ } template<class INFERENCE_TYPE> template<class E1,class E2> inline void VisitorImplementation<INFERENCE_TYPE,EmptyVisitor>::endVisit(const INFERENCE_TYPE & inf,const std::string & n1,const E1 e1,const std::string & n2,const E2 e2)const{ } template<class INFERENCE_TYPE> template<class E1,class E2,class E3> inline void VisitorImplementation<INFERENCE_TYPE,EmptyVisitor>::visit(const INFERENCE_TYPE & inf,const std::string & n1,const E1 e1,const std::string & n2,const E2 e2,const std::string & n3,const E3 e3)const{ } template<class INFERENCE_TYPE> template<class E1,class E2,class E3> inline void VisitorImplementation<INFERENCE_TYPE,EmptyVisitor>::beginVisit(const INFERENCE_TYPE & inf,const std::string & n1,const E1 e1,const std::string & n2,const E2 e2,const std::string & n3,const E3 e3)const{ } template<class INFERENCE_TYPE> template<class E1,class E2,class E3> inline void VisitorImplementation<INFERENCE_TYPE,EmptyVisitor>::endVisit(const INFERENCE_TYPE & inf,const std::string & n1,const E1 e1,const std::string & n2,const E2 e2,const std::string & n3,const E3 e3)const{ } template<class INFERENCE_TYPE> template<class T1,class T2> inline void VisitorImplementation<INFERENCE_TYPE,EmptyVisitor>::visit ( T1 a1 , T2 a2 )const{ } template<class INFERENCE_TYPE> template<class T1,class T2,class E1> inline void VisitorImplementation<INFERENCE_TYPE,EmptyVisitor>::visit ( T1 a1 , T2 a2 , const std::string & name1, const E1 e1 )const{ } template<class INFERENCE_TYPE> template<class T1,class T2,class E1,class E2> inline void VisitorImplementation<INFERENCE_TYPE,EmptyVisitor>::visit ( T1 a1 , T2 a2 , const std::string & name1, const E1 e1, const std::string & name21, const E2 e2 )const{ } template<class INFERENCE_TYPE> template<class T1,class T2> inline void VisitorImplementation<INFERENCE_TYPE,EmptyVisitor>::beginVisit ( T1 a1 , T2 a2 )const{ } template<class INFERENCE_TYPE> template<class T1,class T2,class E1> inline void VisitorImplementation<INFERENCE_TYPE,EmptyVisitor>::beginVisit ( T1 a1 , T2 a2 , const std::string & name1, const E1 e1 )const{ } template<class INFERENCE_TYPE> template<class T1,class T2,class E1,class E2> inline void VisitorImplementation<INFERENCE_TYPE,EmptyVisitor>::beginVisit ( T1 a1 , T2 a2 , const std::string & name1, const E1 e1, const std::string & name21, const E2 e2 )const{ } template<class INFERENCE_TYPE> template<class T1,class T2> inline void VisitorImplementation<INFERENCE_TYPE,EmptyVisitor>::endVisit ( T1 a1 , T2 a2 )const{ } template<class INFERENCE_TYPE> template<class T1,class T2,class E1> inline void VisitorImplementation<INFERENCE_TYPE,EmptyVisitor>::endVisit ( T1 a1 , T2 a2 , const std::string & name1, const E1 e1 )const{ } template<class INFERENCE_TYPE> template<class T1,class T2,class E1,class E2> inline void VisitorImplementation<INFERENCE_TYPE,EmptyVisitor>::endVisit ( T1 a1 , T2 a2 , const std::string & name1, const E1 e1, const std::string & name2, const E2 e2 )const{ } // implementation verbose visitor template<class INFERENCE_TYPE> inline VisitorImplementation<INFERENCE_TYPE,VerboseVisitor>::VisitorImplementation ( const size_t visitNth, bool multiline ) : visitNth_(visitNth), visitNumber_(0), multiline_(multiline) { } template<class INFERENCE_TYPE> inline void VisitorImplementation<INFERENCE_TYPE,VerboseVisitor>::assign ( const size_t visitNth, bool multiline ) { visitNth_=visitNth; visitNumber_=0; multiline_=multiline; } template<class INFERENCE_TYPE> inline void VisitorImplementation<INFERENCE_TYPE,VerboseVisitor>::visit ( const INFERENCE_TYPE & inf ) { if(visitNumber_ % visitNth_ == 0) { if(multiline_) PrintFormated<true>::printAtVisit(visitNumber_,inf.value(),inf.bound()); else PrintFormated<false>::printAtVisit(visitNumber_, inf.value(), inf.bound()); } ++visitNumber_; } template<class INFERENCE_TYPE> inline void VisitorImplementation<INFERENCE_TYPE,VerboseVisitor>::beginVisit ( const INFERENCE_TYPE & inf ) { if(multiline_) PrintFormated<true>::printAtBegin(visitNumber_,inf.value(),inf.bound()); else PrintFormated<false>::printAtBegin(visitNumber_, inf.value(), inf.bound()); } template<class INFERENCE_TYPE> inline void VisitorImplementation<INFERENCE_TYPE,VerboseVisitor>::endVisit ( const INFERENCE_TYPE & inf ) { if(multiline_) PrintFormated<true>::printAtEnd(visitNumber_,inf.value(),inf.bound()); else PrintFormated<false>::printAtEnd(visitNumber_, inf.value(), inf.bound()); } template<class INFERENCE_TYPE> template<class E1> inline void VisitorImplementation<INFERENCE_TYPE,VerboseVisitor>::visit(const INFERENCE_TYPE & inf,const std::string & n1,const E1 e1) { if(visitNumber_ % visitNth_ == 0) { if(multiline_) PrintFormated<true>::printAtVisit(visitNumber_,inf.value(),inf.bound(),n1,e1); else PrintFormated<false>::printAtVisit(visitNumber_, inf.value(), inf.bound(),n1,e1); } ++visitNumber_; } template<class INFERENCE_TYPE> template<class E1> inline void VisitorImplementation<INFERENCE_TYPE,VerboseVisitor>::beginVisit(const INFERENCE_TYPE & inf,const std::string & n1,const E1 e1) { if(multiline_) PrintFormated<true>::printAtBegin(visitNumber_,inf.value(),inf.bound(),n1,e1); else PrintFormated<false>::printAtBegin(visitNumber_, inf.value(), inf.bound(),n1,e1); } template<class INFERENCE_TYPE> template<class E1> inline void VisitorImplementation<INFERENCE_TYPE,VerboseVisitor>::endVisit(const INFERENCE_TYPE & inf,const std::string & n1,const E1 e1) { if(multiline_) PrintFormated<true>::printAtEnd(visitNumber_,inf.value(),inf.bound(),n1,e1); else PrintFormated<false>::printAtEnd(visitNumber_, inf.value(), inf.bound(),n1,e1); } template<class INFERENCE_TYPE> template<class E1,class E2> inline void VisitorImplementation<INFERENCE_TYPE,VerboseVisitor>::visit(const INFERENCE_TYPE & inf,const std::string & n1,const E1 e1,const std::string & n2,const E2 e2) { if(visitNumber_ % visitNth_ == 0) { if(multiline_) PrintFormated<true>::printAtVisit(visitNumber_,inf.value(),inf.bound(),n1,e1,n2,e2); else PrintFormated<false>::printAtVisit(visitNumber_, inf.value(), inf.bound(),n1,e1.n2,e2); } ++visitNumber_; } template<class INFERENCE_TYPE> template<class E1,class E2> inline void VisitorImplementation<INFERENCE_TYPE,VerboseVisitor>::beginVisit(const INFERENCE_TYPE & inf,const std::string & n1,const E1 e1,const std::string & n2,const E2 e2) { if(multiline_) PrintFormated<true>::printAtBegin(visitNumber_,inf.value(),inf.bound(),n1,e1,n2,e2); else PrintFormated<false>::printAtBegin(visitNumber_, inf.value(), inf.bound(),n1,e1,n2,e2); } template<class INFERENCE_TYPE> template<class E1,class E2> inline void VisitorImplementation<INFERENCE_TYPE,VerboseVisitor>::endVisit(const INFERENCE_TYPE & inf,const std::string & n1,const E1 e1,const std::string & n2,const E2 e2) { if(multiline_) PrintFormated<true>::printAtEnd(visitNumber_,inf.value(),inf.bound(),n1,e1,n2,e2); else PrintFormated<false>::printAtEnd(visitNumber_, inf.value(), inf.bound(),n1,e1,n2,e2); } template<class INFERENCE_TYPE> template<class E1,class E2,class E3> inline void VisitorImplementation<INFERENCE_TYPE,VerboseVisitor>::visit(const INFERENCE_TYPE & inf,const std::string & n1,const E1 e1,const std::string & n2,const E2 e2,const std::string & n3,const E3 e3) { if(visitNumber_ % visitNth_ == 0) { if(multiline_) PrintFormated<true>::printAtVisit(visitNumber_,inf.value(),inf.bound(),n1,e1,n2,e2,n3,e3); else PrintFormated<false>::printAtVisit(visitNumber_, inf.value(), inf.bound(),n1,e1.n2,e2,n3,e3); } ++visitNumber_; } template<class INFERENCE_TYPE> template<class E1,class E2,class E3> inline void VisitorImplementation<INFERENCE_TYPE,VerboseVisitor>::beginVisit(const INFERENCE_TYPE & inf,const std::string & n1,const E1 e1,const std::string & n2,const E2 e2,const std::string & n3,const E3 e3) { if(multiline_) PrintFormated<true>::printAtBegin(visitNumber_,inf.value(),inf.bound(),n1,e1,n2,e2,n3,e3); else PrintFormated<false>::printAtBegin(visitNumber_, inf.value(), inf.bound(),n1,e1,n2,e2,n3,e3); } template<class INFERENCE_TYPE> template<class E1,class E2,class E3> inline void VisitorImplementation<INFERENCE_TYPE,VerboseVisitor>::endVisit(const INFERENCE_TYPE & inf,const std::string & n1,const E1 e1,const std::string & n2,const E2 e2,const std::string & n3,const E3 e3) { if(multiline_) PrintFormated<true>::printAtEnd(visitNumber_,inf.value(),inf.bound(),n1,e1,n2,e2,n3,e3); else PrintFormated<false>::printAtEnd(visitNumber_, inf.value(), inf.bound(),n1,e1,n2,e2.n3,e3); } template<class INFERENCE_TYPE> template<class T1,class T2> inline void VisitorImplementation<INFERENCE_TYPE,VerboseVisitor>::visit ( T1 value , T2 bound ) { if(visitNumber_ % visitNth_ == 0) { if(multiline_) PrintFormated<true>::printAtVisit(visitNumber_,value,bound); else PrintFormated<false>::printAtVisit(visitNumber_, value, bound); } ++visitNumber_; } template<class INFERENCE_TYPE> template<class T1,class T2,class E1> inline void VisitorImplementation<INFERENCE_TYPE,VerboseVisitor>::visit ( T1 value , T2 bound , const std::string & name1, const E1 e1 ) { if(visitNumber_ % visitNth_ == 0) { if(multiline_) PrintFormated<true>::printAtVisit(visitNumber_,value,bound,name1,e1); else PrintFormated<false>::printAtVisit(visitNumber_, value, bound,name1,e1); } ++visitNumber_; } template<class INFERENCE_TYPE> template<class T1,class T2,class E1,class E2> inline void VisitorImplementation<INFERENCE_TYPE,VerboseVisitor>::visit ( T1 value , T2 bound , const std::string & name1, const E1 e1, const std::string & name2, const E2 e2 ) { if(visitNumber_ % visitNth_ == 0) { if(multiline_) PrintFormated<true>::printAtVisit(visitNumber_,value,bound,name1,e1,name2,e2); else PrintFormated<false>::printAtVisit(visitNumber_, value, bound,name1,e1,name2,e2); } ++visitNumber_; } template<class INFERENCE_TYPE> template<class T1,class T2> inline void VisitorImplementation<INFERENCE_TYPE,VerboseVisitor>::beginVisit ( T1 value , T2 bound ) { if(multiline_) PrintFormated<true>::printAtBegin(visitNumber_,value,bound); else PrintFormated<false>::printAtBegin(visitNumber_, value, bound); } template<class INFERENCE_TYPE> template<class T1,class T2,class E1> inline void VisitorImplementation<INFERENCE_TYPE,VerboseVisitor>::beginVisit ( T1 value , T2 bound , const std::string & name1, const E1 e1 ) { if(visitNumber_ % visitNth_ == 0) { if(multiline_) PrintFormated<true>::printAtBegin(visitNumber_,value,bound,name1,e1); else PrintFormated<false>::printAtBegin(visitNumber_, value, bound,name1,e1); } ++visitNumber_; } template<class INFERENCE_TYPE> template<class T1,class T2,class E1,class E2> inline void VisitorImplementation<INFERENCE_TYPE,VerboseVisitor>::beginVisit ( T1 value , T2 bound , const std::string & name1, const E1 e1, const std::string & name2, const E2 e2 ) { if(visitNumber_ % visitNth_ == 0) { if(multiline_) PrintFormated<true>::printAtBegin(visitNumber_,value,bound,name1,e1,name2,e2); else PrintFormated<false>::printAtBegin(visitNumber_, value, bound,name1,e1,name2,e2); } ++visitNumber_; } template<class INFERENCE_TYPE> template<class T1,class T2> inline void VisitorImplementation<INFERENCE_TYPE,VerboseVisitor>::endVisit ( T1 value , T2 bound ) { if(multiline_) PrintFormated<true>::printAtEnd(visitNumber_,value,bound); else PrintFormated<false>::printAtEnd(visitNumber_, value, bound); } template<class INFERENCE_TYPE> template<class T1,class T2,class E1> inline void VisitorImplementation<INFERENCE_TYPE,VerboseVisitor>::endVisit ( T1 value , T2 bound , const std::string & name1, const E1 e1 ) { if(multiline_) PrintFormated<true>::printAtEnd(visitNumber_,value,bound,name1,e1); else PrintFormated<false>::printAtEnd(visitNumber_, value, bound,name1,e1); } template<class INFERENCE_TYPE> template<class T1,class T2,class E1,class E2> inline void VisitorImplementation<INFERENCE_TYPE,VerboseVisitor>::endVisit ( T1 value , T2 bound , const std::string & name1, const E1 e1, const std::string & name2, const E2 e2 ) { if(multiline_) PrintFormated<true>::printAtEnd(visitNumber_,value,bound,name1,e1,name2,e2); else PrintFormated<false>::printAtEnd(visitNumber_, value, bound,name1,e1,name2,e2); } //implementation of the timing visitor template<class INFERENCE_TYPE> inline const std::vector<typename VisitorImplementation<INFERENCE_TYPE,TimingVisitor>::TimeType > & VisitorImplementation<INFERENCE_TYPE,TimingVisitor>::getTimes() const{ return times_; } template<class INFERENCE_TYPE> inline const std::vector<typename VisitorImplementation<INFERENCE_TYPE,TimingVisitor>::ValueType > & VisitorImplementation<INFERENCE_TYPE,TimingVisitor>::getValues() const{ return values_; } template<class INFERENCE_TYPE> inline const std::vector<typename VisitorImplementation<INFERENCE_TYPE,TimingVisitor>::BoundType > & VisitorImplementation<INFERENCE_TYPE,TimingVisitor>::getBounds() const{ return bounds_; } template<class INFERENCE_TYPE> inline const std::vector<typename VisitorImplementation<INFERENCE_TYPE,TimingVisitor>::IterationType> & VisitorImplementation<INFERENCE_TYPE,TimingVisitor>::getIterations() const{ return iterations_; } template<class INFERENCE_TYPE> inline VisitorImplementation<INFERENCE_TYPE,TimingVisitor>::VisitorImplementation ( const size_t visitNth, const size_t reserve, bool verbose, bool multiline ) : visitNth_(visitNth), visitNumber_(0), verbose_(verbose), multiline_(multiline) { if(reserve!=0) { times_.reserve(reserve); values_.reserve(reserve); bounds_.reserve(reserve); iterations_.reserve(reserve); } } template<class INFERENCE_TYPE> inline void VisitorImplementation<INFERENCE_TYPE,TimingVisitor>::assign ( const size_t visitNth, const size_t reserve, bool verbose, bool multiline ) { visitNth_=visitNth; visitNumber_=0; verbose_=verbose; multiline_=multiline; if(reserve!=0) { times_.reserve(reserve); values_.reserve(reserve); bounds_.reserve(reserve); iterations_.reserve(reserve);; } } template<class INFERENCE_TYPE> inline void VisitorImplementation<INFERENCE_TYPE,TimingVisitor>::visit ( const INFERENCE_TYPE & inf ) { if(visitNumber_ % visitNth_ == 0) { timer_.toc(); times_.push_back(timer_.elapsedTime()); const typename INFERENCE_TYPE::ValueType value=inf.value(),bound=inf.bound(); values_.push_back(value); bounds_.push_back(bound); iterations_.push_back(visitNumber_); timer_.reset(); if(verbose_) { if(multiline_) PrintFormated<true>::printAtVisit(visitNumber_,value,bound); else PrintFormated<false>::printAtVisit(visitNumber_, value, bound); } timer_.tic(); } ++visitNumber_; } template<class INFERENCE_TYPE> inline void VisitorImplementation<INFERENCE_TYPE,TimingVisitor>::beginVisit ( const INFERENCE_TYPE & inf ) { const typename INFERENCE_TYPE::ValueType value=inf.value(),bound=inf.bound(); if(verbose_) { if(multiline_) PrintFormated<true>::printAtBegin(visitNumber_,value,bound); else PrintFormated<false>::printAtBegin(visitNumber_, value, bound); } times_.push_back(0.0); values_.push_back(value); bounds_.push_back(bound); iterations_.push_back(IterationType(0)); timer_.tic(); } template<class INFERENCE_TYPE> inline void VisitorImplementation<INFERENCE_TYPE,TimingVisitor>::endVisit ( const INFERENCE_TYPE & inf ) { timer_.toc(); times_.push_back(timer_.elapsedTime()); const typename INFERENCE_TYPE::ValueType value=inf.value(),bound=inf.bound(); values_.push_back(value); bounds_.push_back(bound); iterations_.push_back(visitNumber_); timer_.reset(); if(verbose_) { if(multiline_) PrintFormated<true>::printAtEnd(visitNumber_,value,bound); else PrintFormated<false>::printAtEnd(visitNumber_, value, bound); }; } template<class INFERENCE_TYPE> template<class E1> inline void VisitorImplementation<INFERENCE_TYPE,TimingVisitor>::visit(const INFERENCE_TYPE & inf,const std::string & n1,const E1 e1) { if(visitNumber_ % visitNth_ == 0) { timer_.toc(); times_.push_back(timer_.elapsedTime()); const typename INFERENCE_TYPE::ValueType value=inf.value(),bound=inf.bound(); values_.push_back(value); bounds_.push_back(bound); this->pushBackStringLogData(n1,e1); iterations_.push_back(visitNumber_); timer_.reset(); if(verbose_) { if(multiline_) PrintFormated<true>::printAtVisit(visitNumber_,value,bound,n1,e1); else PrintFormated<false>::printAtVisit(visitNumber_, value, bound,n1,e1); } timer_.tic(); } ++visitNumber_; } template<class INFERENCE_TYPE> template<class E1> inline void VisitorImplementation<INFERENCE_TYPE,TimingVisitor>::beginVisit(const INFERENCE_TYPE & inf,const std::string & n1,const E1 e1) { const typename INFERENCE_TYPE::ValueType value=inf.value(),bound=inf.bound(); if(verbose_) { if(multiline_) PrintFormated<true>::printAtBegin(visitNumber_,value,bound,n1,e1); else PrintFormated<false>::printAtBegin(visitNumber_, value, bound,n1,e1); } times_.push_back(0); values_.push_back(value); bounds_.push_back(bound); this->reserveMapVector(n1); this->pushBackStringLogData(n1,e1); iterations_.push_back(IterationType(0)); timer_.tic(); } template<class INFERENCE_TYPE> template<class E1> inline void VisitorImplementation<INFERENCE_TYPE,TimingVisitor>::endVisit(const INFERENCE_TYPE & inf,const std::string & n1,const E1 e1) { timer_.toc(); times_.push_back(timer_.elapsedTime()); const typename INFERENCE_TYPE::ValueType value=inf.value(),bound=inf.bound(); values_.push_back(value); bounds_.push_back(bound); this->pushBackStringLogData(n1,e1); iterations_.push_back(visitNumber_); timer_.reset(); if(verbose_) { if(multiline_) PrintFormated<true>::printAtEnd(visitNumber_,value,bound,n1,e1); else PrintFormated<false>::printAtEnd(visitNumber_, value, bound,n1,e1); }; } template<class INFERENCE_TYPE> template<class E1,class E2> inline void VisitorImplementation<INFERENCE_TYPE,TimingVisitor>::visit(const INFERENCE_TYPE & inf,const std::string & n1,const E1 e1,const std::string & n2,const E2 e2) { if(visitNumber_ % visitNth_ == 0) { timer_.toc(); times_.push_back(timer_.elapsedTime()); const typename INFERENCE_TYPE::ValueType value=inf.value(),bound=inf.bound(); values_.push_back(value); bounds_.push_back(bound); this->pushBackStringLogData(n1,e1); this->pushBackStringLogData(n2,e2); iterations_.push_back(visitNumber_); timer_.reset(); if(verbose_) { if(multiline_) PrintFormated<true>::printAtVisit(visitNumber_,value,bound,n1,e1,n2,e2); else PrintFormated<false>::printAtVisit(visitNumber_, value, bound,n1,e1,n2,e2); } timer_.tic(); } ++visitNumber_; } template<class INFERENCE_TYPE> template<class E1,class E2> inline void VisitorImplementation<INFERENCE_TYPE,TimingVisitor>::beginVisit(const INFERENCE_TYPE & inf,const std::string & n1,const E1 e1,const std::string & n2,const E2 e2) { const typename INFERENCE_TYPE::ValueType value=inf.value(),bound=inf.bound(); if(verbose_) { if(multiline_) PrintFormated<true>::printAtBegin(visitNumber_,value,bound,n1,e1,n2,e2); else PrintFormated<false>::printAtBegin(visitNumber_, value, bound,n1,e1,n2,e2); } times_.push_back(0); values_.push_back(value); bounds_.push_back(bound); this->reserveMapVector(n1); this->pushBackStringLogData(n1,e1); this->reserveMapVector(n2); this->pushBackStringLogData(n2,e2); iterations_.push_back(IterationType(0)); timer_.tic(); } template<class INFERENCE_TYPE> template<class E1,class E2> inline void VisitorImplementation<INFERENCE_TYPE,TimingVisitor>::endVisit(const INFERENCE_TYPE & inf,const std::string & n1,const E1 e1,const std::string & n2,const E2 e2) { timer_.toc();; times_.push_back(timer_.elapsedTime()); const typename INFERENCE_TYPE::ValueType value=inf.value(),bound=inf.bound(); values_.push_back(value); bounds_.push_back(bound); this->pushBackStringLogData(n1,e1); this->pushBackStringLogData(n2,e2); iterations_.push_back(visitNumber_); timer_.reset(); if(verbose_) { if(multiline_) PrintFormated<true>::printAtEnd(visitNumber_,value,bound,n1,e1,n2,e2); else PrintFormated<false>::printAtEnd(visitNumber_, value, bound,n1,e1,n2,e2); }; } template<class INFERENCE_TYPE> template<class E1,class E2,class E3> inline void VisitorImplementation<INFERENCE_TYPE,TimingVisitor>::visit(const INFERENCE_TYPE & inf,const std::string & n1,const E1 e1,const std::string & n2,const E2 e2,const std::string & n3,const E3 e3) { if(visitNumber_ % visitNth_ == 0) { timer_.toc(); times_.push_back(timer_.elapsedTime()); const typename INFERENCE_TYPE::ValueType value=inf.value(),bound=inf.bound(); values_.push_back(value); bounds_.push_back(bound); this->pushBackStringLogData(n1,e1); this->pushBackStringLogData(n2,e2); this->pushBackStringLogData(n3,e3); iterations_.push_back(visitNumber_); timer_.reset(); if(verbose_) { if(multiline_) PrintFormated<true>::printAtVisit(visitNumber_,value,bound,n1,e1,n2,e2,n3,e3); else PrintFormated<false>::printAtVisit(visitNumber_, value, bound,n1,e1,n2,e2,n3,e3); } timer_.tic(); } ++visitNumber_; } template<class INFERENCE_TYPE> template<class E1,class E2,class E3> inline void VisitorImplementation<INFERENCE_TYPE,TimingVisitor>::beginVisit(const INFERENCE_TYPE & inf,const std::string & n1,const E1 e1,const std::string & n2,const E2 e2,const std::string & n3,const E3 e3) { const typename INFERENCE_TYPE::ValueType value=inf.value(),bound=inf.bound(); if(verbose_) { if(multiline_) PrintFormated<true>::printAtBegin(visitNumber_,value,bound,n1,e1,n2,e2,n3,e3); else PrintFormated<false>::printAtBegin(visitNumber_, value, bound,n1,e1,n2,e2,n3,e3); } times_.push_back(0); values_.push_back(value); bounds_.push_back(bound); this->reserveMapVector(n1); this->pushBackStringLogData(n1,e1); this->reserveMapVector(n2); this->pushBackStringLogData(n2,e2); this->reserveMapVector(n3); this->pushBackStringLogData(n3, e3); iterations_.push_back(IterationType(0)); timer_.tic(); } template<class INFERENCE_TYPE> template<class E1,class E2,class E3> inline void VisitorImplementation<INFERENCE_TYPE,TimingVisitor>::endVisit(const INFERENCE_TYPE & inf,const std::string & n1,const E1 e1,const std::string & n2,const E2 e2,const std::string & n3,const E3 e3) { timer_.toc();; times_.push_back(timer_.elapsedTime()); const typename INFERENCE_TYPE::ValueType value=inf.value(),bound=inf.bound(); values_.push_back(value); bounds_.push_back(bound); this->pushBackStringLogData(n1,e1); this->pushBackStringLogData(n2,e2); this->pushBackStringLogData(n3,e3); iterations_.push_back(visitNumber_); timer_.reset(); if(verbose_) { if(multiline_) PrintFormated<true>::printAtEnd(visitNumber_,value,bound,n1,e1,n2,e2,n3,e3); else PrintFormated<false>::printAtEnd(visitNumber_, value, bound,n1,e1,n2,e2,n3,e3); }; } template<class INFERENCE_TYPE> template<class T1,class T2> inline void VisitorImplementation<INFERENCE_TYPE,TimingVisitor>::visit ( T1 value , T2 bound ) { if(visitNumber_ % visitNth_ == 0) { timer_.toc(); times_.push_back(timer_.elapsedTime()); values_.push_back(value); bounds_.push_back(bound); iterations_.push_back(visitNumber_); timer_.reset(); if(verbose_) { if(multiline_) PrintFormated<true>::printAtVisit(visitNumber_,value,bound); else PrintFormated<false>::printAtVisit(visitNumber_, value, bound); } timer_.tic(); } ++visitNumber_; } template<class INFERENCE_TYPE> template<class T1,class T2,class E1> inline void VisitorImplementation<INFERENCE_TYPE,TimingVisitor>::visit ( T1 value , T2 bound , const std::string & name1, const E1 e1 ) { if(visitNumber_ % visitNth_ == 0) { timer_.toc(); times_.push_back(timer_.elapsedTime()); values_.push_back(value); bounds_.push_back(bound); this->pushBackStringLogData(name1,e1); iterations_.push_back(visitNumber_); timer_.reset(); if(verbose_) { if(multiline_) PrintFormated<true>::printAtVisit(visitNumber_,value,bound,name1,e1); else PrintFormated<false>::printAtVisit(visitNumber_, value, bound,name1,e1); } timer_.tic(); } ++visitNumber_; } template<class INFERENCE_TYPE> template<class T1,class T2,class E1,class E2> inline void VisitorImplementation<INFERENCE_TYPE,TimingVisitor>::visit ( T1 value , T2 bound , const std::string & name1, const E1 e1, const std::string & name2, const E2 e2 ) { if(visitNumber_ % visitNth_ == 0) { timer_.toc(); times_.push_back(timer_.elapsedTime()); values_.push_back(value); bounds_.push_back(bound); this->pushBackStringLogData(name1,e1); this->pushBackStringLogData(name2,e2); iterations_.push_back(visitNumber_); timer_.reset(); if(verbose_) { if(multiline_) PrintFormated<true>::printAtVisit(visitNumber_,value,bound,name1,e1,name2,e2); else PrintFormated<false>::printAtVisit(visitNumber_, value, bound,name1,e1,name2,e2); } timer_.tic(); } ++visitNumber_; } template<class INFERENCE_TYPE> template<class T1,class T2> inline void VisitorImplementation<INFERENCE_TYPE,TimingVisitor>::beginVisit ( T1 value , T2 bound ) { if(verbose_) { if(multiline_) PrintFormated<true>::printAtBegin(visitNumber_,value,bound); else PrintFormated<false>::printAtBegin(visitNumber_, value, bound); } times_.push_back(0); values_.push_back(value); bounds_.push_back(bound); iterations_.push_back(IterationType(0)); timer_.tic(); } template<class INFERENCE_TYPE> template<class T1,class T2,class E1> inline void VisitorImplementation<INFERENCE_TYPE,TimingVisitor>::beginVisit ( T1 value , T2 bound , const std::string & name1, const E1 e1 ) { if(verbose_) { if(multiline_) PrintFormated<true>::printAtBegin(visitNumber_,value,bound,name1,e1); else PrintFormated<false>::printAtBegin(visitNumber_, value, bound,name1,e1); } times_.push_back(0); values_.push_back(value); bounds_.push_back(bound); this->reserveMapVector(name1); this->pushBackStringLogData(name1,e1); iterations_.push_back(IterationType(0)); timer_.tic(); } template<class INFERENCE_TYPE> template<class T1,class T2,class E1,class E2> inline void VisitorImplementation<INFERENCE_TYPE,TimingVisitor>::beginVisit ( T1 value , T2 bound , const std::string & name1, const E1 e1, const std::string & name2, const E2 e2 ) { if(verbose_) { if(multiline_) PrintFormated<true>::printAtBegin(visitNumber_,value,bound,name1,e1); else PrintFormated<false>::printAtBegin(visitNumber_, value, bound,name1,e1); } times_.push_back(0); values_.push_back(value); bounds_.push_back(bound); this->reserveMapVector(name1); this->pushBackStringLogData(name1,e1); this->reserveMapVector(name2); this->pushBackStringLogData(name2,e2); iterations_.push_back(IterationType(0)); timer_.tic(); } template<class INFERENCE_TYPE> template<class T1,class T2> inline void VisitorImplementation<INFERENCE_TYPE,TimingVisitor>::endVisit ( T1 value , T2 bound ) { timer_.toc(); times_.push_back(timer_.elapsedTime()); values_.push_back(value); bounds_.push_back(bound); iterations_.push_back(visitNumber_); timer_.reset(); if(verbose_) { if(multiline_) PrintFormated<true>::printAtEnd(visitNumber_,value,bound); else PrintFormated<false>::printAtEnd(visitNumber_, value, bound); }; } template<class INFERENCE_TYPE> template<class T1,class T2,class E1> inline void VisitorImplementation<INFERENCE_TYPE,TimingVisitor>::endVisit ( T1 value , T2 bound , const std::string & name1, const E1 e1 ) { timer_.toc(); times_.push_back(timer_.elapsedTime()); values_.push_back(value); bounds_.push_back(bound); this->pushBackStringLogData(name1,e1); iterations_.push_back(visitNumber_); timer_.reset(); if(verbose_) { if(multiline_) PrintFormated<true>::printAtEnd(visitNumber_,value,bound,name1,e1); else PrintFormated<false>::printAtEnd(visitNumber_, value, bound,name1,e1); }; } template<class INFERENCE_TYPE> template<class T1,class T2,class E1,class E2> inline void VisitorImplementation<INFERENCE_TYPE,TimingVisitor>::endVisit ( T1 value , T2 bound , const std::string & name1, const E1 e1, const std::string & name2, const E2 e2 ) { timer_.toc(); times_.push_back(timer_.elapsedTime()); values_.push_back(value); bounds_.push_back(bound); this->pushBackStringLogData(name1,e1); this->pushBackStringLogData(name2,e2); iterations_.push_back(visitNumber_); timer_.reset(); if(verbose_) { if(multiline_) PrintFormated<true>::printAtEnd(visitNumber_,value,bound,name1,e1,name2,e2); else PrintFormated<false>::printAtEnd(visitNumber_, value, bound,name1,e1,name2,e2); }; } template<class INFERENCE_TYPE,class VISITOR_TYPE> Visitor<INFERENCE_TYPE,VISITOR_TYPE>::Visitor() : VisitorImplementation<INFERENCE_TYPE,VISITOR_TYPE>() { } template<class INFERENCE_TYPE,class VISITOR_TYPE> inline void Visitor<INFERENCE_TYPE,VISITOR_TYPE>::operator()() { const typename INFERENCE_TYPE::ValueType n= INFERENCE_TYPE::AccumulationType:: template neutral<typename INFERENCE_TYPE::ValueType>(); const typename INFERENCE_TYPE::ValueType in= INFERENCE_TYPE::AccumulationType:: template ineutral<typename INFERENCE_TYPE::ValueType>(); this->visit(n,in); } template<class INFERENCE_TYPE,class VISITOR_TYPE> inline void Visitor<INFERENCE_TYPE,VISITOR_TYPE>::operator() ( const INFERENCE_TYPE & inference ) { this->visit(inference); } template<class INFERENCE_TYPE,class VISITOR_TYPE> template<class T1> inline void Visitor<INFERENCE_TYPE,VISITOR_TYPE>::operator() ( const INFERENCE_TYPE & inference, const T1 value ) { const typename INFERENCE_TYPE::ValueType in= INFERENCE_TYPE::AccumulationType:: template ineutral<typename INFERENCE_TYPE::ValueType>(); this->visit(value,in); } template<class INFERENCE_TYPE,class VISITOR_TYPE> template<class T1,class T2> inline void Visitor<INFERENCE_TYPE,VISITOR_TYPE>::operator() ( const INFERENCE_TYPE & inference, const T1 value, const T2 bound ) { this->visit(value,bound); } template<class INFERENCE_TYPE,class VISITOR_TYPE> template<class T1,class T2,class T3> inline void Visitor<INFERENCE_TYPE,VISITOR_TYPE>::operator() ( const INFERENCE_TYPE & inference, const T1 value, const T2 bound, const T3 & a3 ) { this->visit(value,bound); } template<class INFERENCE_TYPE,class VISITOR_TYPE> template<class T1,class T2,class T3,class T4> inline void Visitor<INFERENCE_TYPE,VISITOR_TYPE>::operator() ( const INFERENCE_TYPE & inference, const T1 value, const T2 bound, const T3 & a3, const T4 & a4 ) { this->visit(value,bound); } template<class INFERENCE_TYPE,class VISITOR_TYPE> template<class T1,class T2,class T3,class T4,class T5> inline void Visitor<INFERENCE_TYPE,VISITOR_TYPE>::operator() ( const INFERENCE_TYPE & inference, const T1 value, const T2 bound, const T3 & a3, const T4 & a4, const T5 & a5 ) { this->visit(value,bound); } template<class INFERENCE_TYPE,class VISITOR_TYPE> template<class T1,class T2,class T3,class T4,class T5,class T6> inline void Visitor<INFERENCE_TYPE,VISITOR_TYPE>::operator() ( const INFERENCE_TYPE & inference, const T1 value, const T2 bound, const T3 & a3, const T4 & a4, const T5 & a5, const T6 & a6 ) { this->visit(value,bound); } template<class INFERENCE_TYPE,class VISITOR_TYPE> template<class T1,class T2,class T3,class T4,class T5,class T6,class T7> inline void Visitor<INFERENCE_TYPE,VISITOR_TYPE>::operator() ( const INFERENCE_TYPE & inference, const T1 value, const T2 bound, const T3 & a3, const T4 & a4, const T5 & a5, const T6 & a6, const T7 & a7 ) { this->visit(value,bound); } template<class INFERENCE_TYPE,class VISITOR_TYPE> template<class T1,class T2,class T3,class T4,class T5,class T6,class T7,class T8> inline void Visitor<INFERENCE_TYPE,VISITOR_TYPE>::operator() ( const INFERENCE_TYPE & inference, const T1 value, const T2 bound, const T3 & a3, const T4 & a4, const T5 & a5, const T6 & a6, const T7 & a7, const T8 & a8 ) { this->visit(value,bound); } template<class INFERENCE_TYPE,class VISITOR_TYPE> template<class T1,class T2,class T3,class T4,class T5,class T6,class T7,class T8,class T9> inline void Visitor<INFERENCE_TYPE,VISITOR_TYPE>::operator() ( const INFERENCE_TYPE & inference, const T1 value, const T2 bound, const T3 & a3, const T4 & a4, const T5 & a5, const T6 & a6, const T7 & a7, const T8 & a8, const T9 & a9 ) { this->visit(value,bound); } template<class INFERENCE_TYPE,class VISITOR_TYPE> inline void Visitor<INFERENCE_TYPE,VISITOR_TYPE>::begin() { const typename INFERENCE_TYPE::ValueType n= INFERENCE_TYPE::AccumulationType:: template neutral<typename INFERENCE_TYPE::ValueType>(); const typename INFERENCE_TYPE::ValueType in= INFERENCE_TYPE::AccumulationType:: template ineutral<typename INFERENCE_TYPE::ValueType>(); this->beginVisit(n,in); } template<class INFERENCE_TYPE,class VISITOR_TYPE> inline void Visitor<INFERENCE_TYPE,VISITOR_TYPE>::begin ( const INFERENCE_TYPE & inference ) { this->beginVisit(inference); } template<class INFERENCE_TYPE,class VISITOR_TYPE> template<class T1> inline void Visitor<INFERENCE_TYPE,VISITOR_TYPE>::begin ( const INFERENCE_TYPE & inference, const T1 value ) { const typename INFERENCE_TYPE::ValueType in= INFERENCE_TYPE::AccumulationType:: template ineutral<typename INFERENCE_TYPE::ValueType>(); this->begin(value,in); } template<class INFERENCE_TYPE,class VISITOR_TYPE> template<class T1,class T2> inline void Visitor<INFERENCE_TYPE,VISITOR_TYPE>::begin ( const INFERENCE_TYPE & inference, const T1 value, const T2 bound ) { this->beginVisit(value,bound); } template<class INFERENCE_TYPE,class VISITOR_TYPE> template<class T1,class T2,class T3> inline void Visitor<INFERENCE_TYPE,VISITOR_TYPE>::begin ( const INFERENCE_TYPE & inference, const T1 value, const T2 bound, const T3 & a3 ) { this->beginVisit(value,bound); } template<class INFERENCE_TYPE,class VISITOR_TYPE> template<class T1,class T2,class T3,class T4> inline void Visitor<INFERENCE_TYPE,VISITOR_TYPE>::begin ( const INFERENCE_TYPE & inference, const T1 value, const T2 bound, const T3 & a3, const T4 & a4 ) { this->beginVisit(value,bound); } template<class INFERENCE_TYPE,class VISITOR_TYPE> template<class T1,class T2,class T3,class T4,class T5> inline void Visitor<INFERENCE_TYPE,VISITOR_TYPE>::begin ( const INFERENCE_TYPE & inference, const T1 value, const T2 bound, const T3 & a3, const T4 & a4, const T5 & a5 ) { this->beginVisit(value,bound); } template<class INFERENCE_TYPE,class VISITOR_TYPE> template<class T1,class T2,class T3,class T4,class T5,class T6> inline void Visitor<INFERENCE_TYPE,VISITOR_TYPE>::begin ( const INFERENCE_TYPE & inference, const T1 value, const T2 bound, const T3 & a3, const T4 & a4, const T5 & a5, const T6 & a6 ) { this->beginVisit(value,bound); } template<class INFERENCE_TYPE,class VISITOR_TYPE> template<class T1,class T2,class T3,class T4,class T5,class T6,class T7> inline void Visitor<INFERENCE_TYPE,VISITOR_TYPE>::begin ( const INFERENCE_TYPE & inference, const T1 value, const T2 bound, const T3 & a3, const T4 & a4, const T5 & a5, const T6 & a6, const T7 & a7 ) { this->beginVisit(value,bound); } template<class INFERENCE_TYPE,class VISITOR_TYPE> template<class T1,class T2,class T3,class T4,class T5,class T6,class T7,class T8> inline void Visitor<INFERENCE_TYPE,VISITOR_TYPE>::begin ( const INFERENCE_TYPE & inference, const T1 value, const T2 bound, const T3 & a3, const T4 & a4, const T5 & a5, const T6 & a6, const T7 & a7, const T8 & a8 ) { this->beginVisit(value,bound); } template<class INFERENCE_TYPE,class VISITOR_TYPE> template<class T1,class T2,class T3,class T4,class T5,class T6,class T7,class T8,class T9> inline void Visitor<INFERENCE_TYPE,VISITOR_TYPE>::begin ( const INFERENCE_TYPE & inference, const T1 value, const T2 bound, const T3 & a3, const T4 & a4, const T5 & a5, const T6 & a6, const T7 & a7, const T8 & a8, const T9 & a9 ) { this->beginVisit(value,bound); } template<class INFERENCE_TYPE,class VISITOR_TYPE> inline void Visitor<INFERENCE_TYPE,VISITOR_TYPE>::end() { const typename INFERENCE_TYPE::ValueType n= INFERENCE_TYPE::AccumulationType:: template neutral<typename INFERENCE_TYPE::ValueType>(); const typename INFERENCE_TYPE::ValueType in= INFERENCE_TYPE::AccumulationType:: template ineutral<typename INFERENCE_TYPE::ValueType>(); this->endVisit(n,in); } template<class INFERENCE_TYPE,class VISITOR_TYPE> inline void Visitor<INFERENCE_TYPE,VISITOR_TYPE>::end ( const INFERENCE_TYPE & inference ) { this->endVisit(inference); } template<class INFERENCE_TYPE,class VISITOR_TYPE> template<class T1> inline void Visitor<INFERENCE_TYPE,VISITOR_TYPE>::end ( const INFERENCE_TYPE & inference, const T1 value ) { const typename INFERENCE_TYPE::ValueType in= INFERENCE_TYPE::AccumulationType:: template ineutral<typename INFERENCE_TYPE::ValueType>(); this->endVisit(value,in); } template<class INFERENCE_TYPE,class VISITOR_TYPE> template<class T1,class T2> inline void Visitor<INFERENCE_TYPE,VISITOR_TYPE>::end ( const INFERENCE_TYPE & inference, const T1 value, const T2 bound ) { this->endVisit(value,bound); } template<class INFERENCE_TYPE,class VISITOR_TYPE> template<class T1,class T2,class T3> inline void Visitor<INFERENCE_TYPE,VISITOR_TYPE>::end ( const INFERENCE_TYPE & inference, const T1 value, const T2 bound, const T3 & a3 ) { this->endVisit(value,bound); } template<class INFERENCE_TYPE,class VISITOR_TYPE> template<class T1,class T2,class T3,class T4> inline void Visitor<INFERENCE_TYPE,VISITOR_TYPE>::end ( const INFERENCE_TYPE & inference, const T1 value, const T2 bound, const T3 & a3, const T4 & a4 ) { this->endVisit(value,bound); } template<class INFERENCE_TYPE,class VISITOR_TYPE> template<class T1,class T2,class T3,class T4,class T5> inline void Visitor<INFERENCE_TYPE,VISITOR_TYPE>::end ( const INFERENCE_TYPE & inference, const T1 value, const T2 bound, const T3 & a3, const T4 & a4, const T5 & a5 ) { this->endVisit(value,bound); } template<class INFERENCE_TYPE,class VISITOR_TYPE> template<class T1,class T2,class T3,class T4,class T5,class T6> inline void Visitor<INFERENCE_TYPE,VISITOR_TYPE>::end ( const INFERENCE_TYPE & inference, const T1 value, const T2 bound, const T3 & a3, const T4 & a4, const T5 & a5, const T6 & a6 ) { this->endVisit(value,bound); } template<class INFERENCE_TYPE,class VISITOR_TYPE> template<class T1,class T2,class T3,class T4,class T5,class T6,class T7> inline void Visitor<INFERENCE_TYPE,VISITOR_TYPE>::end ( const INFERENCE_TYPE & inference, const T1 value, const T2 bound, const T3 & a3, const T4 & a4, const T5 & a5, const T6 & a6, const T7 & a7 ) { this->endVisit(value,bound); } template<class INFERENCE_TYPE,class VISITOR_TYPE> template<class T1,class T2,class T3,class T4,class T5,class T6,class T7,class T8> inline void Visitor<INFERENCE_TYPE,VISITOR_TYPE>::end ( const INFERENCE_TYPE & inference, const T1 value, const T2 bound, const T3 & a3, const T4 & a4, const T5 & a5, const T6 & a6, const T7 & a7, const T8 & a8 ) { this->endVisit(value,bound); } template<class INFERENCE_TYPE,class VISITOR_TYPE> template<class T1,class T2,class T3,class T4,class T5,class T6,class T7,class T8,class T9> inline void Visitor<INFERENCE_TYPE,VISITOR_TYPE>::end ( const INFERENCE_TYPE & inference, const T1 value, const T2 bound, const T3 & a3, const T4 & a4, const T5 & a5, const T6 & a6, const T7 & a7, const T8 & a8, const T9 & a9 ) { this->endVisit(value,bound); } } // namespace detail_visitor /// \endond } // namespace opengm #endif
7524464849fd5f043e74a7a45f994dbad6b4e5f2
2c8b8c6214b551d5904c49d97a13aabf31dc2263
/Dynamic_Programming/8_tile_cover.cpp
a9fbd1a18b74eff709270cb3461a2996442bdfcd
[]
no_license
rain150403/coding
a33d41d2de4bc6af1827c1e8f1eeb30b3b6787cf
60188b6cb92855f25c50d5dabf764ab9930c277f
refs/heads/master
2022-01-07T22:41:39.776842
2019-05-22T05:18:29
2019-05-22T05:18:29
105,221,183
0
0
null
null
null
null
UTF-8
C++
false
false
5,323
cpp
8_tile_cover.cpp
/* 编程之美中题目: 某年夏天,位于希格玛大厦四层的微软亚洲研究院对办公楼的天井进行了一次大 规模的装修.原来的地板铺有 N×M 块正方形瓷砖,这些瓷砖都已经破损老化了,需要予以 更新.装修工人们在前往商店选购新的瓷砖时,发现商店目前只供应长方形的瓷砖,现在的 一块长方形瓷砖相当于原来的两块正方形瓷砖, 工人们拿不定主意该买多少了, 读者朋友们 请帮忙分析一下:能否用 1×2 的瓷砖去覆盖 N×M 的地板呢? */ //这个题目类属于状态压缩DP,对于状态压缩DP,其实最简单的理解就是把状态用比特位的形式表示出来。 //方法一: /*#include <stdio.h> #include <memory.h> #include <math.h> #include <algorithm> using namespace std; #define MAX_ROW 11 #define MAX_STATUS 2048 long long DP[MAX_ROW][MAX_STATUS]; int g_Width, g_Height; bool TestFirstLine( int nStatus )//test the first line { int i = 0; while( i < g_Width ){ if( nStatus & ( 0x1 << i ) ){ if( i == g_Width - 1 || ( nStatus & ( 0x1 << ( i + 1 ) ) ) == 0 ){ return false; } i += 2; } else { i++; } } return true; } bool CompatablityTest( int nStatusA, int nStatusB ) { // test if status ( i, nStatusA ) and ( i - 1, nStatusB ) is compatable. int i = 0; while( i < g_Width ){ if( ( nStatusA & ( 0x1 << i ) ) == 0 ){ if( ( nStatusB & ( 0x1 << i ) ) == 0 ){ return false; } i++; } else{ if( ( nStatusB & ( 0x1 << i ) ) == 0 ){ i++; } else if( ( i == g_Width - 1 ) || !( ( nStatusA & ( 0x1 << ( i+1 ) ) ) && ( nStatusB & ( 0x1 << ( i+1 ) ) ) ) ){ return false; } else{ i += 2; } } } return true; } int main(){ int i, j; int k; while( scanf( "%d%d", &g_Height, &g_Width ) != EOF ){ if( g_Width == 0 && g_Height == 0 ){ break; } if( g_Width > g_Height ){ swap( g_Width, g_Height ); } int nAllStatus = 2 << ( g_Width-1 ); memset( DP, 0, sizeof(DP) ); for( j = 0; j < nAllStatus; j++ ){ if( TestFirstLine(j) ){ DP[0][j] = 1; } } for( i = 1; i < g_Height; i++ ){ for( j = 0; j < nAllStatus; j++ ){ // iterate all status for line i for( k = 0; k < nAllStatus; k++ ){ // iterate all status for line i-1 if( CompatablityTest(j, k) ){ DP[i][j] += DP[i-1][k]; } } } } printf( " %lld\n", DP[g_Height-1][nAllStatus-1] ); } return 0; }*/ /* 瓷砖覆盖(状态压缩DP) 难度评级:★★★ 用1*2的瓷砖覆盖n*m的地板,问共有多少种覆盖方式? 解法: 分析子结构,按行铺瓷砖。一块1*2瓷砖,横着放对下一行的状态没有影响;竖着放时,下一行的对应一格就会被占用。因此,考虑第i行的铺法时只需考虑由第i-1行 造成的条件限制。枚举第i-1行状态即可获得i行可能的状态,这里为了与链接一文一致,第i-1行的某格只有两个状态:空着或者放置。空表示第i行对应位置需要放置 一个竖着的瓷砖,这时在铺第i行时, 除去限制以外,只需考虑放还是不放横着的瓷砖这2种情况即可(不必分为放还是不放,横到下一层还是竖着一共四种)。 同时对于第i-1行的放法, 用二进制中的0和1表示有无瓷砖,那么按位取反恰好就是第i行的限制条件。 */ //方法二: #include <stdio.h> #include <string.h> int n, m; long long dp[12][2049]; ///64 void dfs( int row, int state, int pos, long long pre_num ){ ///64 if( pos == m ) { dp[row][state] += pre_num; return; } dfs( row, state, pos+1, pre_num ); if( ( pos <= m-2 ) && !( state & ( 1 << pos ) ) && !( state & ( 1 << ( pos + 1 ) ) ) ) dfs( row, state | ( 1 << pos ) | ( 1 << ( pos + 1 ) ), pos + 2, pre_num ); } int main(){ while( scanf( "%d%d", &n, &m ) && ( n || m ) ){ if( n < m ){ n = n ^ m; m = n ^ m; n = n ^ m; } memset( dp, 0, sizeof( dp ) ); dfs( 1, 0, 0, 1 ); for( int i = 2; i <= n; i++ ) for( int j = 0; j < ( 1 << m ); j++ ){ if( dp[i-1][j] ){ long long tmp = dp[i-1][j]; ///int64 dfs( i, (~j) & ( ( 1 << m ) - 1 ), 0, tmp ); } else continue; } printf( "%lld\n", dp[n][( 1 << m ) - 1] ); ///64 } return 0; } //结果: /*********************************************/ /* /home/wmm/CLionProjects/hiho30/cmake-build-debug/hiho30 1 2 1 2 3 3 3 4 11 4 5 95 5 6 1183 6 7 31529 7 8 1292697 8 9 108435745 9 10 14479521761 10 11 3852472573499 11 12 Process finished with exit code 139 (interrupted by signal 11: SIGSEGV) */ /************************************************************/
d824520ffff4cc4e4641d84284cd7010a11f0b80
aef4c847697d7948fbbd73674c73191efff2e359
/isode++/code/iso/itu/osi/als/ssap/serv/AbortRequest.h
ffbae6b0c796d3ec2e313c23916bdcb5146d8ed6
[ "Apache-2.0" ]
permissive
Kampbell/ISODE
a80682dab1ee293a2711a687fc10660aae546933
37f161e65f11348ef6fca2925d399d611df9f31b
refs/heads/develop
2021-01-10T15:56:44.788906
2016-03-19T11:00:15
2016-03-19T11:00:15
52,000,870
8
0
null
null
null
null
UTF-8
C++
false
false
561
h
AbortRequest.h
/* * AbortRequest.h * * Created on: 31 juil. 2014 * Author: FrancisANDRE */ #ifndef ALS_SSAP_SERV_ABORTREQUEST_H_ #define ALS_SSAP_SERV_ABORTREQUEST_H_ #include "als/base/serv/Request.h" using ALS::BASE::SERV::Request; namespace ALS { namespace SSAP { namespace SERV { class AbortRequest : public virtual Request { public: ~AbortRequest() {} /** * S-U-ABORT.REQUEST. * * @param data the data from peer * * @return the return code */ virtual ReturnCode SUAbortRequest(int cc = 0, const void* data = nullptr) = 0; }; } } } #endif
4b315aba2fdcc568025fcee68c47e2653ea3b84a
afb7006e47e70c1deb2ddb205f06eaf67de3df72
/gfx/ots/src/hdmx.cc
b1dd43ebe406bc3fdb5cbb181c841ab129b13026
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
marco-c/gecko-dev-wordified
a66383f85db33911b6312dd094c36f88c55d2e2c
3509ec45ecc9e536d04a3f6a43a82ec09c08dff6
refs/heads/master
2023-08-10T16:37:56.660204
2023-08-01T00:39:54
2023-08-01T00:39:54
211,297,590
1
0
null
null
null
null
UTF-8
C++
false
false
3,943
cc
hdmx.cc
/ / Copyright ( c ) 2009 - 2017 The OTS Authors . All rights reserved . / / Use of this source code is governed by a BSD - style license that can be / / found in the LICENSE file . # include " hdmx . h " # include " head . h " # include " maxp . h " / / hdmx - Horizontal Device Metrics / / http : / / www . microsoft . com / typography / otspec / hdmx . htm namespace ots { bool OpenTypeHDMX : : Parse ( const uint8_t * data size_t length ) { Buffer table ( data length ) ; OpenTypeMAXP * maxp = static_cast < OpenTypeMAXP * > ( GetFont ( ) - > GetTypedTable ( OTS_TAG_MAXP ) ) ; OpenTypeHEAD * head = static_cast < OpenTypeHEAD * > ( GetFont ( ) - > GetTypedTable ( OTS_TAG_HEAD ) ) ; if ( ! head | | ! maxp ) { return Error ( " Missing maxp or head tables in font needed by hdmx " ) ; } if ( ( head - > flags & 0x14 ) = = 0 ) { / / http : / / www . microsoft . com / typography / otspec / recom . htm # hdmx return Drop ( " the table should not be present when bit 2 and 4 of the " " head - > flags are not set " ) ; } int16_t num_recs ; if ( ! table . ReadU16 ( & this - > version ) | | ! table . ReadS16 ( & num_recs ) | | ! table . ReadS32 ( & this - > size_device_record ) ) { return Error ( " Failed to read table header " ) ; } if ( this - > version ! = 0 ) { return Drop ( " Unsupported version : % u " this - > version ) ; } if ( num_recs < = 0 ) { return Drop ( " Bad numRecords : % d " num_recs ) ; } const int32_t actual_size_device_record = maxp - > num_glyphs + 2 ; if ( this - > size_device_record < actual_size_device_record ) { return Drop ( " Bad sizeDeviceRecord : % d " this - > size_device_record ) ; } this - > pad_len = this - > size_device_record - actual_size_device_record ; if ( this - > pad_len > 3 ) { return Error ( " Bad DeviceRecord padding % d " this - > pad_len ) ; } uint8_t last_pixel_size = 0 ; this - > records . reserve ( num_recs ) ; for ( int i = 0 ; i < num_recs ; + + i ) { OpenTypeHDMXDeviceRecord rec ; if ( ! table . ReadU8 ( & rec . pixel_size ) | | ! table . ReadU8 ( & rec . max_width ) ) { return Error ( " Failed to read DeviceRecord % d " i ) ; } if ( ( i ! = 0 ) & & ( rec . pixel_size < = last_pixel_size ) ) { return Drop ( " DeviceRecord ' s are not sorted " ) ; } last_pixel_size = rec . pixel_size ; rec . widths . reserve ( maxp - > num_glyphs ) ; for ( unsigned j = 0 ; j < maxp - > num_glyphs ; + + j ) { uint8_t width ; if ( ! table . ReadU8 ( & width ) ) { return Error ( " Failed to read glyph width % d in DeviceRecord % d " j i ) ; } rec . widths . push_back ( width ) ; } if ( ( this - > pad_len > 0 ) & & ! table . Skip ( this - > pad_len ) ) { return Error ( " DeviceRecord % d should be padded by % d " i this - > pad_len ) ; } this - > records . push_back ( rec ) ; } return true ; } bool OpenTypeHDMX : : ShouldSerialize ( ) { return Table : : ShouldSerialize ( ) & & / / this table is not for CFF fonts . GetFont ( ) - > GetTable ( OTS_TAG_GLYF ) ! = NULL ; } bool OpenTypeHDMX : : Serialize ( OTSStream * out ) { const int16_t num_recs = static_cast < int16_t > ( this - > records . size ( ) ) ; if ( this - > records . size ( ) > static_cast < size_t > ( std : : numeric_limits < int16_t > : : max ( ) ) | | ! out - > WriteU16 ( this - > version ) | | ! out - > WriteS16 ( num_recs ) | | ! out - > WriteS32 ( this - > size_device_record ) ) { return Error ( " Failed to write table header " ) ; } for ( int16_t i = 0 ; i < num_recs ; + + i ) { const OpenTypeHDMXDeviceRecord & rec = this - > records [ i ] ; if ( ! out - > Write ( & rec . pixel_size 1 ) | | ! out - > Write ( & rec . max_width 1 ) | | ! out - > Write ( & rec . widths [ 0 ] rec . widths . size ( ) ) ) { return Error ( " Failed to write DeviceRecord % d " i ) ; } if ( ( this - > pad_len > 0 ) & & ! out - > Write ( ( const uint8_t * ) " \ x00 \ x00 \ x00 " this - > pad_len ) ) { return Error ( " Failed to write padding of length % d " this - > pad_len ) ; } } return true ; } } / / namespace ots
f99f6a9e4172bc13fa37bbce19c899e67922f9eb
a0c208a0186554eb58895d546cece93b7f6d6c97
/InsertNodeAtASpecifiedPositionInALinkedList.cpp
bd4030809cdbbde9cf60c89f3c845064f3e12ea8
[]
no_license
justnisar/hacker-rank
536c628d58d7205b2670601481f68be16eab3d5d
0027b758d65407c5f048acd5593a97e33afb5f5d
refs/heads/master
2021-01-09T20:22:43.735697
2017-06-26T19:24:54
2017-06-26T19:24:54
60,649,655
0
0
null
null
null
null
UTF-8
C++
false
false
771
cpp
InsertNodeAtASpecifiedPositionInALinkedList.cpp
/* Insert Node at a given position in a linked list The linked list will not be empty and position will always be valid First element in the linked list is at position 0 Node is defined as struct Node { int data; struct Node *next; } */ Node* InsertNth(Node *head, int data, int position) { // Complete this method only // Do not write main function. struct Node *head1; head1 = new Node; head1->data = data; if(position == 0) { head1->next = head; return head1; } struct Node *current = head,*prev = NULL; while(position--) { prev = current; current = current->next; } head1->next = NULL; prev->next = head1; head1->next = current; return head; }
5c0273259801aecf0460ee20d218d599d3701063
2ef2a7d7e5b5c4a64c773b840c25075c45ea7c52
/unittest.cpp
637d9212e50158334ce0147910b65ff1dc158c8c
[]
no_license
SamaraFrey/neuronProgram
558a1dd617d68cb17d684af7b024fed5e526a453
208164357818704b07915b71e15671ee0587e8c3
refs/heads/master
2021-07-25T10:59:29.048259
2017-11-03T16:41:52
2017-11-03T16:41:52
null
0
0
null
null
null
null
UTF-8
C++
false
false
384
cpp
unittest.cpp
// // unittest.cpp // SV Project // // Created by Samara Frey on 03.11.17. // Copyright © 2017 Samara Frey. All rights reserved. // #include <stdio.h> #include <iostream> #include "neuron.hpp" #include "gtest/gtest.h" #include "constants.h" #include <cmath>; TEST (NeuronTest, MembranePotential){ Neuron neuron; neuron.update(1, 0); EXPECT_EQ((getMempot(),); }
863400f424b5c13a5ca05c1de3685e37f6914f41
a564a1595c001ad776c85013503754ba0416f3ab
/SpaceInvaders_Metier/scene.cpp
4868d1726aa9c406cd04540d351eb0e844a20222
[]
no_license
pc260533/SpaceInvaders
dc8ad32f56bb9a35487eae1f508ea52fec662c87
5a1cce7ccc3b3a1be73e8d492acbf2f8246d9f84
refs/heads/master
2022-11-10T17:44:57.624834
2020-06-24T13:05:40
2020-06-24T13:05:40
265,926,860
2
0
null
null
null
null
UTF-8
C++
false
false
2,266
cpp
scene.cpp
#include "scene.h" Scene::Scene() : QGraphicsScene(0, 0, 800, 600) { this->titre = "Space Invaders"; this->largeur = 800; this->hauteur = 600; this->getFontSpaceInvaders(); this->player = new QMediaPlayer(); } Scene::~Scene() { delete this->player; } int Scene::getHauteur() const { return hauteur; } int Scene::getLargeur() const { return largeur; } QFont Scene::getFontSpaceInvaders(){ if (QFontDatabase::applicationFontFamilies(0).empty()) { QFontDatabase::addApplicationFont(":/ressources/font/fonts/fontSpaceInvaders.ttf"); } QString family = QFontDatabase::applicationFontFamilies(0).at(0); return QFont(family); } void Scene::ajouterObjetSpaceInvadersPixmap(ObjetSpaceInvadersPixmap* objetSpaceInvadersPixmap) { this->addItem(objetSpaceInvadersPixmap); } void Scene::supprimerObjetSpaceInvadersPixmap(ObjetSpaceInvadersPixmap* objetSpaceInvadersPixmap) { this->removeItem(objetSpaceInvadersPixmap); } void Scene::ajouterObjetSpaceInvadersGroupe(ObjetSpaceInvadersGroupe* objetSpaceInvadersGroupe) { this->addItem(objetSpaceInvadersGroupe); } void Scene::supprimerObjetSpaceInvadersGroupe(ObjetSpaceInvadersGroupe* objetSpaceInvadersGroupe) { this->removeItem(objetSpaceInvadersGroupe); } void Scene::ajouterObjetSpaceInvadersTexte(ObjetSpaceInvadersTexte *objetSpaceInvadersTexte) { this->addItem(objetSpaceInvadersTexte); } void Scene::supprimerObjetSpaceInvadersTexte(ObjetSpaceInvadersTexte *objetSpaceInvadersTexte) { this->removeItem(objetSpaceInvadersTexte); } void Scene::supprimerTousLesItems() { for (QGraphicsItem* item : this->items()) { this->removeItem(item); delete item; } } void Scene::lancerMusiqueTheme() { if (!this->getCheminMusiqueTheme().isEmpty()) { this->player->setMedia(QUrl(this->getCheminMusiqueTheme())); this->player->play(); } } void Scene::stopperMusiqueTheme() { if (!this->getCheminMusiqueTheme().isEmpty()) { this->player->setMedia(QUrl(this->getCheminMusiqueTheme())); this->player->stop(); } } void Scene::initialiserScene() { this->initialiserArrierePlan(); this->initialiserObjetsJeu(); } void Scene::reinitialiserScene(){ this->clear(); }
41eb62495686aecf209d860784df2413f887186e
2887f846f66e2aa0233825610d6788abcc0555ac
/OBJ_Auto_SCAN/include/pointCloudProcessing/reconstruct/ConcaveHull.cpp
50fa8f2a1c5fd4424dd7153debe5c94b1f878f6e
[]
no_license
WSX741405/OBJ_Auto_Scan
4692e0861e2fcd2226e8c38184de85f7d43f8e6a
215294916c9c70eabaa425a073fd8ad007b69a41
HEAD
2018-07-13T10:40:10.446991
2018-06-20T07:49:01
2018-06-20T07:49:01
118,605,519
0
0
null
null
null
null
UTF-8
C++
false
false
1,463
cpp
ConcaveHull.cpp
#include "ConcaveHull.h" ConcaveHull::ConcaveHull() { _cloud.reset(new pcl::PointCloud<PointT>()); _alpha = 0.01; } void ConcaveHull::Processing(pcl::PointCloud<PointT>::Ptr cloud) { // Create a concave Hull representation of the projected inliers pcl::ConcaveHull<PointT> chull; chull.setInputCloud(cloud); chull.setAlpha(_alpha); chull.reconstruct(*_cloud); for (int counter = 0; counter < _cloud->size(); counter++) { _cloud->points[counter].r = 255; _cloud->points[counter].g = 255; _cloud->points[counter].b = 255; } } pcl::PolygonMeshPtr ConcaveHull::GetMesh() { return NULL; } pcl::PointCloud<PointT>::Ptr ConcaveHull::GetCloud() { return _cloud; } void ConcaveHull::SetSearchRadius(double searchRadius) { return; } void ConcaveHull::SetMu(double mu) { return; } void ConcaveHull::SetMaxNearestNeighbors(int maxNearestNeighbors) { return; } void ConcaveHull::SetMaxSurfaceAngle(double maxSurfaceAngle) { return; } void ConcaveHull::SetMinAngle(double minAngle) { return; } void ConcaveHull::SetMaxAngle(double maxAngle) { return; } void ConcaveHull::SetGridResolution(int gridResolutionX, int gridResolutionY, int gridResolutionZ) { return; } void ConcaveHull::SetIsoLevel(float isoLevel) { return; } void ConcaveHull::SetNormalSearchRadius(double normalSearchRadius) { return; } void ConcaveHull::SetReconstructDepth(int depth) { return; } void ConcaveHull::SetReconstructAlpha(double alpha) { _alpha = alpha; }
a3a51c910cb9f4765b3a6aeea1aed96476f5ae8f
47750365686d097ade42f71ff1c00783672c8670
/src/CodeTools/ResolvProtoDump.cc
f157e24c5890c7164a0ae3d48dc8aef5e76fa79b
[ "BSD-3-Clause" ]
permissive
cforall/cforall
5c380fe6b1dbb361acaca946afef420f322f30bd
3d410dfa484515e634d1c902f9a88143b57a8a60
refs/heads/master
2023-08-18T09:22:22.954701
2023-08-16T04:30:20
2023-08-16T04:30:20
139,628,817
56
1
null
null
null
null
UTF-8
C++
false
false
23,105
cc
ResolvProtoDump.cc
// // Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo // // The contents of this file are covered under the licence agreement in the // file "LICENCE" distributed with Cforall. // // ResolvProtoDump.cc -- Translates CFA resolver instances into resolv-proto instances // // Author : Aaron Moss // Created On : Tue Sep 11 09:04:00 2018 // Last Modified By : Peter A. Buhr // Last Modified On : Sat Feb 15 13:50:11 2020 // Update Count : 3 // #include <algorithm> #include <cctype> #include <iostream> #include <memory> #include <list> #include <set> #include <sstream> #include <string> #include <unordered_set> #include <utility> #include <vector> #include "Common/PassVisitor.h" #include "Common/utility.h" #include "CodeGen/OperatorTable.h" #include "SynTree/Declaration.h" #include "SynTree/Expression.h" #include "SynTree/Initializer.h" #include "SynTree/Statement.h" #include "SynTree/Type.h" namespace CodeTools { /// Visitor for dumping resolver prototype output class ProtoDump : public WithShortCircuiting, public WithVisitorRef<ProtoDump> { std::set<std::string> decls; ///< Declarations in this scope std::vector<std::string> exprs; ///< Expressions in this scope std::vector<ProtoDump> subs; ///< Sub-scopes std::unordered_set<std::string> closed; ///< Closed type variables const ProtoDump* parent; ///< Outer lexical scope std::unique_ptr<Type> rtnType; ///< Return type for this scope public: /// Default constructor for root ProtoDump ProtoDump() : decls(), exprs(), subs(), closed(), parent(nullptr), rtnType(nullptr) {} /// Child constructor ProtoDump(const ProtoDump* p, Type* r) : decls(), exprs(), subs(), closed(p->closed), parent(p), rtnType(r) {} // Fix copy issues ProtoDump(const ProtoDump& o) : decls(o.decls), exprs(o.exprs), subs(o.subs), closed(o.closed), parent(o.parent), rtnType(maybeClone(o.rtnType.get())) {} ProtoDump( ProtoDump&& ) = default; ProtoDump& operator= (const ProtoDump& o) { if ( this == &o ) return *this; decls = o.decls; exprs = o.exprs; subs = o.subs; closed = o.closed; parent = o.parent; rtnType.reset( maybeClone(o.rtnType.get()) ); return *this; } ProtoDump& operator= (ProtoDump&&) = delete; private: /// checks if this declaration is contained in the scope or one of its parents bool hasDecl( const std::string& s ) const { if ( decls.count( s ) ) return true; if ( parent ) return parent->hasDecl( s ); return false; } /// adds a new declaration to this scope, providing it does not already exist void addDecl( const std::string& s ) { if ( ! hasDecl( s ) ) decls.insert( s ); } /// adds a new expression to this scope void addExpr( const std::string& s ) { if ( ! s.empty() ) { exprs.emplace_back( s ); } } /// adds a new subscope to this scope, returning a reference void addSub( PassVisitor<ProtoDump>&& sub ) { subs.emplace_back( std::move(sub.pass) ); } /// Whether lists should be separated, terminated, or preceded by their separator enum septype { separated, terminated, preceded }; /// builds space-separated list of types template<typename V> static void build( V& visitor, const std::list< Type* >& tys, std::stringstream& ss, septype mode = separated ) { if ( tys.empty() ) return; if ( mode == preceded ) { ss << ' '; } auto it = tys.begin(); (*it)->accept( visitor ); while ( ++it != tys.end() ) { ss << ' '; (*it)->accept( visitor ); } if ( mode == terminated ) { ss << ' '; } } /// builds list of types wrapped as tuple type template<typename V> static void buildAsTuple( V& visitor, const std::list< Type* >& tys, std::stringstream& ss ) { switch ( tys.size() ) { case 0: ss << "#void"; break; case 1: tys.front()->accept( visitor ); break; default: ss << "#$" << tys.size() << '<'; build( visitor, tys, ss ); ss << '>'; break; } } /// gets types from DWT list static std::list< Type* > from_decls( const std::list< DeclarationWithType* >& decls ) { std::list< Type* > tys; for ( auto decl : decls ) { tys.emplace_back( decl->get_type() ); } return tys; } /// gets types from TypeExpr list static std::list< Type* > from_exprs( const std::list< Expression* >& exprs ) { std::list< Type* > tys; for ( auto expr : exprs ) { if ( TypeExpr* tyExpr = dynamic_cast<TypeExpr*>(expr) ) { tys.emplace_back( tyExpr->type ); } } return tys; } /// builds prefixes for rp_name static std::string new_prefix( const std::string& old, const char* added ) { if ( old.empty() ) return std::string{"$"} + added; return old + added; } /// shortens operator names static void op_name( const std::string& name, std::stringstream& ss ) { if ( name.compare( 0, 10, "_operator_" ) == 0 ) { ss << name.substr(10); } else if ( name.compare( "_constructor" ) == 0 || name.compare( "_destructor" ) == 0 ) { ss << name.substr(1); } else if ( name.compare( 0, 11, "__operator_" ) == 0 ) { ss << name.substr(11); } else { ss << name; } } /// replaces operators with resolv-proto names static void rp_name( const std::string& name, std::stringstream& ss, std::string&& pre = "" ) { // safety check for anonymous names if ( name.empty() ) { ss << new_prefix(pre, "anon"); return; } // replace operator names const CodeGen::OperatorInfo * opInfo = CodeGen::operatorLookup( name ); if ( opInfo ) { ss << new_prefix(pre, ""); op_name( opInfo->outputName, ss ); return; } // replace retval names if ( name.compare( 0, 8, "_retval_" ) == 0 ) { ss << new_prefix(pre, "rtn_"); op_name( name.substr(8), ss ); return; } // default to just name, with first character in lowercase ss << pre << (char)std::tolower( static_cast<unsigned char>(name[0]) ) << (name.c_str() + 1); } /// ensures type inst names are uppercase static void ti_name( const std::string& name, std::stringstream& ss ) { // replace built-in wide character types with named types if ( name == "char16_t" || name == "char32_t" || name == "wchar_t" ) { ss << "#" << name; return; } // strip leading underscore unsigned i = 0; while ( i < name.size() && name[i] == '_' ) { ++i; } if ( i == name.size() ) { ss << "Anon"; return; } std::string stripped = name.substr(i); // strip trailing "_generic_" from autogen names (avoids some user-generation issues) char generic[] = "_generic_"; size_t n_generic = sizeof(generic) - 1; if ( stripped.size() >= n_generic && stripped.substr( stripped.size() - n_generic ) == generic ) { stripped.resize( stripped.size() - n_generic ); } // uppercase first character ss << (char)std::toupper( static_cast<unsigned char>(stripped[0]) ) << (stripped.c_str() + 1); } /// Visitor for printing types struct TypePrinter : public WithShortCircuiting, WithVisitorRef<TypePrinter>, WithGuards { std::stringstream& ss; ///< Output to print to const std::unordered_set<std::string>& closed; ///< Closed type variables unsigned depth; ///< Depth of nesting from root type TypePrinter( const std::unordered_set<std::string>& closed, std::stringstream& ss ) : ss(ss), closed(closed), depth(0) {} // basic type represented as integer type // TODO maybe hard-code conversion graph and make named type void previsit( BasicType* bt ) { ss << (int)bt->get_kind(); } // pointers (except function pointers) represented as generic type void previsit( PointerType* pt ) { if ( ! dynamic_cast<FunctionType*>(pt->base) ) { ss << "#$ptr<"; ++depth; } } void postvisit( PointerType* pt ) { if ( ! dynamic_cast<FunctionType*>(pt->base) ) { --depth; ss << '>'; } } // arrays represented as generic pointers void previsit( ArrayType* at ) { ss << "#$ptr<"; ++depth; at->base->accept( *visitor ); --depth; ss << '>'; visit_children = false; } // ignore top-level reference types, they're mostly transparent to resolution void previsit( ReferenceType* ) { if ( depth > 0 ) { ss << "#$ref<"; } ++depth; } void postvisit( ReferenceType* ) { --depth; if ( depth > 0 ) { ss << '>'; } } // print function types using prototype syntax void previsit( FunctionType* ft ) { ss << '['; ++depth; build( *visitor, from_decls( ft->returnVals ), ss, preceded ); ss << " : "; build( *visitor, from_decls( ft->parameters ), ss, terminated ); --depth; ss << ']'; visit_children = false; } private: // prints aggregate type name as NamedType with optional paramters void handleAggregate( ReferenceToType* at ) { ss << '#' << at->name; if ( ! at->parameters.empty() ) { ss << '<'; ++depth; build( *visitor, from_exprs( at->parameters ), ss ); --depth; ss << '>'; } visit_children = false; } public: // handle aggregate types using NamedType void previsit( StructInstType* st ) { handleAggregate( st ); } void previsit( UnionInstType* ut ) { handleAggregate( ut ); } // replace enums with int void previsit( EnumInstType* ) { // TODO: add the meaningful representation of typed int ss << (int)BasicType::SignedInt; } void previsit( TypeInstType* vt ) { // print closed variables as named types if ( closed.count( vt->name ) ) { ss << '#' << vt->name; } // otherwise make sure first letter is capitalized else { ti_name( vt->name, ss ); } } // flattens empty and singleton tuples void previsit( TupleType* tt ) { ++depth; buildAsTuple( *visitor, tt->types, ss ); --depth; visit_children = false; } // TODO support variable args for functions void previsit( VarArgsType* ) { // only include varargs for top level (argument type) if ( depth == 0 ) { ss << "#$varargs"; } } // replace 0 and 1 with int // TODO support 0 and 1 with their proper type names and conversions void previsit( ZeroType* ) { ss << (int)BasicType::SignedInt; } void previsit( OneType* ) { ss << (int)BasicType::SignedInt; } // only print void type if not at top level void previsit( VoidType* ) { if ( depth > 0 ) { ss << "#void"; } } }; /// builds description of function void build( const std::string& name, FunctionType* fnTy, std::stringstream& ss ) { PassVisitor<TypePrinter> printTy{ closed, ss }; // print return values build( printTy, from_decls( fnTy->returnVals ), ss, terminated ); // print name rp_name( name, ss ); // print parameters build( printTy, from_decls( fnTy->parameters ), ss, preceded ); // print assertions for ( TypeDecl* tyvar : fnTy->forall ) { for ( DeclarationWithType* assn : tyvar->assertions ) { ss << " | "; build( assn->name, assn->get_type(), ss ); } } } /// builds description of a variable (falls back to function if function type) void build( const std::string& name, Type* ty, std::stringstream& ss ) { // ignore top-level references Type *norefs = ty->stripReferences(); // fall back to function declaration if function type if ( PointerType* pTy = dynamic_cast< PointerType* >(norefs) ) { if ( FunctionType* fnTy = dynamic_cast< FunctionType* >(pTy->base) ) { build( name, fnTy, ss ); return; } } else if ( FunctionType* fnTy = dynamic_cast< FunctionType* >(norefs) ) { build( name, fnTy, ss ); return; } // print variable declaration in prototype syntax PassVisitor<TypePrinter> printTy{ closed, ss }; norefs->accept( printTy ); ss << " &"; rp_name( name, ss ); } /// builds description of a field access void build( const std::string& name, AggregateDecl* agg, Type* ty, std::stringstream& ss ) { // ignore top-level references Type *norefs = ty->stripReferences(); // print access as new field name PassVisitor<TypePrinter> printTy{ closed, ss }; norefs->accept( printTy ); ss << ' '; rp_name( name, ss, "$field_" ); ss << " #" << agg->name; // handle type parameters if ( ! agg->parameters.empty() ) { ss << '<'; auto it = agg->parameters.begin(); while (true) { ti_name( (*it)->name, ss ); if ( ++it == agg->parameters.end() ) break; ss << ' '; } ss << '>'; } } /// Visitor for printing expressions struct ExprPrinter : WithShortCircuiting, WithVisitorRef<ExprPrinter> { // TODO change interface to generate multiple expression candidates const std::unordered_set<std::string>& closed; ///< set of closed type vars std::stringstream& ss; ///< Output to print to ExprPrinter( const std::unordered_set<std::string>& closed, std::stringstream& ss ) : closed(closed), ss(ss) {} /// Names handled as name expressions void previsit( NameExpr* expr ) { ss << '&'; rp_name( expr->name, ss ); } /// Handle already-resolved variables as type constants void previsit( VariableExpr* expr ) { PassVisitor<TypePrinter> tyPrinter{ closed, ss }; expr->var->get_type()->accept( tyPrinter ); visit_children = false; } /// Calls handled as calls void previsit( UntypedExpr* expr ) { // TODO handle name extraction more generally NameExpr* name = dynamic_cast<NameExpr*>(expr->function); // fall back on just resolving call to function name // TODO incorporate function type into resolv-proto if ( ! name ) { expr->function->accept( *visitor ); visit_children = false; return; } rp_name( name->name, ss ); if ( expr->args.empty() ) { ss << "()"; } else { ss << "( "; auto it = expr->args.begin(); while (true) { (*it)->accept( *visitor ); if ( ++it == expr->args.end() ) break; ss << ' '; } ss << " )"; } visit_children = false; } /// Already-resolved calls reduced to their type constant void previsit( ApplicationExpr* expr ) { PassVisitor<TypePrinter> tyPrinter{ closed, ss }; expr->result->accept( tyPrinter ); visit_children = false; } /// Address-of handled as operator void previsit( AddressExpr* expr ) { ss << "$addr( "; expr->arg->accept( *visitor ); ss << " )"; visit_children = false; } /// Casts replaced with result type /// TODO put cast target functions in, and add second expression for target void previsit( CastExpr* cast ) { PassVisitor<TypePrinter> tyPrinter{ closed, ss }; cast->result->accept( tyPrinter ); visit_children = false; } /// Member access handled as function from aggregate to member void previsit( UntypedMemberExpr* expr ) { // TODO handle name extraction more generally NameExpr* name = dynamic_cast<NameExpr*>(expr->member); // fall back on just resolving call to member name // TODO incorporate function type into resolv-proto if ( ! name ) { expr->member->accept( *visitor ); visit_children = false; return; } rp_name( name->name, ss, "$field_" ); ss << "( "; expr->aggregate->accept( *visitor ); ss << " )"; visit_children = false; } /// Constant expression replaced by its type void previsit( ConstantExpr* expr ) { PassVisitor<TypePrinter> tyPrinter{ closed, ss }; expr->constant.get_type()->accept( tyPrinter ); visit_children = false; } /// sizeof( ... ), alignof( ... ), offsetof( ... ) replaced by unsigned long constant /// TODO extra expression to resolve argument void previsit( SizeofExpr* ) { ss << (int)BasicType::LongUnsignedInt; visit_children = false; } void previsit( AlignofExpr* ) { ss << (int)BasicType::LongUnsignedInt; visit_children = false; } void previsit( UntypedOffsetofExpr* ) { ss << (int)BasicType::LongUnsignedInt; visit_children = false; } /// Logical expressions represented as operators void previsit( LogicalExpr* expr ) { ss << '$' << ( expr->get_isAnd() ? "and" : "or" ) << "( "; expr->arg1->accept( *visitor ); ss << ' '; expr->arg2->accept( *visitor ); ss << " )"; visit_children = false; } /// Conditional expression represented as operator void previsit( ConditionalExpr* expr ) { ss << "$if( "; expr->arg1->accept( *visitor ); ss << ' '; expr->arg2->accept( *visitor ); ss << ' '; expr->arg3->accept( *visitor ); ss << " )"; visit_children = false; } /// Comma expression represented as operator void previsit( CommaExpr* expr ) { ss << "$seq( "; expr->arg1->accept( *visitor ); ss << ' '; expr->arg2->accept( *visitor ); ss << " )"; visit_children = false; } // TODO handle ignored ImplicitCopyCtorExpr and below }; void build( Initializer* init, std::stringstream& ss ) { if ( SingleInit* si = dynamic_cast<SingleInit*>(init) ) { PassVisitor<ExprPrinter> exprPrinter{ closed, ss }; si->value->accept( exprPrinter ); ss << ' '; } else if ( ListInit* li = dynamic_cast<ListInit*>(init) ) { for ( Initializer* it : li->initializers ) { build( it, ss ); } } } /// Adds an object initializer to the list of expressions void build( const std::string& name, Initializer* init, std::stringstream& ss ) { ss << "$constructor( &"; rp_name( name, ss ); ss << ' '; build( init, ss ); ss << ')'; } /// Adds a return expression to the list of expressions void build( Type* rtnType, Expression* expr, std::stringstream& ss ) { ss << "$constructor( "; PassVisitor<TypePrinter> tyPrinter{ closed, ss }; rtnType->accept( tyPrinter ); ss << ' '; PassVisitor<ExprPrinter> exprPrinter{ closed, ss }; expr->accept( exprPrinter ); ss << " )"; } /// Adds all named declarations in a list to the local scope void addAll( const std::list<DeclarationWithType*>& decls ) { for ( auto decl : decls ) { // skip anonymous decls if ( decl->name.empty() ) continue; // handle objects if ( ObjectDecl* obj = dynamic_cast< ObjectDecl* >( decl ) ) { previsit( obj ); } } } /// encode field access as function void addAggregateFields( AggregateDecl* agg ) { // make field names functions for ( Declaration* member : agg->members ) { if ( ObjectDecl* obj = dynamic_cast< ObjectDecl* >(member) ) { std::stringstream ss; build( obj->name, agg, obj->type, ss ); addDecl( ss.str() ); } } visit_children = false; } public: void previsit( ObjectDecl *obj ) { // add variable as declaration std::stringstream ss; build( obj->name, obj->type, ss ); addDecl( ss.str() ); // add initializer as expression if applicable if ( obj->init ) { std::stringstream ss; build( obj->name, obj->init, ss ); addExpr( ss.str() ); } } void previsit( FunctionDecl *decl ) { // skip decls with ftype parameters for ( TypeDecl* tyvar : decl->type->forall ) { if ( tyvar->get_kind() == TypeDecl::Ftype ) { visit_children = false; return; } } // add function as declaration std::stringstream ss; build( decl->name, decl->type, ss ); addDecl( ss.str() ); // add body if available if ( decl->statements ) { std::list<Type*> rtns = from_decls( decl->type->returnVals ); Type* rtn = nullptr; if ( rtns.size() == 1 ) { if ( ! dynamic_cast<VoidType*>(rtns.front()) ) rtn = rtns.front()->clone(); } else if ( rtns.size() > 1 ) { rtn = new TupleType{ Type::Qualifiers{}, rtns }; } PassVisitor<ProtoDump> body{ this, rtn }; for ( TypeDecl* tyvar : decl->type->forall ) { // add set of "closed" types to body so that it can print them as NamedType body.pass.closed.insert( tyvar->name ); // add assertions to local scope as declarations as well for ( DeclarationWithType* assn : tyvar->assertions ) { assn->accept( body ); } } // add named parameters and returns to local scope body.pass.addAll( decl->type->returnVals ); body.pass.addAll( decl->type->parameters ); // add contents of function to new scope decl->statements->accept( body ); // store sub-scope addSub( std::move(body) ); } visit_children = false; } void previsit( StructDecl* sd ) { addAggregateFields(sd); } void previsit( UnionDecl* ud ) { addAggregateFields(ud); } void previsit( EnumDecl* ed ) { std::unique_ptr<Type> eType = std::make_unique<BasicType>( Type::Qualifiers{}, BasicType::SignedInt ); // add field names directly to enclosing scope for ( Declaration* member : ed->members ) { if ( ObjectDecl* obj = dynamic_cast< ObjectDecl* >(member) ) { previsit(obj); } } visit_children = false; } void previsit( ReturnStmt* stmt ) { // do nothing for void-returning functions or statements returning nothing if ( ! rtnType || ! stmt->expr ) return; // otherwise construct the return type from the expression std::stringstream ss; build( rtnType.get(), stmt->expr, ss ); addExpr( ss.str() ); visit_children = false; } void previsit( AsmStmt* ) { // skip asm statements visit_children = false; } void previsit( Expression* expr ) { std::stringstream ss; PassVisitor<ExprPrinter> exPrinter{ closed, ss }; expr->accept( exPrinter ); addExpr( ss.str() ); visit_children = false; } /// Print non-prelude global declarations for resolv proto void printGlobals() const { std::cout << "#$ptr<T> $addr T" << std::endl; // &? int i = (int)BasicType::SignedInt; std::cout << i << " $and " << i << ' ' << i << std::endl; // ?&&? std::cout << i << " $or " << i << ' ' << i << std::endl; // ?||? std::cout << "T $if " << i << " T T" << std::endl; // ternary operator std::cout << "T $seq X T" << std::endl; // ?,? } public: /// Prints this ProtoDump instance void print(unsigned indent = 0) const { // print globals at root level if ( ! parent ) printGlobals(); // print decls std::string tab( indent, '\t' ); for ( const std::string& d : decls ) { std::cout << tab << d << std::endl; } // print divider std::cout << '\n' << tab << "%%\n" << std::endl; // print top-level expressions for ( const std::string& e : exprs ) { std::cout << tab << e << std::endl; } // print child scopes ++indent; for ( const ProtoDump & s : subs ) { std::cout << tab << '{' << std::endl; s.print( indent ); std::cout << tab << '}' << std::endl; } } }; void dumpAsResolvProto( std::list< Declaration * > &translationUnit ) { PassVisitor<ProtoDump> dump; acceptAll( translationUnit, dump ); dump.pass.print(); } } // namespace CodeTools // Local Variables: // // tab-width: 4 // // mode: c++ // // compile-command: "make install" // // End: //
2d6042fa7c38383a67d1a17e453339c7e5150dc2
8d50a3ed7238c5f39b87b447cef0f980b74b4c6f
/Team01/Code01/source/PKB/Relationships/NextTable.cpp
ceeb42cafda5e46050741a62063a2bf09e844029
[]
no_license
blimyj/SPA
c3e49881bec59338e9adde8bc65977e59e7dcf51
1d56bf3378a4966683762d946420b7cec3a97dbe
refs/heads/master
2023-07-20T05:41:45.215730
2021-08-29T10:17:44
2021-08-29T10:17:44
402,119,068
0
0
null
null
null
null
UTF-8
C++
false
false
572
cpp
NextTable.cpp
#include "NextTable.h" void NextTable::addNext(STMT_NUM s1, STMT_NUM s2) { cfg_[s1].push_back(s2); addRelationship(s1, s2); } BOOLEAN_TYPE NextTable::isNext(STMT_NUM s1, STMT_NUM s2) { return isRelationship(s1, s2); } BOOLEAN_TYPE NextTable::isNextTransitive(STMT_NUM s1, STMT_NUM s2) { return isRelationshipTransitive(s1, s2); } STMT_NUM_LIST NextTable::getChildren(STMT_NUM s) { auto iter = cfg_.find(s); if (iter == cfg_.end()) { return {}; } return iter->second; } CFG NextTable::getControlFlowGraph() { return cfg_; }
284970461fdc8e489ab750ad6e0834de42ab4f61
b901084097ba1e4b4f988a86eaef558114a18ab4
/Includes/WoWMainFrame.h
fc22caaf18172002bf93038510a1a12b0aa1a9d7
[]
no_license
Abin-Liu/NiShiPower-app
032be49b1c3b6d36c483ea4b130d7311e578501b
3640c1f9af1c8cffcdd7f180a3c9742488341311
refs/heads/master
2020-03-20T19:19:05.470063
2018-06-10T09:11:37
2018-06-10T09:11:37
137,632,157
0
0
null
null
null
null
UTF-8
C++
false
false
1,482
h
WoWMainFrame.h
#ifndef __WOWMAINFRAME_H__ #define __WOWMAINFRAME_H__ #include "TrayFrameWnd.h" #include "WoWThread.h" #include "Shutdown.h" class CWoWMainFrame : public CTrayFrameWnd { public: CWoWMainFrame(); virtual ~CWoWMainFrame(); virtual void ScheduleShutdown(); BOOL IsShutdownScheduled() const; virtual BOOL RegisterPauseKey(); virtual BOOL UnregisterPauseKey(); void SetTitleIcon(LPCTSTR lpszTitle, UINT nIconResID); CString GetTitle() const; HICON GetIcon() const; virtual void SetThread(CWoWThread* pThread, BOOL bAutoDestroy = FALSE); CWoWThread* GetThread(); const CWoWThread* GetThread() const; protected: DECLARE_DYNCREATE(CWoWMainFrame) // Generated message map functions //{{AFX_MSG(CWoWMainFrame) afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnDestroy(); //}}AFX_MSG LRESULT OnHotKey(WPARAM wParam, LPARAM lParam); DECLARE_MESSAGE_MAP() protected: virtual void OnScheduleShutdown(); virtual void OnUpdateScheduleShutdown(CCmdUI* pCmdUI); virtual void OnStart() {} virtual void OnStop() {} virtual BOOL PreStart() { return TRUE; } virtual BOOL PreStop() { return TRUE; } virtual void OnTick(DWORD dwTickCount) {} virtual void OnThreadMessage(WPARAM wParam, LPARAM lParam) {} private: LRESULT _PreProcessThreadMsg(WPARAM wParam, LPARAM lParam); void _DestroyThread(); HICON m_hIcon; CString m_sTitle; CShutdown m_shutdown; CWoWThread* m_pThread; BOOL m_bDestroyThread; }; #endif // __WOWMAINFRAME_H__
cd6c10b2cc55f4c995e6e268172a512ee9514005
d655b54747775c2828bc70761d431e11bc8911d0
/中级算法/颜色分类.cpp
2947f09404355af99a3652720a9f83409f2b2b27
[]
no_license
ChangWenWu/Leetcode
1857e05ff406f9e15f8d0318ccdebc25b7b7574b
9b2899e12ab1a791fdd0acd2e5d83ddcaddc4a53
refs/heads/master
2021-07-20T02:35:43.726269
2018-11-29T03:24:37
2018-11-29T03:24:37
141,366,124
1
0
null
null
null
null
UTF-8
C++
false
false
571
cpp
颜色分类.cpp
// // 颜色分类.cpp // RxSwiftPlayground // // Created by Jarvis Wu on 2018/8/16. // Copyright © 2018年 Scott Gardner. All rights reserved. // #include <stdio.h> //三向切分快速排序 class Solution { public: void sortColors(vector<int>& nums) { int start = -1; int end = nums.size(); for(int i = 0; i < end;){ if(nums[i] == 1){ i++; continue; } if(nums[i] == 0)swap(nums[++start],nums[i++]); else swap(nums[--end],nums[i]); } } };
232f4317bbe79b44720b63772d353f9e8fd79fb7
b0045448da9dce16ccae487cac507a4a7adfdf55
/Assignment2/World.h
dc41585a8443cb47c232a321bd92aaa1f719b435
[]
no_license
TylerSeppala/Assignment4
c0df969e206e06d6a5127a03df4a5052278f8ba3
222c51d2bc54d300939c2e9d80c79ed912e960ef
refs/heads/master
2020-05-07T20:36:48.928168
2019-04-11T20:10:47
2019-04-11T20:10:47
180,868,788
0
0
null
null
null
null
UTF-8
C++
false
false
583
h
World.h
//Tyler Seppala //2297817 //seppala@chapman.edu //CPSC 350-02 //Assignment 2 (Game of Life) //Stores variable values of world class #include <iostream> using namespace std; class World { public: World(int width, int height, double density); World(string path); ~World(); void buildArray(int width, int height); void randomFill(); void fileFill(string path); void display(); void writeFile(string fileName); bool isEmpty(); int _generation; int _width; int _height; double population_density; char **currentMap; };
f2da2ff21f0c1d0e369319750d8f68793b223d78
91ab29e57b6e08132b6aa553655bb4ebe5bd848f
/Source/Pickup/PowerPickup.h
607471814e449e56a8314e70fb356a08330d7b6a
[ "Apache-2.0" ]
permissive
thatguyabass/Kill-O-Byte-Source
825bc779f0ed4c6ddff114ca16dbc95132a08373
0d4dfea226514161bb9799f55359f91da0998256
refs/heads/master
2020-04-11T06:50:11.707661
2016-09-13T01:57:52
2016-09-13T01:57:52
68,063,463
2
0
null
null
null
null
UTF-8
C++
false
false
484
h
PowerPickup.h
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "Utility/Utility.h" #include "Pickup/Pickup.h" #include "PowerPickup.generated.h" /** * */ UCLASS() class SNAKE_PROJECT_API APowerPickup : public APickup { GENERATED_BODY() public: APowerPickup(const class FObjectInitializer& PCIP); UPROPERTY(EditAnywhere, Category = "Pickup|PowerType") EPowerType PowerType; virtual void GiveTo(class ASnakeLink* Link) override; };
0547affb92ace39769f10b6aa80a79b36297e1f3
2b1b459706bbac83dad951426927b5798e1786fc
/zircon/system/ulib/syslog/global.cc
21803ea16b5d88c1212f4700821a4bdb231c067b
[ "BSD-2-Clause", "BSD-3-Clause", "MIT" ]
permissive
gnoliyil/fuchsia
bc205e4b77417acd4513fd35d7f83abd3f43eb8d
bc81409a0527580432923c30fbbb44aba677b57d
refs/heads/main
2022-12-12T11:53:01.714113
2022-01-08T17:01:14
2022-12-08T01:29:53
445,866,010
4
3
BSD-2-Clause
2022-10-11T05:44:30
2022-01-08T16:09:33
C++
UTF-8
C++
false
false
2,499
cc
global.cc
// Copyright 2018 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <lib/syslog/global.h> #include <lib/zx/process.h> #include <memory> #include "export.h" #include "fx_logger.h" #include "lib/syslog/logger.h" namespace syslog_internal { __WEAK bool HasStructuredBackend() { return false; } } // namespace syslog_internal namespace { fx_logger_t* MakeDefaultLogger() { char process_name[ZX_MAX_NAME_LEN] = ""; const char* tag = process_name; zx_status_t status = zx::process::self()->get_property(ZX_PROP_NAME, process_name, sizeof(process_name)); if (status != ZX_OK) process_name[0] = '\0'; fx_logger_config_t config = { .min_severity = FX_LOG_SEVERITY_DEFAULT, .tags = &tag, .num_tags = 1, }; fx_logger_t* logger = NULL; status = fx_logger_create_internal(&config, &logger); // Making the default logger should never fail. ZX_DEBUG_ASSERT(status == ZX_OK); return logger; } } // namespace fx_logger_t* get_or_create_global_logger() { // Upon initialization, the default logger is either provided with a // socket connection, or a fallback file-descriptor (which it will use) // or it will be initialized to log to STDERR. This object is constructed on // the first call to this function and will be leaked on shutdown. static fx_logger_t* logger = MakeDefaultLogger(); return logger; } SYSLOG_EXPORT fx_logger_t* fx_log_get_logger() { return get_or_create_global_logger(); } SYSLOG_EXPORT zx_status_t fx_log_reconfigure(const fx_logger_config_t* config) { fx_logger_t* logger = get_or_create_global_logger(); return logger->Reconfigure(config, config->log_sink_socket == ZX_HANDLE_INVALID); } SYSLOG_EXPORT bool fx_log_is_enabled(fx_log_severity_t severity) { fx_logger_t* logger = fx_log_get_logger(); return severity >= fx_logger_get_min_severity(logger); } SYSLOG_EXPORT fx_log_severity_t fx_log_severity_from_verbosity(uint8_t verbosity) { // verbosity scale sits in the interstitial space between INFO and DEBUG fx_log_severity_t severity = FX_LOG_INFO - (verbosity * FX_LOG_VERBOSITY_STEP_SIZE); if (severity < FX_LOG_DEBUG + 1) { return FX_LOG_DEBUG + 1; } return severity; } SYSLOG_EXPORT bool fx_vlog_is_enabled(uint8_t verbosity) { fx_logger_t* logger = fx_log_get_logger(); return logger && fx_log_severity_from_verbosity(verbosity) >= fx_logger_get_min_severity(logger); }
4a547d5f65f3d60cc62b7a6d1062c926727e44a5
2ebed88063c3a529bd17b93e4c535f4b9d5a2d55
/src/app/App.hpp
7dd86466269597de303dcaed219dc7d58b99ac8e
[]
no_license
v3c70r/encryptout
b1e4c437c14c50c8f70114fe73850ca9ecb71e12
f20f1f524b9d48603377bf06900cc836e093192d
refs/heads/master
2021-01-21T13:04:09.676072
2016-05-09T05:44:59
2016-05-09T05:44:59
48,630,976
3
0
null
null
null
null
UTF-8
C++
false
false
1,740
hpp
App.hpp
#pragma once #include "GPGPasswdManager.hpp" #include <random> /** * @brief A singletone class of application */ class App { public: static App& getInstance() { static App instance; return instance; } App(App const&) = delete; void operator=(App const&) = delete; void addRecord(const std::string& record, const std::string &fileName); void showRecord() const{ std::cout<<manager.dumpRecord();}; void loadEncrypt(const std::string& fileName){ manager.readEncrypted(fileName); } void selectKey(const size_t& idx){manager.selectKey(idx);}; void listKeys() const {manager.listKeys();}; private: GPGPasswdManager manager; App(){ LOG::restartLog(); } }; /** * @brief Generate random password from /dev/urandom, this function is experimental and requires polishing * * @param length length of password you want * * @return password string */ inline std::string generatePasswd(const size_t& length) { char cmd[] ="cat /dev/urandom | head -n 2 | tail -n 1| base64 "; FILE* pipe=fopen(cmd, "r"); if (!pipe) return "ERROR"; char buffer[128]; std::string result = ""; while (!feof(pipe)) { if (fgets(buffer, 128, pipe) != NULL) result += buffer; } fclose(pipe); return result.substr(result.size()-length, length); } inline void printPasswd() { char cmd[] ="cat /dev/urandom | head -n 2 | tail -n 1| base64 "; FILE *pipe=fopen(cmd, "r"); if (!pipe) throw std::runtime_error("Invalid pip"); char buffer[128]; std::string result = ""; while (!feof(pipe)) { if (fgets(buffer, 128, pipe) != NULL) result += buffer; } fclose(pipe); std::cout<<result; }
ef834d81155839c0f5c622c68a5a689245672283
701443531f99bf22a0fd8d2738ba90a35cbb4543
/libraries/schema/include/graphene/schema/schema_types/flat_map.hpp
2f5311b08339030df63e52851b008cf0bf7908c5
[ "MIT" ]
permissive
weyoume/wenode
bfa35cd08de370feae27d8acb27236a6c68a70c1
5e725aeaaa8aeecf626d235823684bd5744379f9
refs/heads/master
2022-09-14T22:05:31.503104
2019-01-28T10:00:02
2019-01-28T10:00:02
148,099,090
2
3
NOASSERTION
2019-01-21T05:50:53
2018-09-10T04:29:08
C++
UTF-8
C++
false
false
1,589
hpp
flat_map.hpp
#pragma once #include <graphene/schema/abstract_schema.hpp> #include <graphene/schema/schema_impl.hpp> #include <boost/container/flat_map.hpp> namespace graphene { namespace schema { namespace detail { ////////////////////////////////////////////// // flat_map // ////////////////////////////////////////////// template< typename K, typename V > struct schema_flat_map_impl : public abstract_schema { GRAPHENE_SCHEMA_CLASS_BODY( schema_flat_map_impl ) }; template< typename K, typename V > void schema_flat_map_impl< K, V >::get_deps( std::vector< std::shared_ptr< abstract_schema > >& deps ) { deps.push_back( get_schema_for_type<K>() ); deps.push_back( get_schema_for_type<V>() ); } template< typename K, typename V > void schema_flat_map_impl< K, V >::get_str_schema( std::string& s ) { if( str_schema != "" ) { s = str_schema; return; } std::vector< std::shared_ptr< abstract_schema > > deps; get_deps( deps ); std::string k_name, v_name; deps[0]->get_name(k_name); deps[1]->get_name(v_name); std::string my_name; get_name( my_name ); fc::mutable_variant_object mvo; mvo("name", my_name) ("type", "map") ("ktype", k_name) ("vtype", v_name) ; str_schema = fc::json::to_string( mvo ); s = str_schema; return; } } template< typename K, typename V, typename Compare, typename Allocator > struct schema_reflect< boost::container::flat_map< K, V, Compare, Allocator > > { typedef detail::schema_flat_map_impl< K, V > schema_impl_type; }; } }
221ed69ce44ce08d3ae46e6f07f96b12e75fe121
2b7a88b995d7c284c9e5340cf055aaf7e72bc2ff
/Compute/ParameterCompute/observedlinecompute.h
8a06f8231c3c18493e372ca9822f08eab6ac96f6
[]
no_license
rpdhunter/WindWalkerEarthing
8866c7728b2664046ab0ce3334048ad84b58c513
1f68fdf71099fef254c399fde3fc9907c93e4ac8
refs/heads/master
2021-06-05T08:22:38.789198
2016-09-29T00:29:55
2016-09-29T00:29:55
68,618,480
0
0
null
null
null
null
UTF-8
C++
false
false
740
h
observedlinecompute.h
#ifndef OBSERVEDLINECOMPUTE_H #define OBSERVEDLINECOMPUTE_H #include "stepcompute.h" #include "touchcompute.h" /////////////////////////////////////////////////////////// /// \计算观测线的类,由于使用了多重继承,使用了“虚基类”的高级技术 /////////////////////////////////////////////////////////// class ObservedLineCompute : public StepCompute, public TouchCompute { public: ObservedLineCompute(QList<Conductor> list, ComputDialog *computeDlg); void run(); private: void observedLine(); //观测线电位计算 void observedLine_R(); //观测线电位计算(模式3) void observedLine_Z(); //观测线电位计算(模式4) }; #endif // OBSERVEDLINECOMPUTE_H
2dae80cbc5f873eeaac829c1f775ef15bff2be5a
e5b8a4d038300c8d98361ebee439ab04ca8f0668
/third_party/streamDM/streamDM/streams/ArffReader.cpp
6acc2bedac91551f5717da6782319e5bba1903cb
[ "BSD-3-Clause" ]
permissive
scikit-ika/scikit-ika
5c48985893159f082ac0ec45cbb1c1aa139aa9c8
ae70e053e4f89b524415971bfb9180c98b1aadd9
refs/heads/master
2022-05-10T02:05:46.572973
2022-04-27T03:30:50
2022-04-27T03:30:50
211,992,306
15
3
BSD-3-Clause
2022-04-20T08:39:39
2019-10-01T01:41:49
Python
UTF-8
C++
false
false
11,103
cpp
ArffReader.cpp
/* * Copyright (C) 2015 Holmes Team at HUAWEI Noah's Ark Lab. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ #include "ArffReader.h" REGISTER_CLASS(ArffReader); REGISTER_COMMAND_LINE_PARAMETER(ArffReader, "{\"type\":\"Reader\"," "\"name\":\"ArffReader\"," "\"parameter\":{" "\"-d\":\"DynamicAttributes\"" "}}" ""); ArffReader::ArffReader() { this->mInstanceInformation = new InstanceInformation(); this->mFile = new ifstream(); this->mAttributes = nullptr; this->mDynamicAttributes = false; this->mHeaderLoaded = false; } ArffReader::~ArffReader() { renew(); delete mInstanceInformation; delete mFile; } void ArffReader::doSetParams() { this->mDynamicAttributes = (this->getParam("DynamicAttributes", 0) == 1); } ArffReader::LocalAttributes::LocalAttributes() { this->count = 0; } ArffReader::LocalAttributes::LocalAttributes(InstanceInformation* ii) { this->count = ii->getNumberInputAttributes() + 1; this->isNumeric.resize(this->count); for (int i = 0; i < this->count - 1; i++) { this->isNumeric[i] = ii->getInputAttribute(i)->isNumeric(); int numberAttributeValues = ii->getInputAttribute(i)->numberValues(); for (int j = 0; j < numberAttributeValues; j++) { this->values[i][ii->getInputAttribute(i)->getValue(j)] = j; } } this->isNumeric[this->count - 1] = false; int numberAttributeValues = ii->getNumberClasses(); for (int j = 0; j < numberAttributeValues; j++) { this->values[this->count - 1][ii->getOutputAttribute(0)->getValue(j)] = j; } } void ArffReader::LocalAttributes::saveToInstanceInformation( InstanceInformation*& ii) { for (unsigned int i = 0; i < values.size(); i++) { vector<string> vec; for (auto iter = values[i].begin(); iter != values[i].end(); iter++) { vec.push_back(iter->first); } if (i != values.size() - 1) { if (isNumeric[i]) { ii->addAttribute(new Attribute(), i); } else { ii->addAttribute(new Attribute(vec), i); } } else { ii->addClass(new Attribute(vec), 0); } } } double ArffReader::LocalAttributes::getIndex(const int& sequence, const string& value) { if (value == "?") { return NAN; } if (this->isNumeric[sequence]) { double continuousValue; sscanf(value.c_str(), "%lf", &continuousValue); return continuousValue; // return atof(value.c_str()); } else { if (this->values[sequence].find(value) != this->values[sequence].end()) { return this->values[sequence][value]; } else { return -1; // this condition must refresh the attributes, modify it later. } } } //void ArffReader::LocalAttributes::appendClass(const string& value){ // this->isNumeric.push_back(false); // this->count = this->isNumeric.size(); // // stringstream ss(value); // int counter = 0; // string item; // while(getline(ss, item, ',')) { // item.erase(0, item.find_first_not_of(" \r\n\t")); // item.erase(item.find_first_not_of(" \r\n\t")); // this->values[this->count-1][item] = counter; // counter++; // } // // this->isClassSaved = true; //} void ArffReader::LocalAttributes::appendNumericAttribute() { this->isNumeric.push_back(true); this->count = this->isNumeric.size(); } void ArffReader::LocalAttributes::appendDiscreteAttribute(const string& value) { this->isNumeric.push_back(false); this->count = this->isNumeric.size(); stringstream ss(value); int counter = 0; string item; while (getline(ss, item, ',')) { item.erase(0, item.find_first_not_of(" \r\n\t")); item.erase(item.find_last_not_of(" \r\n\t") + 1); this->values[this->count - 1][item] = counter; counter++; } } Instance* ArffReader::nextInstance() { if (!this->hasNextInstance()) { return nullptr; } Instance* ret = mNextInstance; readData(); return ret; } bool ArffReader::setFile(const string& fileName) { renew(); if (!checkFileExist(fileName)) { return false; } if (!openFile(fileName)) { return false; } if (!readHeader()) { return false; } mHeaderLoaded = true; // read first row if (!readData()) { return false; } return true; } void ArffReader::renew() { if (mHeaderLoaded) { if (mFile->is_open()) { mFile->close(); } delete mInstanceInformation; mInstanceInformation = new InstanceInformation(); if (this->mHasNextInstance) { delete this->mNextInstance; } } if (this->mAttributes != nullptr) { delete this->mAttributes; this->mAttributes = nullptr; } this->mHasNextInstance = false; mHeaderLoaded = false; } bool ArffReader::checkFileExist(const string& fileName) { if (access(fileName.c_str(), 0) != 0) { return false; } return true; } bool ArffReader::readHeader() { mHasNextInstance = false; mHeaderLoaded = false; string s = ""; mAttributes = new LocalAttributes(); while (!mHeaderLoaded) { if (!getline(*mFile, s)) { return false; } // mHeaderLoad is changed to true in parseHeaderData() // when all header information is read // and find the string "@DATA" if (!parseHeaderData(s)) { return false; }; } return mHeaderLoaded; } /* % 1. Title: Iris Plants Database % % 2. Sources: % (a) Creator: R.A. Fisher % (b) Donor: Michael Marshall (MARSHALL%PLU@io.arc.nasa.gov) % (c) Date: July, 1988 % @RELATION iris @ATTRIBUTE sepallength NUMERIC @ATTRIBUTE sepalwidth NUMERIC @ATTRIBUTE petallength NUMERIC @ATTRIBUTE petalwidth NUMERIC @ATTRIBUTE class {Iris-setosa,Iris-versicolor,Iris-virginica} @DATA 5.1,3.5,1.4,0.2,Iris-setosa */ bool ArffReader::parseHeaderData(const string& row) { if (row.size() == 0) { return true; } if (row[row.find_first_not_of(" ")] == '%') { return true; } if (row.find_first_not_of(" \n\r\t") == row.npos) { return true; } string s = row; s.erase(0, s.find_first_not_of(" \n\r\t")); s.erase(s.find_last_not_of(" \n\r\t") + 1); int len = 0; len = string("@RELATION ").size(); if (s.size() > (size_t) len && strcasecmp(s.substr(0, len).c_str(), "@RELATION ") == 0) { return true; } len = string("@ATTRIBUTE ").size(); if (s.size() > (size_t) len && strcasecmp(s.substr(0, len).c_str(), "@ATTRIBUTE ") == 0) { s.erase(0, len); s.erase(0, s.find_first_not_of(" \n\r\t")); //len = string("class").size(); //if (strcmpIgnoreCase(s.substr(0, len).c_str(), "class") == 0) { // s = s.substr(s.find_last_of("{"), s.size()); // mAttributes->appendClass(s); // return true; //} else { len = string(" NUMERIC").size(); if (s.size() > (size_t) len && strcasecmp(s.substr(s.size() - len, len).c_str(), " NUMERIC") == 0) { mAttributes->appendNumericAttribute(); return true; } len = string(" REAL").size(); if (s.size() > (size_t) len && strcasecmp(s.substr(s.size() - len, len).c_str(), " REAL") == 0) { mAttributes->appendNumericAttribute(); return true; } { int pos = s.find_last_of("{"); s = s.substr(pos + 1, s.size() - pos - 2); mAttributes->appendDiscreteAttribute(s); return true; } //} return true; } len = string("@DATA").size(); if (s.size() >= (size_t) len && strcasecmp(s.substr(0, len).c_str(), "@DATA") == 0) { // if (mAttributes->count > 0 && mAttributes->isClassSaved) { if (mAttributes->count > 0) { mHeaderLoaded = true; mAttributes->saveToInstanceInformation(mInstanceInformation); return true; } else { return false; } } spdlog::warn("Symbal not defind. (%s)", s.c_str()); return true; } bool ArffReader::readData() { if (!mHeaderLoaded) { spdlog::error("You must call setFile() function before read data."); return false; } mHasNextInstance = false; string s = ""; while (getline(*mFile, s)) { if (s.size() != 0 && s[0] != '%') { if (this->mDynamicAttributes) { return this->inputForDynamicAttributes(s) == 0; } else { return input(s) == 0; } } } return true; } int ArffReader::input(string& s) { int index = 0; string item = ""; double d = 0; this->mHasNextInstance = false; stringstream ss(s); vector<double> labels(1); vector<double> values(mAttributes->count - 1); while (getline(ss, item, ',')) { item.erase(0, item.find_first_not_of(" \r\n\t")); item.erase(item.find_last_not_of(" \r\n\t") + 1); d = mAttributes->getIndex(index, item); if (index == this->mAttributes->count - 1) { labels[0] = d; break; } else { values[index] = d; } index++; } if (index != this->mAttributes->count - 1) { spdlog::error("Data error (%s).", s.c_str()); return -1; } this->mHasNextInstance = true; this->mNextInstance = new DenseInstance(); this->mNextInstance->setInstanceInformation(this->mInstanceInformation); this->mNextInstance->addLabels(labels); this->mNextInstance->addValues(values); return 0; } int ArffReader::inputForDynamicAttributes(string& s) { int index = 0; string item = ""; double d = 0; this->mHasNextInstance = false; stringstream ss(s); vector<string> line; while (getline(ss, item, ',')) { line.push_back(item); } if (line.size() != (this->mInstanceInformation->getNumberInputAttributes() + 1)) { vector<string> vecAttrValue = {"0", "1"}; this->mInstanceInformation->setNumberInputAttributes(line.size() - 1, vecAttrValue); delete this->mAttributes; this->mAttributes = new LocalAttributes(this->mInstanceInformation); } vector<double> labels(1); vector<double> values(mAttributes->count - 1); for (unsigned int i = 0; i < line.size(); i++) { d = mAttributes->getIndex(index, line[i]); if (index == this->mAttributes->count - 1) { labels[0] = d; break; } else { values[index] = d; } index++; } if (index != this->mAttributes->count - 1) { spdlog::error("Data number error (%s).", s.c_str()); return -1; } this->mHasNextInstance = true; this->mNextInstance = new DenseInstance(); this->mNextInstance->saveInstanceInformation(this->mInstanceInformation); this->mNextInstance->addLabels(labels); this->mNextInstance->addValues(values); return 0; } bool ArffReader::openFile(const string& fileName) { mFile->open(fileName.c_str()); if (!mFile->is_open()) { spdlog::error("Failed to open file: %s .", fileName.c_str()); return false; } return true; }
60c64e64f6bfdfabeb7094779078cb75fd9f7aa7
279b68f31b11224c18bfe7a0c8b8086f84c6afba
/playground/shelta/obsolete/findik-poc-3/request_handler_.cpp
141a6deb316c48126636dd27b15903ecedb71777
[]
no_license
bogus/findik
83b7b44b36b42db68c2b536361541ee6175bb791
2258b3b3cc58711375fe05221588d5a068da5ea8
refs/heads/master
2020-12-24T13:36:19.550337
2009-08-16T21:46:57
2009-08-16T21:46:57
32,120,100
0
0
null
null
null
null
UTF-8
C++
false
false
2,864
cpp
request_handler_.cpp
#include "request_handler_.hpp" #include <fstream> #include <sstream> #include <string> #include <boost/lexical_cast.hpp> #include "mime_types.hpp" #include "reply.hpp" #include "request.hpp" namespace findik { namespace io { request_handler::request_handler(boost::asio::io_service & io_service) : resolver_(io_service), io_service_(io_service) { } void request_handler::handle_request(request& req, boost::asio::streambuf & response) { // http://www.boost.org/doc/libs/1_37_0/doc/html/boost_asio/example/http/client/sync_client.cpp boost::asio::streambuf request_; std::ostream request_stream(&request_); request_stream << req.method << " " << req.uri << " HTTP/" << req.http_version_major << "." << req.http_version_minor << "\r\n"; for (std::size_t i = 0; i < req.headers.size(); ++i) if (req.headers[i].name == "Connection" || req.headers[i].name == "Proxy-Connection") continue; else request_stream << req.headers[i].name << ": " << req.headers[i].value << "\r\n"; request_stream << "Connection: close\r\n"; request_stream << "\r\n"; std::string server(req.host()); boost::asio::ip::tcp::resolver::query query(server, "http"); boost::asio::ip::tcp::resolver::iterator endpoint_iterator = resolver_.resolve(query); boost::asio::ip::tcp::resolver::iterator end; boost::asio::ip::tcp::socket socket(io_service_); boost::system::error_code error = boost::asio::error::host_not_found; while (error && endpoint_iterator != end) { socket.close(); socket.connect(*endpoint_iterator++, error); } if (error) throw boost::system::system_error(error); boost::asio::write(socket, request_); // Read until EOF, writing data to output as we go. while (boost::asio::read(socket, response, boost::asio::transfer_at_least(1), error)) { } if (error != boost::asio::error::eof) throw boost::system::system_error(error); boost::system::error_code ignored_ec; socket.shutdown(boost::asio::ip::tcp::socket::shutdown_both, ignored_ec); } bool request_handler::url_decode(const std::string& in, std::string& out) { out.clear(); out.reserve(in.size()); for (std::size_t i = 0; i < in.size(); ++i) { if (in[i] == '%') { if (i + 3 <= in.size()) { int value; std::istringstream is(in.substr(i + 1, 2)); if (is >> std::hex >> value) { out += static_cast<char>(value); i += 2; } else { return false; } } else { return false; } } else if (in[i] == '+') { out += ' '; } else { out += in[i]; } } return true; } } // namespace server3 } // namespace http
eb749ce0d5414a5c161d8774efad1d6b693107a9
ee5d47e1b6d68ad1a0bb1b9d4d643ae8d576c668
/tstl/include/integer_sequence.hpp
1ec8cbad4ebefbb63cf533d037bab1caf5b435bb
[ "MIT" ]
permissive
wichtounet/thor-os
c7008b69cbec11dac2daac60e588bf588cc65836
4fae8bb77cf4b3b34241c7004a32e8bca22a51e9
refs/heads/develop
2023-05-30T15:19:47.312478
2021-05-24T09:15:10
2021-05-24T09:15:10
13,440,471
1,743
217
MIT
2021-05-24T09:15:10
2013-10-09T11:28:24
C++
UTF-8
C++
false
false
2,134
hpp
integer_sequence.hpp
//======================================================================= // Copyright Baptiste Wicht 2013-2018. // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://www.opensource.org/licenses/MIT) //======================================================================= #ifndef TSTL_INTEGER_SEQUENCE_H #define TSTL_INTEGER_SEQUENCE_H #include<types.hpp> #include<enable_if.hpp> namespace std { template<typename T, T... Values> struct integer_sequence { static constexpr size_t size() noexcept { return sizeof...(Values); } }; template <size_t... Values> using index_sequence = integer_sequence<size_t, Values...>; template <typename, size_t, bool> struct sequence_concat_impl; template <typename T, T... I, size_t N> struct sequence_concat_impl<integer_sequence<T, I...>, N, false> { using type = integer_sequence<T, I..., (N + I)...>; }; template <typename T, T... I, size_t N> struct sequence_concat_impl<integer_sequence<T, I...>, N, true> { using type = integer_sequence<T, I..., (N + I)..., 2 * N>; }; // The 0 and 1 cannot be deduced directly, must use SFINAE // Base type for generating a sequence template <typename T, T N, typename Enable = void> struct make_integer_sequence_impl; // The general case construct a list by concatenating template <typename T, T N, typename Enable> struct make_integer_sequence_impl { using type = typename sequence_concat_impl<typename make_integer_sequence_impl<T, N / 2>::type, N / 2, N % 2 == 1>::type; }; // Specialization for empty sequence template <typename T, T N> struct make_integer_sequence_impl<T, N, std::enable_if_t<(N == 0)>> { using type = integer_sequence<T>; }; // Specialization for sequence of length one template <typename T, T N> struct make_integer_sequence_impl<T, N, std::enable_if_t<(N == 1)>> { using type = integer_sequence<T, 0>; }; template <typename T, T N> using make_integer_sequence = typename make_integer_sequence_impl<T, N>::type; template <size_t N> using make_index_sequence = make_integer_sequence<size_t, N>; } //end of namespace std #endif
343f7d8dfb57b74852bccad7ea8dd19593cf73f7
f778e8152800dfe2f6ca3411e34054ab23d843d9
/ndn-fw-cs-tag.h
ebf74a41ef7998f2a505625fb3e683b5f5cf47fd
[]
no_license
projectsimtest/sim
4f29389be537dd357b19b0680f006d1ba759299a
73865a37765f144e1d9c091c33a7e5787946a19e
refs/heads/master
2020-12-24T19:37:06.991311
2016-04-23T03:26:22
2016-04-23T03:26:22
56,898,430
0
0
null
null
null
null
UTF-8
C++
false
false
1,676
h
ndn-fw-cs-tag.h
/* * ndn-fw-cs-tag.h * * Created on: 2015年12月3日 * Author: zhuxd */ #ifndef NDN_FW_CS_TAG_H_ #define NDN_FW_CS_TAG_H_ #include "ns3/tag.h" namespace ns3 { namespace ndn { /** * @brief Packet tag that is used to track hop count for Interest-Data pairs */ class FwCsTag : public Tag { public: static TypeId GetTypeId (void); /** * @brief Default constructor * 数据包发送时将c_copyTag置为2,使第一个接收到数据包的节点可以缓存该数据包 */ FwCsTag () : csTag (2) { }; /** * @brief Destructor */ ~FwCsTag () { } /** * @brief Increment hop count * 第一个接收到数据包的节点缓存数据后,调用Increment(),目的是到达cunsumer之前的节点(除第一个节点)不缓存该数据 */ void Decrement () { csTag --; } /** * @brief Get value of hop count */ int Get () const { return csTag; } void Set (int cs) {csTag = cs; } //////////////////////////////////////////////////////// // from ObjectBase //////////////////////////////////////////////////////// virtual TypeId GetInstanceTypeId () const; //////////////////////////////////////////////////////// // from Tag //////////////////////////////////////////////////////// /**/ virtual uint32_t GetSerializedSize () const; virtual void Serialize (TagBuffer i) const; virtual void Deserialize (TagBuffer i); virtual void Print (std::ostream &os) const; private: //节点用来判断是否缓存内容的变量,true节点将数据缓存,false则不缓存数据 int csTag; }; } // namespace ndn } // namespace ns3 #endif /* NDN_FW_JUDGE_TAG_H_ */
c58a40b9912ae10f71ffa7d65ad0cf154b0363e4
753091aa6667e4c4759f2140c46d2fa70a5c0de8
/BugSurv/CornerDetectionProcessor.h
974ebebdb87bb22abe17013a6edb641b3ce811c7
[]
no_license
dnillg/bugsurv
5b05c36a60f4924f654844c335040e9371231841
8e8c2572d6c123047a21980c5a6300e256d2495d
refs/heads/master
2023-08-19T13:21:33.073095
2021-11-01T16:23:46
2021-11-01T16:23:46
423,535,673
0
0
null
null
null
null
ISO-8859-2
C++
false
false
1,220
h
CornerDetectionProcessor.h
/* ** @project BugSurv Framework ** @file CornerDetection.h ** @author Giczi Dániel ** @contact reactorx2@gmail.com ** @version 1.1 (2014. 12. 03.) ** @description Példa egy képfeldolgozó deklarációjára. Sarokdetektációst algoritmust valósít meg küszöbértékkel. */ #ifndef CORNERDETECTIONPROCESSOR_H #define CORNERDETECTIONPROCESSOR_H // $ Ősosztály #include "ImageProcessor.h" #include "MorphoFeatures.h" using namespace std; class CornerDetectionProcessor : public ImageProcessor { protected: Q_OBJECT public: CornerDetectionProcessor(); virtual std::string getName(); virtual ImageProcessor* clone(); virtual ~CornerDetectionProcessor(void); CornerDetectionProcessor(const CornerDetectionProcessor&); protected: // threshold to produce binary image int threshold; // structuring elements used in corner detection cv::Mat cross; cv::Mat diamond; cv::Mat square; cv::Mat x; void addParams(); void applyThreshold(cv::Mat& result); cv::Mat getEdges(const cv::Mat &image); cv::Mat getCorners(const cv::Mat &image); void drawOnImage(const cv::Mat& binary, cv::Mat& image); public slots: virtual void process(); protected slots: }; #endif // CORNERDETECTIONPROCESSOR_H