100+ results results for 'lower strip' (1777 ms)
55 continue; 56 c1 = tolower(c1); 57 c2 = tolower(c2); 71 do { 72 c1 = tolower(*s1++); 73 c2 = tolower(*s2++); 433 * skip_spaces - Removes leading whitespace from @str. 434 * @str: The string to be stripped. 435 * 447 * strim - Removes leading and trailing whitespace from @s. 448 * @s: The string to be stripped. 449 *namei_vfat.c https://github.com/mturquette/linux.git | C | 1089 lines
109{ 110 qstr->hash = full_name_hash(qstr->name, vfat_striptail_len(qstr)); 111 return 0; 127 name = qstr->name; 128 len = vfat_striptail_len(qstr); 129 240 * File name and extension name is contain uppercase/lowercase 241 * only. And it is expressed by CASE_LOWER_BASE and CASE_LOWER_EXT. 242 * 243 * 2) File name is 8.3 format, but it contain the uppercase and 244 * lowercase char, muliti bytes char, etc. In this case numtail is not 245 * added, but Longfilename is stored. 442 if (!base_info.upper && base_info.lower) 443 *lcase |= CASE_LOWER_BASE; 444 if (!ext_info.upper && ext_info.lower)mmap.c https://github.com/mturquette/linux.git | C | 562 lines
245/** 246 * Called with lower inode mutex held. 247 */ 421 ecryptfs_inode_to_private(ecryptfs_inode)->lower_file->f_path.dentry; 422 struct inode *lower_inode = d_inode(lower_dentry); 423 int rc; 424 425 if (!lower_inode->i_op->getxattr || !lower_inode->i_op->setxattr) { 426 printk(KERN_WARNING 438 inode_lock(lower_inode); 439 size = lower_inode->i_op->getxattr(lower_dentry, lower_inode, 440 ECRYPTFS_XATTR_NAME, 444 put_unaligned_be64(i_size_read(ecryptfs_inode), xattr_virt); 445 rc = lower_inode->i_op->setxattr(lower_dentry, lower_inode, 446 ECRYPTFS_XATTR_NAME,spi-zynqmp-gqspi.c https://github.com/mturquette/linux.git | C | 1120 lines
74#define GQSPI_GENFIFO_MODE_MASK 0x00000C00 75#define GQSPI_GENFIFO_CS_LOWER 0x00001000 76#define GQSPI_GENFIFO_CS_UPPER 0x00002000 76#define GQSPI_GENFIFO_CS_UPPER 0x00002000 77#define GQSPI_GENFIFO_BUS_LOWER 0x00004000 78#define GQSPI_GENFIFO_BUS_UPPER 0x00008000 82#define GQSPI_GENFIFO_RX 0x00020000 83#define GQSPI_GENFIFO_STRIPE 0x00040000 84#define GQSPI_GENFIFO_POLL 0x00080000 123#define GQSPI_QSPIDMA_DST_CTRL_RESET_VAL 0x803FFA00 124#define GQSPI_SELECT_FLASH_CS_LOWER 0x1 125#define GQSPI_SELECT_FLASH_CS_UPPER 0x2 126#define GQSPI_SELECT_FLASH_CS_BOTH 0x3 127#define GQSPI_SELECT_FLASH_BUS_LOWER 0x1 128#define GQSPI_SELECT_FLASH_BUS_UPPER 0x23w-9xxx.h https://github.com/mturquette/linux.git | C Header | 681 lines
91 {0x0020, "Prepare for shutdown (power-off)"}, 92 {0x0021, "Downgrade UDMA mode to lower speed"}, 93 {0x0022, "Upgrade UDMA mode to higher speed"}, 173 {0x0129, "Cannot update status to DCB"}, 174 {0x0130, "Invalid stripe handle"}, 175 {0x0131, "Handle that was not locked"}, 251 {0x025B, "Invalid LBA offset specified in CreateUnit descriptor"}, 252 {0x025C, "Invalid stripelet size specified in CreateUnit descriptor"}, 253 {0x0260, "SMART attribute exceeded threshold"},supern_2.h https://github.com/mturquette/linux.git | C Header | 1059 lines
94#ifdef LITTLE_ENDIAN 95 unsigned int rx_length :16 ; /* frame length lower/upper byte */ 96 unsigned int rx_erfbb :2 ; /* received frame byte boundary */ 120 unsigned int rx_reserv2:2 ; /* reserved */ 121 unsigned int rx_length :16 ; /* frame length lower/upper byte */ 122#endif 164#ifdef LITTLE_ENDIAN 165 unsigned int tx_length:16 ; /* frame length lower/upper byte */ 166 unsigned int tx_res :8 ; /* reserved (bit 16..23) */ 180 unsigned int tx_res :8 ; /* reserved (bit 16..23) */ 181 unsigned int tx_length:16 ; /* frame length lower/upper byte */ 182#endif 196#define TD_C_LNCNL 0x000000ffL 197#define TD_C_LNCN 0x0000ffffL /* frame length lower/upper byte */ 198xilinx_axienet.h https://github.com/mturquette/linux.git | C Header | 508 lines
39 40/* Strip FCS and PAD from incoming frames. Note: PAD from VLAN frames is not 41 * stripped. Default: disabled (set) 42 */ 43#define XAE_OPTION_FCS_STRIP (1 << 5) 44 148#define XAE_RTAG_OFFSET 0x0000001C /* Rx VLAN TAG */ 149#define XAE_UAWL_OFFSET 0x00000020 /* Unicast address word lower */ 150#define XAE_UAWU_OFFSET 0x00000024 /* Unicast address word upper */ 187#define XAE_RAF_RXVTAGMODE_MASK 0x00000060 /* Rx VLAN TAG mode */ 188#define XAE_RAF_TXVSTRPMODE_MASK 0x00000180 /* Tx VLAN STRIP mode */ 189#define XAE_RAF_RXVSTRPMODE_MASK 0x00000600 /* Rx VLAN STRIP mode */ 196#define XAE_RAF_RXVTAGMODE_SHIFT 5 /* Rx Tag mode shift bits */ 197#define XAE_RAF_TXVSTRPMODE_SHIFT 7 /* Tx strip mode shift bits*/ 198#define XAE_RAF_RXVSTRPMODE_SHIFT 9 /* Rx Strip mode shift bits*/nfp_net.h https://github.com/mturquette/linux.git | C Header | 760 lines
111 \ 112 __d->dma_addr_lo = cpu_to_le32(lower_32_bits(__addr)); \ 113 __d->dma_addr_hi = upper_32_bits(__addr) & 0xff; \ 261 __le16 flags; /* RX flags. See @PCIE_DESC_RX_* */ 262 __le16 vlan; /* VLAN if stripped */ 263 } __packed rxd;defines.h https://github.com/mturquette/linux.git | C Header | 806 lines
82#define E1000_RXD_ERR_RXE 0x80 /* Rx Data Error */ 83#define E1000_RXD_SPC_VLAN_MASK 0x0FFF /* VLAN ID is in lower 12 bits */ 84 162#define E1000_RCTL_BSEX 0x02000000 /* Buffer size extension */ 163#define E1000_RCTL_SECRC 0x04000000 /* Strip Ethernet CRC */ 164ariadne.h https://github.com/mturquette/linux.git | C Header | 415 lines
75#define CSR15 0x0f00 /* - Mode Register */ 76#define CSR16 0x1000 /* Initialization Block Address Lower */ 77#define CSR17 0x1100 /* Initialization Block Address Upper */ 223#define APAD_XMT 0x0008 /* Auto Pad Transmit */ 224#define ASTRP_RCV 0x0004 /* Auto Pad Stripping */ 225#define MFCO 0x0002 /* Missed Frame Counter Overflow Interrupt */raid10.c https://github.com/mturquette/linux.git | C | 1752 lines
53 * If far_offset is true, then the far_copies are handled a bit differently. 54 * The copies are still in different stripes, but instead of being very far 55 * apart on disk, there are adjacent stripes. 58 * 'use_far_sets' is true. In this case, the array's devices are grouped into 59 * sets that are (near_copies * far_copies) in size. The far copied stripes 60 * are still shifted by 'near_copies' devices, but this shifting stays confined 99static void allow_barrier(struct r10conf *conf); 100static void lower_barrier(struct r10conf *conf); 101static int _enough(struct r10conf *conf, int previous, int ignore); 270 271 lower_barrier(conf); 272}dma.c https://github.com/mturquette/linux.git | C | 1104 lines
105 106 tgt_addr8 = ((addr8 >> card->_stripe.upper_shift) & 107 card->_stripe.upper_mask) | 107 card->_stripe.upper_mask) | 108 ((addr8) & card->_stripe.lower_mask); 109 do_div(tgt_addr8, RSXX_HW_BLK_SIZE); 116 117 tgt = (addr8 >> card->_stripe.target_shift) & card->_stripe.target_mask; 118bindec.S https://github.com/mturquette/linux.git | Assembly | 919 lines
114| d2: upper 32-bits of mantissa for binstr 115| d3: scratch;lower 32-bits of mantissa for binstr 116| d4: LEN 186 movew (%a0),%d0 187 andiw #0x7fff,%d0 |strip sign of normalized exp 188 movel 4(%a0),%d1 202pos_exp: 203 andiw #0x7fff,%d0 |strip sign of normalized exp 204 movew %d0,(%a0) 249 fmovex FP_SCR2(%a6),%fp0 |now fp0 has 1.f 250 subw #0x3fff,%d0 |strip off bias 251 faddw %d0,%fp0 |add in exp 270| ICTR is a flag used in A13. It must be set before the 271| loop entry A6. The lower word of d5 is used for ICTR. 272string.c https://github.com/ab3416/linux-2.6.git | C | 758 lines
48 continue; 49 c1 = tolower(c1); 50 c2 = tolower(c2); 64 do { 65 c1 = tolower(*s1++); 66 c2 = tolower(*s2++); 78 do { 79 c1 = tolower(*s1++); 80 c2 = tolower(*s2++); 337 * skip_spaces - Removes leading whitespace from @str. 338 * @str: The string to be stripped. 339 * 351 * strim - Removes leading and trailing whitespace from @s. 352 * @s: The string to be stripped. 353 *mmap.c https://github.com/ab3416/linux-2.6.git | C | 566 lines
254/** 255 * Called with lower inode mutex held. 256 */ 429 ecryptfs_inode_to_private(ecryptfs_inode)->lower_file->f_dentry; 430 struct inode *lower_inode = lower_dentry->d_inode; 431 int rc; 432 433 if (!lower_inode->i_op->getxattr || !lower_inode->i_op->setxattr) { 434 printk(KERN_WARNING 446 mutex_lock(&lower_inode->i_mutex); 447 size = lower_inode->i_op->getxattr(lower_dentry, ECRYPTFS_XATTR_NAME, 448 xattr_virt, PAGE_CACHE_SIZE); 451 put_unaligned_be64(i_size_read(ecryptfs_inode), xattr_virt); 452 rc = lower_inode->i_op->setxattr(lower_dentry, ECRYPTFS_XATTR_NAME, 453 xattr_virt, size, 0);supern_2.h https://github.com/ab3416/linux-2.6.git | C Header | 1059 lines
94#ifdef LITTLE_ENDIAN 95 unsigned rx_length :16 ; /* frame length lower/upper byte */ 96 unsigned rx_erfbb :2 ; /* received frame byte boundary */ 120 unsigned rx_reserv2:2 ; /* reserved */ 121 unsigned rx_length :16 ; /* frame length lower/upper byte */ 122#endif 164#ifdef LITTLE_ENDIAN 165 unsigned tx_length:16 ; /* frame length lower/upper byte */ 166 unsigned tx_res :8 ; /* reserved (bit 16..23) */ 180 unsigned tx_res :8 ; /* reserved (bit 16..23) */ 181 unsigned tx_length:16 ; /* frame length lower/upper byte */ 182#endif 196#define TD_C_LNCNL 0x000000ffL 197#define TD_C_LNCN 0x0000ffffL /* frame length lower/upper byte */ 198e1000.h https://github.com/ab3416/linux-2.6.git | C Header | 741 lines
127#define HV_SCC_UPPER PHY_REG(HV_STATS_PAGE, 16) /* Single Collision Count */ 128#define HV_SCC_LOWER PHY_REG(HV_STATS_PAGE, 17) 129#define HV_ECOL_UPPER PHY_REG(HV_STATS_PAGE, 18) /* Excessive Coll. Count */ 129#define HV_ECOL_UPPER PHY_REG(HV_STATS_PAGE, 18) /* Excessive Coll. Count */ 130#define HV_ECOL_LOWER PHY_REG(HV_STATS_PAGE, 19) 131#define HV_MCC_UPPER PHY_REG(HV_STATS_PAGE, 20) /* Multiple Coll. Count */ 131#define HV_MCC_UPPER PHY_REG(HV_STATS_PAGE, 20) /* Multiple Coll. Count */ 132#define HV_MCC_LOWER PHY_REG(HV_STATS_PAGE, 21) 133#define HV_LATECOL_UPPER PHY_REG(HV_STATS_PAGE, 23) /* Late Collision Count */ 133#define HV_LATECOL_UPPER PHY_REG(HV_STATS_PAGE, 23) /* Late Collision Count */ 134#define HV_LATECOL_LOWER PHY_REG(HV_STATS_PAGE, 24) 135#define HV_COLC_UPPER PHY_REG(HV_STATS_PAGE, 25) /* Collision Count */ 135#define HV_COLC_UPPER PHY_REG(HV_STATS_PAGE, 25) /* Collision Count */ 136#define HV_COLC_LOWER PHY_REG(HV_STATS_PAGE, 26) 137#define HV_DC_UPPER PHY_REG(HV_STATS_PAGE, 27) /* Defer Count */raid10.c https://github.com/ab3416/linux-2.6.git | C | 1812 lines
51 * If far_offset is true, then the far_copies are handled a bit differently. 52 * The copies are still in different stripes, but instead of be very far apart 53 * on disk, there are adjacent stripes. 61static void allow_barrier(conf_t *conf); 62static void lower_barrier(conf_t *conf); 63 203 204 lower_barrier(conf); 205} 435 sector_t chunk; 436 sector_t stripe; 437 int dev; 445 chunk *= conf->near_copies; 446 stripe = chunk; 447 dev = sector_div(stripe, conf->raid_disks);multibyte.php https://github.com/cgajardo/repositorium.git | PHP | 1172 lines
37 */ 38if (!function_exists('mb_stripos')) { 39 function mb_stripos($haystack, $needle, $offset = 0, $encoding = null) { 39 function mb_stripos($haystack, $needle, $offset = 0, $encoding = null) { 40 return Multibyte::stripos($haystack, $needle, $offset); 41 } 179/** 180 * Make a string lowercase 181 * 181 * 182 * @param string $string The string being lowercased. 183 * @param string $encoding Character encoding name to use. If it is omitted, internal character encoding is used. 183 * @param string $encoding Character encoding name to use. If it is omitted, internal character encoding is used. 184 * @return string with all alphabetic characters converted to lowercase. 185 */tif_lzw.c https://bitbucket.org/melbyruarus/pbrt.git | C | 1129 lines
57/* 58 * Each strip of data is supposed to be terminated by a CODE_EOI. 59 * If the following #define is included, the decoder will also 59 * If the following #define is included, the decoder will also 60 * check for end-of-strip w/o seeing this code. This makes the 61 * library more robust, but also slower. 62 */ 63#define LZW_CHECKEOS /* include checks for strips w/o EOI code */ 64 173 * This check shouldn't be necessary because each 174 * strip is suppose to be terminated with CODE_EOI. 175 */ 178 TIFFWarningExt(_tif->tif_clientdata, _tif->tif_name, \ 179 "LZWDecode: Strip %d not terminated with EOI code", \ 180 _tif->tif_curstrip); \debug.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 929 lines
143 // No debug for Safari and Chrome redirection 144 if (strstr(strtolower($_SERVER['HTTP_USER_AGENT']), 'webkit') !== false 145 && substr($contents, 0, 50) == '<html><head><meta http-equiv="refresh" content="0;') 495 { 496 $whereStart = stripos($query, 'order by', $fromStart); 497 } 520 // Increment the count: 521 if (stripos($query, 'select') === 0) 522 { 663 { 664 $stripFirst = $this->params->get('strip-first'); 665 $stripPref = $this->params->get('strip-prefix'); 665 $stripPref = $this->params->get('strip-prefix'); 666 $stripSuff = $this->params->get('strip-suffix'); 667eblog.js https://bitbucket.org/pastor399/newcastleunifc.git | JavaScript | 1756 lines
64 65 if (window.eblog_lightbox_strip_extension && window.eblog_lightbox_title) { 66 72 73 if (/jpg|png|gif|xcf|odg|bmp|jpeg/.test(parts[0].toLowerCase())) { 74 parts.splice(0, 1);easyTags.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 1409 lines
22 23 $renderKeyCheck = strtolower($easyTag); 24 87 { 88 $paramValues[0] = strtolower(trim($paramValues[0])); 89 $paramValues[1] = trim($paramValues[1]); 147 { 148 $paramValues[0] = strtolower(trim($paramValues[0])); 149 $paramValues[1] = trim($paramValues[1]); 175 case 'phone': 176 $requirePhoneNumber = strtolower($paramValues[1]); 177 break; 219 { 220 $paramValues[0] = strtolower(trim($paramValues[0])); 221 $paramValues[1] = trim($paramValues[1]);html.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 1007 lines
111 { 112 $path = JPath::find(self::$includePaths, strtolower($file) . '.php'); 113 304 // Extract extension and strip the file 305 $strip = JFile::stripExt($file); 306 $ext = JFile::getExt($file); 320 // where major and minor are the browser version names 321 $potential = array($strip, $strip . '_' . $browser, $strip . '_' . $browser . '_' . $major, 322 $strip . '_' . $browser . '_' . $major . '_' . $minor); 347 */ 348 if (strrpos($strip, '.min', '-4')) 349 { 349 { 350 $position = strrpos($strip, '.min', '-4'); 351 $filename = str_replace('.min', '.', $strip, $position);input.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 758 lines
113 { 114 // Make sure user defined arrays are in lowercase 115 $tagsArray = array_map('strtolower', (array) $tagsArray); 115 $tagsArray = array_map('strtolower', (array) $tagsArray); 116 $attrArray = array_map('strtolower', (array) $attrArray); 117 279 { 280 $attrSubSet[0] = strtolower($attrSubSet[0]); 281 $attrSubSet[1] = strtolower($attrSubSet[1]); 311 /** 312 * Internal method to strip a string of certain tags 313 * 399 */ 400 if ((!preg_match("/^[a-z][a-z0-9]*$/i", $tagName)) || (!$tagName) || ((in_array(strtolower($tagName), $this->tagBlacklist)) && ($this->xssAuto))) 401 {stream.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 1423 lines
168 * @param boolean $use_prefix Use a prefix to open the file 169 * @param boolean $relative Filename is a relative path (if false, strips JPATH_ROOT to make it relative) 170 * @param boolean $detectprocessingmode Detect the processing method for the file and use the appropriate function 206 { 207 $ext = strtolower(JFile::getExt($this->filename)); 208document.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 662 lines
178 public function setLanguage($lang = "en-gb") { 179 $this->language = strtolower($lang); 180 } 198 public function setDirection($dir = "ltr") { 199 $this->direction = strtolower($dir); 200 } 343 $file = basename($file, '.js'); 344 // strip . and trailing / 345 $file = trim(trim($base, '.'), '/') . '/' . $file . '.js'; 359 $file = basename($file, '.css'); 360 // strip . and trailing / 361 $file = trim(trim($base, '.'), '/') . '/' . $file . '.css'; 426 public function addScriptDeclaration($content, $type = 'text/javascript') { 427 if (!isset($this->_script[strtolower($type)])) { 428 $this->_script[strtolower($type)] = $content;simple_html_dom.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 1365 lines
69// $maxlen is defined in the code as PHP_STREAM_COPY_ALL which is defined as -1. 70function file_get_html($url, $use_include_path = false, $context=null, $offset = -1, $maxLen=-1, $lowercase = true, $forceTagsClosed=true, $target_charset = DEFAULT_TARGET_CHARSET, $stripRN=true, $defaultBRText=DEFAULT_BR_TEXT, $defaultSpanText=DEFAULT_SPAN_TEXT) 71{ 72 // We DO force the tags to be terminated. 73 $dom = new simple_html_dom(null, $lowercase, $forceTagsClosed, $target_charset, $stripRN, $defaultBRText, $defaultSpanText); 74 // For sourceforge users: uncomment the next line and comment the retreive_url_contents line 2 lines down if it is not already done. 82 // The second parameter can force the selectors to all be lowercase. 83 $dom->load($contents, $lowercase, $stripRN); 84 return $dom; 87// get html dom from string 88function str_get_html($str, $lowercase=true, $forceTagsClosed=true, $target_charset = DEFAULT_TARGET_CHARSET, $stripRN=true, $defaultBRText=DEFAULT_BR_TEXT, $defaultSpanText=DEFAULT_SPAN_TEXT) 89{ 89{ 90 $dom = new simple_html_dom(null, $lowercase, $forceTagsClosed, $target_charset, $stripRN, $defaultBRText, $defaultSpanText); 91 if (empty($str) || strlen($str) > MAX_FILE_SIZE)tests.py https://github.com/Tippr/django.git | Python | 538 lines
98 99 def test_lower(self): 100 self.assertEqual(lower('TEST'), u'test') 102 # uppercase E umlaut 103 self.assertEqual(lower(u'\xcb'), u'\xeb') 104 158 self.assertEqual(upper(u'Mixed case input'), u'MIXED CASE INPUT') 159 # lowercase e umlaut 160 self.assertEqual(upper(u'\xeb'), u'\xcb') 285 u'some <b>html</b> with alert("You smell") disallowed tags') 286 self.assertEqual(striptags(u'some <b>html</b> with <script>alert'\ 287 u'("You smell")</script> disallowed <img /> tags'),options.py https://github.com/Tippr/django.git | Python | 497 lines
14# Calculate the verbose_name by converting from InitialCaps to "lowercase with spaces". 15get_verbose_name = lambda class_name: re.sub('(((?<=[a-z])[A-Z])|([A-Z](?![A-Z]|$)))', ' \\1', class_name).lower().strip() 16 64 self.object_name = cls.__name__ 65 self.module_name = self.object_name.lower() 66 self.verbose_name = get_verbose_name(self.object_name) 344 def get_add_permission(self): 345 return 'add_%s' % self.object_name.lower() 346 347 def get_change_permission(self): 348 return 'change_%s' % self.object_name.lower() 349 350 def get_delete_permission(self): 351 return 'delete_%s' % self.object_name.lower() 352views.py https://github.com/Tippr/django.git | Python | 686 lines
17 new = re.sub('(((?<=[a-z])[A-Z])|([A-Z](?![A-Z]|$)))', '_\\1', name) 18 return new.lower().strip('_') 19search.php https://bitbucket.org/mkirby91/tritontime.git | PHP | 590 lines
5if (empty($_GET['term'])) exit ; 6$q = strtolower($_GET["term"]); 7// remove slashes if they were magically added 7// remove slashes if they were magically added 8if (get_magic_quotes_gpc()) $q = stripslashes($q); 9view.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 507 lines
133/// stablishing flag variables 134if ( $sortorder = strtolower($sortorder) ) { 135 if ($sortorder != 'asc' and $sortorder != 'desc') { 148 149switch ( $mode = strtolower($mode) ) { 150case 'search': /// looking for terms containing certain word(s) 153 //Clean a bit the search string 154 $hook = trim(strip_tags($hook)); 155Server.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 1463 lines
186 if (ini_get("magic_quotes_gpc")) { 187 $this->path = stripslashes($this->path); 188 } 221 // detect requested method names 222 $method = strtolower($this->_SERVER["REQUEST_METHOD"]); 223 $wrapper = "http_".$method;iCalendar_properties.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 1481 lines
78 function set_parent_component($componentname) { 79 if(class_exists('iCalendar_'.strtolower(substr($componentname, 1)))) { 80 $this->parent_component = strtoupper($componentname); 170 if(isset($this->parameters[$name])) { 171 // If there are any double quotes in the value, invisibly strip them 172 if(is_array($this->parameters[$name])) {mootools.js https://bitbucket.org/kudutest2/kenticogit.git | JavaScript | 1790 lines
47 if (name) { 48 var family = name.toLowerCase(); 49 object.prototype.$family = { name: family }; 105 'Array': ["concat", "indexOf", "join", "lastIndexOf", "pop", "push", "reverse", "shift", "slice", "sort", "splice", "toString", "unshift", "valueOf"], 106 'String': ["charAt", "charCodeAt", "concat", "indexOf", "lastIndexOf", "match", "replace", "search", "slice", "split", "substr", "substring", "toLowerCase", "toUpperCase", "valueOf"] 107 }; 487 return this.replace(/[A-Z]/g, function(match) { 488 return ('-' + match.charAt(0).toLowerCase()); 489 }); 519 520 stripScripts: function(option) { 521 var scripts = '';TIFFTechNote2.html https://bitbucket.org/lennonchan/cafu.git | HTML | 707 lines
68* The JPEGInterchangeFormat field also violates TIFF's proscription against 69duplicate pointers: the normal strip/tile pointers are expected to point 70into the larger data area pointed to by JPEGInterchangeFormat. All TIFF 80* The 6.0 design cannot support using different quantization tables in 81different strips/tiles of an image (so as to encode some areas at higher 82quality than others). Furthermore, since quantization tables are tied 93 * It is unclear whether restart markers must be omitted at TIFF segment 94 (strip/tile) boundaries, or whether they are optional. 95 105That last point is particularly nasty. If we make numbering begin again 106within each segment, we give up the ability to impose a TIFF strip/tile 107structure on an existing JPEG datastream with restarts (which was clearly a 143suggest not writing the JPEG auxiliary fields (JPEGxxTables etc) nor even 144the basic TIFF strip/tile data pointers. This approach is incompatible 145with implementations that handle the full TIFF 6.0 JPEG design, since theyRESearch.cxx https://bitbucket.org/lennonchan/cafu.git | C++ | 986 lines
65 * regex searches are made line per line 66 * (stripped of end-of-line chars). 67 * - if not in posix mode, when followed by a 93 * 94 * [a-z] any lowercase alpha 95 *Makefile.in https://bitbucket.org/lennonchan/cafu.git | Autoconf | 1792 lines
25SONAME_FLAG = @SONAME_FLAG@ 26STRIP = @STRIP@ 27INSTALL_PROGRAM = @INSTALL_PROGRAM@ 56TOOLKIT = @TOOLKIT@ 57TOOLKIT_LOWERCASE = @TOOLKIT_LOWERCASE@ 58TOOLKIT_VERSION = @TOOLKIT_VERSION@ 198 wxtiff_tif_read.o \ 199 wxtiff_tif_strip.o \ 200 wxtiff_tif_swab.o \content.py https://bitbucket.org/lennonchan/cafu.git | Python | 584 lines
51# 52# The object is filled line by line by the parser; it strips the leading 53# "margin" space from each input line before storing it in 'self.lines'. 62 for l in lines: 63 if string.strip( l[:margin] ) == "": 64 l = l[margin:] 91 for l in lines: 92 l = string.strip( l ) 93 self.words.extend( string.split( l ) ) 234 def __init__( self, tag, lines ): 235 self.tag = string.lower( tag ) 236 self.fields = [] 378 marks = self.markup_lines 379 if len( marks ) > 0 and not string.strip( marks[-1] ): 380 self.markup_lines = marks[:-1]TerrainViewer.cpp https://bitbucket.org/lennonchan/cafu.git | C++ | 455 lines
299 VI.nu =kappa>0.0 ? 1.0f/kappa : FLT_MAX; // inverse of error tolerance in radians 300 VI.nu_min=2.0f/3.0f*VI.nu; // lower morph parameter 301 VI.nu_max= VI.nu; // upper morph parameter 325 326 static MatSys::MeshT TerrainMesh(MatSys::MeshT::TriangleStrip); 327 TerrainMesh.Vertices.Overwrite(); 330 { 331 ArrayT<Vector3fT>& VectorStrip=TerrainNew.ComputeVectorStrip(VI); 332 332 333 // With SOARX, the vector strip begins as usual and as expected with the first vector. 334 for (unsigned long VNr=0; VNr<VectorStrip.Size(); VNr++) 336 TerrainMesh.Vertices.PushBackEmpty(); 337 TerrainMesh.Vertices[VNr].SetOrigin(VectorStrip[VNr]); 338template_defaults.js https://github.com/ozten/openwebapps.git | JavaScript | 853 lines
155 }, 156 lower: function (value, arg) { return typeof value === 'string' ? value.toLowerCase() : ''; }, 157 make_list: function (value, arg) { return String(value).split(''); }, 158 phone2numeric: function (value, arg) { 159 value = String(value).toLowerCase(); 160 return value.replace(/[a-pr-y]/g, function (x) { 218 slugify: function (value, arg) { 219 return String(value).toLowerCase().replace(/[^\w\s]/g, '').replace(/\s+/g, '-'); 220 }, 224 }, 225 striptags: function (value, arg, safety) { 226 safety.is_safe = true;easy_install.py https://github.com/sgammon/tipfy.git | Python | 1286 lines
71 import java.lang.System 72 jython_os_name = (java.lang.System.getProperties()['os.name']).lower() 73 102 stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate() 103 return bool(int(stdout.strip())) 104 145 'error trying to get system packages:\n%s' % (stderr,)) 146 res = eval(stdout.strip()) 147 try: 165 'error trying to get system packages:\n%s' % (stderr,)) 166 return eval(stdout.strip()) 167 182 i.close() 183 version = o.read().strip() 184 o.close()toolbarfactory.js https://github.com/urmuzov/closure-maven.git | JavaScript | 440 lines
44 * Takes a font spec (e.g. "Arial, Helvetica, sans-serif") and returns the 45 * primary font name, normalized to lowercase (e.g. "arial"). 46 * @param {string} fontSpec Font specification. 46 * @param {string} fontSpec Font specification. 47 * @return {string} The primary font name, in lowercase. 48 */ 50 var i = fontSpec.indexOf(','); 51 var fontName = (i != -1 ? fontSpec.substring(0, i) : fontSpec).toLowerCase(); 52 // Strip leading/trailing quotes from the font name (bug 1050118). 52 // Strip leading/trailing quotes from the font name (bug 1050118). 53 return goog.string.stripQuotes(fontName, '"\''); 54}; 86 // The font ID is the first font listed in the CSS style, normalized to 87 // lowercase. 88 var id = goog.ui.editor.ToolbarFactory.getPrimaryFont(value);string.js https://github.com/urmuzov/closure-maven.git | JavaScript | 1254 lines
110 * Converts multiple whitespace chars (spaces, non-breaking-spaces, new lines 111 * and tabs) to a single space, and strips leading and trailing whitespace. 112 * @param {string} str Input string. 128goog.string.isEmpty = function(str) { 129 // testing length == 0 first is actually slower in all browsers (about the 130 // same in Opera). 212 * replaced with a single space. 213 * @param {string} str The string from which to strip newlines. 214 * @return {string} A copy of {@code str} stripped of newlines. 215 */ 216goog.string.stripNewlines = function(str) { 217 return str.replace(/(\r\n|\r|\n)+/g, ' '); 316goog.string.caseInsensitiveCompare = function(str1, str2) { 317 var test1 = String(str1).toLowerCase(); 318 var test2 = String(str2).toLowerCase();bidi.js https://github.com/urmuzov/closure-maven.git | JavaScript | 800 lines
54goog.i18n.bidi.IS_RTL = goog.i18n.bidi.FORCE_RTL || 55 (goog.LOCALE.substring(0, 2).toLowerCase() == 'ar' || 56 goog.LOCALE.substring(0, 2).toLowerCase() == 'fa' || 58 goog.LOCALE.substring(0, 2).toLowerCase() == 'iw' || 59 goog.LOCALE.substring(0, 2).toLowerCase() == 'ur' || 60 goog.LOCALE.substring(0, 2).toLowerCase() == 'yi') && 181 * Returns the input text with spaces instead of HTML tags or HTML escapes, if 182 * opt_isStripNeeded is true. Else returns the input as is. 183 * Useful for text directionality estimation. 187 * @param {string} str The given string. 188 * @param {boolean=} opt_isStripNeeded Whether to perform the stripping. 189 * Default: false (to retain consistency with calling functions). 192 */ 193goog.i18n.bidi.stripHtmlIfNeeded_ = function(str, opt_isStripNeeded) { 194 return opt_isStripNeeded ? str.replace(goog.i18n.bidi.htmlSkipReg_, ' ') :alpha.js https://github.com/urmuzov/closure-maven.git | JavaScript | 467 lines
74 * @param {string} colorWithAlpha The alpha hex color to get the hex color from. 75 * @return {string} The hex color where the alpha part has been stripped off. 76 */ 91 * @param {string} colorWithAlpha The alpha hex color to get the hex color from. 92 * @return {string} The hex color where the alpha part has been stripped off. 93 */ 115 * @param {string} hexColor an alpha hex color string. 116 * @return {string} hex color in the format '#rrggbbaa' with all lowercase 117 * literals. 127 } 128 return hexColor.toLowerCase(); 129}; 340 * We expect strings of the format #RRGGBBAA (ex: #1b3d5f5b) 341 * using only lowercase letters. 342 * @param {string} str String to check.base.js https://github.com/urmuzov/closure-maven.git | JavaScript | 1498 lines
49 * @define {boolean} DEBUG is provided as a convenience so that debugging code 50 * that should not be included in a production js_binary can be easily stripped 51 * by specifying --define goog.DEBUG=false to the JSCompiler. For example, most 66 * the canonical Unicode format with hyphen as a delimiter. Language must be 67 * lowercase, Language Script - Capitalized, Region - UPPERCASE. 68 * There are few examples: pt-BR, en, en-US, sr-Latin-BO, zh-Hans-CN. 302 * that works in parallel with the BUILD system. Note that all calls 303 * to goog.require will be stripped by the JSCompiler when the 304 * --closure_pass option is used.RPMng.py https://github.com/ab/bcfg2-old.git | Python | 937 lines
62 for i in RPMng_CP.get(self.name, 'installonlypackages').split(','): 63 self.installOnlyPkgs.append(i.strip()) 64 if self.installOnlyPkgs == []: 77 for i in RPMng_CP.get(self.name, 'erase_flags').split(','): 78 self.erase_flags.append(i.strip()) 79 if self.erase_flags == []: 84 if RPMng_CP.has_option(self.name, 'pkg_checks'): 85 self.pkg_checks = RPMng_CP.get(self.name, 'pkg_checks').lower() 86 else: 91 if RPMng_CP.has_option(self.name, 'pkg_verify'): 92 self.pkg_verify = RPMng_CP.get(self.name, 'pkg_verify').lower() 93 else: 98 if RPMng_CP.has_option(self.name, 'installed_action'): 99 self.installed_action = RPMng_CP.get(self.name, 'installed_action').lower() 100 else:jquery.mobile.splitview.js https://bitbucket.org/webcred/brizinga.git | JavaScript | 624 lines
17 var firstPageMain=$('div:jqmData(id="main") > div:jqmData(role="page"):first'); 18 if( !$.mobile.hashListeningEnabled || !$.mobile.path.stripHash( location.hash ) ){ 19 var $container=$('div:jqmData(id="main")'); 49 while (ele){ 50 if (ele.nodeName.toLowerCase() == "a"){ 51 break; 140 { 141 type: type && type.length && type.toLowerCase() || "get", 142 data: $this.serialize(), 242 $currPanelActivePage=$currPanel.children('div.'+$.mobile.activePageClass), 243 url=$.mobile.path.stripHash($link.attr("href")), 244 from = null;OgreStaticGeometry.h https://bitbucket.org/barakianc/nvidia-physx-and-apex-in-gge.git | C Header | 781 lines
85 if you use meshes/materials which have LOD, batches in the distance 86 will have a lower polygon count or material detail to those in the 87 foreground. Since each mesh might have different LOD distances, during 117 Warning: this class only works with indexed triangle lists at the moment, 118 do not pass it triangle strips, fans or lines / points, or unindexed geometry. 119 */ 127 far more important that we don't have redundant vertex data. If a 128 SubMesh uses shared geometry, or we're looking at a lower LOD, not 129 all the vertices are being referenced by faces on that submesh.OgreInstancedGeometry.h https://bitbucket.org/barakianc/nvidia-physx-and-apex-in-gge.git | C Header | 890 lines
80 if you use meshes/materials which have LOD, batches in the distance 81 will have a lower polygon count or material detail to those in the 82 foreground. Since each mesh might have different LOD distances, during 101 @note 102 Warning: this class only works with indexed triangle lists at the moment, do not pass it triangle strips, fans or lines / points, or unindexed geometry. 103 */ 111 far more important that we don't have redundant vertex data. If a 112 SubMesh uses shared geometry, or we're looking at a lower LOD, not 113 all the vertices are being referenced by faces on that submesh.CReferenceManager.cpp https://bitbucket.org/barakianc/nvidia-physx-and-apex-in-gge.git | C++ | 676 lines
92 93 // Strip the filename of the multiple file token 94 int stripIndex = filename.index('{'); 94 int stripIndex = filename.index('{'); 95 if (stripIndex != -1) filename = filename.substring(0, stripIndex - 1); 96 100 { 101 MString ext = filename.substring(extLocation + 1, filename.length() - 1).toLowerCase(); 102 if (ext == "dae" || ext == "xml") return; 320 MString extension = _ext.c_str(); 321 extension.toLowerCase(); 322 if (reference != NULL && extension != "dae" && extension != "xml")gccxmlGenerateDB.py https://bitbucket.org/barakianc/nvidia-physx-and-apex-in-gge.git | Python | 437 lines
122 except KeyError: 123 fname = os.path.normpath(os.path.abspath(d.location.file_name)).lower() 124 fnameCache[d.location.file_name] = fname 160 for line in open(globalSettingsFile).readlines(): 161 line=line.strip() 162 if line!='': 162 if line!='': 163 (key, value) = map(string.strip, line.split('=')) 164 value = resolveEnv(value) 266def allowFileName(filename, dirname, hasReflection): 267 filename = filename.lower() 268 dirname = dirname.lower()headerToDom.py https://bitbucket.org/barakianc/nvidia-physx-and-apex-in-gge.git | Python | 679 lines
26 for line in open(fname).read().split(): 27 key, value = [ x.strip() for x in line.split(":") ] 28 ret[ key ] = value 44 elif type(curval) == bool: 45 newval = value.strip().lower() in ["1", "true"] 46 else: 67 matchRange = bestMatch.span() 68 skipped = txt[:matchRange[0]].strip() 69 if len(skipped): 290 getparentname = lambda x : x[len(x) > 1 and 1 or 0] 291 parents = [getparentname(x.split()).split("<")[0].strip() for x in parents.split(",")] 292 klass.parent = parents[0] 317 prev2 = klass.member[-2] if len(klass.member) >= 2 else None 318 if mname.startswith("num") and mname[3:].lower() == prev.name.lower(): 319 errPrefix = "%s::%s " % (klass.name, mname)domToClass.py https://bitbucket.org/barakianc/nvidia-physx-and-apex-in-gge.git | Python | 850 lines
66def _extractHavokTypes(): 67 return [ 'hk%s' % m.lower() for m in re.findall('^\s*TYPE_([^,]*)(?m)', havokTypes) ] 68havokTypesList = _extractHavokTypes() 77 for line in open(fname).read().split(): 78 key, value = [ x.strip() for x in line.split(":") ] 79 ret[ key ] = value 111 """ 112 mtype = removeFromDeclarationSpaced( mtype.strip(), ("mutable","const") ) 113 mtype = mtype.replace(" *","*").replace(" &","&") 133 # extract valuable type info only 134 mtype = mtype.split("[")[0].strip() 135 158 else:# mtype.startswith("hk"): 159 if not mtype.lower() in havokTypesList: 160 if not mtype in extraTypes:widgets.php https://bitbucket.org/jstroschein/wordpress-3.5.1-clean.git | PHP | 1259 lines
82 * 83 * @param string $id_base Optional Base ID for the widget, lower case, 84 * if left empty a portion of the widget's class name will be used. Has to be unique. 93 function __construct( $id_base = false, $name, $widget_options = array(), $control_options = array() ) { 94 $this->id_base = empty($id_base) ? preg_replace( '/(wp_)?widget_/', '', strtolower(get_class($this)) ) : strtolower($id_base); 95 $this->name = $name; 226 foreach ( $settings as $number => $new_instance ) { 227 $new_instance = stripslashes_deep($new_instance); 228 $this->_set($number);pluggable.php https://bitbucket.org/jstroschein/wordpress-3.5.1-clean.git | PHP | 1440 lines
249 if ( strpos($header, ':') === false ) { 250 if ( false !== stripos( $header, 'boundary=' ) ) { 251 $parts = preg_split('/boundary=/i', trim( $header ) ); 262 263 switch ( strtolower( $name ) ) { 264 // Mainly for legacy -- process a From: header if it's there 282 $content_type = trim( $type ); 283 if ( false !== stripos( $charset, 'charset=' ) ) { 284 $charset = trim( str_replace( array( 'charset=', '"' ), '', $charset ) ); 284 $charset = trim( str_replace( array( 'charset=', '"' ), '', $charset ) ); 285 } elseif ( false !== stripos( $charset, 'boundary=' ) ) { 286 $boundary = trim( str_replace( array( 'BOUNDARY=', 'boundary=', '"' ), '', $charset ) ); 330 // Get the site domain and get rid of www. 331 $sitename = strtolower( $_SERVER['SERVER_NAME'] ); 332 if ( substr( $sitename, 0, 4 ) == 'www.' ) {link-template.php https://bitbucket.org/jstroschein/wordpress-3.5.1-clean.git | PHP | 1674 lines
22 * Conditionally adds a trailing slash if the permalink structure has a trailing 23 * slash, strips the trailing slash if not. The string is passed through the 24 * 'user_trailingslashit' filter. Will remove trailing slash from string, if 58 $post = get_post(); 59 switch ( strtolower( $mode ) ) { 60 case 'title':Makefile https://github.com/dmitriy103/bravo_kernel-2.6.35.git | Makefile | 1235 lines
151# your external grep (e.g., if your system lacks grep, if its grep is 152# broken, or spawning external process is slower than built-in grep perf has). 153# 231ALL_LDFLAGS = $(LDFLAGS) 232STRIP ?= strip 233namei_vfat.c https://github.com/dmitriy103/bravo_kernel-2.6.35.git | C | 1101 lines
126 while (len--) 127 hash = partial_name_hash(nls_tolower(t, *name++), hash); 128 qstr->hash = end_name_hash(hash); 141 /* A filename cannot end in '.' or we treat it like it has none */ 142 alen = vfat_striptail_len(a); 143 blen = vfat_striptail_len(b); 233 * File name and extension name is contain uppercase/lowercase 234 * only. And it is expressed by CASE_LOWER_BASE and CASE_LOWER_EXT. 235 * 236 * 2) File name is 8.3 format, but it contain the uppercase and 237 * lowercase char, muliti bytes char, etc. In this case numtail is not 238 * added, but Longfilename is stored. 250#define INIT_SHORTNAME_INFO(x) do { \ 251 (x)->lower = 1; \ 252 (x)->upper = 1; \mmap.c https://github.com/dmitriy103/bravo_kernel-2.6.35.git | C | 557 lines
163 rc = ecryptfs_read_lower_page_segment( 164 page, (lower_offset >> PAGE_CACHE_SHIFT), 165 (lower_offset & ~PAGE_CACHE_MASK), 416 ecryptfs_inode_to_private(ecryptfs_inode)->lower_file->f_dentry; 417 struct inode *lower_inode = lower_dentry->d_inode; 418 int rc; 419 420 if (!lower_inode->i_op->getxattr || !lower_inode->i_op->setxattr) { 421 printk(KERN_WARNING 433 mutex_lock(&lower_inode->i_mutex); 434 size = lower_inode->i_op->getxattr(lower_dentry, ECRYPTFS_XATTR_NAME, 435 xattr_virt, PAGE_CACHE_SIZE); 438 put_unaligned_be64(i_size_read(ecryptfs_inode), xattr_virt); 439 rc = lower_inode->i_op->setxattr(lower_dentry, ECRYPTFS_XATTR_NAME, 440 xattr_virt, size, 0);e1000.h https://github.com/dmitriy103/bravo_kernel-2.6.35.git | C Header | 687 lines
122#define HV_SCC_UPPER PHY_REG(778, 16) /* Single Collision Count */ 123#define HV_SCC_LOWER PHY_REG(778, 17) 124#define HV_ECOL_UPPER PHY_REG(778, 18) /* Excessive Collision Count */ 124#define HV_ECOL_UPPER PHY_REG(778, 18) /* Excessive Collision Count */ 125#define HV_ECOL_LOWER PHY_REG(778, 19) 126#define HV_MCC_UPPER PHY_REG(778, 20) /* Multiple Collision Count */ 126#define HV_MCC_UPPER PHY_REG(778, 20) /* Multiple Collision Count */ 127#define HV_MCC_LOWER PHY_REG(778, 21) 128#define HV_LATECOL_UPPER PHY_REG(778, 23) /* Late Collision Count */ 128#define HV_LATECOL_UPPER PHY_REG(778, 23) /* Late Collision Count */ 129#define HV_LATECOL_LOWER PHY_REG(778, 24) 130#define HV_COLC_UPPER PHY_REG(778, 25) /* Collision Count */ 130#define HV_COLC_UPPER PHY_REG(778, 25) /* Collision Count */ 131#define HV_COLC_LOWER PHY_REG(778, 26) 132#define HV_DC_UPPER PHY_REG(778, 27) /* Defer Count */link-template.php https://github.com/muskmelon/Greemo.git | PHP | 1706 lines
22 * Conditionally adds a trailing slash if the permalink structure has a trailing 23 * slash, strips the trailing slash if not. The string is passed through the 24 * 'user_trailingslashit' filter. Will remove trailing slash from string, if 58 global $post; 59 switch ( strtolower($mode) ) { 60 case 'title':xmlmanager.py https://github.com/d1on/boto.git | Python | 517 lines
131 value = self.get_text_value(value) 132 if value.lower() == 'true': 133 return True 186 if not db_name: 187 db_name = cls.__name__.lower() 188 self.db_name = db_name 370 for filter, value in filters: 371 name, op = filter.strip().split() 372 found = Falseresumable_upload_handler.py https://github.com/d1on/boto.git | Python | 580 lines
94 f = open(self.tracker_file_name, 'r') 95 uri = f.readline().strip() 96 self._set_tracker_uri(uri) 144 parse_result = urlparse.urlparse(uri) 145 if (parse_result.scheme.lower() not in ['http', 'https'] or 146 not parse_result.netloc or not parse_result.query): 262 for k in headers: 263 if k.lower() == 'content-length': 264 raise ResumableUploadException(utils.py https://github.com/d1on/boto.git | Python | 691 lines
82 for key in headers: 83 lk = key.lower() 84 if headers[key] != None and (lk in ['content-md5', 'content-type', 'date'] or 85 lk.startswith(provider.header_prefix)): 86 interesting_headers[lk] = headers[key].strip() 87 136 for k in metadata.keys(): 137 if k.lower() in ['cache-control', 'content-md5', 'content-type', 138 'content-encoding', 'content-disposition', 151 for hkey in headers.keys(): 152 if hkey.lower().startswith(metadata_prefix): 153 val = urllib.unquote_plus(headers[hkey]) 223 t = nvpair.split('=') 224 user_data[t[0].strip()] = t[1].strip() 225 return user_dataConfig.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 1387 lines
111 'minify.html.inline.js' => 'boolean', 112 'minify.html.strip.crlf' => 'boolean', 113 'minify.html.comments.ignore' => 'array', 116 'minify.css.combine' => 'boolean', 117 'minify.css.strip.comments' => 'boolean', 118 'minify.css.strip.crlf' => 'boolean', 125 'minify.js.combine.footer' => 'boolean', 126 'minify.js.strip.comments' => 'boolean', 127 'minify.js.strip.crlf' => 'boolean', 144 'minify.csstidy.options.compress_font-weight' => 'boolean', 145 'minify.csstidy.options.lowercase_s' => 'boolean', 146 'minify.csstidy.options.optimise_shorthands' => 'integer',class.csstidy.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 999 lines
259 $this->settings['compress_font-weight'] = true; 260 $this->settings['lowercase_s'] = false; 261 $this->settings['optimise_shorthands'] = 1; 415 { 416 $content = strip_tags(file_get_contents($content),'<span>'); 417 }define.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 1244 lines
127 128 return (stripos($content, '<?xml') === 0 || stripos($content, '<html') === 0 || stripos($content, '<!DOCTYPE') === 0); 129} 285function w3_get_domain($host) { 286 $host = strtolower($host); 287 409 $matches = null; 410 $uri = strtolower($uri); 411sharing-sources.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 1184 lines
53 if ( !empty( $query ) ) { 54 if ( stripos( $url, '?' ) === false ) 55 $url .= '?'.$query; 118 119 $name = strtolower( $this->get_id() ); 120 133 $totals = array(); 134 $name = strtolower( $this->get_id() ); 135 205 $ajax = false; 206 if ( isset( $_SERVER['HTTP_X_REQUESTED_WITH'] ) && strtolower( $_SERVER['HTTP_X_REQUESTED_WITH'] ) == 'xmlhttprequest' ) 207 $ajax = true; 383 384 if ( function_exists( 'mb_stripos' ) ) { 385 $strlen = 'mb_strlen';css_optimiser.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 478 lines
35 if (isset($_REQUEST['css_text'])) { 36 $_REQUEST['css_text'] = stripslashes($_REQUEST['css_text']); 37 } 38 if (isset($_REQUEST['custom'])) { 39 $_REQUEST['custom'] = stripslashes($_REQUEST['custom']); 40 } 41 if (isset($_COOKIE['custom_template'])) { 42 $_COOKIE['custom_template'] = stripslashes($_COOKIE['custom_template']); 43 } 116if(isset($_REQUEST['case_properties'])) $css->set_cfg('case_properties',$_REQUEST['case_properties']); 117if(isset($_REQUEST['lowercase'])) $css->set_cfg('lowercase_s',true); 118if(!isset($_REQUEST['compress_c']) && isset($_REQUEST['post'])) $css->set_cfg('compress_colors',false); 299 300 <input type="checkbox" name="lowercase" id="lowercase" value="lowercase" 301 <?php if($css->get_cfg('lowercase_s')) echo 'checked="checked"'; ?> />class.csstidy.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 1225 lines
252 $this->settings['compress_font-weight'] = true; 253 $this->settings['lowercase_s'] = false; 254 /* 500 if ($from_file) { 501 $content = strip_tags(file_get_contents($content), '<span>'); 502 }porterStemmer.m https://bitbucket.org/sandeepkunkunuru/machinelearning.git | Objective C | 385 lines
3% paper: 4% Porter, 1980, An algorithm for suffix stripping, Program, Vol. 14, 5% no. 3, pp 130-137 19 20% Lower-case string 21inString = lower(inString);Part.php https://github.com/grjones/qframe.git | PHP | 520 lines
151 try { 152 return stripos($this->contentType, 'multipart/') === 0; 153 } catch(Zend_Mail_Exception $e) { 301 * 302 * The returned headers are as saved internally. All names are lowercased. The value is a string or an array 303 * if a header with the same name occurs more than once. 337 338 $lowerName = strtolower($name); 339 340 if ($this->headerExists($name) == false) { 341 $lowerName = strtolower(preg_replace('%([a-z])([A-Z])%', '\1-\2', $name)); 342 if($this->headerExists($lowerName) == false) { 346 require_once 'Zend/Mail/Exception.php'; 347 throw new Zend_Mail_Exception("no Header with Name $name or $lowerName found"); 348 }ASIWebPageRequest.m https://gitlab.com/praveenvelanati/ios-demo | Objective C | 722 lines
88 webContentType = ASINotParsedWebContentType; 89 NSString *contentType = [[[self responseHeaders] objectForKey:@"Content-Type"] lowercaseString]; 90 contentType = [[contentType componentsSeparatedByString:@";"] objectAtIndex:0]; 356 357 // We'll use the xmlsave API so we can strip the xml declaration 358 xmlSaveCtxtPtr saveContext;VideoController.php https://gitlab.com/macitsimsek/fastsubtitle | PHP | 644 lines
8use App\VideoComment; 9use App\VideoFollower; 10use App\VideoPeople; 37 <i class="input-helper"></i> 38 '.trim($sonucdizi[$i]).' '.strip_tags($turdizi[$i]).' 39 </label> 48 $input = $request['sorgu']; 49 $input = strtolower($input); 50 $words = array(); 54 foreach($videos as $items){ 55 $videoName = strtolower($items['name']); 56 $lev = self::lev($input,$videoName); 80 <label> 81 <input type="radio" name="radios2" value="'.url('video/'.\App\Functions::beGoodSeo(stripslashes($cikti[$i][0])).'/'.$cikti[$i][3]).'"> 82 <i class="input-helper"></i>DenemeController.php https://gitlab.com/macitsimsek/fastsubtitle | PHP | 390 lines
13use App\VideoComment; 14use App\VideoFollower; 15use App\VideoProperty; 223 return $request->server("HTTP_HOST"); 224 $followedVideos = VideoFollower::where(['followerID'=>1]) 225 ->join('videoproperties','videoproperties.videoID','=','videofollowers.videoID') 229 ->orWhere(['fromLanguage'=>'turkish','toLanguage'=>'english']) 230 //->select(stripslashes(DB::raw('sentence')),stripslashes(DB::raw('mean'))) 231 ->select('sentence','mean')bootstrap.js https://gitlab.com/alastorxz/Hyperservices | JavaScript | 1667 lines
14 if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1) || (version[0] > 2)) { 15 throw new Error('Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3') 16 } 108 selector = $this.attr('href') 109 selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7 110 } 504 var $this = $(this) 505 var $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) // strip for ie7 506 if (!$target.hasClass('carousel')) returnConfig.in https://gitlab.com/gl-xinshouyong/1407-mifi-customer-tmp | Autoconf | 933 lines
12 help 13 basename is used to strip the directory and suffix from filenames, 14 leaving just the filename itself. Enable this option if you wish 124 Enable character classes, enabling commands such as: 125 tr [:upper:] [:lower:] to convert input into lowercase. 126 294 help 295 dirname is used to strip a non-directory suffix from 296 a file name.Upload.php https://gitlab.com/betanurlaila/UI_onlineshop | PHP | 1314 lines
149 /** 150 * Force filename extension to lowercase 151 * 153 */ 154 public $file_ext_tolower = FALSE; 155 457 $this->file_type = preg_replace('/^(.+?);.*$/', '\\1', $this->file_type); 458 $this->file_type = strtolower(trim(stripslashes($this->file_type), '"')); 459 $this->file_name = $this->_prep_filename($_file['name']); 528 529 if ($this->file_ext_tolower && ($ext_length = strlen($this->file_ext))) 530 { 530 { 531 // file_ext was previously lower-cased by a get_extension() call 532 $this->file_name = substr($this->file_name, 0, -$ext_length).$this->file_ext;form_helper.php https://gitlab.com/betanurlaila/UI_onlineshop | PHP | 1032 lines
80 81 if (stripos($attributes, 'method=') === FALSE) 82 { 85 86 if (stripos($attributes, 'accept-charset=') === FALSE) 87 { 87 { 88 $attributes .= ' accept-charset="'.strtolower(config_item('charset')).'"'; 89 } 93 // Add CSRF field if enabled, but leave it out for GET requests and requests to external websites 94 if ($CI->config->item('csrf_protection') === TRUE && strpos($action, $CI->config->base_url()) !== FALSE && ! stripos($form, 'method="get"')) 95 { 312 $extra = _attributes_to_string($extra); 313 if (stripos($extra, 'multiple') === FALSE) 314 {CHANGES.md https://gitlab.com/ripontopu/CodeHunterCMS | Markdown | 402 lines
62* [#13887](https://dev.ckeditor.com/ticket/13887): Fixed: [Link](http://ckeditor.com/addon/link) plugin alters the `target` attribute value. Thanks to [SamZiemer](https://github.com/SamZiemer)! 63* [#12189](http://dev.ckeditor.com/ticket/12189): Fixed: The [Link](http://ckeditor.com/addon/link) plugin dialog does not display the subject of email links if the subject parameter is not lowercase. 64* [#9192](http://dev.ckeditor.com/ticket/9192): Fixed: An `undefined` string is appended to an email address added with the [Link](http://ckeditor.com/addon/link) plugin if subject and email body are empty and [`config.emailProtection`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-emailProtection) is set to `encode`. 68* [#13885](http://dev.ckeditor.com/ticket/13885): Fixed: [Enhanced Image](http://ckeditor.com/addon/image2) requires the [Link](http://ckeditor.com/addon/link) plugin to link an image. 69* [#13883](http://dev.ckeditor.com/ticket/13883): Fixed: Copying a table using the context menu strips off styles. 70* [#13872](http://dev.ckeditor.com/ticket/13872): Fixed: Cutting is possible in the [read-only](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-property-readOnly) mode. 147* [#13528](http://dev.ckeditor.com/ticket/13528): [Firefox@Windows] Fixed: Content copied from Microsoft Word and other external applications is pasted as a plain text. Removed the `CKEDITOR.plugins.clipboard.isHtmlInExternalDataTransfer` property as the check must be dynamic. 148* [#13583](http://dev.ckeditor.com/ticket/13583): Fixed: [`DataTransfer.getData()`](http://docs.ckeditor.com/#!/api/CKEDITOR.plugins.clipboard.dataTransfer-method-getData) should work consistently in all browsers and should not strip valuable content. Fixed pasting tables from Microsoft Excel on Chrome. 149* [#13468](http://dev.ckeditor.com/ticket/13468): [IE] Fixed: Binding drag&drop `dataTransfer` does not work if `text` data was set in the meantime.loop-protect.js https://gitlab.com/Aaeinstein54/FreeCodeCamp | JavaScript | 437 lines
107 var theRest = lines.slice(lineNum).join('\n').substr(index).replace(labelRe, ''); 108 theRest.replace(reSingle, function commentStripper(match, capture, i) { 109 var target = theRest.substr(0, i).replace(comments, '').trim(); 113 } 114 // strip comments out of the target, and if there's nothing else 115 // it's a valid label...I hope! 153 154 if (line.toLowerCase().indexOf('noprotect') !== -1) { 155 disableLoopProtection = true;pastWeather.py https://gitlab.com/abushoeb/ghadoop-v1 | Python | 589 lines
168 for line in fd: 169 line = line.strip() 170 234 235 cond=cond.strip().lower() 236 condOrig=cond 243 c = WeatherCondition(condOrig,cond) 244 currentRecord.setTemp(temp.strip()) 245 currentRecord.setCondition(c) 260# out+="\t"+r.group(1) 261 currentRecord.setFeelLike(r.group(1).strip()) 262 continue 268# out+="\t"+r.group(1) 269 currentRecord.setAttribute("Dew", r.group(1).strip()) 270 continueget_str.c https://gitlab.com/MatthewRock/ecl | C | 500 lines
57 3. When b is even, the powers will end up with lots of low zero limbs. Could 58 save significant time in the mpn_tdiv_qr call by stripping these zeros. 59 4. In the code for developing digits from a single limb, we could avoid using 198#if HAVE_HOST_CPU_FAMILY_x86 199 /* The code below turns out to be a bit slower for x86 using gcc. 200 Use plain code. */tabledrag.js https://gitlab.com/endomorphosis/tactilevision | JavaScript | 1099 lines
120 var row = $(this); 121 var parentTag = row.parent().get(0).tagName.toLowerCase(); 122 var index = (parentTag == 'thead') ? headerIndex : columnIndex; 348 self.oldRowElement = item; 349 self.restripeTable(); 350 self.onDrag();2011-40-026.html https://gitlab.com/bernagg/TI | HTML | 592 lines
6<meta name="Keywords" content=""> 7<meta name="description" content="Learn, explore, talk about CrowdFlower with real humans, and check out CrowdFlower on Wikipedia, Youtube, Facebook, and Twitter. Digplanet gathers together information and people from all over the Internet, all focused on CrowdFlower, and makes it easy to add your thoughts or join the digparty and talk to real people who are also interested in CrowdFlower."> 8 152</script> 153<div id="topstripe"><a href="/wiki/" title="Go to the digplanet home, where you can start browsing through millions of topics on just about everything!" style="color:#FFF">digplanet</a><span style="float:right; margin-right:20px; font-size:14px; font-style:italic; font-family:'Times New Roman', Times, serif;">beta 1: Athena</span></div> 154<div id="header"> 244<th scope="row" style="text-align:left;">Website</th> 245<td class="" style=""><a href="http://crowdflower.com/" class="external free" rel="nofollow">http://crowdflower.com/</a></td> 246</tr> 259<li class="toclevel-2 tocsection-2"><a href="#CrowdSifter"><span class="tocnumber">1.1</span> <span class="toctext">CrowdSifter</span></a></li> 260<li class="toclevel-2 tocsection-3"><a href="#CrowdFlower"><span class="tocnumber">1.2</span> <span class="toctext">CrowdFlower</span></a></li> 261</ul> 273<p><i>CrowdSifter</i> for content moderation tasks like tagging nude images or obscenities.</p> 274<h3><span class="editsection">[<a href="/w/index.php?title=CrowdFlower&action=edit&section=3" title="Edit section: CrowdFlower">edit</a>]</span> <span class="mw-headline" id="CrowdFlower">CrowdFlower</span></h3> 275<p><i>CrowdFlower</i>, is a general-purpose crowdsourcing app that allows customers to upload their own tasks to be carried out by users of <a href="/wiki/Amazon_Mechanical_Turk">Amazon Mechanical Turk</a> or <a href="/wiki/Samasource">Samasource</a> (a social entreprise that connects women, youth, and refugees in the poorest parts of the world to microwork). Small payments are paid per completed tasks, typically a few cents per task. CrowdFlower was nominated for the <a href="/wiki/TechCrunch50">TechCrunch50</a> in September, 2009.</p>nusoapmime.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 501 lines
170 $this->debug("MIME header $k: $v"); 171 if (strtolower($k) == 'content-type') { 172 // PHP header() seems to strip leading whitespace starting 400 $this->debug("MIME header $k: $v"); 401 if (strtolower($k) == 'content-type') { 402 // PHP header() seems to strip leading whitespace startingcategory.functions.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 655 lines
158 159 if(strtolower($query['order_by']['direction']) == "desc") { 160 $order = "DESC"; 183 $end_element = $query['description_container']['end_element']; 184 $category_description = $start_element.wpautop(wptexturize( wp_kses(stripslashes($category_row['description']), $allowedtags ))).$end_element; 185 } 325 } //end get_option 326 $output .= "<li class='cat-item'><a class='categorylink' href='".wpsc_category_url($subcategory['id'])."'>".stripslashes($subcategory['name'])."</a>$addCount".display_subcategories($subcategory['id'])."</li>"; 327 } 384 if (get_option('catsprods_display_type') == 1){ 385 $output .= "<li class='cat-item'><span class='category'><a class='productlink' href='".wpsc_category_url($option['id'])."'>".stripslashes($option['name'])."</a>".$addCount."</span>"; 386 }else{ 388 if (!$image) { 389 $output .= "<li class='cat-item'><span class='category'><a class='productlink' href='".wpsc_category_url($option['id'])."'>".stripslashes($option['name'])."</a>".$addCount."</span>"; 390 } else {RCCWP_CustomWritePanel.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 685 lines
289 // copied from WP's sanitize_title_with_dashes($title) (formatting.php) 290 $capabilityName = strip_tags($customWritePanelName); 291 // Preserve escaped octets. 300 { 301 if (function_exists('mb_strtolower')) 302 { 302 { 303 $capabilityName = mb_strtolower($capabilityName, 'UTF-8'); 304 } 307 308 $capabilityName = strtolower($capabilityName); 309 $capabilityName = preg_replace('/&.+?;/', '', $capabilityName); // kill entitiesms-edit.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 632 lines
49 $limited_email_domains = str_replace( ' ', "\n", $_POST['limited_email_domains'] ); 50 $limited_email_domains = split( "\n", stripslashes( $limited_email_domains ) ); 51 $limited_email = array(); 62 if ( $_POST['banned_email_domains'] != '' ) { 63 $banned_email_domains = split( "\n", stripslashes( $_POST['banned_email_domains'] ) ); 64 $banned = array(); 128 continue; 129 $value = stripslashes_deep( $_POST[$option_name] ); 130 update_site_option( $option_name, $value ); 149 if ( ! preg_match( '/(--)/', $blog['domain'] ) && preg_match( '|^([a-zA-Z0-9-])+$|', $blog['domain'] ) ) 150 $domain = strtolower( $blog['domain'] ); 151 194 update_user_option( $user_id, 'primary_blog', $id, true ); 195 $content_mail = sprintf( __( "New site created by %1s\n\nAddress: http://%2s\nName: %3s"), $current_user->user_login , $newdomain . $path, stripslashes( $title ) ); 196 wp_mail( get_site_option('admin_email'), sprintf( __( '[%s] New Site Created' ), $current_site->site_name ), $content_mail, 'From: "Site Admin" <' . get_site_option( 'admin_email' ) . '>' );sass2scss.cpp https://gitlab.com/boxnia/NFU_MOVIL | C++ | 845 lines
26// KEEP_COMMENT: keep src comments in the resulting css code 27// STRIP_COMMENT: strip out all comments (either src or css) 28// CONVERT_COMMENT: convert all src comments to css comments 42 #define KEEP_COMMENT(converter) ((converter.options & SASS2SCSS_KEEP_COMMENT) == SASS2SCSS_KEEP_COMMENT) 43 #define STRIP_COMMENT(converter) ((converter.options & SASS2SCSS_STRIP_COMMENT) == SASS2SCSS_STRIP_COMMENT) 44 #define CONVERT_COMMENT(converter) ((converter.options & SASS2SCSS_CONVERT_COMMENT) == SASS2SCSS_CONVERT_COMMENT) 80 size_t i = sel.length(); 81 while (i -- > 0) { sel.at(i) = tolower(sel.at(i)); } 82 405 } 406 if (!STRIP_COMMENT(converter)) 407 { 445 446 // strip multi line comments 447 if (STRIP_COMMENT(converter))README.md https://gitlab.com/boxnia/NFU_MOVIL | Markdown | 492 lines
50 51Transforms a domain-name into a canonical domain-name. The canonical domain-name is a trimmed, lowercased, stripped-of-leading-dot and optionally punycode-encoded domain-name (Section 5.1.2 of RFC6265). For the most part, this function is idempotent (can be run again on its output without ill effects). 52 198 199return the canonicalized `.domain` field. This is lower-cased and punycode (RFC3490) encoded if the domain has any non-ASCII characters. 200htmlfilter.php https://gitlab.com/boxnia/NFU_MOVIL | PHP | 861 lines
66 * A small helper function to use with array_walk. Modifies a by-ref 67 * value and makes it lowercase. 68 * 72function tln_casenormalize(&$val){ 73 $val = strtolower($val); 74} 227 list($pos, $tagname, $match) = $regary; 228 $tagname = strtolower($tagname); 229 331 list($pos, $attname, $match) = $regary; 332 $attname = strtolower($attname); 333 /** 430 * The fact that we got here indicates that the tag end was never 431 * found. Return invalid tag indication so it gets stripped. 432 */w2ui.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 1093 lines
68 formatDateTime : formatDateTime, 69 stripTags : stripTags, 70 encodeTags : encodeTags, 84 // some internal variables 85 isIOS : ((navigator.userAgent.toLowerCase().indexOf('iphone') != -1 || 86 navigator.userAgent.toLowerCase().indexOf('ipod') != -1 || 86 navigator.userAgent.toLowerCase().indexOf('ipod') != -1 || 87 navigator.userAgent.toLowerCase().indexOf('ipad') != -1) 88 ? true : false), 88 ? true : false), 89 isIE : ((navigator.userAgent.toLowerCase().indexOf('msie') != -1 || 90 navigator.userAgent.toLowerCase().indexOf('trident') != -1 ) 149 if (RegExp('mon', 'ig').test(format)) { 150 format = format.replace(/month/ig, 'm').replace(/mon/ig, 'm').replace(/dd/ig, 'd').replace(/[, ]/ig, '/').replace(/\/\//g, '/').toLowerCase(); 151 val = val.replace(/[, ]/ig, '/').replace(/\/\//g, '/').toLowerCase();w2ui.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 1330 lines
63 formatDateTime : formatDateTime, 64 stripTags : stripTags, 65 encodeTags : encodeTags, 112 // format date 113 var tmp = val.replace(/-/g, '/').replace(/\./g, '/').toLowerCase().split('/'); 114 var tmp2 = format.replace(/-/g, '/').replace(/\./g, '/').toLowerCase(); 254 var date = dt.getDate(); 255 return format.toLowerCase() 256 .replace('month', w2utils.settings.fullmonths[month]) 289 } 290 return format.toLowerCase() 291 .replace('am', type) 312 313 function stripTags (html) { 314 if (html == null) return html;w2ui.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 1394 lines
43 date : date, 44 stripTags : stripTags, 45 encodeTags : encodeTags, 89 // European format dd/mm/yyyy 90 if (format.toLowerCase() == 'dd/mm/yyyy' || format.toLowerCase() == 'dd-mm-yyyy' || format.toLowerCase() == 'dd.mm.yyyy') { 91 val = val.replace(/-/g, '/').replace(/\./g, '/'); 144 var date = dt.getDate(); 145 var res = format.toLowerCase() 146 .replace('yyyy', year) 230 231 function stripTags (html) { 232 if (html == null) return html; 239 case 'object': 240 for (var a in html) html[a] = this.stripTags(html[a]); 241 break;vue.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 2092 lines
144 /** 145 * Strip quotes from a string 146 * 150 151 function stripQuotes(str) { 152 var a = str.charCodeAt(0); 183 function hyphenate(str) { 184 return str.replace(hyphenateRE, '$1-$2').toLowerCase(); 185 } 399 // UA sniffing for working around browser-specific quirks 400 var UA = inBrowser && window.navigator.userAgent.toLowerCase(); 401 var isIE9 = UA && UA.indexOf('msie 9.0') > 0; 627 } else { 628 var stripped = stripQuotes(arg); 629 var dynamic = stripped === arg;vue.common.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 2220 lines
140/** 141 * Strip quotes from a string 142 * 146 147function stripQuotes(str) { 148 var a = str.charCodeAt(0); 179function hyphenate(str) { 180 return str.replace(hyphenateRE, '$1-$2').toLowerCase(); 181} 395// UA sniffing for working around browser-specific quirks 396var UA = inBrowser && window.navigator.userAgent.toLowerCase(); 397var isIE9 = UA && UA.indexOf('msie 9.0') > 0; 623 } else { 624 var stripped = stripQuotes(arg); 625 var dynamic = stripped === arg;vue.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 2102 lines
144 /** 145 * Strip quotes from a string 146 * 150 151 function stripQuotes(str) { 152 var a = str.charCodeAt(0); 183 function hyphenate(str) { 184 return str.replace(hyphenateRE, '$1-$2').toLowerCase(); 185 } 395 396 var isIE9 = inBrowser && navigator.userAgent.toLowerCase().indexOf('msie 9.0') > 0; 397 611 } else { 612 var stripped = stripQuotes(arg); 613 var dynamic = stripped === arg;vue.common.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 2272 lines
140/** 141 * Strip quotes from a string 142 * 146 147function stripQuotes(str) { 148 var a = str.charCodeAt(0); 179function hyphenate(str) { 180 return str.replace(hyphenateRE, '$1-$2').toLowerCase(); 181} 391 392var isIE9 = inBrowser && navigator.userAgent.toLowerCase().indexOf('msie 9.0') > 0; 393 607 } else { 608 var stripped = stripQuotes(arg); 609 var dynamic = stripped === arg;vue.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 2202 lines
253 exports.checkComponent = function (el, options) { 254 var tag = el.tagName.toLowerCase() 255 if (tag === 'component') { 482 /** 483 * Strip quotes from a string 484 * 488 489 exports.stripQuotes = function (str) { 490 var a = str.charCodeAt(0) 521 .replace(/([a-z\d])([A-Z])/g, '$1-$2') 522 .toLowerCase() 523 }vue.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 2162 lines
256 exports.checkComponent = function (el, options, hasAttrs) { 257 var tag = el.tagName.toLowerCase() 258 if (tag === 'component') { 486 /** 487 * Strip quotes from a string 488 * 492 493 exports.stripQuotes = function (str) { 494 var a = str.charCodeAt(0)vue.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 2196 lines
232 /** 233 * Strip quotes from a string 234 * 238 239 exports.stripQuotes = function (str) { 240 var a = str.charCodeAt(0) 271 .replace(/([a-z\d])([A-Z])/g, '$1-$2') 272 .toLowerCase() 273 } 497 inBrowser && 498 navigator.userAgent.toLowerCase().indexOf('msie 9.0') > 0 499 501 inBrowser && 502 navigator.userAgent.toLowerCase().indexOf('android') > 0 503underscore.string.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 673 lines
41 function boolMatch(s, matchers) { 42 var i, matcher, down = s.toLowerCase(); 43 matchers = [].concat(matchers); 47 if (matcher.test && matcher.test(s)) return true; 48 if (matcher.toLowerCase() === down) return true; 49 } 71 function get_type(variable) { 72 return Object.prototype.toString.call(variable).slice(8, -1).toLowerCase(); 73 } 198 199 stripTags: function(str){ 200 if (str == null) return ''; 216 clean: function(str){ 217 return _s.strip(str).replace(/\s+/g, ' '); 218 },underscore.string.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 614 lines
59 function get_type(variable) { 60 return Object.prototype.toString.call(variable).slice(8, -1).toLowerCase(); 61 } 186 187 stripTags: function(str){ 188 if (str == null) return ''; 204 clean: function(str){ 205 return _s.strip(str).replace(/\s+/g, ' '); 206 }, 235 return String(str).replace(/\S/g, function(c){ 236 return c === c.toUpperCase() ? c.toLowerCase() : c.toUpperCase(); 237 }); 330 underscored: function(str){ 331 return _s.trim(str).replace(/([a-z\d])([A-Z]+)/g, '$1_$2').replace(/[-\s]+/g, '_').toLowerCase(); 332 },