equal
deleted
inserted
replaced
3253 "Modified: / 27-01-2011 / 09:25:30 / cg" |
3253 "Modified: / 27-01-2011 / 09:25:30 / cg" |
3254 ! ! |
3254 ! ! |
3255 |
3255 |
3256 !SourceCodeManagerUtilities class methodsFor:'utilities-encoding'! |
3256 !SourceCodeManagerUtilities class methodsFor:'utilities-encoding'! |
3257 |
3257 |
3258 guessEncodingOfBuffer:buffer |
|
3259 "look for a string of the form |
|
3260 encoding #name |
|
3261 or: |
|
3262 encoding: name |
|
3263 within the given buffer |
|
3264 (which is usually the first few bytes of a textFile)." |
|
3265 |
|
3266 <resource: #obsolete> |
|
3267 |
|
3268 self obsoleteMethodWarning:'ask CharacterEncoder'. |
|
3269 ^ CharacterEncoder guessEncodingOfBuffer:buffer |
|
3270 ! |
|
3271 |
|
3272 guessEncodingOfFile:aFilename |
3258 guessEncodingOfFile:aFilename |
3273 "look for a string |
3259 "look for a string |
3274 encoding #name |
3260 encoding #name |
3275 or: |
3261 or: |
3276 encoding: name |
3262 encoding: name |
3303 ! ! |
3289 ! ! |
3304 |
3290 |
3305 !SourceCodeManagerUtilities class methodsFor:'documentation'! |
3291 !SourceCodeManagerUtilities class methodsFor:'documentation'! |
3306 |
3292 |
3307 version |
3293 version |
3308 ^ '$Header: /cvs/stx/stx/libbasic3/SourceCodeManagerUtilities.st,v 1.214 2011-05-06 08:39:13 cg Exp $' |
3294 ^ '$Header: /cvs/stx/stx/libbasic3/SourceCodeManagerUtilities.st,v 1.215 2011-05-20 12:38:35 stefan Exp $' |
3309 ! |
3295 ! |
3310 |
3296 |
3311 version_CVS |
3297 version_CVS |
3312 ^ '$Header: /cvs/stx/stx/libbasic3/SourceCodeManagerUtilities.st,v 1.214 2011-05-06 08:39:13 cg Exp $' |
3298 ^ '$Header: /cvs/stx/stx/libbasic3/SourceCodeManagerUtilities.st,v 1.215 2011-05-20 12:38:35 stefan Exp $' |
3313 ! ! |
3299 ! ! |