Lines Matching refs:pos

742 		if($pos = strrpos($str,':')){
744 return substr($str,0,$pos);
1151 $pos = $this->position++;
1154 $this->depth_array[$depth] = $pos;
1155 $this->message[$pos] = array('cdata' => '');
1157 $this->defaultNamespace[$pos] = $this->defaultNamespace[$this->depth_array[$depth - 1]];
1159 $this->defaultNamespace[$pos] = false;
1181 $this->defaultNamespace[$pos] = $v;
1225 if ($this->defaultNamespace[$pos]) {
1322 if ($this->defaultNamespace[$pos]) {
1323 $attrs['type'] = $this->defaultNamespace[$pos] . ':' . $attrs['type'];
1448 $pos = $this->depth_array[$this->depth];
1481 $pos = $this->depth_array[$this->depth - 1];
1482 $this->message[$pos]['cdata'] .= $data;
2573 $pos = strpos($data,"\r\n\r\n");
2574 if($pos > 1){
2577 $pos = strpos($data,"\n\n");
2578 if($pos > 1){
2592 $header_data = trim(substr($data,0,$pos));
2737 if ($pos = strpos($data,"\r\n\r\n")) {
2738 $data = ltrim(substr($data,$pos));
2739 } elseif($pos = strpos($data,"\n\n") ) {
2740 $data = ltrim(substr($data,$pos));
2745 if ($pos = strpos($data,"\r\n\r\n")) {
2747 } elseif( $pos = strpos($data,"\n\n")) {
2754 $header_data = trim(substr($data,0,$pos));
2756 $data = ltrim(substr($data,$pos));
4349 $pos = $this->position++;
4352 $this->depth_array[$depth] = $pos;
4353 $this->message[$pos] = array('cdata' => '');
4578 $pos = isset($this->depth_array[$this->depth]) ? $this->depth_array[$this->depth] : 0;
4579 if (isset($this->message[$pos]['cdata'])) {
4580 $this->message[$pos]['cdata'] .= $data;
5939 $pos = $this->position++;
5941 $this->message[$pos] = array('pos' => $pos,'children'=>'','cdata'=>'');
5944 $this->message[$pos]['depth'] = $this->depth++;
5947 if($pos != 0){
5948 $this->message[$this->parent]['children'] .= '|'.$pos;
5951 $this->message[$pos]['parent'] = $this->parent;
5953 $this->parent = $pos;
5955 $this->depth_array[$this->depth] = $pos;
5967 $this->root_header = $pos;
5971 $this->body_position = $pos;
5973 } elseif($this->status == 'body' && $pos == ($this->body_position+1)){
5976 $this->root_struct = $pos;
5977 $this->message[$pos]['type'] = 'struct';
5981 $this->message[$pos]['status'] = $this->status;
5983 $this->message[$pos]['name'] = htmlspecialchars($name);
5985 $this->message[$pos]['attrs'] = $attrs;
6008 $this->message[$pos]['type'] = $value_localpart;
6009 $this->message[$pos]['typePrefix'] = $value_prefix;
6011 $this->message[$pos]['type_namespace'] = $this->namespaces[$value_prefix];
6013 $this->message[$pos]['type_namespace'] = $attrs['xmlns:'.$value_prefix];
6017 $this->message[$pos]['type'] = 'array';
6028 $this->message[$pos]['typePrefix'] = $regs[1];
6029 $this->message[$pos]['arrayTypePrefix'] = $regs[1];
6031 $this->message[$pos]['arrayTypeNamespace'] = $this->namespaces[$regs[1]];
6033 $this->message[$pos]['arrayTypeNamespace'] = $attrs['xmlns:'.$regs[1]];
6035 $this->message[$pos]['arrayType'] = $regs[2];
6036 $this->message[$pos]['arraySize'] = $regs[3];
6037 $this->message[$pos]['arrayCols'] = $regs[4];
6041 $this->message[$pos]['nil'] = ($value == 'true' || $value == '1');
6044 $this->message[$pos]['xattrs']['!' . $key] = $value;
6052 $this->ids[$value] = $pos;
6058 $this->root_struct = $pos;
6059 $this->debug("found root struct $this->root_struct_name, pos $pos");
6066 $this->message[$pos]['namespace'] = $this->namespaces[$prefix];
6069 $this->message[$pos]['namespace'] = $this->default_namespace;
6072 if ($this->root_header != $pos) {
6089 $pos = $this->depth_array[$this->depth--];
6100 if(isset($this->body_position) && $pos > $this->body_position){
6102 if(isset($this->message[$pos]['attrs']['href'])){
6104 $id = substr($this->message[$pos]['attrs']['href'],1);
6106 $this->multirefs[$id][$pos] = 'placeholder';
6108 $this->message[$pos]['result'] =& $this->multirefs[$id][$pos];
6110 } elseif($this->message[$pos]['children'] != ''){
6112 if(!isset($this->message[$pos]['result'])){
6113 $this->message[$pos]['result'] = $this->buildVal($pos);
6116 } elseif (isset($this->message[$pos]['xattrs'])) {
6117 if (isset($this->message[$pos]['nil']) && $this->message[$pos]['nil']) {
6118 $this->message[$pos]['xattrs']['!'] = null;
6119 } elseif (isset($this->message[$pos]['cdata']) && trim($this->message[$pos]['cdata']) != '') {
6120 if (isset($this->message[$pos]['type'])) {
6121pos]['xattrs']['!'] = $this->decodeSimple($this->message[$pos]['cdata'], $this->message[$pos]['typ…
6123 $parent = $this->message[$pos]['parent'];
6125 …$this->message[$pos]['xattrs']['!'] = $this->decodeSimple($this->message[$pos]['cdata'], $this->me…
6127 $this->message[$pos]['xattrs']['!'] = $this->message[$pos]['cdata'];
6131 $this->message[$pos]['result'] = $this->message[$pos]['xattrs'];
6135 if (isset($this->message[$pos]['nil']) && $this->message[$pos]['nil']) {
6136 $this->message[$pos]['xattrs']['!'] = null;
6137 } elseif (isset($this->message[$pos]['type'])) {
6138pos]['result'] = $this->decodeSimple($this->message[$pos]['cdata'], $this->message[$pos]['type'], …
6140 $parent = $this->message[$pos]['parent'];
6142 …$this->message[$pos]['result'] = $this->decodeSimple($this->message[$pos]['cdata'], $this->message…
6144 $this->message[$pos]['result'] = $this->message[$pos]['cdata'];
6163 if ($this->root_header != $pos) {
6166 } elseif($pos >= $this->root_struct){
6170 if($pos == $this->root_struct){
6172 $this->root_struct_namespace = $this->message[$pos]['namespace'];
6181 $this->parent = $this->message[$pos]['parent'];
6192 $pos = $this->depth_array[$this->depth];
6201 $this->message[$pos]['cdata'] .= $data;
6279 * @param integer $pos position in node tree
6283 function buildVal($pos){ argument
6284 if(!isset($this->message[$pos]['type'])){
6285 $this->message[$pos]['type'] = '';
6287 …this->debug('in buildVal() for '.$this->message[$pos]['name']."(pos $pos) of type ".$this->message…
6289 if($this->message[$pos]['children'] != ''){
6291 $children = explode('|',$this->message[$pos]['children']);
6294 if(isset($this->message[$pos]['arrayCols']) && $this->message[$pos]['arrayCols'] != ''){
6301 if($c == $this->message[$pos]['arrayCols']){
6307 } elseif($this->message[$pos]['type'] == 'array' || $this->message[$pos]['type'] == 'Array'){
6308 $this->debug('in buildVal, adding array '.$this->message[$pos]['name']);
6313 …} elseif($this->message[$pos]['type'] == 'Map' && $this->message[$pos]['type_namespace'] == 'http:…
6346 if (isset($this->message[$pos]['xattrs'])) {
6348 foreach ($this->message[$pos]['xattrs'] as $n => $v) {
6353 if (isset($this->message[$pos]['cdata']) && trim($this->message[$pos]['cdata']) != '') {
6355 if (isset($this->message[$pos]['type'])) {
6356 …ple($this->message[$pos]['cdata'], $this->message[$pos]['type'], isset($this->message[$pos]['type_…
6358 $parent = $this->message[$pos]['parent'];
6360 …$params['!'] = $this->decodeSimple($this->message[$pos]['cdata'], $this->message[$parent]['arrayTy…
6362 $params['!'] = $this->message[$pos]['cdata'];
6369 $cdata = isset($this->message[$pos]['cdata']) ? $this->message[$pos]['cdata'] : '';
6370 if (isset($this->message[$pos]['type'])) {
6371 …ecodeSimple($cdata, $this->message[$pos]['type'], isset($this->message[$pos]['type_namespace']) ? …
6373 $parent = $this->message[$pos]['parent'];
6377 return $this->message[$pos]['cdata'];