93+ results for 'lower strip' (0 ms)

Not the results you expected?

cx25821-reg.h (https://github.com/drowningchild/android_kernel_samsung_dempsey.git) C Header · 1096 lines

238

239 //*****************************************************************************

240 #define GPIO_LO 0x110010 // Lower of GPIO pins [31:0]

241 #define GPIO_HI 0x110014 // Upper WORD of GPIO pins [47:31]

242

243 #define GPIO_LO_OE 0x110018 // Lower of GPIO output enable [31:0]

244 #define GPIO_HI_OE 0x11001C // Upper word of GPIO output enable [47:32]

245

vi_keymap.c (https://github.com/cparedes/omnibus.git) C · 877 lines

143 { ISFUNC, rl_vi_goto_mark }, /* ` */

144

145 /* Lowercase alphabet. */

146 { ISFUNC, rl_vi_append_mode }, /* a */

147 { ISFUNC, rl_vi_prev_word }, /* b */

423 { ISFUNC, rl_insert }, /* ` */

424

425 /* Lowercase alphabet. */

426 { ISFUNC, rl_insert }, /* a */

427 { ISFUNC, rl_insert }, /* b */

673

674 /* Uppercase alphabet. */

675 { ISFUNC, rl_do_lowercase_version }, /* A */

676 { ISFUNC, rl_do_lowercase_version }, /* B */

677 { ISFUNC, rl_do_lowercase_version }, /* C */

678 { ISFUNC, rl_do_lowercase_version }, /* D */

emacs_keymap.c (https://github.com/cparedes/omnibus.git) C · 873 lines

142 { ISFUNC, rl_insert }, /* ` */

143

144 /* Lowercase alphabet. */

145 { ISFUNC, rl_insert }, /* a */

146 { ISFUNC, rl_insert }, /* b */

391

392 /* Uppercase alphabet. */

393 { ISFUNC, rl_do_lowercase_version }, /* Meta-A */

394 { ISFUNC, rl_do_lowercase_version }, /* Meta-B */

395 { ISFUNC, rl_do_lowercase_version }, /* Meta-C */

396 { ISFUNC, rl_do_lowercase_version }, /* Meta-D */

397 { ISFUNC, rl_do_lowercase_version }, /* Meta-E */

398 { ISFUNC, rl_do_lowercase_version }, /* Meta-F */

Caching_Utility_T.cpp (https://github.com/LORDofDOOM/MMOTBC.git) C++ · 500 lines

108 if (min > (*iter).int_id_.second)

109 {

110 // Ah! an item with lower ATTTRIBUTES...

111 min = (*iter).int_id_.second;

112 key_to_remove = &(*iter).ext_id_;

223 else

224 {

225 // Ah! an entry with lower ATTTRIBUTES...

226 if (min > (*iter).int_id_.second)

227 {

348 else

349 {

350 // Ah! an entry with lower ATTTRIBUTES...

351 if (min > (*iter).int_id_.second ())

352 {

Javascript.php (https://github.com/ManpreetS512/Webpage.git) PHP · 871 lines

700 function _open_script($src = '')

701 {

702 $str = '<script type="text/javascript" charset="'.strtolower($this->CI->config->item('charset')).'"';

703 $str .= ($src == '') ? '>' : ' src="'.$src.'">';

704 return $str;

cx25821-reg.h (https://github.com/tworaz/linux.git) C Header · 1055 lines

238

239 /* ***************************************************************************** */

240 #define GPIO_LO 0x110010 /* Lower of GPIO pins [31:0] */

241 #define GPIO_HI 0x110014 /* Upper WORD of GPIO pins [47:31] */

242

243 #define GPIO_LO_OE 0x110018 /* Lower of GPIO output enable [31:0] */

244 #define GPIO_HI_OE 0x11001C /* Upper word of GPIO output enable [47:32] */

245

database_test.html (https://github.com/johnjbarton/JavaScriptLibraries.git) HTML · 699 lines

410 }

411

412 // Now try nested begins with lower begin levels

413 database.begin();

414 try {

TopFieldCollector.cs (https://bitbucket.org/jmblair/lucene.net.git) C# · 1137 lines

37 // TODO: one optimization we could do is to pre-fill

38 // the queue with sentinel value that guaranteed to

39 // always compare lower than a real hit; this would

40 // save having to check queueFull on each insert

41

NavigableMap.java (https://bitbucket.org/aways/android_libcore.git) Java · 395 lines

14 * A {@link SortedMap} extended with navigation methods returning the

15 * closest matches for given search targets. Methods

16 * {@code lowerEntry}, {@code floorEntry}, {@code ceilingEntry},

17 * and {@code higherEntry} return {@code Map.Entry} objects

18 * associated with keys respectively less than, less than or equal,

19 * greater than or equal, and greater than a given key, returning

20 * {@code null} if there is no such key. Similarly, methods

21 * {@code lowerKey}, {@code floorKey}, {@code ceilingKey}, and

22 * {@code higherKey} return only the associated keys. All of these

23 * methods are designed for locating, not traversing entries.

31 * and {@code tailMap} differ from the like-named {@code

32 * SortedMap} methods in accepting additional arguments describing

33 * whether lower and upper bounds are inclusive versus exclusive.

34 * Submaps of any {@code NavigableMap} must implement the {@code

35 * NavigableMap} interface.

omxVCM4P10_DequantTransformResidualFromPairAndAdd_s.s (https://bitbucket.org/aways/android_frameworks_av.git) Assembly · 480 lines

413 ADD DCval,DCval,#32

414 ASR DCval,DCval,#6

415 PKHBT DCval,DCval,DCval,LSL #16 ;// Duplicating the Lower halfword

416 MOV DCvalCopy, DCval ;// Needed for STRD

417 STRD DCval, [pDelta, #0] ;// pDelta[0] = pDelta[1] = pDelta[2] = pDelta[3] = DCval

pvmp3_decode_huff_cw.cpp (https://bitbucket.org/aways/android_frameworks_av.git) C++ · 758 lines

76 REFERENCES

77 [1] ISO MPEG Audio Subgroup Software Simulation Group (1996)

78 ISO 13818-3 MPEG-2 Audio Decoder - Lower Sampling Frequency Extension

79

80 [2] Introduction to Algorithms,

sad_inline.h (https://bitbucket.org/aways/android_frameworks_av.git) C Header · 539 lines

146 x10 = x5 - (x4 << 8); /* extract low bytes */

147 x10 = x10 + x4; /* add with high bytes */

148 x10 = x10 + (x10 << 16); /* add with lower half word */

149

150 if (((uint32)x10 >> 16) <= (uint32)dmin) /* compare with dmin */

316 x10 = x5 - (x4 << 8); /* extract low bytes */

317 x10 = x10 + x4; /* add with high bytes */

318 x10 = x10 + (x10 << 16); /* add with lower half word */

319

320 __asm

504 x10 = x5 - (x4 << 8); /* extract low bytes */

505 x10 = x10 + x4; /* add with high bytes */

506 x10 = x10 + (x10 << 16); /* add with lower half word */

507

508 if (((uint32)x10 >> 16) <= (uint32)dmin) /* compare with dmin */

fastidct.cpp (https://bitbucket.org/aways/android_frameworks_av.git) C++ · 1888 lines

83 x1 = blk[8];

84 x0 = ((int32)blk[0] << 11) + 128;

85 /* both upper and lower*/

86

87 x7 = W7 * x1;

186

187 x1 = blk[8];

188 /* both upper and lower*/

189

190 x7 = W7 * x1;

447 x0 = ((*(blk += 8)) << 8) + 8192;

448 *blk = 0; /* for proper rounding in the fourth stage */

449 /* both upper and lower*/

450 /* both x2orx6 and x0orx4 */

451

pvamrwbdecoder_basic_op_cequivalent.h (https://bitbucket.org/aways/android_frameworks_av.git) C Header · 545 lines

431 Function Name : amr_wb_round

432

433 Round the lower 16 bits of the 32 bit input number into the MS 16 bits

434 with saturation. Shift the resulting bits right by 16 and return the 16

435 bit number:

http11_parser.c (https://github.com/rkh/puma.git) C · 1225 lines

13

14 /*

15 * capitalizes all lower-case ASCII characters,

16 * converts dashes to underscores.

17 */

ftoption.h (https://github.com/aparvath/multitheftauto.git) C Header · 565 lines

343 /* If this macro is set (which is _not_ the default), the higher byte */

344 /* of an error code gives the module in which the error has occurred, */

345 /* while the lower byte is the real error code. */

346 /* */

347 /* Setting this macro makes sense for debugging purposes only, since */

CharIndexed.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 66 lines ✨ Summary

This Java interface defines a common interface for different types of source text, such as strings, buffers, and input streams. It provides methods to access characters at specific positions in the text, including moving the cursor position and checking if it’s valid. The interface also includes constants for handling out-of-range indices.

43 * It is possible for this method to be called with a negative index.

44 * This happens when using the '^' operator in multiline matching mode

45 * or the '\b' or '\<' word boundary operators. In any case, the lower

46 * bound is currently fixed at -2 (for '^' with a two-character newline).

47 *

Create_Constructor.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 222 lines

18 */

19

20 boolean JAVA_MODE = buffer.getMode().getName().toLowerCase().equals("java");

21 String UNDEFINED = "UNKNOWN_CLASS";

22

56 {

57 fileClassName = fileClassName.substring(0, index);

58 if(fileClassName.toLowerCase().indexOf("untitled") == -1)

59 {

60 return fileClassName;

rebol.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 547 lines

148 <KEYWORD1>log-e</KEYWORD1>

149 <KEYWORD1>loop</KEYWORD1>

150 <KEYWORD1>lowercase</KEYWORD1>

151 <KEYWORD1>maximum-of</KEYWORD1>

152 <KEYWORD1>minimum-of</KEYWORD1>

ftimage.h (https://github.com/JSilver99/mozilla-central-old.git) C Header · 802 lines

101 /* */

102 /* <Note> */

103 /* The bounding box is specified with the coordinates of the lower */

104 /* left and the upper right corner. In PostScript, those values are */

105 /* often called (llx,lly) and (urx,ury), respectively. */

reflect.js (https://github.com/JSilver99/mozilla-central-old.git) JavaScript · 579 lines

280 "Enumerated attributes should be case-insensitive.");

281 is(element.getAttribute(contentAttr), v.toUpperCase(),

282 "Content attribute should not be lower-cased.");

283 element.removeAttribute(contentAttr);

284

294 "Enumerated attributes should be case-insensitive.");

295 is(element.getAttribute(contentAttr), v.toUpperCase(),

296 "Content attribute should not be lower-cased.");

297 element.removeAttribute(contentAttr);

298 });

329 "Enumerated attributes should be case-insensitive.");

330 is(element.getAttribute(contentAttr), v.toUpperCase(),

331 "Content attribute should not be lower-cased.");

332 element.removeAttribute(contentAttr);

333

ReadSecurityTest.java (https://github.com/jianguo11/openmicroscopy.git) Java · 894 lines

217 oneToMany(r, true, true);

218

219 // RW_RW_RW / RW_RW_xx : now lets lower visibility

220 // thumbnail readable by other but not by world

221 permsA = RW_RW_RW;

300 oneToMany(r, true, true);

301

302 // RW_RW_RW / RW_RW_xx : now lets lower visibility

303 // thumbnail readable by other but not by world

304 permsA = RW_RW_RW;

SuperComponent.java (https://github.com/grapestack/railo.git) Java · 668 lines

207 */

208 public boolean containsKey(Key key) {

209 return comp.contains(getAccess(),key.getLowerString());

210 }

211

web_tester.php (https://github.com/lightyoruichi/DIY.git) PHP · 1410 lines

169 */

170 protected function normaliseHeader($header) {

171 return strtolower(trim($header));

172 }

173

expectation.php (https://github.com/lightyoruichi/DIY.git) PHP · 984 lines

327 class WithinMarginExpectation extends SimpleExpectation {

328 private $upper;

329 private $lower;

330

331 /**

340 parent::__construct($message);

341 $this->upper = $value + $margin;

342 $this->lower = $value - $margin;

343 }

344

351 */

352 function test($compare) {

353 return (($compare <= $this->upper) && ($compare >= $this->lower));

354 }

355

tinymce.Formatter_apply.html (https://github.com/chrisdarroch/tinymce.git) HTML · 1054 lines

20

21 function getContent() {

22 return editor.getContent().toLowerCase().replace(/[\r]+/g, '');

23 };

24

SkylineMatrix.h (https://bitbucket.org/rlyspn/androidrr.git) C Header · 862 lines

167 const Index minInnerIndex = outer - m_data.lowerProfile(outer);

168 if (inner >= minInnerIndex)

169 return this->m_data.lower(m_rowStartIndex[outer] + inner - (outer - m_data.lowerProfile(outer)));

170 else

171 return Scalar(0);

214 const Index minInnerIndex = outer - m_data.lowerProfile(outer);

215 eigen_assert(inner >= minInnerIndex && "you try to acces a coeff that do not exist in the storage");

216 return this->m_data.lower(m_rowStartIndex[outer] + inner - (outer - m_data.lowerProfile(outer)));

217 }

218 } else {

249 const Index minInnerIndex = outer - m_data.lowerProfile(outer);

250 if (inner >= minInnerIndex)

251 return this->m_data.lower(m_rowStartIndex[outer] + inner - (outer - m_data.lowerProfile(outer)));

252 else

253 return Scalar(0);

hcicmds.c (https://bitbucket.org/rlyspn/androidrr.git) C · 1968 lines

36 #if defined (LMP_TEST)

37 #include <script.h>

38 #define btu_hcif_send_cmd(p1, p2) HCI_CMD_TO_LOWER((p2))

39 #else

40 #include "btm_int.h" /* Included for UIPC_* macro definitions */

umodarith.lisp (https://github.com/albertz/CPython.git) Lisp · 692 lines

354 (floor w (expt 2 n)))

355

356 ;; join upper and lower half of a double word, yielding a 128 bit number

357 (defun join (hi lo)

358 (+ (* (expt 2 64) hi) lo))

TestRunner.js (https://github.com/nonano/yui3.git) JavaScript · 1009 lines

397 //iterate over the items in the test case

398 for (prop in testCase){

399 if ((prop.indexOf("test") === 0 || (prop.toLowerCase().indexOf("should") > -1 && prop.indexOf(" ") > -1 ))&& Y.Lang.isFunction(testCase[prop])){

400 node.appendChild(prop);

401 }

basicTypes.xsd (https://github.com/bwoodhead/islandora_xml_forms.git) XML Schema · 429 lines

85 <xs:complexType name="MultiplicityRange_Type">

86 <xs:annotation>

87 <xs:documentation>A component of a multiplicity, consisting of an non-negative lower bound, and a potentially infinite upper bound.</xs:documentation>

88 </xs:annotation>

89 <xs:complexContent>

90 <xs:extension base="gco:AbstractObject_Type">

91 <xs:sequence>

92 <xs:element name="lower" type="gco:Integer_PropertyType"/>

93 <xs:element name="upper" type="gco:UnlimitedInteger_PropertyType"/>

94 </xs:sequence>

postgres_schema.sql (https://github.com/naderman/phpbb-orchestra.git) SQL · 1309 lines

15 Operation Functions

16 */

17 CREATE FUNCTION _varchar_ci_equal(varchar_ci, varchar_ci) RETURNS boolean AS 'SELECT LOWER($1) = LOWER($2)' LANGUAGE SQL STRICT;

18 CREATE FUNCTION _varchar_ci_not_equal(varchar_ci, varchar_ci) RETURNS boolean AS 'SELECT LOWER($1) != LOWER($2)' LANGUAGE SQL STRICT;

19 CREATE FUNCTION _varchar_ci_less_than(varchar_ci, varchar_ci) RETURNS boolean AS 'SELECT LOWER($1) < LOWER($2)' LANGUAGE SQL STRICT;

20 CREATE FUNCTION _varchar_ci_less_equal(varchar_ci, varchar_ci) RETURNS boolean AS 'SELECT LOWER($1) <= LOWER($2)' LANGUAGE SQL STRICT;

21 CREATE FUNCTION _varchar_ci_greater_than(varchar_ci, varchar_ci) RETURNS boolean AS 'SELECT LOWER($1) > LOWER($2)' LANGUAGE SQL STRICT;

22 CREATE FUNCTION _varchar_ci_greater_equals(varchar_ci, varchar_ci) RETURNS boolean AS 'SELECT LOWER($1) >= LOWER($2)' LANGUAGE SQL STRICT;

Palette.js (http://enginey.googlecode.com/svn/trunk/) JavaScript · 387 lines ✨ Summary

This JavaScript code defines a generate function for creating palettes using various color manipulation techniques, such as shades, tints, tones, and more. It takes two arguments: a base color and an optional type of generator to use. The function returns a new palette object based on the specified generator or function definition.

177 if(kwArgs.use){

178 // we are being specific about the algo we want to use.

179 var use=kwArgs.use.toLowerCase();

180 if(use.indexOf("hs")==0){

181 if(use.charAt(2)=="l"){ fn=tHSL; }

schema1.xsd (https://github.com/jasphior/bandhu.git) XML Schema · 516 lines

160 </xs:simpleType>

161 </xs:element>

162 <xs:element name="num-followers" minOccurs="0">

163 <xs:simpleType>

164 <xs:restriction base="xs:short"/>

web_tester.php (https://github.com/jeffmay/Bonfire.git) PHP · 1413 lines

169 */

170 function _normaliseHeader($header) {

171 return strtolower(trim($header));

172 }

173

unit_tester.php (https://github.com/jeffmay/Bonfire.git) PHP · 420 lines

337 * @deprecated

338 */

339 function swallowErrors() {

340 $context = &SimpleTest::getContext();

341 $queue = &$context->get('SimpleErrorQueue');

tag.php (https://github.com/jeffmay/Bonfire.git) PHP · 1418 lines

30 * string values. Note that

31 * the keys must have been

32 * converted to lower case.

33 */

34 function __construct($name, $attributes) {

35 $this->_name = strtolower(trim($name));

36 $this->_attributes = $attributes;

37 $this->_content = '';

103 */

104 function getAttribute($label) {

105 $label = strtolower($label);

106 if (! isset($this->_attributes[$label])) {

107 return false;

expectation.php (https://github.com/jeffmay/Bonfire.git) PHP · 895 lines

328 class WithinMarginExpectation extends SimpleExpectation {

329 var $_upper;

330 var $_lower;

331

332 /**

341 parent::__construct($message);

342 $this->_upper = $value + $margin;

343 $this->_lower = $value - $margin;

344 }

345

352 */

353 function test($compare) {

354 return (($compare <= $this->_upper) && ($compare >= $this->_lower));

355 }

356

tag.php (https://github.com/markjames/sapphire.git) PHP · 1418 lines

30 * string values. Note that

31 * the keys must have been

32 * converted to lower case.

33 */

34 function SimpleTag($name, $attributes) {

35 $this->_name = strtolower(trim($name));

36 $this->_attributes = $attributes;

37 $this->_content = '';

103 */

104 function getAttribute($label) {

105 $label = strtolower($label);

106 if (! isset($this->_attributes[$label])) {

107 return false;

calendar-debug.js (https://github.com/adben/core.git) JavaScript · 1610 lines

168 */

169 addProperty: function ( key, propertyObject ) {

170 key = key.toLowerCase();

171 YAHOO.log("Added property: " + key, "info", "Config");

172

221 */

222 getProperty: function (key) {

223 var property = this.config[key.toLowerCase()];

224 if (property && property.event) {

225 return property.value;

237 resetProperty: function (key) {

238

239 key = key.toLowerCase();

240

241 var property = this.config[key];

container_core.js (https://github.com/adben/core.git) JavaScript · 1526 lines

166 */

167 addProperty: function ( key, propertyObject ) {

168 key = key.toLowerCase();

169

170 this.config[key] = propertyObject;

218 */

219 getProperty: function (key) {

220 var property = this.config[key.toLowerCase()];

221 if (property && property.event) {

222 return property.value;

234 resetProperty: function (key) {

235

236 key = key.toLowerCase();

237

238 var property = this.config[key];

iresizable.js (https://github.com/adben/core.git) JavaScript · 452 lines

344 directions = /n|ne|e|se|s|sw|w|nw/g;

345 for (i in el.resizeOptions.handlers) {

346 if (i.toLowerCase().match(directions) != null) {

347 if (el.resizeOptions.handlers[i].constructor == String) {

348 handle = jQuery(el.resizeOptions.handlers[i]);

extra2.c (https://github.com/tmacreturns/XBMC_wireless_setup.git) C · 792 lines

422 {

423 WavpackStream *wps = wpc->streams [wpc->current_stream];

424 int lower = FALSE;

425 int delta, d;

426 uint32_t bits;

446

447 if (bits < *best_bits) {

448 lower = TRUE;

449 *best_bits = bits;

450 CLEAR (wps->decorr_passes);

456 }

457

458 for (d = delta + 1; !lower && d <= 7; ++d) {

459 int i;

460

extra1.c (https://github.com/tmacreturns/XBMC_wireless_setup.git) C · 563 lines

265 {

266 WavpackStream *wps = wpc->streams [wpc->current_stream];

267 int lower = FALSE, delta, d;

268 uint32_t bits;

269

288

289 if (bits < *best_bits) {

290 lower = TRUE;

291 *best_bits = bits;

292 CLEAR (wps->decorr_passes);

298 }

299

300 for (d = delta + 1; !lower && d <= 7; ++d) {

301 int i;

302

types.i (https://github.com/tmacreturns/XBMC_wireless_setup.git) Swig · 515 lines

343 }

344

345 { // Convert string to lower case

346 char *p = buffer;

347 while (*p != '\0')

348 {

349 *p = (char) tolower (*p);

350 p++;

351 }

SyntaxTree.hs (https://github.com/haxis-fx/R5RS-Haskell.git) Haskell · 389 lines

51 parseBool = do try $ char '#'

52 x <- oneOf "tTfF"

53 return $ case toLower x of 't' -> Bool True

54 'f' -> Bool False

55 _ -> error "Will not come here"

101 exactness s = try (do s0 <- do e0 <- char '#'

102 e1 <- oneOf exactStr

103 return $ [e0, toLower e1]

104 s1 <- do r0 <- char '#'

105 r1 <- oneOf s

106 return $ [r0, toLower r1]

107 return $ s0 ++ s1)

108 <|>

hw_atl_llh_internal.h (https://github.com/tiwai/sound.git) C Header · 1250 lines

109 /* bitmask for bitfield itr_reg_res_dsbl */

110 #define HW_ATL_ITR_REG_RES_DSBL_MSK 0x20000000

111 /* lower bit position of bitfield itr_reg_res_dsbl */

112 #define HW_ATL_ITR_REG_RES_DSBL_SHIFT 29

113 /* register address for bitfield iscr_lsw[1f:0] */

119 /* bitmask for bitfield itr_reset */

120 #define HW_ATL_ITR_RES_MSK 0x80000000

121 /* lower bit position of bitfield itr_reset */

122 #define HW_ATL_ITR_RES_SHIFT 31

123

131 /* width of bitfield rsc_delay */

132 #define HW_ATL_ITR_RSC_DELAY_WIDTH 4

133 /* lower bit position of bitfield rsc_delay */

134 #define HW_ATL_ITR_RSC_DELAY_SHIFT 0

135

dcn_1_0_offset.h (https://github.com/tiwai/sound.git) C Header · 573 lines

144 #define mmCORB_SIZE 0x0001

145 #define mmCORB_SIZE_BASE_IDX 0

146 #define mmRIRB_LOWER_BASE_ADDRESS 0x0002

147 #define mmRIRB_LOWER_BASE_ADDRESS_BASE_IDX 0

168 #define mmIMMEDIATE_COMMAND_STATUS 0x0008

169 #define mmIMMEDIATE_COMMAND_STATUS_BASE_IDX 0

170 #define mmDMA_POSITION_LOWER_BASE_ADDRESS 0x000a

171 #define mmDMA_POSITION_LOWER_BASE_ADDRESS_BASE_IDX 0

214 #define mmAZSTREAM0_1_OUTPUT_STREAM_DESCRIPTOR_FORMAT 0x0012

215 #define mmAZSTREAM0_1_OUTPUT_STREAM_DESCRIPTOR_FORMAT_BASE_IDX 0

216 #define mmAZSTREAM0_1_OUTPUT_STREAM_DESCRIPTOR_BDL_POINTER_LOWER_BASE_ADDRESS 0x0014

217 #define mmAZSTREAM0_1_OUTPUT_STREAM_DESCRIPTOR_BDL_POINTER_LOWER_BASE_ADDRESS_BASE_IDX 0

236 #define mmAZSTREAM1_1_OUTPUT_STREAM_DESCRIPTOR_FORMAT 0x001a

237 #define mmAZSTREAM1_1_OUTPUT_STREAM_DESCRIPTOR_FORMAT_BASE_IDX 0

238 #define mmAZSTREAM1_1_OUTPUT_STREAM_DESCRIPTOR_BDL_POINTER_LOWER_BASE_ADDRESS 0x001c

239 #define mmAZSTREAM1_1_OUTPUT_STREAM_DESCRIPTOR_BDL_POINTER_LOWER_BASE_ADDRESS_BASE_IDX 0

utdebug.c (https://github.com/tiwai/sound.git) C · 611 lines

92 }

93

94 if (*(ACPI_CAST_PTR(u32, function_name)) == ACPI_PREFIX_LOWER) {

95

96 /* This is the case where the source has been 'linuxized' */

KaleoDefinitionLocalServiceWrapper.java (https://github.com/stevenjiancao/liferay-plugins.git) Java · 435 lines

102 *

103 * @param dynamicQuery the dynamic query

104 * @param start the lower bound of the range of model instances

105 * @param end the upper bound of the range of model instances (not inclusive)

106 * @return the range of matching rows

123 *

124 * @param dynamicQuery the dynamic query

125 * @param start the lower bound of the range of model instances

126 * @param end the upper bound of the range of model instances (not inclusive)

127 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)

181 * </p>

182 *

183 * @param start the lower bound of the range of kaleo definitions

184 * @param end the upper bound of the range of kaleo definitions (not inclusive)

185 * @return the range of kaleo definitions

KBArticleLocalServiceWrapper.java (https://github.com/stevenjiancao/liferay-plugins.git) Java · 529 lines

103 *

104 * @param dynamicQuery the dynamic query

105 * @param start the lower bound of the range of model instances

106 * @param end the upper bound of the range of model instances (not inclusive)

107 * @return the range of matching rows

123 *

124 * @param dynamicQuery the dynamic query

125 * @param start the lower bound of the range of model instances

126 * @param end the upper bound of the range of model instances (not inclusive)

127 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)

197 * </p>

198 *

199 * @param start the lower bound of the range of k b articles

200 * @param end the upper bound of the range of k b articles (not inclusive)

201 * @return the range of k b articles

CalendarResourceLocalServiceWrapper.java (https://github.com/stevenjiancao/liferay-plugins.git) Java · 400 lines

104 *

105 * @param dynamicQuery the dynamic query

106 * @param start the lower bound of the range of model instances

107 * @param end the upper bound of the range of model instances (not inclusive)

108 * @return the range of matching rows

125 *

126 * @param dynamicQuery the dynamic query

127 * @param start the lower bound of the range of model instances

128 * @param end the upper bound of the range of model instances (not inclusive)

129 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)

200 * </p>

201 *

202 * @param start the lower bound of the range of calendar resources

203 * @param end the upper bound of the range of calendar resources (not inclusive)

204 * @return the range of calendar resources

CalendarBookingLocalService.java (https://github.com/stevenjiancao/liferay-plugins.git) Java · 327 lines

105 *

106 * @param dynamicQuery the dynamic query

107 * @param start the lower bound of the range of model instances

108 * @param end the upper bound of the range of model instances (not inclusive)

109 * @return the range of matching rows

123 *

124 * @param dynamicQuery the dynamic query

125 * @param start the lower bound of the range of model instances

126 * @param end the upper bound of the range of model instances (not inclusive)

127 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)

189 * </p>

190 *

191 * @param start the lower bound of the range of calendar bookings

192 * @param end the upper bound of the range of calendar bookings (not inclusive)

193 * @return the range of calendar bookings

c35503c.ada (https://bitbucket.org/pizzafactory/pf-gcc.git) Ada · 543 lines

61 END IF;

62 IF INTEGER'IMAGE (-500)'FIRST /= 1 THEN

63 FAILED ( "INCORRECT LOWER BOUND FOR '-500'" );

64 END IF;

65

68 END IF;

69 IF NEWINT'IMAGE (2 ** 6)'FIRST /= 1 THEN

70 FAILED ( "INCORRECT LOWER BOUND FOR '2 ** 6'" );

71 END IF;

72

75 END IF;

76 IF NATURAL'IMAGE (-1E2)'FIRST /= 1 THEN

77 FAILED ( "INCORRECT LOWER BOUND FOR '-1E2'" );

78 END IF;

79

GrabKeyDialog.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 544 lines ✨ Summary

This Java code creates a dialog for setting and managing keyboard shortcuts. It allows users to input a shortcut, check if it’s already in use, and override existing shortcuts. The dialog also includes options to remove an old shortcut, cancel changes, and confirm duplicate shortcuts. It uses a custom ActionHandler class to handle user interactions and display error messages or confirmation prompts as needed.

244

245 if(keyCode >= KeyEvent.VK_A && keyCode <= KeyEvent.VK_Z)

246 return String.valueOf(Character.toLowerCase((char)keyCode));

247

248 try

Get_Class_Name.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 93 lines

63 {

64 fileClassName = fileClassName.substring(0, index);

65 if(fileClassName.toLowerCase().indexOf("untitled") == -1)

66 {

67 return fileClassName;

75 {

76 className = className.substring(0, index);

77 if(className.toLowerCase().indexOf("untitled") == -1)

78 {

79 return className;

BoyerMooreSearchMatcher.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 317 lines ✨ Summary

The provided Java code implements a Boyer-Moore string searching algorithm, which efficiently searches for a substring within a larger text. It uses a skip table to determine how many characters can be skipped when a mismatch occurs during the search process, allowing it to quickly move past irrelevant parts of the text and focus on more promising regions.

243 * to avoid our skip table having a length of 2 ^ 16, we hash each

244 * character of the input into a character in the alphabet [\x00-\xFF]

245 * using the lower 8 bits of the character's value (resulting in

246 * a more reasonable skip table of length 2 ^ 8).

247 *

container.js (https://bitbucket.org/khuongduybui/openfisma.git) JavaScript · 1480 lines

166 */

167 addProperty: function ( key, propertyObject ) {

168 key = key.toLowerCase();

169

170 this.config[key] = propertyObject;

221 */

222 getProperty: function (key) {

223 var property = this.config[key.toLowerCase()];

224 if (property && property.event) {

225 return property.value;

236 */

237 resetProperty: function (key) {

238 key = key.toLowerCase();

239

240 var property = this.config[key];

wrapper.c (https://github.com/YokoZar/wine.git) C · 1126 lines

277 PCtxtHandle realCtxt = (PCtxtHandle)phContext->dwLower;

278 myCtxt.dwUpper = realCtxt->dwUpper;

279 myCtxt.dwLower = realCtxt->dwLower;

280 }

281

341 PCtxtHandle realCtxt = (PCtxtHandle)phContext->dwLower;

342 myCtxt.dwUpper = realCtxt->dwUpper;

343 myCtxt.dwLower = realCtxt->dwLower;

344 }

345

394 TRACE("realCtx: %p\n", realCtxt);

395 myCtxt.dwUpper = realCtxt->dwUpper;

396 myCtxt.dwLower = realCtxt->dwLower;

397 }

398

primitives.c (https://github.com/YokoZar/wine.git) C · 1484 lines

357 do_rop_8(ptr++, byte_and, byte_xor);

358

359 if(rc->right & 1) /* lower nibble untouched */

360 do_rop_8(ptr, byte_and | 0x0f, byte_xor & 0xf0);

361 }

658 {

659 /* FIXME: Two pixels at a time */

660 if(x & 1) /* lower dst nibble */

661 {

662 if(brush_x & 1) /* lower pat nibble */

673 else /* upper dst nibble */

674 {

675 if(brush_x & 1) /* lower pat nibble */

676 {

677 byte_and = (*and_ptr++ << 4) | 0x0f;

API-Types.js (https://github.com/drslump/titanium_desktop.git) JavaScript · 600 lines

254 value_of(b1.substring).should_be_function();

255 value_of(b1.substr).should_be_function();

256 value_of(b1.toLowerCase).should_be_function();

257 value_of(b1.toUpperCase).should_be_function();

258 value_of(b1.length).should_be(0);

272 value_of(b1.substring).should_be_function();

273 value_of(b1.substr).should_be_function();

274 value_of(b1.toLowerCase).should_be_function();

275 value_of(b1.toUpperCase).should_be_function();

276 value_of(b1.length).should_be(8);

562 value_of(blob.substring(10,0)).should_be("Mozilla");

563 },

564 test_blob_tolowercase: function()

565 {

566 var blob = Titanium.API.createBytes("Mozilla123!?");

smarty_internal_configfilelexer.php (https://github.com/GuessWho/don-t-enter.git) PHP · 526 lines

280 {

281

282 if (!$this->smarty->config_booleanize || !in_array(strtolower($this->value), Array("true", "false", "on", "off", "yes", "no")) ) {

283 $this->yypopstate();

284 $this->yypushstate(self::NAKED_STRING_VALUE);

fo_state.c (https://bitbucket.org/peixuan/chromium_r197479_base.git) C · 659 lines

46 *

47 * This works as a proof-of-concept, but a final version will have

48 * lower overheads.

49 */

50

test.c (https://github.com/zen-kernel/zen-kernel.git) C · 1696 lines

48 sw->config.depth = tb_route_length(route);

49 sw->config.route_hi = upper_32_bits(route);

50 sw->config.route_lo = lower_32_bits(route);

51 sw->config.enabled = 0;

52 sw->config.max_port_number = max_port_number;

ta.es5.js (https://github.com/joomla/joomla-cms.git) JavaScript · 449 lines

64 "Disc": "\u0bb5\u0b9f\u0bcd\u0b9f\u0bc1",

65 "Square": "\u0b9a\u0ba4\u0bc1\u0bb0\u0bae\u0bcd",

66 "Lower Alpha": "\u0b95\u0bc0\u0bb4\u0bcd \u0b8e\u0bb4\u0bc1\u0ba4\u0bcd\u0ba4\u0bc1",

67 "Lower Greek": "\u0b95\u0bc0\u0bb4\u0bcd \u0b95\u0bbf\u0bb0\u0bc7\u0b95\u0bcd\u0b95\u0bae\u0bcd",

68 "Lower Roman": "\u0b95\u0bc0\u0bb4\u0bcd \u0bb0\u0bcb\u0bae\u0bbe\u0ba9\u0bbf\u0baf\u0bae\u0bcd",

69 "Upper Alpha": "\u0bae\u0bc7\u0bb2\u0bcd \u0b8e\u0bb4\u0bc1\u0ba4\u0bcd\u0ba4\u0bc1",

70 "Upper Roman": "\u0bae\u0bc7\u0bb2\u0bcd \u0bb0\u0bcb\u0bae\u0bbe\u0ba9\u0bbf\u0baf\u0bae\u0bcd",

406 "Insert\/edit iframe": "iframe \u0b9a\u0bc6\u0bb0\u0bc1\u0b95\u0bc1\u0b95\/\u0ba4\u0bca\u0b95\u0bc1\u0b95\u0bcd\u0b95",

407 "Capitalization": "\u0b8e\u0bb4\u0bc1\u0ba4\u0bcd\u0ba4\u0bbe\u0b95\u0bcd\u0b95\u0bae\u0bcd",

408 "lowercase": "\u0b9a\u0bbf\u0bb1\u0bcd\u0bb1\u0bc6\u0bb4\u0bc1\u0ba4\u0bcd\u0ba4\u0bc1",

409 "UPPERCASE": "\u0baa\u0bc7\u0bb0\u0bc6\u0bb4\u0bc1\u0ba4\u0bcd\u0ba4\u0bc1",

410 "Title Case": "\u0ba4\u0bb2\u0bc8\u0baa\u0bcd\u0baa\u0bc1 \u0bb5\u0b9f\u0bbf\u0bb5\u0bae\u0bcd",

api-guide.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 3415 lines

576

577 <para>

578 The following methods provide a lower-level interface for working with

579 registers:

580 </para>

pl-sql.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 398 lines

318 <KEYWORD2>LN</KEYWORD2>

319 <KEYWORD2>LOG</KEYWORD2>

320 <KEYWORD2>LOWER</KEYWORD2>

321 <KEYWORD2>LPAD</KEYWORD2>

322 <KEYWORD2>LTRIM</KEYWORD2>

327 <KEYWORD2>NLSSORT</KEYWORD2>

328 <KEYWORD2>NSL_INITCAP</KEYWORD2>

329 <KEYWORD2>NLS_LOWER</KEYWORD2>

330 <KEYWORD2>NLS_UPPER</KEYWORD2>

331 <KEYWORD2>NVL</KEYWORD2>

tip65.html (https://jedit.svn.sourceforge.net/svnroot/jedit) HTML · 9 lines ✨ Summary

The HTML code explains how the ignore case search and replace flag works in a text editor. When replacing occurrences of a search string, if the original occurrence is all lower case, upper case, or title case, the replacement string will be automatically converted to the relevant case when inserted into the buffer, but only if the replacement string itself is all-lower case.

1 <html><body>The <b>ignore case</b> search and replace flag behaves

2 in an intelligent manner when replacing occurrences of the search string.

3 If the occurrence is all lower case, all upper case or title case,

4 the replace string will be converted into the relevant case when

5 inserted into the buffer.<p>

6

7 This automatic conversion is only performed if the replacement

8 string is all-lower case.</body></html>

9

test_chart2d.html (http://enginey.googlecode.com/svn/trunk/) HTML · 681 lines ✨ Summary

This HTML code generates a page with multiple charts, each rendered using JavaScript and a templating engine. The charts are defined as data objects in an array, which is then used to populate a template that creates a container for each chart. Each chart is assigned a unique ID and its corresponding data object is passed to the makeChart function, which renders the chart using the Dojo library.

59 (new dojox.charting.Chart2D(node)).

60 setTheme(dojox.charting.themes.Tufte).

61 addAxis("x", { fixLower: "minor", fixUpper: "minor", natural: true }).

62 addAxis("y", { vertical: true, fixLower: "major", fixUpper: "major", includeZero: true }).

172 setTheme(dojox.charting.themes.PlotKit.cyan).

173 addAxis("x", {

174 fixLower: "minor", fixUpper: "minor"

175 }).

176 addAxis("y", {

177 vertical: true, fixLower: "minor", fixUpper: "minor"

178 }).

179 addSeries("Series A", [1, 2, 1, 2, 1, 2, 1]).

188 setTheme(dojox.charting.themes.PlotKit.green).

189 addAxis("x", {

190 fixLower: "major", fixUpper: "major"

191 }).

192 addAxis("y", {

omnimark.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 456 lines

5 <!-- correct and add some keywords -->

6 <!-- reorganize all keywords (sorted) -->

7 <!-- 20/APR/2004: all keywords are now in lower case -->

8 <!-- 06/MAY/2004: add specific patterns for invalid literals -->

9 <!-- 06/JUN/2004: add '.' (dot) in the noWordSep property -->

OperatingSystem.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 191 lines ✨ Summary

This Java code defines an abstract class OperatingSystem that provides a platform-independent interface for operating system-specific functionality, such as finding installation directories and creating scripts. It uses polymorphism to delegate tasks to concrete implementations (e.g., MacOS, Unix, Windows) based on the underlying operating system.

75 public String getInstallDirectory(String name, String version)

76 {

77 return "/usr/local/share/" + name.toLowerCase()

78 + "/" + version;

79 }

90 // create app start script

91 String script = binDir + File.separatorChar

92 + name.toLowerCase();

93

94 // Delete existing copy

106

107 String jar = installDir + File.separator

108 + name.toLowerCase() + ".jar";

109

110 out.write("-jar \"" + jar + "\" $@\n");

GUIUtilities.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 1516 lines ✨ Summary

This Java code is part of a text editor’s GUI implementation, providing utility methods for displaying icons, showing splash screens, and managing components in the editor’s window hierarchy. It loads icons from a resource directory, displays a splash screen during initialization, and advances its progress to indicate loading completion. The code also provides methods for checking if one component is an ancestor of another.

315 if(index != -1 && label.length() - index > 1)

316 {

317 mnemonic = Character.toLowerCase(label.charAt(index + 1));

318 label = label.substring(0,index).concat(label.substring(++index));

319 }

861 String styleName = "view.style."

862 + Token.tokenToString((byte)i)

863 .toLowerCase();

864 styles[i] = GUIUtilities.parseStyle(

865 jEdit.getProperty(styleName),

XThis.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 195 lines ✨ Summary

This Java code extends the This class to provide support for dynamic proxy mechanisms introduced in JDK1.3, allowing bsh scripted objects to implement arbitrary interfaces. It creates a cache of proxy interface handlers and provides an invocation handler that delegates method calls to the underlying interpreter. This enables scripting languages to interact with Java classes dynamically.

47

48 Note: This module relies on new features of JDK1.3 and will not compile

49 with JDK1.2 or lower. For those environments simply do not compile this

50 class.

51

writing-modes.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 910 lines

740 <para>Here is a <literal>SEQ_REGEXP</literal> rule from moin.xml that

741 uses the <literal>HASH_CHARS</literal> attribute, to describe a keyword

742 (wikiword) that can start with any uppercase letter and contain lower

743 case letters and at least one uppercase letter in the middle.</para>

744 <programlisting>

lisp.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 1038 lines

618 <KEYWORD3>long-site-name</KEYWORD3>

619 <KEYWORD3>loop-finish</KEYWORD3>

620 <KEYWORD3>lower-case-p</KEYWORD3>

621 <KEYWORD3>machine-instance</KEYWORD3>

622 <KEYWORD3>machine-type</KEYWORD3>

tcl.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 683 lines

268 <KEYWORD2>label</KEYWORD2>

269 <KEYWORD2>listbox</KEYWORD2>

270 <KEYWORD2>lower</KEYWORD2>

271 <KEYWORD2>menu</KEYWORD2>

272 <KEYWORD2>menubutton</KEYWORD2>

427 <KEYWORD3>tail</KEYWORD3>

428 <KEYWORD3>tclversion</KEYWORD3>

429 <KEYWORD3>tolower</KEYWORD3>

430 <KEYWORD3>toupper</KEYWORD3>

431 <KEYWORD3>trim</KEYWORD3>

Grid.js (http://enginey.googlecode.com/svn/trunk/) JavaScript · 379 lines ✨ Summary

This JavaScript code defines a dojox.Grid class, which is an alias for the existing dojox.Grid class. It also provides a constructor function that creates a new instance of the grid and initializes its properties based on the provided options. The constructor checks if a model or structure is specified, and if not, it tries to automatically discover one from the HTML table element.

302 // data to try to build one automatically?

303 if( !props.structure &&

304 node.nodeName.toLowerCase() == "table"){

305

306 // try to discover a structure

primitive.js (http://enginey.googlecode.com/svn/trunk/) JavaScript · 40 lines ✨ Summary

The code defines a JavaScript module for creating a primitive scaler in a charting library. It provides functions to build the scaler, ticks, and transformers from model and plot data. The scaler object is returned with its bounds and scale properties set. The transformer functions are used to map input values to output values based on the scaler’s settings.

14 return {

15 bounds: {

16 lower: min,

17 upper: max,

18 from: min,

BshClassManager.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 353 lines ✨ Summary

This Java code defines a class called BshClassManager that manages the loading of classes for a BeanShell scripting environment. It provides methods to add and remove listeners, reload classes, and set an external class loader. The class also maintains caches of loaded classes and provides methods to clear these caches.

196 /*

197 This is weird... jdk under Win is throwing these to

198 warn about lower case / upper case possible mismatch.

199 e.g. bsh.console bsh.Console

200 */

cobol.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 1002 lines

52 <KEYWORD1>ALPHABET</KEYWORD1>

53 <KEYWORD1>ALPHABETIC</KEYWORD1>

54 <KEYWORD1>ALPHABETIC-LOWER</KEYWORD1>

55 <KEYWORD1>ALPHABETIC-UPPER</KEYWORD1>

56 <KEYWORD1>ALPHANUMERIC</KEYWORD1>

362 <KEYWORD1>LOW-VALUE</KEYWORD1>

363 <KEYWORD1>LOW-VALUES</KEYWORD1>

364 <KEYWORD1>LOWER</KEYWORD1>

365 <KEYWORD1>LOWLIGHT</KEYWORD1>

366

671 <KEYWORD2>LOG</KEYWORD2>

672 <KEYWORD2>LOG10</KEYWORD2>

673 <KEYWORD2>LOWER-CASE</KEYWORD2>

674 <KEYWORD2>MAX</KEYWORD2>

675 <KEYWORD2>MEAN</KEYWORD2>

CssClassStore.js (http://enginey.googlecode.com/svn/trunk/) JavaScript · 170 lines ✨ Summary

This JavaScript code defines a store called dojox.data.CssClassStore that provides information about CSS classes on a webpage. It allows users to get information about active CSS classes, filter out classes from specific stylesheets, and expose attributes such as class name and class without dot. The store can be used in conjunction with other Dojo stores to fetch and manipulate CSS class data.

124 var items = request._items;

125 // Per https://bugs.webkit.org/show_bug.cgi?id=17935 , Safari 3.x always returns the selectorText

126 // of a rule in full lowercase.

127 var item = items[(dojo.isSafari?request.identity.toLowerCase():request.identity)];

macro-tips.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 982 lines

520 directory first, followed by scripts in the user settings directory. In

521 each case, scripts will be executed in alphabetical order, applied

522 without regard to whether the file name contains upper or lower case

523 characters.

524 </para>

ShortcutsOptionPane.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 443 lines ✨ Summary

This Java code creates a graphical user interface (GUI) for managing shortcuts in an application. It allows users to add, edit, and delete shortcuts, with options to customize their names and shortcuts. The GUI displays a table of existing shortcuts, enabling users to modify them as needed. The code also saves changes to the shortcuts when the user clicks “OK”.

173 public String prepareFilter(String filter)

174 {

175 return filter.toLowerCase();

176 }

177

179 public boolean passFilter(int row, String filter)

180 {

181 String name = delegated.getBindingAt(row, 0).label.toLowerCase();

182 return name.contains(filter);

183 }

408 public int compare(GrabKeyDialog.KeyBinding[] k1, GrabKeyDialog.KeyBinding[] k2)

409 {

410 String label1 = k1[0].label.toLowerCase();

411 String label2 = k2[0].label.toLowerCase();

AbbrevsOptionPane.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 510 lines ✨ Summary

This Java code defines a GUI application for managing abbreviations and expansions. It creates a table model to display abbreviations and their corresponding expansions, with options to add, remove, and sort entries. The data is stored in a hash table for efficient lookup. The application uses a custom compare class to sort the data alphabetically by abbreviation or expansion.

324 // workaround for Swing's annoying processing of

325 // labels starting with <html>, which often breaks

326 if(valueStr.toLowerCase().startsWith("<html>"))

327 valueStr = " " + valueStr;

328 return super.getTableCellRendererComponent(table,valueStr,

476 if(col == 0)

477 {

478 String abbrev1 = a1.abbrev.toLowerCase();

479 String abbrev2 = a2.abbrev.toLowerCase();

484 else

485 {

486 String expand1 = a1.expand.toLowerCase();

487 String expand2 = a2.expand.toLowerCase();

TextUtilities.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 714 lines ✨ Summary

This Java code provides various string manipulation and formatting functions, including:

  • String case detection (mixed, lower case, upper case, title case)
  • String conversion to title case
  • Line wrapping and formatting for text with a specified maximum line length
  • Leading whitespace trimming and calculation
  • Tokenization of strings into words

These functions can be used in various applications, such as text editing or formatting.

597 //{{{ getStringCase() method

598 public static final int MIXED = 0;

599 public static final int LOWER_CASE = 1;

600 public static final int UPPER_CASE = 2;

601 public static final int TITLE_CASE = 3;

602

603 /**

604 * Returns if the specified string is all upper case, all lower case,

605 * or title case (first letter upper case, rest lower case).

620 state = UPPER_CASE;

621 else

622 state = LOWER_CASE;

623 }

624

632 {

633 case UPPER_CASE:

634 if(Character.isLowerCase(ch))

635 {

636 if(i == 1)

regexps.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 132 lines

61 <listitem><para><literal>[:digit:]</literal> A decimal digit</para></listitem>

62 <listitem><para><literal>[:graph:]</literal> A non-space, non-control character</para></listitem>

63 <listitem><para><literal>[:lower:]</literal> A lowercase letter</para></listitem>

64 <listitem><para><literal>[:print:]</literal> Same as <literal>[:graph:]</literal>, but also space and tab</para></listitem>

65 <listitem><para><literal>[:punct:]</literal> A punctuation character</para></listitem>

ActionBar.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 555 lines ✨ Summary

This Java code implements a custom text input field with auto-completion functionality. It creates a window that displays a list of possible completions when the user types a few characters, and allows the user to select one from the list. The input field also handles keyboard events, such as pressing Enter or Tab, to invoke completion suggestions or focus on the input field.

214 private String[] getCompletions(String str)

215 {

216 str = str.toLowerCase();

217 String[] actions = jEdit.getActionNames();

218 ArrayList returnValue = new ArrayList(actions.length);

219 for(int i = 0; i < actions.length; i++)

220 {

221 if(actions[i].toLowerCase().indexOf(str) != -1)

222 returnValue.add(actions[i]);

223 }

lua.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 235 lines

157 <KEYWORD2>string.find</KEYWORD2>

158 <KEYWORD2>string.len</KEYWORD2>

159 <KEYWORD2>string.lower</KEYWORD2>

160 <KEYWORD2>string.rep</KEYWORD2>

161 <KEYWORD2>string.sub</KEYWORD2>

RETokenChar.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 73 lines ✨ Summary

This Java class, RETokenChar, represents a single character token in a regular expression. It extends the REToken class and provides methods for matching characters against input strings, chaining tokens together, and dumping the token’s contents to a string buffer. The class is designed to optimize performance when working with strings.

27 super(subIndex);

28 ch = new char [1];

29 ch[0] = (insens = ins) ? Character.toLowerCase(c) : c;

30 }

31

39 for (int i=0; i<z; i++) {

40 c = input.charAt(mymatch.index+i);

41 if (( (insens) ? Character.toLowerCase(c) : c ) != ch[i]) {

42 return false;

43 }

entry-macro.S (http://omnia2droid.googlecode.com/svn/trunk/) Assembly · 48 lines ✨ Summary

This Assembly code defines macros for handling interrupts on IXP4xx-based platforms. It retrieves the interrupt status register, checks if an upper IRQ is present, and calculates the IRQ number based on the lower and upper IRQs. The macros are designed to work with different CPU models (IXP46X and IXP43X) that have varying interrupt configurations.

27 mov \base, #31

28 sub \irqnr, \base, \irqnr

29 b 1002f @ lower IRQ being

30 @ handled

31

RecentFilesProvider.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 194 lines ✨ Summary

This Java code implements a menu provider for a text editor, specifically a “Recent Files” menu. It displays a list of recently opened files and allows users to navigate through them by typing file names in a search field. The menu also includes options to clear the recent files history and sort the list alphabetically.

123 {

124 String fileName = tempMenuItem.getText();

125 boolean matchesStart = fileName.toLowerCase().startsWith(typedText.toLowerCase());

126 tempMenuItem.setEnabled(matchesStart);

127 }

pl1.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 597 lines

457 <KEYWORD3>log10f</KEYWORD3>

458 <KEYWORD3>low</KEYWORD3>

459 <KEYWORD3>lowercase</KEYWORD3>

460 <KEYWORD3>lower2</KEYWORD3>

masterlist.txt (http://better-oblivion-sorting-software.googlecode.com/svn/) Plain Text · 5744 lines

77 ObjectPlacementFix.esm

78 Phalanx-PointLookout-Navmesh.esm

79 PointLookout-FollowersGetToGo.esm

80 REQ: PointLookout.ESM

81 aHUD.esm

892 RemoteControlCompanionsPlus.esp

893 TCOS.esp

894 FollowersRelax.esp

895 Relax.esp

896 CONELRAD 640-1240.esp