Ejemplo n.º 1
0
 /**
  * 
  *
  * @return MString
  */
 public static function stringWithFormat()
 {
     $args = func_get_args();
     return MString::_stringWithFormat($args);
 }
Ejemplo n.º 2
0
/**
 * Creates a new MString using the specified format
 *
 * This function works the same way as PHP's sprintf
 * function but instead of outputting a string, it
 * outputs a Mango String (MString) object. This is a
 * convenience method, it has the same effect as using
 * MString::stringWithFormat();
 *
 * @see MString
 * @see MString::stringWithFormat()
 *
 * @param string $format The format string to use
 * @param string[] $args The arguments to use inside the
 * formatted string
 *
 * @return MString Returns the formatted String
 */
function Sf()
{
    $args = func_get_args();
    return MString::_stringWithFormat($args);
}