Adds one or more hashprefixes

@param string[] $prefixes
@param string $list
5761
public function addHashPrefixes($prefixes, $list)
  {
    $listdir=$this->getListStorageDir($list);
    if(!is_dir($listdir)){
      mkdir($listdir, 0777, true);
    }
    $new_prefixes=array_map('bin2hex',$prefixes);
    if(is_file($listdir.$this->prefixes_filename)){
      $existing_prefixes=explode("\n",file_get_contents($listdir.$this->prefixes_filename));
      foreach($new_prefixes as $new_prefix){
        $existing_prefixes[]=$new_prefix;
      }
      sort($existing_prefixes,SORT_STRING);
      file_put_contents($listdir.'prefixes', implode("\n",$existing_prefixes));
    }else{
      sort($new_prefixes,SORT_STRING);
      file_put_contents($listdir.'prefixes', implode("\n",$new_prefixes));
    }
    $this->debugLog('addHashPrefixes() added '.count($new_prefixes).' prefixes to list '.$list);
  }
1213484
protected function preparePagesBlog(array &$list)
    {
        foreach ($list as &$item) {

            list($teaser, $body) = $this->explodeText($item['description']);

            if ($body !== '') {
                $item['teaser'] = strip_tags($teaser);
            }

            $this->setItemEntityUrl($item, array('entity' => 'page'));
        }
    }
24118
public function trackDefinedPrefixes( $prefixes )  {
		if ( !is_array( $prefixes ) ) {
			$prefixes = $this->matchPrefixes( $prefixes );
		}

		$this->definedPrefixes = array_merge( $this->definedPrefixes, $prefixes );
	}
257530
public function registerPrefixes($prefixes)
    {
        if (!is_array($prefixes) && !$prefixes instanceof Traversable) {

            throw new Zend_Loader_Exception_InvalidArgumentException('Prefix pairs must be either an array or Traversable');
        }

        foreach ($prefixes as $prefix => $directory) {
            $this->registerPrefix($prefix, $directory);
        }
        return $this;
    }
968890
public function
	Append(Array $List, Bool $Keys=FALSE) {
	/*//
	goes through the given array and appends all the data to this dataset. by
	default the array keys are completely ignored. if you need to preseve
	the keys (and ergo overwrite any existing data) set the second argument
	to true.
	//*/

		foreach($List as $Key => $Value) {
			if(!$Keys)
			$this->Push($Value);

			else
			$this->Shove($Key,$Value);
		}

		return;
	}
221199
protected function normalizeListing(array $listing, $prefix = '')
    {
        $base = $prefix;
        $result = [];
        $listing = $this->removeDotDirectories($listing);

        foreach ($listing as $item ) {
            if (\preg_match('#^.*:$#', $item)) {
                $base = \trim($item, ':');
                continue;
            }

            $result[] = $this->normalizeObject($item, $base);
        }

        return $this->sortListing($result);
    }
1301167
public function setLists($lists)
  {
    $this->lists=$lists;
    // update the storage, else we are out of sync
    $this->storage->updateLists($this->lists);
  }
1246778
public void prepend(List<ByteBuffer> lists) {
        for (ByteBuffer buffer : lists) {
            buffer.position(buffer.limit());
        }
        buffers.addAll(0, lists);
    }
133805
protected void setPrefixes(final Collection<String> prefixesToSet) {
		if (prefixesToSet == null) {
			throw new IllegalArgumentException("The given prefixSet is not allowed to be null.");
		}
		final Set<String> newPrefixes = new TreeSet<String>();
		for (final String prefixString : prefixesToSet) {
			if (StringUtils.isNotBlank(prefixString)) {
				newPrefixes.add(prefixString);
			}
		}
		lock.writeLock().lock();
		try {
			prefixes = newPrefixes;
			if (getPrefix() != null && !prefixes.contains(getPrefix())) {
				defaultPrefix = null;
				localPrefix.remove();
			}
		} finally {
			lock.writeLock().unlock();
		}
	}
1119061
public function addPrefix($prefix, array $defaults = [], array $requirements = [])
    {
        $prefix = trim(trim($prefix), '/');

        if ('' === $prefix) {
            return;
        }

        foreach ($this->routes as $route) {
            $route->setPath('/'.$prefix.$route->getPath());
            $route->addDefaults($defaults);
            $route->addRequirements($requirements);
        }
    }
992637
public function setMethodPrefix($method, $prefix = '')
    {
        if (is_array($method)) {
            $this->methodPrefix = array_merge($this->methodPrefix, array_change_key_case($method));
        } else {
            $this->methodPrefix[strtolower($method)] = $prefix;
        }

        return $this;
    }
770958
public function trackUsedPrefixes( $prefixes )  {
		if ( !is_array( $prefixes ) ) {
			$prefixes = $this->matchPrefixes( $prefixes );
		}

		$this->usedPrefixes = array_merge( $this->usedPrefixes, $prefixes );
	}
1060354
public static function normalizePrefetchLookup($lookups, $prefix = null): array
    {
        $results = [];
        foreach ($lookups as $lookup) {
            if (!$lookup instanceof Prefetch) {
                $lookup = new Prefetch($lookup);
            }
            if ($prefix) {
                $lookup->addPrefix($prefix);
            }
            $results[] = $lookup;
        }

        return $results;
    }
512371
function prepend ($list)
  {
    $a = new AppendIterator;
    foreach (iterator ($list) as $it)
      $a->append (iterator ($it));
    $a->append ($this->getIterator ());
    $this->setIterator ($a);
    return $this;
  }
898723
private function formatListForApi(array $list)
    {
        $values = [];

        foreach ($list as $value) {
            $values[] = $this->formatValueForApi($value);
        }

        return ['values' => $values];
    }
3573
protected function prepareListProduct(array &$list)
    {
        foreach ($list as &$item) {
            $this->setItemPriceFormatted($item, $this->price);
            $this->setItemUrlEntity($item, $this->store, 'product');
        }
    }
482666
public function insertScripts($list)
    {
        if (!is_array($list)) {
            $list = [$list];
        }
        $this->scripts = $list;
        return $this;
    }