Subversion Repositories oidplus

Rev

Rev 635 | Rev 879 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 635 Rev 878
Line 154... Line 154...
154
        $cont = preg_replace('@/\\*.+\\*/@ismU', '', $cont);
154
        $cont = preg_replace('@/\\*.+\\*/@ismU', '', $cont);
155
        $cont = str_replace('\\"', chr(1), $cont);
155
        $cont = str_replace('\\"', chr(1), $cont);
156
        $cont = str_replace("\\'", chr(2), $cont);
156
        $cont = str_replace("\\'", chr(2), $cont);
157
        $cont = str_replace("\\\\", "\\", $cont);
157
        $cont = str_replace("\\\\", "\\", $cont);
158
        $m = array();
158
        $m = array();
159
        preg_match_all('@[^_A-Za-z0-9]_L\\(.*(["\'])(.+)\\1@ismU', $cont, $m);
159
        preg_match_all('@[^_A-Za-z0-9]_L\\(([^\\)]*)(["\'])(.+)\\2@ismU', $cont, $m);
160
        foreach ($m[2] as &$x) {
160
        foreach ($m[3] as &$x) {
161
                $x = str_replace(chr(1), '"', $x);
161
                $x = str_replace(chr(1), '"', $x);
162
                $x = str_replace(chr(2), "'", $x);
162
                $x = str_replace(chr(2), "'", $x);
163
        }
163
        }
164
        return $m[2];
164
        return $m[3];
165
}
165
}
166
 
166
 
167
function get_php_L_strings($cont) {
167
function get_php_L_strings($cont) {
168
        // Works only with PHP
168
        // Works only with PHP
169
        $out = array();
169
        $out = array();