~ubuntu-branches/debian/wheezy/cuneiform/wheezy

« back to all changes in this revision

Viewing changes to cuneiform_src/Kern/rstr/src/rstr_bl.c

  • Committer: Bazaar Package Importer
  • Author(s): Jakub Wilk
  • Date: 2011-04-30 13:16:24 UTC
  • mfrom: (1.1.3 upstream) (5.1.2 experimental)
  • Revision ID: james.westby@ubuntu.com-20110430131624-6yqf92183p6hshur
Tags: 1.1.0+dfsg-1
* Upload to unstable.
* New upstream release.
  + Drop patches: c-assert.diff, cuneiform.h-rename-*.diff,
    slovenian-slv.diff, soname.diff, swabytes.diff. All applied upstream.
  + Refresh the remaining patches.
  + Update *.install files.
  + Fix incorrect use of va_list (closes: #596917).
* Re-add c-assert.diff to fix another instance of custom assert() macro.
* Use stricter check level for dpkg-gensymbols.
* Bump standards version to 3.9.2 (no changes needed).

Show diffs side-by-side

added added

removed removed

Lines of Context:
262
262
 
263
263
int16_t is_russian(uchar ch)
264
264
{
265
 
if( language==LANG_RUSSIAN || language==LANG_ENGLISH && multy_language )
 
265
if( language==PUMA_LANG_RUSSIAN || language==PUMA_LANG_ENGLISH && multy_language )
266
266
switch(fEdCode){
267
267
  case ED_ASCII: // for ASCII
268
268
   if((ch >=(uchar)'�' && ch <=(uchar)'�') ||
571
571
int16_t is_lower(uchar ch)
572
572
{
573
573
 
574
 
if(language==LANG_RUSSIAN)
 
574
if(language==PUMA_LANG_RUSSIAN)
575
575
        switch(fEdCode){
576
576
  case ED_ASCII: // for ASCII
577
577
   if((ch >=(uchar)'�' && ch <=(uchar)'�') ||
593
593
}
594
594
int16_t is_upper(uchar ch)
595
595
{
596
 
if(language==LANG_RUSSIAN)
 
596
if(language==PUMA_LANG_RUSSIAN)
597
597
    switch(fEdCode){
598
598
    case ED_ASCII:
599
599
    case ED_MAC: // for ASCII and Macintosh
628
628
int16_t twin(uchar ch)
629
629
{
630
630
if(!isletter(ch)) return 0;
631
 
if( language==LANG_RUSSIAN )
 
631
if( language==PUMA_LANG_RUSSIAN )
632
632
 if(memchr(non_twin,ch,sizeof non_twin)) return 0;
633
633
 else                                    return 1;
634
 
if( language!=LANG_RUSSIAN && memchr(lat_twins,ch,sizeof lat_twins)) return 1;
 
634
if( language!=PUMA_LANG_RUSSIAN && memchr(lat_twins,ch,sizeof lat_twins)) return 1;
635
635
return 0;
636
636
}
637
637
 
647
647
uchar to_upper( uchar c )
648
648
{
649
649
  if ( c >= (uchar)'a' && c <= (uchar)'z') return c - (uchar)'a' + (uchar)'A';
650
 
  if(language==LANG_RUSSIAN)
 
650
  if(language==PUMA_LANG_RUSSIAN)
651
651
       switch(fEdCode){
652
652
  case ED_ASCII:  // for ASCII
653
653
    if ( c >= (uchar)'�' && c <= (uchar)'�') return c - (uchar)'�' + (uchar)'�';
668
668
uchar to_lower(uchar c)
669
669
{
670
670
  if ( c >= (uchar)'A' && c <= (uchar)'Z') return c - (uchar)'A'+ (uchar)'a' ;
671
 
  if(language==LANG_RUSSIAN)
 
671
  if(language==PUMA_LANG_RUSSIAN)
672
672
        switch(fEdCode){
673
673
  case ED_ASCII: // for ASCII
674
674
    if ( c >= (uchar)'�' && c <= (uchar)'�') return c - (uchar)'�'+ (uchar)'�' ;