B 4]@sdZddlmZddlmZddlmZddlmZddlmZddlm Z ddlm Z dd l m Z dd l m Z dd l mZdd l mZdd l mZddl mZddl mZddl mZddl mZddl mZddl mZddl mZddl mZddl mZddlmZddlmZddlmZddlmZddlmZe e!Z"e ddZ#ej$ddd Z%dwd"d#Z&Gd$d%d%e eeZ'Gd&d'd'eZ(Gd(d)d)e)Z*e*Z+e*d*d+Z,Gd,d-d-e'Z-Gd.d/d/eZ.Gd0d1d1e/e.e-Z0e&d2ee&d3eGd4d5d5e0Z1Gd6d7d7e0Z2Gd8d9d9e0Z3Gd:d;d;e3Z4Gdd?d?e3Z6Gd@dAdAe3Z7GdBdCdCe0Z8GdDdEdEe0Z9GdFdGdGe0Z:GdHdIdIe0Z;GdJdKdKe0ZGdPdQdQe2Z?GdRdSdSe2Z@GdTdUdUe2ZAGdVdWdWe2ZBGdXdYdYe2ZCGdZd[d[e2ZDGd\d]d]e2ZEGd^d_d_e0ZFGd`dadae0ZGGdbdcdceGZHGdddedeeGZIGdfdgdgeGZJGdhdidie0ZKGdjdkdke0ZLGdldmdme0ZMGdndodoe0ZNGdpdqdqe0ZOGdrdsdse0ZPGdtdudue0ZQdvS)xz6SQL function API, factories, and built-in functions. ) annotation) operators)schema)sqltypes)util)ColumnCollection) Executable)_clone)_literal_as_binds)_type_from_args)BinaryExpression) BindParameter)Cast) ClauseList) ColumnElement)Extract)FunctionFilter)Grouping)literal_column)Over) WithinGroup)Alias) FromClause)Select) VisitableTypecCs ttS)N)r defaultdictdictrrK/opt/alt/python37/lib64/python3.7/site-packages/sqlalchemy/sql/functions.py(r Zcase_sensitive_functionzHSymbol to mark the functions that are switched into case-sensitive mode.)namedoc_defaultcCst|}t|}|}|}||kr||tk r|||krVtd||||<qtd|t|| dt||<nN||kr|||krtdt || |qtd|n|||<||||<dS)zAssociate a callable with a particular func. name. This is normally called by _GenericMeta, but is also available by itself so that a non-Function construct can be associated with the :data:`.func` accessor (i.e. CAST, EXTRACT). zLThe GenericFunction '{}' is already registered and is going to be overriden.zGenericFunction '{}' is already registered with different letter case, so the previously registered function '{}' is switched into case-sensitive mode. GenericFunction objects will be fully case-insensitive in a future release.zGenericFunction(s) '{}' are already registered with different letter cases and might interact with '{}'. GenericFunction objects will be fully case-insensitive in a future release.N) _registry_case_sensitive_registrylower_CASE_SENSITIVErwarnformatZwarn_deprecatedlistkeyssorted) identifierfnpackageZregcase_sensitive_regZraw_identifierrrrregister_function0s4       r3cseZdZdZdZdZddZddZedd Z e j d d Z d)d dZ ddZddZddZeddZddZefddZddZd*ddZdd Zd!d"Zd#d$Zd+d%d&Zd,fd'd( ZZS)-FunctionElementa<Base for SQL function-oriented constructs. .. seealso:: :class:`.Function` - named SQL function. :data:`.func` - namespace which produces registered or ad-hoc :class:`.Function` instances. :class:`.GenericFunction` - allows creation of registered function types. rFcs>fdd|D}jpt|_t|tjdd_dS)z/Construct a :class:`.FunctionElement`. csg|]}t|jqSr)r r").0c)selfrr sz,FunctionElement.__init__..T)operatorgroup_contentsN) _has_argsboolrrcomma_op self_group clause_expr)r7clauseskwargsargsr)r7r__init__szFunctionElement.__init__cCs||||S)N)Z_execute_function)r7Z connectionZ multiparamsZparamsrrr_execute_on_connectionsz&FunctionElement._execute_on_connectioncCst|dS)a2The set of columns exported by this :class:`.FunctionElement`. Function objects currently have no result column names built in; this method returns a single-element column collection with an anonymously named column. An interim approach to providing named columns for a function as a FROM clause is to build a :func:`.select` with the desired columns:: from sqlalchemy.sql import column stmt = select([column('x'), column('y')]). select_from(func.myfunction()) N)rZlabel)r7rrrcolumnsszFunctionElement.columnscCs|jjS)z}Return the underlying :class:`.ClauseList` which contains the arguments for this :class:`.FunctionElement`. )r?element)r7rrrr@szFunctionElement.clausesNcCst|||||dS)aProduce an OVER clause against this function. Used against aggregate or so-called "window" functions, for database backends that support window functions. The expression:: func.row_number().over(order_by='x') is shorthand for:: from sqlalchemy import over over(func.row_number(), order_by='x') See :func:`~.expression.over` for a full description. ) partition_byorder_byrowsrange_)r)r7rGrHrIrJrrrovers zFunctionElement.overcGst|f|S)ayProduce a WITHIN GROUP (ORDER BY expr) clause against this function. Used against so-called "ordered set aggregate" and "hypothetical set aggregate" functions, including :class:`.percentile_cont`, :class:`.rank`, :class:`.dense_rank`, etc. See :func:`~.expression.within_group` for a full description. .. versionadded:: 1.1 )r)r7rHrrr within_groups zFunctionElement.within_groupcGs|s|St|f|S)aProduce a FILTER clause against this function. Used against aggregate and window functions, for database backends that support the "FILTER" clause. The expression:: func.count(1).filter(True) is shorthand for:: from sqlalchemy import funcfilter funcfilter(func.count(1), True) .. versionadded:: 1.0.0 .. seealso:: :class:`.FunctionFilter` :func:`.funcfilter` )r)r7Z criterionrrrfilterszFunctionElement.filtercCs t|||S)a^ Interpret this expression as a boolean comparison between two values. A hypothetical SQL function "is_equal()" which compares to values for equality would be written in the Core expression language as:: expr = func.is_equal("a", "b") If "is_equal()" above is comparing "a" and "b" for equality, the :meth:`.FunctionElement.as_comparison` method would be invoked as:: expr = func.is_equal("a", "b").as_comparison(1, 2) Where above, the integer value "1" refers to the first argument of the "is_equal()" function and the integer value "2" refers to the second. This would create a :class:`.BinaryExpression` that is equivalent to:: BinaryExpression("a", "b", operator=op.eq) However, at the SQL level it would still render as "is_equal('a', 'b')". The ORM, when it loads a related object or collection, needs to be able to manipulate the "left" and "right" sides of the ON clause of a JOIN expression. The purpose of this method is to provide a SQL function construct that can also supply this information to the ORM, when used with the :paramref:`.relationship.primaryjoin` parameter. The return value is a containment object called :class:`.FunctionAsBinary`. An ORM example is as follows:: class Venue(Base): __tablename__ = 'venue' id = Column(Integer, primary_key=True) name = Column(String) descendants = relationship( "Venue", primaryjoin=func.instr( remote(foreign(name)), name + "/" ).as_comparison(1, 2) == 1, viewonly=True, order_by=name ) Above, the "Venue" class can load descendant "Venue" objects by determining if the name of the parent Venue is contained within the start of the hypothetical descendant value's name, e.g. "parent1" would match up to "parent1/child1", but not to "parent2/child1". Possible use cases include the "materialized path" example given above, as well as making use of special SQL functions such as geometric functions to create join conditions. :param left_index: the integer 1-based index of the function argument that serves as the "left" side of the expression. :param right_index: the integer 1-based index of the function argument that serves as the "right" side of the expression. .. versionadded:: 1.3 )FunctionAsBinary)r7 left_index right_indexrrr as_comparisons?zFunctionElement.as_comparisoncCs|jjS)N)r@ _from_objects)r7rrrrR5szFunctionElement._from_objectscKs|jfS)N)r?)r7rArrr get_children9szFunctionElement.get_childrencKs(||jf||_|tj|dS)N)r?Z_reset_exportedr4r@Z_reset)r7clonekwrrr_copy_internals<szFunctionElement._copy_internalscCsdS)aFor types that define their return type as based on the criteria within a WITHIN GROUP (ORDER BY) expression, called by the :class:`.WithinGroup` construct. Returns None by default, in which case the function's normal ``.type`` is used. Nr)r7rLrrrwithin_group_typeAs z!FunctionElement.within_group_typecCs t||S)a_Produce a :class:`.Alias` construct against this :class:`.FunctionElement`. This construct wraps the function in a named alias which is suitable for the FROM clause, in the style accepted for example by PostgreSQL. e.g.:: from sqlalchemy.sql import column stmt = select([column('data_view')]).\ select_from(SomeTable).\ select_from(func.unnest(SomeTable.data).alias('data_view') ) Would produce: .. sourcecode:: sql SELECT data_view FROM sometable, unnest(sometable.data) AS data_view .. versionadded:: 0.9.8 The :meth:`.FunctionElement.alias` method is now supported. Previously, this method's behavior was undefined and did not behave consistently across versions. )rZ _construct)r7r"ZflatrrraliasMszFunctionElement.aliascCs"t|g}|jr|jf|j}|S)zProduce a :func:`~.expression.select` construct against this :class:`.FunctionElement`. This is shorthand for:: s = select([function_element]) )rZ_execution_optionsZexecution_options)r7srrrselectms zFunctionElement.selectcCs|S)arExecute this :class:`.FunctionElement` against an embedded 'bind' and return a scalar value. This first calls :meth:`~.FunctionElement.select` to produce a SELECT construct. Note that :class:`.FunctionElement` can be passed to the :meth:`.Connectable.scalar` method of :class:`.Connection` or :class:`.Engine`. )rZexecutescalar)r7rrrr\{s zFunctionElement.scalarcCs |S)aYExecute this :class:`.FunctionElement` against an embedded 'bind'. This first calls :meth:`~.FunctionElement.select` to produce a SELECT construct. Note that :class:`.FunctionElement` can be passed to the :meth:`.Connectable.execute` method of :class:`.Connection` or :class:`.Engine`. )rZr[)r7rrrr[s zFunctionElement.executecCstd|||jd|dS)NT)_compared_to_operator_compared_to_typeuniquetype_)r type)r7r9objr`rrr _bind_paramszFunctionElement._bind_paramcs6|tjkr t|jtjr t|Stt|j |dSdS)N)against) rgetitem isinstancerarARRAYrsuperr4r>)r7rd) __class__rrr>s  zFunctionElement.self_group)NNNN)NF)N)N)__name__ __module__ __qualname____doc__ packagenamesr;rCrDpropertyrErZmemoized_propertyr@rKrLrMrQrRrSr rVrWrXrZr\r[rcr> __classcell__rr)rirr4rs*    A    r4cs\eZdZfddZeddZejddZeddZejddZfd d ZZ S) rNcsR|jj|d}|jj|d}||_||_||_tt|j||tjt j ddS)Nr)r`) r@ sql_functionrOrPrhrNrCrZfunction_as_comparison_oprZ BOOLEANTYPE)r7r0rOrPleftright)rirrrCs zFunctionAsBinary.__init__cCs|jjj|jdS)Nr)rqr@rO)r7rrrrrszFunctionAsBinary.leftcCs||jjj|jd<dS)Nr)rqr@rO)r7valuerrrrrscCs|jjj|jdS)Nr)rqr@rP)r7rrrrsszFunctionAsBinary.rightcCs||jjj|jd<dS)Nr)rqr@rP)r7rtrrrrssc s0|d}||jf||_tt|jf|dS)NrT)poprqrhrNrV)r7rUrT)rirrrVs z FunctionAsBinary._copy_internals) rjrkrlrCrorrsetterrsrVrprr)rirrNs    rNc@s(eZdZdZddZddZddZdS) _FunctionGeneratorz;Generate :class:`.Function` objects based on getattr calls.cKsg|_||_dS)N)_FunctionGenerator__namesopts)r7ryrrrrCsz_FunctionGenerator.__init__cCsl|dr4y |j|Stk r0t|YqJXn|drJ|dd}tf|j}t|j|g|_|S)N___r%) startswith__dict__KeyErrorAttributeErrorendswithrwryr,rx)r7r"frrr __getattr__s     z_FunctionGenerator.__getattr__c Os|j}||t|j}|dkr2|j\}}n|dkrLd|jd}}nd}|dk rt||}|tkrt |}|||}|dk r|||St |jdf|d|jddi|S)Nrrr$r%r|rn) rycopyupdatelenrxr&getr(r)r'Function) r7r6rAotokensr1Zfnamefuncr2rrr__call__s"     z_FunctionGenerator.__call__N)rjrkrlrmrCrrrrrrrwsrwF)groupc@s&eZdZdZdZddZdddZdS) raYDescribe a named SQL function. See the superclass :class:`.FunctionElement` for a description of public methods. .. seealso:: :data:`.func` - namespace which produces registered or ad-hoc :class:`.Function` instances. :class:`.GenericFunction` - allows creation of registered function types. ZfunctioncOsP|ddpg|_||_|dd|_t|dd|_tj |f||dS)zConstruct a :class:`.Function`. The :data:`.func` construct is normally used to construct new :class:`.Function` instances. rnNbindr`) rurnr"r_bindr to_instancerar4rC)r7r"r@rUrrrrC_s zFunction.__init__NcCst|j|||j|ddS)NT)r]r^r`r_)r r"ra)r7r9rbr`rrrrcmszFunction._bind_param)N)rjrkrlrmZ__visit_name__rCrcrrrrrMsrcseZdZfddZZS) _GenericMetacstj|jkrv|d||_}|d||_}|dd}d|krN|d|_t|dd|_ |j rpt |||nd|_ t t | |||dS)Nr"r/r1r$Z__return_type__ _registerT)rZ Annotated__mro__rr"r/ruragetattrrr3rhrrC)clsZclsnamebasesZclsdictr"r/r1)rirrrCys   z_GenericMeta.__init__)rjrkrlrCrprr)rirrxsrc@s eZdZdZdZdZddZdS)GenericFunctionaDefine a 'generic' function. A generic function is a pre-established :class:`.Function` class that is instantiated automatically when called by name from the :data:`.func` attribute. Note that calling any name from :data:`.func` has the effect that a new :class:`.Function` instance is created automatically, given that name. The primary use case for defining a :class:`.GenericFunction` class is so that a function of a particular name may be given a fixed return type. It can also include custom argument parsing schemes as well as additional methods. Subclasses of :class:`.GenericFunction` are automatically registered under the name of the class. For example, a user-defined function ``as_utc()`` would be available immediately:: from sqlalchemy.sql.functions import GenericFunction from sqlalchemy.types import DateTime class as_utc(GenericFunction): type = DateTime print select([func.as_utc()]) User-defined generic functions can be organized into packages by specifying the "package" attribute when defining :class:`.GenericFunction`. Third party libraries containing many functions may want to use this in order to avoid name conflicts with other systems. For example, if our ``as_utc()`` function were part of a package "time":: class as_utc(GenericFunction): type = DateTime package = "time" The above function would be available from :data:`.func` using the package name ``time``:: print select([func.time.as_utc()]) A final option is to allow the function to be accessed from one name in :data:`.func` but to render as a different name. The ``identifier`` attribute will override the name used to access the function as loaded from :data:`.func`, but will retain the usage of ``name`` as the rendered name:: class GeoBuffer(GenericFunction): type = Geometry package = "geo" name = "ST_Buffer" identifier = "buffer" The above function will render as follows:: >>> print func.geo.buffer() ST_Buffer() TFcs|dd}|dkr&fdd|D}jp2t|_g_|dd_t|tjdd _ t |ddp|t dd_dS) N _parsed_argscsg|]}t|jqSr)r r")r5r6)r7rrr8sz,GenericFunction.__init__..rT)r9r:r`ra)rur;r<rnrrrrr=r>r?rrrra)r7rBrAZ parsed_argsr)r7rrCs zGenericFunction.__init__N)rjrkrlrmZcoerce_argumentsrrCrrrrrs=rcastextractc@s0eZdZdZeZdZddZe ddZ dS) next_valueaRepresent the 'next value', given a :class:`.Sequence` as its single argument. Compiles into the appropriate function on each backend, or will raise NotImplementedError if used on a backend that does not provide support for sequences. cKs,t|tjstd|dd|_||_dS)Nz0next_value() accepts a Sequence object as input.r)rfrSequenceAssertionErrorrrZsequence)r7seqrUrrrrCs  znext_value.__init__cCsgS)Nr)r7rrrrRsznext_value._from_objectsN) rjrkrlrmrIntegerrar"rCrorRrrrrrs rc@seZdZddZdS) AnsiFunctioncOstj|f||dS)N)rrC)r7rBrArrrrCszAnsiFunction.__init__N)rjrkrlrCrrrrrsrcs eZdZdZfddZZS)ReturnTypeFromArgszADefine a function whose return type is the same as its arguments.cs@fdd|D}|dt|||d<ttj||dS)Ncsg|]}t|jqSr)r r")r5r6)r7rrr8sz/ReturnTypeFromArgs.__init__..r`r) setdefaultr rhrrC)r7rBrA)ri)r7rrCszReturnTypeFromArgs.__init__)rjrkrlrmrCrprr)rirrsrc@seZdZdZdS)coalesceTN)rjrkrlr;rrrrr src@s eZdZdS)maxN)rjrkrlrrrrrsrc@s eZdZdS)minN)rjrkrlrrrrrsrc@s eZdZdS)sumN)rjrkrlrrrrrsrc@seZdZejZdS)nowN)rjrkrlrDateTimerarrrrrsrc@seZdZejZdS)concatN)rjrkrlrStringrarrrrr src@seZdZejZddZdS) char_lengthcKstj||f|dS)N)rrC)r7argrArrrrC'szchar_length.__init__N)rjrkrlrrrarCrrrrr$src@seZdZdZdS)randomTN)rjrkrlr;rrrrr+srcs(eZdZdZejZdfdd ZZS)countaThe ANSI COUNT aggregate function. With no arguments, emits COUNT \*. E.g.:: from sqlalchemy import func from sqlalchemy import select from sqlalchemy import table, column my_table = table('some_table', column('id')) stmt = select([func.count()]).select_from(my_table) Executing ``stmt`` would emit:: SELECT count(*) AS count_1 FROM some_table Nc s(|dkrtd}tt|j|f|dS)N*)rrhrrC)r7Z expressionrA)rirrrCFszcount.__init__)N) rjrkrlrmrrrarCrprr)rirr/src@seZdZejZdS) current_dateN)rjrkrlrZDaterarrrrrLsrc@seZdZejZdS) current_timeN)rjrkrlrZTimerarrrrrPsrc@seZdZejZdS)current_timestampN)rjrkrlrrrarrrrrTsrc@seZdZejZdS) current_userN)rjrkrlrrrarrrrrXsrc@seZdZejZdS) localtimeN)rjrkrlrrrarrrrr\src@seZdZejZdS)localtimestampN)rjrkrlrrrarrrrr`src@seZdZejZdS) session_userN)rjrkrlrrrarrrrrdsrc@seZdZejZdS)sysdateN)rjrkrlrrrarrrrrhsrc@seZdZejZdS)userN)rjrkrlrrrarrrrrlsrcs&eZdZdZejZfddZZS) array_aggasupport for the ARRAY_AGG function. The ``func.array_agg(expr)`` construct returns an expression of type :class:`.types.ARRAY`. e.g.:: stmt = select([func.array_agg(table.c.values)[2:5]]) .. versionadded:: 1.1 .. seealso:: :func:`.postgresql.array_agg` - PostgreSQL-specific version that returns :class:`.postgresql.ARRAY`, which has PG-specific operators added. csldd|D}|dtj}d|krNt|}t|tjrB||d<n |||d<||d<tt|j||dS)NcSsg|] }t|qSr)r )r5r6rrrr8sz&array_agg.__init__..Z_default_array_typer`r)rurrgr rfrhrrC)r7rBrAZdefault_array_typeZtype_from_args)rirrrCs   zarray_agg.__init__) rjrkrlrmrrgrarCrprr)rirrpsrc@seZdZdZdZddZdS) OrderedSetAggzDefine a function where the return type is based on the sort expression type as defined by the expression passed to the :meth:`.FunctionElement.within_group` method.FcCsF|jj}t|j}|jr8t|jdkr8t |dj S|dj SdS)Nrr%) r?rFsqlutilZunwrap_order_byrHarray_for_multi_clauserr@rrgra)r7rLZ func_clausesrHrrrrWs  zOrderedSetAgg.within_group_typeN)rjrkrlrmrrWrrrrrsrc@seZdZdZdS)modea*implement the ``mode`` ordered-set aggregate function. This function must be used with the :meth:`.FunctionElement.within_group` modifier to supply a sort expression to operate upon. The return type of this function is the same as the sort expression. .. versionadded:: 1.1 N)rjrkrlrmrrrrrs rc@seZdZdZdZdS)percentile_contaimplement the ``percentile_cont`` ordered-set aggregate function. This function must be used with the :meth:`.FunctionElement.within_group` modifier to supply a sort expression to operate upon. The return type of this function is the same as the sort expression, or if the arguments are an array, an :class:`.types.ARRAY` of the sort expression's type. .. versionadded:: 1.1 TN)rjrkrlrmrrrrrrs rc@seZdZdZdZdS)percentile_discaimplement the ``percentile_disc`` ordered-set aggregate function. This function must be used with the :meth:`.FunctionElement.within_group` modifier to supply a sort expression to operate upon. The return type of this function is the same as the sort expression, or if the arguments are an array, an :class:`.types.ARRAY` of the sort expression's type. .. versionadded:: 1.1 TN)rjrkrlrmrrrrrrs rc@seZdZdZeZdS)ranka!Implement the ``rank`` hypothetical-set aggregate function. This function must be used with the :meth:`.FunctionElement.within_group` modifier to supply a sort expression to operate upon. The return type of this function is :class:`.Integer`. .. versionadded:: 1.1 N)rjrkrlrmrrrarrrrrs rc@seZdZdZeZdS) dense_ranka'Implement the ``dense_rank`` hypothetical-set aggregate function. This function must be used with the :meth:`.FunctionElement.within_group` modifier to supply a sort expression to operate upon. The return type of this function is :class:`.Integer`. .. versionadded:: 1.1 N)rjrkrlrmrrrarrrrrs rc@seZdZdZeZdS) percent_ranka)Implement the ``percent_rank`` hypothetical-set aggregate function. This function must be used with the :meth:`.FunctionElement.within_group` modifier to supply a sort expression to operate upon. The return type of this function is :class:`.Numeric`. .. versionadded:: 1.1 N)rjrkrlrmrNumericrarrrrrs rc@seZdZdZeZdS) cume_dista&Implement the ``cume_dist`` hypothetical-set aggregate function. This function must be used with the :meth:`.FunctionElement.within_group` modifier to supply a sort expression to operate upon. The return type of this function is :class:`.Numeric`. .. versionadded:: 1.1 N)rjrkrlrmrrrarrrrrs rc@seZdZdZdZdS)cubeaNImplement the ``CUBE`` grouping operation. This function is used as part of the GROUP BY of a statement, e.g. :meth:`.Select.group_by`:: stmt = select( [func.sum(table.c.value), table.c.col_1, table.c.col_2] ).group_by(func.cube(table.c.col_1, table.c.col_2)) .. versionadded:: 1.2 TN)rjrkrlrmr;rrrrrs rc@seZdZdZdZdS)rollupaNImplement the ``ROLLUP`` grouping operation. This function is used as part of the GROUP BY of a statement, e.g. :meth:`.Select.group_by`:: stmt = select( [func.sum(table.c.value), table.c.col_1, table.c.col_2] ).group_by(func.rollup(table.c.col_1, table.c.col_2)) .. versionadded:: 1.2 TN)rjrkrlrmr;rrrrr s rc@seZdZdZdZdS) grouping_setsa%Implement the ``GROUPING SETS`` grouping operation. This function is used as part of the GROUP BY of a statement, e.g. :meth:`.Select.group_by`:: stmt = select( [func.sum(table.c.value), table.c.col_1, table.c.col_2] ).group_by(func.grouping_sets(table.c.col_1, table.c.col_2)) In order to group by multiple sets, use the :func:`.tuple_` construct:: from sqlalchemy import tuple_ stmt = select( [ func.sum(table.c.value), table.c.col_1, table.c.col_2, table.c.col_3] ).group_by( func.grouping_sets( tuple_(table.c.col_1, table.c.col_2), tuple_(table.c.value, table.c.col_3), ) ) .. versionadded:: 1.2 TN)rjrkrlrmr;rrrrr0srN)r$)Rrmrrrrrrbaserrelementsr r r r r rrrrrrrrrZ selectablerrrZvisitorsrrrr&r'Zsymbolr)r3r4rNobjectrwrZmodifierrrZwith_metaclassrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr s                            B>&0F +Q   %