Results 1 to 9 of 9

Thread: Javascript (mk)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date: Jan:2004
    Location:
    Posts: 336

    Javascript (mk)

    , .
    , . . :

    ' -
    \ -

    " ' " - , ( )

    , "\" - .



    sDName : 'MK', //display name
    sMap : 'aAbBvVgGdD]}eEzZyYiIjJkKlLqQmMnNwWoOpPrRsStTuUfFhHc C;:xX[{| ',
    sRData : 'ăǾȼ˚͜ ן '
    .

    , .
    ?
    Last edited by mak; 11th February 2007 at 21:19.

  2. #2
    Undead user Oldman's Avatar
    Join Date: Oct:2003
    Location: outside
    Posts: 432

    Escape character

    ( ' \ ) "" .. \' \\
    .

  3. #3
    Registered User
    Join Date: Jan:2004
    Location:
    Posts: 336
    , , , , .

  4. #4
    philosophus duratea icaci's Avatar
    Join Date: Oct:2006
    Location: Aachen
    Posts: 2,698
    JavaScript, "", .. "\" . ('...'), \, . ("..."), , - . , .
    , .
    Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others

  5. #5
    Registered User
    Join Date: Jan:2004
    Location:
    Posts: 336
    Oldman, . icaci, , .

  6. #6
    Bombera's Avatar
    Join Date: Jul:2001
    Location: 4EVA
    Posts: 13,833
    - , \ \\ ' \'. , " \" \ \\. ,
    EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
    Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|

  7. #7
    Registered User
    Join Date: Jan:2004
    Location:
    Posts: 336
    ! .
    Oldman , .

  8. #8
    Registered User
    Join Date: Jan:2004
    Location:
    Posts: 336
    , , .
    php, .
    , "0" :

    case 'strongs':
    $lc='0123456789abcdefghijklmnopqrstuvwxy z';
    $uc='0123456789ABCDEFGHIJKLMNOPQRSTUVWXY Z';
    break;

    , 0430, 800, 0001, 403

    0430 43, 800 - 8, .

    , .

    ...

    Code:
    <script language="php">
    
    class HLanguage{
    
    var $lc_l = array();
    var $uc_l = array();
    var $sro = array();
    
    function HLanguage($hl){
     switch ($hl){
      case 'bg':
       $lc='';
       $uc='';
       break;
      case 'en':
       $lc='abcdefghijklmnopqrstuvwxyz';
       $uc='ABCDEFGHIJKLMNOPQRSTUVWXYZ';
       break;
      case 'ma':
       $lc='';
       $uc='āǽȣˊ͌ҍ׏';
       break;
       	case 'strongs':
       $lc='0123456789abcdefghijklmnopqrstuvwxyz';
       $uc='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ';
       break;
     }
     for($i=0;$i<strlen($lc);$i++){
      $this->lc_l[$uc[$i]]=$lc[$i];
      $this->uc_l[$lc[$i]]=$uc[$i];
      $this->sro[$lc[$i]]=1001+$i;
      $this->sro[$uc[$i]]=1001+$i;
     }
    }
    
    function lc_letter($c){
    if (array_key_exists($c,$this->lc_l)) return $this->lc_l[$c];
    if (array_key_exists($c,$this->uc_l)) return $c;
    else return false;
    }
    
    function compare($s1,$s2){
    $n1=strlen($s1); $n=$n1;
    $n2=strlen($s2);
    if ($n2<$n) $n=$n2; 
    $r=0; $i=0;
    while (($i<$n)&&($r==0)){
    // echo $s1[$i]."-".$this->sro[$s1[$i]]." ".$s2[$i]." $r<br>";
     if ($this->sro[$s1[$i]] < $this->sro[$s2[$i]]) $r=-1;
     else { if ($this->sro[$s1[$i]] > $this->sro[$s2[$i]]) $r=1;
          else $r=0; }
     $i++;
    }
    if (($r==0) && ($n1<$n2)) return -1;
    if (($r==0) && ($n1>$n2)) return 1;
    return $r;
    }
    
    } // class HLanguage
    
    </script>

  9. #9
    philosophus duratea icaci's Avatar
    Join Date: Oct:2006
    Location: Aachen
    Posts: 2,698
    PHP, , ( ). ===, <== .., .
    Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |