Esempio n. 1
0
 public function applyConclusiveMatch($userAgent)
 {
     if (WURFL_Handlers_Utils::numSlashes($userAgent) >= 2) {
         $tolerance = WURFL_Handlers_Utils::secondSlash($userAgent);
     } else {
         //  DoCoMo/2.0 F01A(c100;TB;W24H17)
         $tolerance = WURFL_Handlers_Utils::firstOpenParen($userAgent);
     }
     return $this->getDeviceIDFromRIS($userAgent, $tolerance);
 }
Esempio n. 2
0
 public function testOpenParen()
 {
     $this->assertEquals(6, WURFL_Handlers_Utils::firstOpenParen('Value(12)'));
     $this->assertNull(WURFL_Handlers_Utils::firstOpenParen('Value'));
 }