Example #1
0
function qtranxf_join_texts($texts, $sep)
{
    switch ($sep) {
        //case '<': return qtranxf_join_c($texts);//no longer in use
        case 'byline':
            return qtranxf_join_byline($texts);
        default:
            return qtranxf_join_b($texts);
    }
}
function qtranxf_join_texts($texts, $sep)
{
    switch ($sep) {
        //case '[':// default case
        case 'byline':
            return qtranxf_join_byline($texts);
        case 'printf':
            return qtranxf_join_byseparator($texts, '/(%(?:\\d+\\$)?[+-]?(?:[0]|\\.)?-?\\d*(?:\\.\\d+)?[bcdeEufFgGosxX])/');
        case '{':
            return qtranxf_join_s($texts);
            //seems to be most compatible way, which may become the default
        //seems to be most compatible way, which may become the default
        case '<':
            return qtranxf_join_c($texts);
            //original way, rarely in use now
        //original way, rarely in use now
        default:
            return qtranxf_join_b($texts);
    }
}