HomePhabricator

Add `%LR` support to `csprintf`.

Description

Add %LR support to csprintf.

Summary: Allow csprintf to format an array of readable strings.

Test Plan:
I didn't create any test cases because there aren't any existing test cases for csprintf. Instead, I used the following script:

<?php

require_once __DIR__.'/scripts/__init_script__.php';

echo csprintf('%LR', array('foo', '--not', 'bar'))."\n";
echo csprintf('%LR', array('foo', '--not bar'))."\n";

The output was as follows:

foo --not bar
foo '--not bar'

Reviewers: epriestley, Blessed Reviewers

Reviewed By: epriestley, Blessed Reviewers

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D9229

Details

Provenance
joshuaspenceAuthored on
epriestleyCommitted on May 20 2014, 11:29 PM
epriestleyPushed on May 20 2014, 11:30 PM
Reviewer
Blessed Reviewers
Differential Revision
D9229: Add `%LR` support to `csprintf`.
Parents
rPHUf808f251f1ce: Store daemon arguments in reference file.
Branches
Unknown
Tags
Unknown

Event Timeline