Homec4science

Add `%LR` support to `csprintf`.

Authored by Joshua Spence <josh@joshuaspence.com> on May 21 2014, 01:29.

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

Committed
epriestley <git@epriestley.com>May 21 2014, 01:29
Pushed
aubortMar 17 2017, 12:03
Parents
rPHUf808f251f1ce: Store daemon arguments in reference file.
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHU1ba1de50e9ee: Add `%LR` support to `csprintf`. (authored by Joshua Spence <josh@joshuaspence.com>).May 21 2014, 01:29