Convert::Scalar 1.03
Sponsored Links
Convert::Scalar 1.03 Ranking & Summary
File size:
0.006 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
1180
Date added:
2006-08-02
Publisher:
Marc Lehmann
Convert::Scalar 1.03 description
Convert::Scalar is a Perl module that can convert between different representations of perl scalars.
SYNOPSIS
use Convert::Scalar;
This module exports various internal perl methods that change the internal representation or state of a perl scalar. All of these work in-place, that is, they modify their scalar argument. No functions are exported by default.
The following export tags exist:
:utf8 all functions with utf8 in their name
:taint all functions with taint in their name
:refcnt all functions with refcnt in their name
:ok all *ok-functions.
utf8 scalar[, mode]
Returns true when the given scalar is marked as utf8, false otherwise. If the optional mode argument is given, also forces the interpretation of the string to utf8 (mode true) or plain bytes (mode false). The actual (byte-) content is not changed. The return value always reflects the state before any modification is done.
This function is useful when you "import" utf8-data into perl, or when some external function (e.g. storing/retrieving from a database) removes the utf8-flag.
utf8_on scalar
Similar to utf8 scalar, 1, but additionally returns the scalar (the argument is still modified in-place).
utf8_off scalar
Similar to utf8 scalar, 0, but additionally returns the scalar (the argument is still modified in-place).
utf8_valid scalar [Perl 5.7]
Returns true if the bytes inside the scalar form a valid utf8 string, false otherwise (the check is independent of the actual encoding perl thinks the string is in).
utf8_upgrade scalar
Convert the string content of the scalar in-place to its UTF8-encoded form (and also returns it).
utf8_downgrade scalar[, fail_ok=0]
Attempt to convert the string content of the scalar from UTF8-encoded to ISO-8859-1. This may not be possible if the string contains characters that cannot be represented in a single byte; if this is the case, it leaves the scalar unchanged and either returns false or, if fail_ok is not true (the default), croaks.
utf8_encode scalar
Convert the string value of the scalar to UTF8-encoded, but then turn off the SvUTF8 flag so that it looks like bytes to perl again. (Might be removed in future versions).
utf8_length scalar
Returns the number of characters in the string, counting wide UTF8 characters as a single character, independent of wether the scalar is marked as containing bytes or mulitbyte characters.
unmagic scalar, type
Remove the specified magic from the scalar (DANGEROUS!).
weaken scalar
Weaken a reference. (See also WeakRef).
taint scalar
Taint the scalar.
tainted scalar
returns true when the scalar is tainted, false otherwise.
untaint scalar
Remove the tainted flag from the specified scalar.
grow scalar, newlen
Sets the memory area used for the scalar to the given length, if the current length is less than the new value. This does not affect the contents of the scalar, but is only useful to "pre-allocate" memory space if you know the scalar will grow. The return value is the modified scalar (the scalar is modified in-place).
refcnt scalar[, newrefcnt]
Returns the current reference count of the given scalar and optionally sets it to the given reference count.
refcnt_inc scalar
Increments the reference count of the given scalar inplace.
refcnt_dec scalar
Decrements the reference count of the given scalar inplace. Use weaken instead if you understand what this function is fore. Better yet: dont use this module in this case.
refcnt_rv scalar[, newrefcnt]
Works like refcnt, but dereferences the given reference first. This is useful to find the reference count of arrays or hashes, which cnanot be passed directly. Remember that taking a reference of some object increases its reference count, so the reference count used by the *_rv-functions tend to be one higher.
refcnt_inc_rv scalar
Works like refcnt_inc, but dereferences the given reference first.
refcnt_dec_rv scalar
Works like refcnt_dec, but dereferences the given reference first.
ok scalar
uok scalar
rok scalar
pok scalar
nok scalar
niok scalar
Calls SvOK, SvUOK, SvROK, SvPOK, SvNOK or SvNIOK on the given scalar, respectively.
SYNOPSIS
use Convert::Scalar;
This module exports various internal perl methods that change the internal representation or state of a perl scalar. All of these work in-place, that is, they modify their scalar argument. No functions are exported by default.
The following export tags exist:
:utf8 all functions with utf8 in their name
:taint all functions with taint in their name
:refcnt all functions with refcnt in their name
:ok all *ok-functions.
utf8 scalar[, mode]
Returns true when the given scalar is marked as utf8, false otherwise. If the optional mode argument is given, also forces the interpretation of the string to utf8 (mode true) or plain bytes (mode false). The actual (byte-) content is not changed. The return value always reflects the state before any modification is done.
This function is useful when you "import" utf8-data into perl, or when some external function (e.g. storing/retrieving from a database) removes the utf8-flag.
utf8_on scalar
Similar to utf8 scalar, 1, but additionally returns the scalar (the argument is still modified in-place).
utf8_off scalar
Similar to utf8 scalar, 0, but additionally returns the scalar (the argument is still modified in-place).
utf8_valid scalar [Perl 5.7]
Returns true if the bytes inside the scalar form a valid utf8 string, false otherwise (the check is independent of the actual encoding perl thinks the string is in).
utf8_upgrade scalar
Convert the string content of the scalar in-place to its UTF8-encoded form (and also returns it).
utf8_downgrade scalar[, fail_ok=0]
Attempt to convert the string content of the scalar from UTF8-encoded to ISO-8859-1. This may not be possible if the string contains characters that cannot be represented in a single byte; if this is the case, it leaves the scalar unchanged and either returns false or, if fail_ok is not true (the default), croaks.
utf8_encode scalar
Convert the string value of the scalar to UTF8-encoded, but then turn off the SvUTF8 flag so that it looks like bytes to perl again. (Might be removed in future versions).
utf8_length scalar
Returns the number of characters in the string, counting wide UTF8 characters as a single character, independent of wether the scalar is marked as containing bytes or mulitbyte characters.
unmagic scalar, type
Remove the specified magic from the scalar (DANGEROUS!).
weaken scalar
Weaken a reference. (See also WeakRef).
taint scalar
Taint the scalar.
tainted scalar
returns true when the scalar is tainted, false otherwise.
untaint scalar
Remove the tainted flag from the specified scalar.
grow scalar, newlen
Sets the memory area used for the scalar to the given length, if the current length is less than the new value. This does not affect the contents of the scalar, but is only useful to "pre-allocate" memory space if you know the scalar will grow. The return value is the modified scalar (the scalar is modified in-place).
refcnt scalar[, newrefcnt]
Returns the current reference count of the given scalar and optionally sets it to the given reference count.
refcnt_inc scalar
Increments the reference count of the given scalar inplace.
refcnt_dec scalar
Decrements the reference count of the given scalar inplace. Use weaken instead if you understand what this function is fore. Better yet: dont use this module in this case.
refcnt_rv scalar[, newrefcnt]
Works like refcnt, but dereferences the given reference first. This is useful to find the reference count of arrays or hashes, which cnanot be passed directly. Remember that taking a reference of some object increases its reference count, so the reference count used by the *_rv-functions tend to be one higher.
refcnt_inc_rv scalar
Works like refcnt_inc, but dereferences the given reference first.
refcnt_dec_rv scalar
Works like refcnt_dec, but dereferences the given reference first.
ok scalar
uok scalar
rok scalar
pok scalar
nok scalar
niok scalar
Calls SvOK, SvUOK, SvROK, SvPOK, SvNOK or SvNIOK on the given scalar, respectively.
Convert::Scalar 1.03 Screenshot
Convert::Scalar 1.03 Keywords
UTF8
Scalar 1.03
Reference count
Perl module
Can Convert
scalar
Perl
reference
given
returns
string
Convert::Scalar
ConvertScalar
Convert::Scalar 1.03
Libraries
Programming
Bookmark Convert::Scalar 1.03
Convert::Scalar 1.03 Copyright
WareSeeker periodically updates pricing and software information of Convert::Scalar 1.03 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Convert::Scalar 1.03 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
reference counting
reference counting c++
givenchy cologne
reference dictionary
scalar field
returns program
string bikini
reference counter
query string
robin givens
physicians desk reference
superman returns
scalars and vectors
scalar core international
reference desk
givenchy cosmetics
string trimmers
returns policy
Related Software
Set::Scalar Perl module contains a basic set of operations. Free Download
Convert::ASCII::Armor is a Perl module that can convert binary octets into ASCII armoured messages. Free Download
Convert::Translit, transliterate, build_substitutes is a Perl module for string conversion among numerous character sets. Free Download
Convert::Cyr, chcp is a Perl module for change cyrillic code page of a text. Free Download
Convert::Base32 is a Perl module for encoding and decoding of base32 strings. Free Download
Convert::Braille is a Perl module that can convert Between Braille Encodings. Free Download
Convert::UU, uuencode, uudecode is a Perl module for uuencode and uudecode. Free Download
Tie::Scalar::Sticky is a Perl module with block assignments to scalars. Free Download
Latest Software
Popular Software
Favourite Software