public __tuple <BoolType_, byte> _getOpen( ushort nIndex) { __tuple <BoolStruct, BoolStruct> tuple_ = this._getIndex(nIndex); BoolStruct first = tuple_._get_0(); BoolStruct second = tuple_._get_1(); byte pos = 0; BoolType_ boolType = first._getBoolType(); if (BoolType_.mSucess_ == boolType) { __tuple <BoolType_, byte> tupleOpen = this._getOpen(first._getLength(), first._getFirst(), first._getSecond()); boolType = tupleOpen._get_0(); pos = tupleOpen._get_1(); } if ((BoolType_.mOpened_ == boolType) && (BoolType_.mSucess_ == second._getBoolType())) { __tuple <BoolType_, byte> tupleOpen = this._getOpen(second._getLength(), second._getFirst(), second._getSecond()); boolType = tupleOpen._get_0(); pos = tupleOpen._get_1(); } return(new __tuple <BoolType_, byte>(boolType, pos)); }
public BoolType_ _runOpen(byte nIndex) { __tuple <BoolStruct, BoolStruct> tuple_ = this._getIndex(nIndex); BoolStruct first = tuple_._get_0(); BoolStruct second = tuple_._get_1(); BoolType_ result = first._getBoolType(); if (BoolType_.mSucess_ == result) { result = this._openIndex(first._getLength(), first._getFirst(), first._getSecond()); } if ((BoolType_.mOpened_ == result) && (BoolType_.mSucess_ == second._getBoolType())) { result = this._openIndex(second._getLength(), second._getFirst(), second._getSecond()); } if (BoolType_.mNext_ == result) { this._clearIndex(first._getLength(), first._getFirst(), first._getSecond()); this._clearIndex(second._getLength(), second._getFirst(), second._getSecond()); } return(result); }
public BoolType_ _runOpen(ushort nIndex) { __tuple <BoolType_, ushort, byte> tuple_ = this._getIndex(nIndex); BoolType_ result = tuple_._get_0(); if (BoolType_.mSucess_ == result) { result = this._openPos(tuple_._get_1(), tuple_._get_2()); } return(result); }
void _dirUrl(string nUrl) { __tuple <int, int> index_ = this._dirUrlIndex(nUrl); if (null == index_) { return; } int beg_ = index_._get_0(); int end_ = index_._get_1(); if (beg_ < 0) { return; } string dirUrlStr_ = null; if (end_ < 0) { dirUrlStr_ = nUrl.Substring(beg_); } else { dirUrlStr_ = nUrl.Substring(beg_, (end_ - beg_)); } string[] str_ = dirUrlStr_.Split(new char[] { '\\' }); foreach (string i in str_) { if (null == i || "" == i) { continue; } DirUrl dirUrl_ = new DirUrl(); dirUrl_._parserUrl(i); mDirUrls.Add(dirUrl_); } }
void _fileUrl(string nUrl) { __tuple <int, int> index_ = this._fileUrlIndex(nUrl); if (null == index_) { return; } int beg_ = index_._get_0(); int end_ = index_._get_1(); if (beg_ < 0) { return; } if (end_ < 0) { mFileUrl = nUrl.Substring(beg_); } else { mFileUrl = nUrl.Substring(beg_, (end_ - beg_)); } }