Pārlūkot izejas kodu

* Add php binding for 3 caca charset conversion functions

* Change php header for sample program "text.php"
tags/v0.99.beta17
Nicolas Vion nico pirms 16 gadiem
vecāks
revīzija
6462d00d2f
2 mainītis faili ar 10 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      caca-php/examples/text.php
  2. +9
    -0
      caca-php/php_caca.c

+ 1
- 1
caca-php/examples/text.php Parādīt failu

@@ -1,5 +1,5 @@
#!/usr/bin/php5
<?
<?php
/*
* demo.php demo for libcaca php binding
* Copyright (c) 2008 Nicolas Vion <nico@yojik.eu>


+ 9
- 0
caca-php/php_caca.c Parādīt failu

@@ -701,12 +701,21 @@ PHP_FUNCTION(caca_utf32_to_utf8) {
}

PHP_FUNCTION(caca_utf32_to_cp437) {
long l;
FETCH_LONG(l);
RETURN_LONG(caca_utf32_to_cp437(l));
}

PHP_FUNCTION(caca_cp437_to_utf32) {
long l;
FETCH_LONG(l);
RETURN_LONG(caca_cp437_to_utf32(l));
}

PHP_FUNCTION(caca_utf32_to_ascii) {
long l;
FETCH_LONG(l);
RETURN_CHAR(caca_utf32_to_ascii(l));
}

PHP_FUNCTION(caca_utf32_is_fullwidth) {


Notiek ielāde…
Atcelt
Saglabāt