@item operator =
Assignment from @code{cl_string} and @code{const char *}.
-@item s.length()
-@cindex @code{length ()}
+@item s.size()
+@cindex @code{size()}
@itemx strlen(s)
@cindex @code{strlen ()}
Returns the length of the string @code{s}.
@item s[i]
@cindex @code{operator [] ()}
Returns the @code{i}th character of the string @code{s}.
-@code{i} must be in the range @code{0 <= i < s.length()}.
+@code{i} must be in the range @code{0 <= i < s.size()}.
@item bool equal (const cl_string& s1, const cl_string& s2)
@cindex @code{equal ()}
namespace cln {
// A vector is a structure having the following interface:
-// v.length() returns the number of elements
+// v.size() returns the number of elements
// v[i] returns the i-th element (0<=i<length), as a
// pseudo-lvalue (you can assign to it, but not take its
// address - exactly what you want for bit-vectors)
protected:
uintC len; // number of elements
public:
- uintC length () const; // number of elements
+ uintC size() const; // number of elements
cl_GV_vectorops<T>* vectorops; // get/set element
const cl_GV_index<T> operator[] (unsigned long index);
const cl_GV_constindex<T> operator[] (unsigned long index) const;
// All member functions are inline.
template <class T>
-inline uintC cl_GV_inner<T>::length () const
+inline uintC cl_GV_inner<T>::size() const
{
return len;
}
struct cl_GV : public BASE {
public:
// Length.
- uintC length () const
+ uintC size() const
{
- return ((const cl_heap_GV<T> *) this->pointer)->v.length();
+ return ((const cl_heap_GV<T> *) this->pointer)->v.size();
}
// Reference. Forbid modification of `const cl_GV&' arguments.
const cl_GV_constindex<T> operator[] (unsigned long index) const
T * data() { return (T *) (this+1); }
const T * data() const { return (const T *) (this+1); }
public:
- uintC length () const { return len; } // number of elements
+ uintC size() const { return len; } // number of elements
const T & operator[] (unsigned long index) const
{
#ifndef CL_SV_NO_RANGECHECKS
- if (!(index < length())) throw runtime_exception();
+ if (!(index < size())) throw runtime_exception();
#endif
return data()[index];
}
T & operator[] (unsigned long index)
{
#ifndef CL_SV_NO_RANGECHECKS
- if (!(index < length())) throw runtime_exception();
+ if (!(index < size())) throw runtime_exception();
#endif
return data()[index];
}
struct cl_SV : public BASE {
public:
// Length.
- uintC length () const
+ uintC size() const
{
- return ((const cl_heap_SV<T> *) this->pointer)->v.length();
+ return ((const cl_heap_SV<T> *) this->pointer)->v.size();
}
// Reference. Forbid modification of `const cl_SV&' arguments.
const T & operator[] (unsigned long index) const
return &((cl_heap_string*)pointer)->data[0];
}
// Return the length (number of characters).
- unsigned long length () const
+ unsigned long size() const
{
return ((cl_heap_string*)pointer)->length;
}
// Return a specific character.
char operator[] (unsigned long i) const
{
- if (!(i < length())) throw runtime_exception(); // Range check.
+ if (!(i < size())) throw runtime_exception(); // Range check.
return ((cl_heap_string*)pointer)->data[i];
}
// New ANSI C++ compilers also want the following.
// Length.
inline unsigned long strlen (const cl_string& str)
{
- return str.length();
+ return str.size();
}
// Conversion to `const char *'.
inline const char * asciz (const char * s) { return s; }
// Comparison.
inline bool equal (const cl_string& str1, const cl_string& str2)
{
- return str1.length() == str2.length()
+ return str1.size() == str2.size()
&& !strcmp(str1.asciz(), str2.asciz());
}
inline bool equal (const char * str1, const cl_string& str2)
// Get the contents as a string. Free it using free_hook() when done.
char* contents ();
// Look at the contents.
- uintL length () const;
+ uintL size() const;
char operator[] (uintL i) const;
};
inline cl_spushstring::cl_spushstring ()
{
return cl_sstring(buffer,index);
}
-inline uintL cl_spushstring::length () const
+inline uintL cl_spushstring::size() const
{
return index;
}
{
var const cl_string& obj = *(const cl_string*)&pointer;
fprint(cl_debugout, "(cl_string) \"");
- var unsigned long l = obj.length();
+ var unsigned long l = obj.size();
for (var unsigned long i = 0; i < l; i++) {
var unsigned char c = obj[i];
if (c >= 0x20) {
var unsigned long code = 0x61284AF3;
// We walk through all characters. It may take some time for very
// long strings, but it's better than completely ignoring some characters.
- var long len = str.length();
+ var long len = str.size();
var const char * ptr = str.asciz();
for (; len > 0; len--) {
var unsigned char c = *ptr++;
void fprint (std::ostream& stream, const cl_string& str)
{
- stream.write(str.asciz(),str.length());
+ stream.write(str.asciz(),str.size());
}
} // namespace cln
unused UPR;
var const cl_heap_GV_I_bits1 * xv = (const cl_heap_GV_I_bits1 *) x.heappointer;
var const cl_heap_GV_I_bits1 * yv = (const cl_heap_GV_I_bits1 *) y.heappointer;
- var uintL xlen = xv->v.length();
- var uintL ylen = yv->v.length();
+ var uintL xlen = xv->v.size();
+ var uintL ylen = yv->v.size();
if (!(xlen == ylen))
return false;
// We can compare full words since unused bits in the last word are 0.
DeclarePoly(cl_GV_MI,y);
var const cl_heap_GV_I_bits1 * xv = (const cl_heap_GV_I_bits1 *) x.heappointer;
var const cl_heap_GV_I_bits1 * yv = (const cl_heap_GV_I_bits1 *) y.heappointer;
- var uintL xlen = xv->v.length();
- var uintL ylen = yv->v.length();
+ var uintL xlen = xv->v.size();
+ var uintL ylen = yv->v.size();
if (xlen == 0)
return _cl_UP(UPR, y);
if (ylen == 0)
DeclarePoly(cl_GV_MI,y);
var const cl_heap_GV_I_bits1 * xv = (const cl_heap_GV_I_bits1 *) x.heappointer;
var const cl_heap_GV_I_bits1 * yv = (const cl_heap_GV_I_bits1 *) y.heappointer;
- var uintL xlen = xv->v.length();
- var uintL ylen = yv->v.length();
+ var uintL xlen = xv->v.size();
+ var uintL ylen = yv->v.size();
if (xlen == 0)
return _cl_UP(UPR, x);
if (ylen == 0)
{{
DeclarePoly(cl_GV_MI,x);
var const cl_heap_GV_I_bits1 * xv = (const cl_heap_GV_I_bits1 *) x.heappointer;
- var uintL xlen = xv->v.length();
+ var uintL xlen = xv->v.size();
if (xlen == 0)
return _cl_UP(UPR, x);
var cl_heap_modint_ring* R = TheModintRing(UPR->basering());
{ DeclarePoly(_cl_MI,y);
var cl_heap_modint_ring* R = TheModintRing(UPR->basering());
var const cl_heap_GV_I_bits1 * xv = (const cl_heap_GV_I_bits1 *) x.heappointer;
- var uintL len = xv->v.length();
+ var uintL len = xv->v.size();
if (len==0)
return R->zero();
if (R->_zerop(y))
{{
DeclarePoly(cl_GV_MI,x);
var cl_heap_modint_ring* R = TheModintRing(UPR->basering());
- var sintL xlen = x.length();
+ var sintL xlen = x.size();
if (xlen == 0)
fprint(stream, "0");
else {
DeclarePoly(cl_GV_MI,x);
DeclarePoly(cl_GV_MI,y);
var cl_heap_modint_ring* R = TheModintRing(UPR->basering());
- var sintL xlen = x.length();
- var sintL ylen = y.length();
+ var sintL xlen = x.size();
+ var sintL ylen = y.size();
if (!(xlen == ylen))
return false;
for (var sintL i = xlen-1; i >= 0; i--)
{
unused UPR;
{ DeclarePoly(cl_GV_MI,x);
- var sintL xlen = x.length();
+ var sintL xlen = x.size();
if (xlen == 0)
return true;
else
DeclarePoly(cl_GV_MI,x);
DeclarePoly(cl_GV_MI,y);
var cl_heap_modint_ring* R = TheModintRing(UPR->basering());
- var sintL xlen = x.length();
- var sintL ylen = y.length();
+ var sintL xlen = x.size();
+ var sintL ylen = y.size();
if (xlen == 0)
return _cl_UP(UPR, y);
if (ylen == 0)
{{
DeclarePoly(cl_GV_MI,x);
var cl_heap_modint_ring* R = TheModintRing(UPR->basering());
- var sintL xlen = x.length();
+ var sintL xlen = x.size();
if (xlen == 0)
return _cl_UP(UPR, x);
// Now xlen > 0.
DeclarePoly(cl_GV_MI,x);
DeclarePoly(cl_GV_MI,y);
var cl_heap_modint_ring* R = TheModintRing(UPR->basering());
- var sintL xlen = x.length();
- var sintL ylen = y.length();
+ var sintL xlen = x.size();
+ var sintL ylen = y.size();
if (ylen == 0)
return _cl_UP(UPR, x);
if (xlen == 0)
DeclarePoly(cl_GV_MI,x);
DeclarePoly(cl_GV_MI,y);
var cl_heap_modint_ring* R = TheModintRing(UPR->basering());
- var sintL xlen = x.length();
- var sintL ylen = y.length();
+ var sintL xlen = x.size();
+ var sintL ylen = y.size();
if (xlen == 0)
return _cl_UP(UPR, x);
if (ylen == 0)
{{
DeclarePoly(cl_GV_MI,x);
var cl_heap_modint_ring* R = TheModintRing(UPR->basering());
- var sintL xlen = x.length();
+ var sintL xlen = x.size();
if (xlen == 0)
return cl_UP(UPR, x);
var sintL len = 2*xlen-1;
DeclarePoly(_cl_MI,x);
DeclarePoly(cl_GV_MI,y);
var cl_heap_modint_ring* R = TheModintRing(UPR->basering());
- var sintL ylen = y.length();
+ var sintL ylen = y.size();
if (ylen == 0)
return _cl_UP(UPR, y);
if (R->_zerop(x))
{
unused UPR;
{ DeclarePoly(cl_GV_MI,x);
- return (sintL) x.length() - 1;
+ return (sintL) x.size() - 1;
}}
static sintL modint_ldegree (cl_heap_univpoly_ring* UPR, const _cl_UP& x)
{{
DeclarePoly(cl_GV_MI,x);
var cl_heap_modint_ring* R = TheModintRing(UPR->basering());
- var sintL xlen = x.length();
+ var sintL xlen = x.size();
for (sintL i = 0; i < xlen; i++) {
if (!R->_zerop(x[i]))
return i;
{{
DeclarePoly(cl_GV_MI,x);
var cl_heap_modint_ring* R = TheModintRing(UPR->basering());
- if (index < x.length())
+ if (index < x.size())
return cl_MI(R, x[index]);
else
return R->zero();
DeclareMutablePoly(cl_GV_MI,x);
if (!(UPR->basering() == y.ring())) throw runtime_exception();
{ DeclarePoly(_cl_MI,y);
- if (!(index < x.length())) throw runtime_exception();
+ if (!(index < x.size())) throw runtime_exception();
x[index] = y;
}}}
{{
DeclareMutablePoly(cl_GV_MI,x); // NB: x is modified by reference!
var cl_heap_modint_ring* R = TheModintRing(UPR->basering());
- var uintL len = x.length();
+ var uintL len = x.size();
if (len > 0)
modint_normalize(R,x,len);
}}
if (!(UPR->basering() == y.ring())) throw runtime_exception();
{ DeclarePoly(_cl_MI,y);
var cl_heap_modint_ring* R = TheModintRing(UPR->basering());
- var uintL len = x.length();
+ var uintL len = x.size();
if (len==0)
return R->zero();
if (R->_zerop(y))
{{
DeclarePoly(cl_SV_ringelt,x);
var cl_heap_ring* R = TheRing(UPR->basering());
- var sintL xlen = x.length();
+ var sintL xlen = x.size();
if (xlen == 0)
fprint(stream, "0");
else {
DeclarePoly(cl_SV_ringelt,x);
DeclarePoly(cl_SV_ringelt,y);
var cl_heap_ring* R = TheRing(UPR->basering());
- var sintL xlen = x.length();
- var sintL ylen = y.length();
+ var sintL xlen = x.size();
+ var sintL ylen = y.size();
if (!(xlen == ylen))
return false;
for (var sintL i = xlen-1; i >= 0; i--)
{
unused UPR;
{ DeclarePoly(cl_SV_ringelt,x);
- var sintL xlen = x.length();
+ var sintL xlen = x.size();
if (xlen == 0)
return true;
else
DeclarePoly(cl_SV_ringelt,x);
DeclarePoly(cl_SV_ringelt,y);
var cl_heap_ring* R = TheRing(UPR->basering());
- var sintL xlen = x.length();
- var sintL ylen = y.length();
+ var sintL xlen = x.size();
+ var sintL ylen = y.size();
if (xlen == 0)
return _cl_UP(UPR, y);
if (ylen == 0)
{{
DeclarePoly(cl_SV_ringelt,x);
var cl_heap_ring* R = TheRing(UPR->basering());
- var sintL xlen = x.length();
+ var sintL xlen = x.size();
if (xlen == 0)
return _cl_UP(UPR, x);
// Now xlen > 0.
DeclarePoly(cl_SV_ringelt,x);
DeclarePoly(cl_SV_ringelt,y);
var cl_heap_ring* R = TheRing(UPR->basering());
- var sintL xlen = x.length();
- var sintL ylen = y.length();
+ var sintL xlen = x.size();
+ var sintL ylen = y.size();
if (ylen == 0)
return _cl_UP(UPR, x);
if (xlen == 0)
DeclarePoly(cl_SV_ringelt,x);
DeclarePoly(cl_SV_ringelt,y);
var cl_heap_ring* R = TheRing(UPR->basering());
- var sintL xlen = x.length();
- var sintL ylen = y.length();
+ var sintL xlen = x.size();
+ var sintL ylen = y.size();
if (xlen == 0)
return _cl_UP(UPR, x);
if (ylen == 0)
{{
DeclarePoly(cl_SV_ringelt,x);
var cl_heap_ring* R = TheRing(UPR->basering());
- var sintL xlen = x.length();
+ var sintL xlen = x.size();
if (xlen == 0)
return cl_UP(UPR, x);
var sintL len = 2*xlen-1;
{
DeclarePoly(cl_SV_ringelt,y);
var cl_heap_ring* R = TheRing(UPR->basering());
- var sintL ylen = y.length();
+ var sintL ylen = y.size();
if (ylen == 0)
return _cl_UP(UPR, y);
if (R->zerop(x))
{
unused UPR;
{ DeclarePoly(cl_SV_ringelt,x);
- return (sintL) x.length() - 1;
+ return (sintL) x.size() - 1;
}}
static sintL gen_ldegree (cl_heap_univpoly_ring* UPR, const _cl_UP& x)
{{ DeclarePoly(cl_SV_ringelt,x);
var cl_heap_ring* R = TheRing(UPR->basering());
- var sintL xlen = x.length();
+ var sintL xlen = x.size();
for (sintL i = 0; i < xlen; i++) {
if (!R->_zerop(x[i]))
return i;
{{
DeclarePoly(cl_SV_ringelt,x);
var cl_heap_ring* R = TheRing(UPR->basering());
- if (index < x.length())
+ if (index < x.size())
return cl_ring_element(R, x[index]);
else
return R->zero();
{{
DeclareMutablePoly(cl_SV_ringelt,x);
if (!(UPR->basering() == y.ring())) throw runtime_exception();
- if (!(index < x.length())) throw runtime_exception();
+ if (!(index < x.size())) throw runtime_exception();
x[index] = y;
}}
{{
DeclareMutablePoly(cl_SV_ringelt,x); // NB: x is modified by reference!
var cl_heap_ring* R = TheRing(UPR->basering());
- var uintL len = x.length();
+ var uintL len = x.size();
if (len > 0)
gen_normalize(R,x,len);
}}
DeclarePoly(cl_SV_ringelt,x);
var cl_heap_ring* R = TheRing(UPR->basering());
if (!(y.ring() == R)) throw runtime_exception();
- var uintL len = x.length();
+ var uintL len = x.size();
if (len==0)
return R->zero();
if (R->_zerop(y))
{{
DeclarePoly(cl_SV_number,x);
var cl_number_ring_ops<cl_number>& ops = *TheNumberRing(UPR->basering())->ops;
- var sintL xlen = x.length();
+ var sintL xlen = x.size();
if (xlen == 0)
fprint(stream, "0");
else {
DeclarePoly(cl_SV_number,x);
DeclarePoly(cl_SV_number,y);
var cl_number_ring_ops<cl_number>& ops = *TheNumberRing(UPR->basering())->ops;
- var sintL xlen = x.length();
- var sintL ylen = y.length();
+ var sintL xlen = x.size();
+ var sintL ylen = y.size();
if (!(xlen == ylen))
return false;
for (var sintL i = xlen-1; i >= 0; i--)
{
unused UPR;
{ DeclarePoly(cl_SV_number,x);
- var sintL xlen = x.length();
+ var sintL xlen = x.size();
if (xlen == 0)
return true;
else
DeclarePoly(cl_SV_number,x);
DeclarePoly(cl_SV_number,y);
var cl_number_ring_ops<cl_number>& ops = *TheNumberRing(UPR->basering())->ops;
- var sintL xlen = x.length();
- var sintL ylen = y.length();
+ var sintL xlen = x.size();
+ var sintL ylen = y.size();
if (xlen == 0)
return _cl_UP(UPR, y);
if (ylen == 0)
{{
DeclarePoly(cl_SV_number,x);
var cl_number_ring_ops<cl_number>& ops = *TheNumberRing(UPR->basering())->ops;
- var sintL xlen = x.length();
+ var sintL xlen = x.size();
if (xlen == 0)
return _cl_UP(UPR, x);
// Now xlen > 0.
DeclarePoly(cl_SV_number,x);
DeclarePoly(cl_SV_number,y);
var cl_number_ring_ops<cl_number>& ops = *TheNumberRing(UPR->basering())->ops;
- var sintL xlen = x.length();
- var sintL ylen = y.length();
+ var sintL xlen = x.size();
+ var sintL ylen = y.size();
if (ylen == 0)
return _cl_UP(UPR, x);
if (xlen == 0)
DeclarePoly(cl_SV_number,x);
DeclarePoly(cl_SV_number,y);
var cl_number_ring_ops<cl_number>& ops = *TheNumberRing(UPR->basering())->ops;
- var sintL xlen = x.length();
- var sintL ylen = y.length();
+ var sintL xlen = x.size();
+ var sintL ylen = y.size();
if (xlen == 0)
return _cl_UP(UPR, x);
if (ylen == 0)
{{
DeclarePoly(cl_SV_number,x);
var cl_number_ring_ops<cl_number>& ops = *TheNumberRing(UPR->basering())->ops;
- var sintL xlen = x.length();
+ var sintL xlen = x.size();
if (xlen == 0)
return cl_UP(UPR, x);
var sintL len = 2*xlen-1;
DeclarePoly(cl_number,x);
DeclarePoly(cl_SV_number,y);
var cl_number_ring_ops<cl_number>& ops = *TheNumberRing(UPR->basering())->ops;
- var sintL ylen = y.length();
+ var sintL ylen = y.size();
if (ylen == 0)
return _cl_UP(UPR, y);
if (ops.zerop(x))
{
unused UPR;
{ DeclarePoly(cl_SV_number,x);
- return (sintL) x.length() - 1;
+ return (sintL) x.size() - 1;
}}
static sintL num_ldegree (cl_heap_univpoly_ring* UPR, const _cl_UP& x)
{{
DeclarePoly(cl_SV_number,x);
var cl_number_ring_ops<cl_number>& ops = *TheNumberRing(UPR->basering())->ops;
- var sintL xlen = x.length();
+ var sintL xlen = x.size();
for (sintL i = 0; i < xlen; i++) {
if (!ops.zerop(x[i]))
return i;
{{
DeclarePoly(cl_SV_number,x);
var cl_heap_number_ring* R = TheNumberRing(UPR->basering());
- if (index < x.length())
+ if (index < x.size())
return cl_ring_element(R, x[index]);
else
return R->zero();
DeclareMutablePoly(cl_SV_number,x);
if (!(UPR->basering() == y.ring())) throw runtime_exception();
{ DeclarePoly(cl_number,y);
- if (!(index < x.length())) throw runtime_exception();
+ if (!(index < x.size())) throw runtime_exception();
x[index] = y;
}}}
{{
DeclareMutablePoly(cl_SV_number,x); // NB: x is modified by reference!
var cl_number_ring_ops<cl_number>& ops = *TheNumberRing(UPR->basering())->ops;
- var uintL len = x.length();
+ var uintL len = x.size();
if (len > 0)
num_normalize(ops,x,len);
}}
{ DeclarePoly(cl_number,y);
var cl_heap_number_ring* R = TheNumberRing(UPR->basering());
var cl_number_ring_ops<cl_number>& ops = *R->ops;
- var uintL len = x.length();
+ var uintL len = x.size();
if (len==0)
return R->zero();
if (ops.zerop(y))
static void general_do_delete (cl_GV_inner<cl_I>* vec)
{
var cl_heap_GV_I_general* hv = (cl_heap_GV_I_general *) outcast(vec);
- var uintC len = hv->v.length();
+ var uintC len = hv->v.size();
for (var uintC i = 0; i < len; i++)
hv->data[i].~cl_I();
}
(const cl_heap_GV_I_general *) outcast(srcvec);
var cl_heap_GV_I_general* destv =
(cl_heap_GV_I_general *) outcast(destvec);
- var uintC srclen = srcv->v.length();
- var uintC destlen = destv->v.length();
+ var uintC srclen = srcv->v.size();
+ var uintC destlen = destv->v.size();
if (!(srcindex <= srcindex+count && srcindex+count <= srclen))
throw runtime_exception();
if (!(destindex <= destindex+count && destindex+count <= destlen))
(const cl_heap_GV_I_bits##m *) outcast(srcvec); \
var cl_heap_GV_I_bits##m * destv = \
(cl_heap_GV_I_bits##m *) outcast(destvec); \
- var uintC srclen = srcv->v.length(); \
- var uintC destlen = destv->v.length(); \
+ var uintC srclen = srcv->v.size(); \
+ var uintC destlen = destv->v.size(); \
if (!(srcindex <= srcindex+count && srcindex+count <= srclen)) \
throw runtime_exception(); \
if (!(destindex <= destindex+count && destindex+count <= destlen)) \
const cl_GV_I copy (const cl_GV_I& v)
{
- var uintC len = v.length();
+ var uintC len = v.size();
var cl_GV_I w = cl_GV_I(len,v.maxbits());
cl_GV_I::copy_elements(v,0,w,0,len);
return w;
static void general_do_delete (cl_GV_inner<cl_number>* vec)
{
var cl_heap_GV_number_general* hv = (cl_heap_GV_number_general *) outcast(vec);
- var uintC len = hv->v.length();
+ var uintC len = hv->v.size();
for (var uintC i = 0; i < len; i++)
hv->data[i].~cl_number();
}
(const cl_heap_GV_number_general *) outcast(srcvec);
var cl_heap_GV_number_general* destv =
(cl_heap_GV_number_general *) outcast(destvec);
- var uintC srclen = srcv->v.length();
- var uintC destlen = destv->v.length();
+ var uintC srclen = srcv->v.size();
+ var uintC destlen = destv->v.size();
if (!(srcindex <= srcindex+count && srcindex+count <= srclen))
throw runtime_exception();
if (!(destindex <= destindex+count && destindex+count <= destlen))
const cl_GV_number copy (const cl_GV_number& v)
{
- var uintC len = v.length();
+ var uintC len = v.size();
var cl_GV_number w = cl_GV_number(len);
cl_GV_number::copy_elements(v,0,w,0,len);
return w;
const cl_SV_any copy (const cl_SV_any& src)
{
- var uintC len = src.length();
+ var uintC len = src.size();
var cl_heap_SV_any* hv = (cl_heap_SV_any*) malloc_hook(sizeof(cl_heap_SV_any)+sizeof(cl_gcobject)*len);
hv->refcount = 1;
hv->type = src.pointer_type();
void print_vector (std::ostream& stream, const cl_print_flags& flags, void (* printfun) (std::ostream&, const cl_print_flags&, const cl_number&), const cl_GV_number& vector)
{
- var uintC len = vector.length();
+ var uintC len = vector.size();
if (flags.vector_syntax == vsyntax_commonlisp) {
fprintchar(stream,'#');
fprintchar(stream,'(');
void fprint (std::ostream& stream, const cl_ring& R, const cl_SV_ringelt& vector)
{
var const cl_print_flags& flags = default_print_flags;
- var uintC len = vector.length();
+ var uintC len = vector.size();
if (flags.vector_syntax == vsyntax_commonlisp) {
fprintchar(stream,'#');
fprintchar(stream,'(');
void print_vector (std::ostream& stream, const cl_print_flags& flags, void (* printfun) (std::ostream&, const cl_print_flags&, const cl_number&), const cl_SV_number& vector)
{
- var uintC len = vector.length();
+ var uintC len = vector.size();
if (flags.vector_syntax == vsyntax_commonlisp) {
fprintchar(stream,'#');
fprintchar(stream,'(');