Lines Matching refs:substr
55 // workaround php's broken substr, strpos, etc handling with
66 $record_buf = substr($gi->memory_buffer, $record_pointer, FULL_RECORD_LENGTH);
75 $char = ord(substr($record_buf, $record_buf_pos, 1));
84 $char = ord(substr($record_buf, $record_buf_pos + $str_length, 1));
87 $char = ord(substr($record_buf, $record_buf_pos + $str_length, 1));
90 $record->region = substr($record_buf, $record_buf_pos, $str_length);
95 $char = ord(substr($record_buf, $record_buf_pos + $str_length, 1));
98 $char = ord(substr($record_buf, $record_buf_pos + $str_length, 1));
101 $record->city = substr($record_buf, $record_buf_pos, $str_length);
106 $char = ord(substr($record_buf, $record_buf_pos + $str_length, 1));
109 $char = ord(substr($record_buf, $record_buf_pos + $str_length, 1));
112 $record->postal_code = substr($record_buf, $record_buf_pos, $str_length);
120 $char = ord(substr($record_buf, $record_buf_pos++, 1));
125 $char = ord(substr($record_buf, $record_buf_pos++, 1));
133 $char = ord(substr($record_buf, $record_buf_pos++, 1));