original_string: public static function uri( $uri, $name = null ) 
  	{
  		// when the uri conains a protocol we just return 
  		// the given uri.
  		if ( strpos( $uri, '://' ) === false ) 
  		{	
  			// If the path is relative and not absolute
  			// we prefix the holder path.
  			if ( substr( $uri, 0, 1 ) != '/' ) 
  			{
  				$uri = CCUrl::to( static::holder( $name )->path.$uri );
  			}
  			// When the given uri is absolute we remove the first
  			// slash and let CCUrl do the job.
  			else 
  			{
  				$uri = CCUrl::to( substr( $uri, 1 ) );
  			}
  		}
  		
  		return $uri;
  	}
code: public static function uri( $uri, $name = null ) 
  	{
  		// when the uri conains a protocol we just return 
  		// the given uri.
  		if ( strpos( $uri, '://' ) === false ) 
  		{	
  			// If the path is relative and not absolute
  			// we prefix the holder path.
  			if ( substr( $uri, 0, 1 ) != '/' ) 
  			{
  				$uri = CCUrl::to( static::holder( $name )->path.$uri );
  			}
  			// When the given uri is absolute we remove the first
  			// slash and let CCUrl do the job.
  			else 
  			{
  				$uri = CCUrl::to( substr( $uri, 1 ) );
  			}
  		}
  		
  		return $uri;
  	}
code_tokens: public static function uri ( $ uri , $ name = null ) { // when the uri conains a protocol we just return  // the given uri. if ( strpos ( $ uri , '://' ) === false ) { // If the path is relative and not absolute // we prefix the holder path. if ( substr ( $ uri , 0 , 1 ) != '/' ) { $ uri = CCUrl :: to ( static :: holder ( $ name ) -> path . $ uri ) ; } // When the given uri is absolute we remove the first // slash and let CCUrl do the job. else { $ uri = CCUrl :: to ( substr ( $ uri , 1 ) ) ; } } return $ uri ; }
docstring: Get the uri to an asset
  
  // /assets/images/something.jpg
  CCAsset::uri( 'images/something.jpg' );
  
  // /assets/MyTheme/images/something.jpg
  CCAsset::uri( 'images/logo.png', 'theme' );
  
  // will not modify the given url
  CCAsset::uri( 'http://example.com/images/logo.jpg' );
  
  @param string		$uri
  @param string		$name
  @return string
docstring_tokens: Get the uri to an asset