Lines Matching refs:format
80 * @param string $format
84 public static function unpackSSH2($format, &$data) argument
86 $format = self::formatPack($format);
88 for ($i = 0; $i < strlen($format); $i++) {
89 switch ($format[$i]) {
113 switch ($format[$i]) {
143 switch ($format[$i]) {
161 * @param string $format
166 public static function packSSH2($format, ...$elements) argument
168 $format = self::formatPack($format);
169 if (strlen($format) != count($elements)) {
173 for ($i = 0; $i < strlen($format); $i++) {
175 switch ($format[$i]) {
237 * @param string $format
240 private static function formatPack($format) argument
242 $parts = preg_split('#(\d+)#', $format, -1, PREG_SPLIT_DELIM_CAPTURE);
243 $format = '';
245 … $format .= substr($parts[$i - 1], 0, -1) . str_repeat(substr($parts[$i - 1], -1), $parts[$i]);
247 $format .= $parts[$i - 1];
249 return $format;