Prefixes a identifer.

@param  string $names  The name to prefix.
@param  string $prefix The prefix.
@return string         The prefixed name.
501679
public function _prefix($name, $prefix)
    {
        list($alias, $field) = $this->undot($name);
        return $alias ? $name : "{$prefix}.{$field}";
    }
625417
public function setTablePrefix($prefix) {
        if ($prefix) {
            $prefix = trim($prefix, '_') . '_';
        }

        $this->tablePrefix = $prefix;

        return $this;
    }
1238341
function getNamespaceFromPrefix($prefix)
    {
        if (isset($this->namespaces[$prefix])) {
            return $this->namespaces[$prefix];
        }

        //$this->setError("No namespace registered for prefix '$prefix'");
        return FALSE;
    }
797004
function prefix( $name = '' ) {
		return is_object( $this->parent ) ? $this->parent->prefix( $name ) : $name;
	}
800896
public function prefix( $prefix )
    {
        // Detect the Regexp delimiter
        $patternDelim = $this->pattern[0];

        // Add the Regexp delimiter to the prefix
        $prefix = $patternDelim . $prefix . $patternDelim;
        parent::prefix( $prefix );
    }
935029
public function prefix(string $prefix) : void
    {
        parent::prefix($prefix);
        $this->element->prefix($prefix);
    }
637609
public function prependPrefix($prefix)
  {
    $this->deletePrefix($prefix);
    
    $prepend = array($prefix => $prefix);
    $this->_prefixes = array_merge($prepend, $this->_prefixes);
  }
668289
public function getFilename($name, $prefix = '')
    {
        $path = $name;
        if ($prefix != '')
        {
            $path = $prefix . '/' . $path;
        }

        return $path;
    }
433168
public function prefix(string $prefix): Route
	{
		if(!empty($prefix))
		{
			$this->prefix .= '/' . trim($prefix, '/');
		}

		return $this;
	}
1204353
public function prefix($prefix = null)
    {
        if (null !== $prefix) {
            $this->prefix = substr(md5($prefix), 0, 10) . '_';
        }

        return $this->prefix;
    }
256462
private function getRoamedCompletions(string $prefix): \Generator
    {
        foreach ($this->index->getChildDefinitionsForFqn('') as $fqn => $def) {
            if (!$def->roamed || !nameStartsWith($fqn, $prefix)) {
                continue;
            }
            $completionItem = CompletionItemFactory::fromDefinition($def);
            // Second-guessing the user here - do not trust roaming to work. If the same symbol is
            // inserted in the current namespace, the code will stop working.
            $completionItem->insertText =  '\\' . $fqn;
            yield $fqn => $completionItem;
        }
    }
1086403
public function setPrefix($prefix)
    {
        foreach ($this->storage as &$path) {
            $path->setPrefix((string) $prefix);
        }

        return $this;
    }
1232407
public function prefix(string $prefix) {
        if ($this->running) {
            throw new \Error("Cannot alter routes after the server has started");
        }

        $prefix = \trim($prefix, "/");

        if ($prefix !== "") {
            $this->prefix = "/" . $prefix . $this->prefix;
        }
    }
1246372
protected function _formatPrefix($prefix)
    {
        if($prefix == "") {
            return $prefix;
        }

        $nsSeparator = (false !== strpos($prefix, '\\'))?'\\':'_';
        return rtrim($prefix, $nsSeparator) . $nsSeparator;
    }
1137765
protected function dataForPrefix($namespace, $prefix)
    {
        if (!isset($this->cachedData[$namespace][$prefix])) {
            $this->loadDataForPrefix($namespace, $prefix);

        }

        // If no custom data was setted using offsetSet() just return that
        if (!isset($this->customData[$namespace][$prefix])) {
            return $this->cachedData[$namespace][$prefix];
        }

        $data = $this->cachedData[$namespace][$prefix];

        array_unshift($data, $this->customData[$namespace][$prefix]);

        return $data;

    }
108404
public function prefix($name)
    {
        if ($prefix = $this->config()->attribute['prefix']) {
            
            if (strpos($name, $prefix) !== 0) {
                return sprintf('%s%s', $prefix, $name);
            }
            
        }
        
        return $name;
    }
158340
public function setPrefix($prefix)
    {
        $this->prefix = $prefix;
        if (!StringHelper::endsWith(".", $prefix)) {
            $this->prefix .= ".";
        }
    }