Lines Matching refs:pos

809 		if($pos = strrpos($str,':')){
811 return substr($str,0,$pos);
1247 $pos = $this->position++;
1250 $this->depth_array[$depth] = $pos;
1251 $this->message[$pos] = array('cdata' => '');
1253 $this->defaultNamespace[$pos] = $this->defaultNamespace[$this->depth_array[$depth - 1]];
1255 $this->defaultNamespace[$pos] = false;
1277 $this->defaultNamespace[$pos] = $v;
1321 if ($this->defaultNamespace[$pos]) {
1418 if ($this->defaultNamespace[$pos]) {
1419 $attrs['type'] = $this->defaultNamespace[$pos] . ':' . $attrs['type'];
1546 $pos = $this->depth_array[$this->depth];
1579 $pos = $this->depth_array[$this->depth - 1];
1580 $this->message[$pos]['cdata'] .= $data;
2929 $pos = strpos($data,"\r\n\r\n");
2930 if($pos > 1){
2933 $pos = strpos($data,"\n\n");
2934 if($pos > 1){
2948 $header_data = trim(substr($data,0,$pos));
3095 if ($pos = strpos($data,"\r\n\r\n")) {
3096 $data = ltrim(substr($data,$pos));
3097 } elseif($pos = strpos($data,"\n\n") ) {
3098 $data = ltrim(substr($data,$pos));
3106 if ($pos = strpos($data,"\r\n\r\n")) {
3107 $data = ltrim(substr($data,$pos));
3108 } elseif($pos = strpos($data,"\n\n") ) {
3109 $data = ltrim(substr($data,$pos));
3115 if ($pos = strpos($data,"\r\n\r\n")) {
3117 } elseif( $pos = strpos($data,"\n\n")) {
3124 $header_data = trim(substr($data,0,$pos));
3126 $data = ltrim(substr($data,$pos));
4827 $pos = $this->position++;
4830 $this->depth_array[$depth] = $pos;
4831 $this->message[$pos] = array('cdata' => '');
5056 $pos = isset($this->depth_array[$this->depth]) ? $this->depth_array[$this->depth] : 0;
5057 if (isset($this->message[$pos]['cdata'])) {
5058 $this->message[$pos]['cdata'] .= $data;
6587 $pos = $this->position++;
6589 $this->message[$pos] = array('pos' => $pos,'children'=>'','cdata'=>'');
6592 $this->message[$pos]['depth'] = $this->depth++;
6595 if($pos != 0){
6596 $this->message[$this->parent]['children'] .= '|'.$pos;
6599 $this->message[$pos]['parent'] = $this->parent;
6601 $this->parent = $pos;
6603 $this->depth_array[$this->depth] = $pos;
6615 $this->root_header = $pos;
6619 $this->body_position = $pos;
6621 } elseif($this->status == 'body' && $pos == ($this->body_position+1)){
6624 $this->root_struct = $pos;
6625 $this->message[$pos]['type'] = 'struct';
6629 $this->message[$pos]['status'] = $this->status;
6631 $this->message[$pos]['name'] = htmlspecialchars($name);
6633 $this->message[$pos]['attrs'] = $attrs;
6654 if (isset($this->message[$pos]['type']) && $this->message[$pos]['type'] == 'array') {
6659 $this->message[$pos]['type'] = $value_localpart;
6660 $this->message[$pos]['typePrefix'] = $value_prefix;
6662 $this->message[$pos]['type_namespace'] = $this->namespaces[$value_prefix];
6664 $this->message[$pos]['type_namespace'] = $attrs['xmlns:'.$value_prefix];
6669 $this->message[$pos]['type'] = 'array';
6680 $this->message[$pos]['typePrefix'] = $regs[1];
6681 $this->message[$pos]['arrayTypePrefix'] = $regs[1];
6683 $this->message[$pos]['arrayTypeNamespace'] = $this->namespaces[$regs[1]];
6685 $this->message[$pos]['arrayTypeNamespace'] = $attrs['xmlns:'.$regs[1]];
6687 $this->message[$pos]['arrayType'] = $regs[2];
6688 $this->message[$pos]['arraySize'] = $regs[3];
6689 $this->message[$pos]['arrayCols'] = $regs[4];
6693 $this->message[$pos]['nil'] = ($value == 'true' || $value == '1');
6696 $this->message[$pos]['xattrs']['!' . $key] = $value;
6704 $this->ids[$value] = $pos;
6710 $this->root_struct = $pos;
6711 $this->debug("found root struct $this->root_struct_name, pos $pos");
6718 $this->message[$pos]['namespace'] = $this->namespaces[$prefix];
6721 $this->message[$pos]['namespace'] = $this->default_namespace;
6724 if ($this->root_header != $pos) {
6741 $pos = $this->depth_array[$this->depth--];
6752 if(isset($this->body_position) && $pos > $this->body_position){
6754 if(isset($this->message[$pos]['attrs']['href'])){
6756 $id = substr($this->message[$pos]['attrs']['href'],1);
6758 $this->multirefs[$id][$pos] = 'placeholder';
6760 $this->message[$pos]['result'] =& $this->multirefs[$id][$pos];
6762 } elseif($this->message[$pos]['children'] != ''){
6764 if(!isset($this->message[$pos]['result'])){
6765 $this->message[$pos]['result'] = $this->buildVal($pos);
6768 } elseif (isset($this->message[$pos]['xattrs'])) {
6769 if (isset($this->message[$pos]['nil']) && $this->message[$pos]['nil']) {
6770 $this->message[$pos]['xattrs']['!'] = null;
6771 } elseif (isset($this->message[$pos]['cdata']) && trim($this->message[$pos]['cdata']) != '') {
6772 if (isset($this->message[$pos]['type'])) {
6773pos]['xattrs']['!'] = $this->decodeSimple($this->message[$pos]['cdata'], $this->message[$pos]['typ…
6775 $parent = $this->message[$pos]['parent'];
6777 …$this->message[$pos]['xattrs']['!'] = $this->decodeSimple($this->message[$pos]['cdata'], $this->me…
6779 $this->message[$pos]['xattrs']['!'] = $this->message[$pos]['cdata'];
6783 $this->message[$pos]['result'] = $this->message[$pos]['xattrs'];
6787 if (isset($this->message[$pos]['nil']) && $this->message[$pos]['nil']) {
6788 $this->message[$pos]['xattrs']['!'] = null;
6789 } elseif (isset($this->message[$pos]['type'])) {
6790pos]['result'] = $this->decodeSimple($this->message[$pos]['cdata'], $this->message[$pos]['type'], …
6792 $parent = $this->message[$pos]['parent'];
6794 …$this->message[$pos]['result'] = $this->decodeSimple($this->message[$pos]['cdata'], $this->message…
6796 $this->message[$pos]['result'] = $this->message[$pos]['cdata'];
6815 if ($this->root_header != $pos) {
6818 } elseif($pos >= $this->root_struct){
6822 if($pos == $this->root_struct){
6824 $this->root_struct_namespace = $this->message[$pos]['namespace'];
6833 $this->parent = $this->message[$pos]['parent'];
6844 $pos = $this->depth_array[$this->depth];
6853 $this->message[$pos]['cdata'] .= $data;
6952 * @param integer $pos position in node tree
6956 function buildVal($pos){ argument
6957 if(!isset($this->message[$pos]['type'])){
6958 $this->message[$pos]['type'] = '';
6960 …this->debug('in buildVal() for '.$this->message[$pos]['name']."(pos $pos) of type ".$this->message…
6962 if($this->message[$pos]['children'] != ''){
6964 $children = explode('|',$this->message[$pos]['children']);
6967 if(isset($this->message[$pos]['arrayCols']) && $this->message[$pos]['arrayCols'] != ''){
6974 if($c == $this->message[$pos]['arrayCols']){
6980 } elseif($this->message[$pos]['type'] == 'array' || $this->message[$pos]['type'] == 'Array'){
6981 $this->debug('in buildVal, adding array '.$this->message[$pos]['name']);
6986 …} elseif($this->message[$pos]['type'] == 'Map' && $this->message[$pos]['type_namespace'] == 'http:…
7019 if (isset($this->message[$pos]['xattrs'])) {
7021 foreach ($this->message[$pos]['xattrs'] as $n => $v) {
7026 if (isset($this->message[$pos]['cdata']) && trim($this->message[$pos]['cdata']) != '') {
7028 if (isset($this->message[$pos]['type'])) {
7029 …ple($this->message[$pos]['cdata'], $this->message[$pos]['type'], isset($this->message[$pos]['type_…
7031 $parent = $this->message[$pos]['parent'];
7033 …$params['!'] = $this->decodeSimple($this->message[$pos]['cdata'], $this->message[$parent]['arrayTy…
7035 $params['!'] = $this->message[$pos]['cdata'];
7045 $cdata = isset($this->message[$pos]['cdata']) ? $this->message[$pos]['cdata'] : '';
7046 if (isset($this->message[$pos]['type'])) {
7047 …ecodeSimple($cdata, $this->message[$pos]['type'], isset($this->message[$pos]['type_namespace']) ? …
7051 $parent = $this->message[$pos]['parent'];
7057 $ret = $this->message[$pos]['cdata'];