equal
deleted
inserted
replaced
406 |
406 |
407 !CharacterArray methodsFor:'java queries'! |
407 !CharacterArray methodsFor:'java queries'! |
408 |
408 |
409 isJavaPrimitiveTypeDescriptor |
409 isJavaPrimitiveTypeDescriptor |
410 ^ (self size = 1 and: [ JavaDescriptor baseTypes includesKey: self first ]). |
410 ^ (self size = 1 and: [ JavaDescriptor baseTypes includesKey: self first ]). |
|
411 ! ! |
|
412 |
|
413 !CharacterArray methodsFor:'special string converting'! |
|
414 |
|
415 withoutSuffix: aString |
|
416 "if the receiver endsWith aString, return a copy without it. |
|
417 Otherwise return the receiver" |
|
418 |
|
419 (self endsWith: aString) ifTrue: [ |
|
420 ^ self copyFrom: 1 to: self size - aString size |
|
421 ]. |
|
422 ^ self |
|
423 |
|
424 " |
|
425 'helloworld' withoutSuffix:'world' |
|
426 'helloworld' withoutSuffix:'foo'" |
|
427 |
|
428 "Created: / 08-12-2012 / 20:26:27 / Marcel Hlopko <marcel.hlopko@fit.cvut.cz>" |
411 ! ! |
429 ! ! |
412 |
430 |
413 !CharacterArray class methodsFor:'encoding & decoding'! |
431 !CharacterArray class methodsFor:'encoding & decoding'! |
414 |
432 |
415 decodeFromJavaUTF8: bytes |
433 decodeFromJavaUTF8: bytes |
1999 |
2017 |
2000 !ZipArchive methodsFor:'reading - java support'! |
2018 !ZipArchive methodsFor:'reading - java support'! |
2001 |
2019 |
2002 nextBytes: bytesToRead of: zmember startingAt: pos into: b startingAt: off |
2020 nextBytes: bytesToRead of: zmember startingAt: pos into: b startingAt: off |
2003 |
2021 |
2004 file position0Based: (self dataStartOf: zmember) + startOfArchive + pos. |
2022 file position0Based: zmember fileStart + startOfArchive + pos. |
2005 ^ file nextBytes: bytesToRead into: b startingAt: off. |
2023 ^ file nextBytes: bytesToRead into: b startingAt: off. |
2006 |
2024 |
2007 "Created: / 01-05-2011 / 16:21:42 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2025 "Created: / 01-05-2011 / 16:21:42 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2008 "Modified: / 10-12-2012 / 05:41:12 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
2009 ! ! |
2026 ! ! |
2010 |
2027 |
2011 !stx_libjava class methodsFor:'documentation'! |
2028 !stx_libjava class methodsFor:'documentation'! |
2012 |
2029 |
2013 extensionsVersion_HG |
2030 extensionsVersion_SVN |
2014 |
2031 ^ '$Id:: $' |
2015 ^ '$Changeset: <not expanded> $' |
2032 ! ! |
2016 ! ! |
|