mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 15:48:21 +00:00
Simplify comparisons for most cases in llChar
This commit is contained in:
parent
cfafb1e9d1
commit
03c33d1471
1 changed files with 5 additions and 5 deletions
|
@ -1132,11 +1132,11 @@ def llChar(code):
|
|||
# Here's an alternative, simpler implementation that only works for Mono:
|
||||
if lslcommon.LSO:
|
||||
raise ELSLCantCompute
|
||||
if code <= 0 or code > 0x10FFFF:
|
||||
if code == 0:
|
||||
return u''
|
||||
if code < 0:
|
||||
return u'?'
|
||||
if code > 0x10FFFF:
|
||||
if code >= 0x4000000:
|
||||
return u'??????'
|
||||
if code >= 0x200000:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue