content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
""" The `~certbot_dns_google.dns_google` plugin automates the process of completing a ``dns-01`` challenge (`~acme.challenges.DNS01`) by creating, and subsequently removing, TXT records using the Google Cloud DNS API. Named Arguments --------------- ======================================== ===================================== ``--dns-google-credentials`` Google Cloud Platform credentials_ JSON file. (Required - Optional on Google Compute Engine) ``--dns-google-propagation-seconds`` The number of seconds to wait for DNS to propagate before asking the ACME server to verify the DNS record. (Default: 60) ======================================== ===================================== Credentials ----------- Use of this plugin requires Google Cloud Platform API credentials for an account with the following permissions: * ``dns.changes.create`` * ``dns.changes.get`` * ``dns.managedZones.list`` * ``dns.resourceRecordSets.create`` * ``dns.resourceRecordSets.delete`` Google provides instructions for `creating a service account <https://developers .google.com/identity/protocols/OAuth2ServiceAccount#creatinganaccount>`_ and `information about the required permissions <https://cloud.google.com/dns/access -control#permissions_and_roles>`_. If you're running on Google Compute Engine, you can `assign the service account to the instance <https://cloud.google.com/ compute/docs/access/create-enable-service-accounts-for-instances>`_ which is running certbot. A credentials file is not required in this case, as they are automatically obtained by certbot through the `metadata service <https://cloud.google.com/compute/docs/storing-retrieving-metadata>`_ . .. code-block:: json :name: credentials.json :caption: Example credentials file: { "type": "service_account", ... } The path to this file can be provided interactively or using the ``--dns-google-credentials`` command-line argument. Certbot records the path to this file for use during renewal, but does not store the file's contents. .. caution:: You should protect these API credentials as you would a password. Users who can read this file can use these credentials to issue some types of API calls on your behalf, limited by the permissions assigned to the account. Users who can cause Certbot to run using these credentials can complete a ``dns-01`` challenge to acquire new certificates or revoke existing certificates for domains these credentials are authorized to manage. Certbot will emit a warning if it detects that the credentials file can be accessed by other users on your system. The warning reads "Unsafe permissions on credentials configuration file", followed by the path to the credentials file. This warning will be emitted each time Certbot uses the credentials file, including for renewal, and cannot be silenced except by addressing the issue (e.g., by using a command like ``chmod 600`` to restrict access to the file). Examples -------- .. code-block:: bash :caption: To acquire a certificate for ``example.com`` certbot certonly \\ --dns-google \\ --dns-google-credentials ~/.secrets/certbot/google.json \\ -d example.com .. code-block:: bash :caption: To acquire a single certificate for both ``example.com`` and ``www.example.com`` certbot certonly \\ --dns-google \\ --dns-google-credentials ~/.secrets/certbot/google.json \\ -d example.com \\ -d www.example.com .. code-block:: bash :caption: To acquire a certificate for ``example.com``, waiting 120 seconds for DNS propagation certbot certonly \\ --dns-google \\ --dns-google-credentials ~/.secrets/certbot/google.ini \\ --dns-google-propagation-seconds 120 \\ -d example.com """
""" The `~certbot_dns_google.dns_google` plugin automates the process of completing a ``dns-01`` challenge (`~acme.challenges.DNS01`) by creating, and subsequently removing, TXT records using the Google Cloud DNS API. Named Arguments --------------- ======================================== ===================================== ``--dns-google-credentials`` Google Cloud Platform credentials_ JSON file. (Required - Optional on Google Compute Engine) ``--dns-google-propagation-seconds`` The number of seconds to wait for DNS to propagate before asking the ACME server to verify the DNS record. (Default: 60) ======================================== ===================================== Credentials ----------- Use of this plugin requires Google Cloud Platform API credentials for an account with the following permissions: * ``dns.changes.create`` * ``dns.changes.get`` * ``dns.managedZones.list`` * ``dns.resourceRecordSets.create`` * ``dns.resourceRecordSets.delete`` Google provides instructions for `creating a service account <https://developers .google.com/identity/protocols/OAuth2ServiceAccount#creatinganaccount>`_ and `information about the required permissions <https://cloud.google.com/dns/access -control#permissions_and_roles>`_. If you're running on Google Compute Engine, you can `assign the service account to the instance <https://cloud.google.com/ compute/docs/access/create-enable-service-accounts-for-instances>`_ which is running certbot. A credentials file is not required in this case, as they are automatically obtained by certbot through the `metadata service <https://cloud.google.com/compute/docs/storing-retrieving-metadata>`_ . .. code-block:: json :name: credentials.json :caption: Example credentials file: { "type": "service_account", ... } The path to this file can be provided interactively or using the ``--dns-google-credentials`` command-line argument. Certbot records the path to this file for use during renewal, but does not store the file's contents. .. caution:: You should protect these API credentials as you would a password. Users who can read this file can use these credentials to issue some types of API calls on your behalf, limited by the permissions assigned to the account. Users who can cause Certbot to run using these credentials can complete a ``dns-01`` challenge to acquire new certificates or revoke existing certificates for domains these credentials are authorized to manage. Certbot will emit a warning if it detects that the credentials file can be accessed by other users on your system. The warning reads "Unsafe permissions on credentials configuration file", followed by the path to the credentials file. This warning will be emitted each time Certbot uses the credentials file, including for renewal, and cannot be silenced except by addressing the issue (e.g., by using a command like ``chmod 600`` to restrict access to the file). Examples -------- .. code-block:: bash :caption: To acquire a certificate for ``example.com`` certbot certonly \\ --dns-google \\ --dns-google-credentials ~/.secrets/certbot/google.json \\ -d example.com .. code-block:: bash :caption: To acquire a single certificate for both ``example.com`` and ``www.example.com`` certbot certonly \\ --dns-google \\ --dns-google-credentials ~/.secrets/certbot/google.json \\ -d example.com \\ -d www.example.com .. code-block:: bash :caption: To acquire a certificate for ``example.com``, waiting 120 seconds for DNS propagation certbot certonly \\ --dns-google \\ --dns-google-credentials ~/.secrets/certbot/google.ini \\ --dns-google-propagation-seconds 120 \\ -d example.com """
"""Constants for the Subaru integration.""" DOMAIN = "subaru" FETCH_INTERVAL = 300 UPDATE_INTERVAL = 7200 CONF_UPDATE_ENABLED = "update_enabled" CONF_COUNTRY = "country" # entry fields ENTRY_CONTROLLER = "controller" ENTRY_COORDINATOR = "coordinator" ENTRY_VEHICLES = "vehicles" # update coordinator name COORDINATOR_NAME = "subaru_data" # info fields VEHICLE_VIN = "vin" VEHICLE_NAME = "display_name" VEHICLE_HAS_EV = "is_ev" VEHICLE_API_GEN = "api_gen" VEHICLE_HAS_REMOTE_START = "has_res" VEHICLE_HAS_REMOTE_SERVICE = "has_remote" VEHICLE_HAS_SAFETY_SERVICE = "has_safety" VEHICLE_LAST_UPDATE = "last_update" VEHICLE_STATUS = "status" API_GEN_1 = "g1" API_GEN_2 = "g2" MANUFACTURER = "Subaru Corp." SUPPORTED_PLATFORMS = [ "sensor", ] ICONS = { "Avg Fuel Consumption": "mdi:leaf", "EV Time to Full Charge": "mdi:car-electric", "EV Range": "mdi:ev-station", "Odometer": "mdi:road-variant", "Range": "mdi:gas-station", "Tire Pressure FL": "mdi:gauge", "Tire Pressure FR": "mdi:gauge", "Tire Pressure RL": "mdi:gauge", "Tire Pressure RR": "mdi:gauge", }
"""Constants for the Subaru integration.""" domain = 'subaru' fetch_interval = 300 update_interval = 7200 conf_update_enabled = 'update_enabled' conf_country = 'country' entry_controller = 'controller' entry_coordinator = 'coordinator' entry_vehicles = 'vehicles' coordinator_name = 'subaru_data' vehicle_vin = 'vin' vehicle_name = 'display_name' vehicle_has_ev = 'is_ev' vehicle_api_gen = 'api_gen' vehicle_has_remote_start = 'has_res' vehicle_has_remote_service = 'has_remote' vehicle_has_safety_service = 'has_safety' vehicle_last_update = 'last_update' vehicle_status = 'status' api_gen_1 = 'g1' api_gen_2 = 'g2' manufacturer = 'Subaru Corp.' supported_platforms = ['sensor'] icons = {'Avg Fuel Consumption': 'mdi:leaf', 'EV Time to Full Charge': 'mdi:car-electric', 'EV Range': 'mdi:ev-station', 'Odometer': 'mdi:road-variant', 'Range': 'mdi:gas-station', 'Tire Pressure FL': 'mdi:gauge', 'Tire Pressure FR': 'mdi:gauge', 'Tire Pressure RL': 'mdi:gauge', 'Tire Pressure RR': 'mdi:gauge'}
# Enter your code here. Read input from STDIN. Print output to STDOUT class TwoStackQueue: def __init__(self): self.forward_stack = [] self.reverse_stack = [] def dequeue(self): if not self.reverse_stack: while self.forward_stack: self.reverse_stack.append(self.forward_stack.pop()) return self.reverse_stack.pop() def enqueue(self, element): self.forward_stack.append(element) def front(self): front = self.dequeue() # adding back to reverse as we only need to seek the front element self.reverse_stack.append(front) return front def main(): queue = TwoStackQueue() n = int(input()) for i in range(n): query_input = input().split() query_type = int(query_input[0]) if query_type == 1: queue.enqueue(int(query_input[1])) elif query_type == 2: queue.dequeue() elif query_type == 3: print(queue.front()) else: raise Exception("invalid input") main()
class Twostackqueue: def __init__(self): self.forward_stack = [] self.reverse_stack = [] def dequeue(self): if not self.reverse_stack: while self.forward_stack: self.reverse_stack.append(self.forward_stack.pop()) return self.reverse_stack.pop() def enqueue(self, element): self.forward_stack.append(element) def front(self): front = self.dequeue() self.reverse_stack.append(front) return front def main(): queue = two_stack_queue() n = int(input()) for i in range(n): query_input = input().split() query_type = int(query_input[0]) if query_type == 1: queue.enqueue(int(query_input[1])) elif query_type == 2: queue.dequeue() elif query_type == 3: print(queue.front()) else: raise exception('invalid input') main()
############################################################################## # # Copyright (c) 2005 Zope Foundation and Contributors. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS # FOR A PARTICULAR PURPOSE. # ############################################################################## """ZODB connection registry """ class ConnectionRegistry: '''ZODB connection registry This registry can hold either ZODB.Connection objects or OFS.Application objects. In the latter case, a close operation will close the REQUEST as well as the Connection referenced by the Application's _p_jar attribute. ''' def __init__(self): self._conns = [] def register(self, conn): self._conns.append(conn) def contains(self, conn): return conn in self._conns def __len__(self): return len(self._conns) def count(self): return len(self) def close(self, conn): if self.contains(conn): self._conns.remove(conn) self._do_close(conn) def closeAll(self): for conn in self._conns: self._do_close(conn) self._conns = [] def _do_close(self, conn): if hasattr(conn, 'close'): conn.close() else: conn.REQUEST.close() conn._p_jar.close() registry = ConnectionRegistry() register = registry.register contains = registry.contains count = registry.count close = registry.close closeAll = registry.closeAll
"""ZODB connection registry """ class Connectionregistry: """ZODB connection registry This registry can hold either ZODB.Connection objects or OFS.Application objects. In the latter case, a close operation will close the REQUEST as well as the Connection referenced by the Application's _p_jar attribute. """ def __init__(self): self._conns = [] def register(self, conn): self._conns.append(conn) def contains(self, conn): return conn in self._conns def __len__(self): return len(self._conns) def count(self): return len(self) def close(self, conn): if self.contains(conn): self._conns.remove(conn) self._do_close(conn) def close_all(self): for conn in self._conns: self._do_close(conn) self._conns = [] def _do_close(self, conn): if hasattr(conn, 'close'): conn.close() else: conn.REQUEST.close() conn._p_jar.close() registry = connection_registry() register = registry.register contains = registry.contains count = registry.count close = registry.close close_all = registry.closeAll
N, K = map(int, input().split()) result = 0 while N != 0: result += 1 N //= K print(result)
(n, k) = map(int, input().split()) result = 0 while N != 0: result += 1 n //= K print(result)
EXPECTED_SECRETS = [ "EQ_SERVER_SIDE_STORAGE_USER_ID_SALT", "EQ_SERVER_SIDE_STORAGE_USER_IK_SALT", "EQ_SERVER_SIDE_STORAGE_ENCRYPTION_USER_PEPPER", "EQ_SECRET_KEY", "EQ_RABBITMQ_USERNAME", "EQ_RABBITMQ_PASSWORD", ] def validate_required_secrets(secrets): for required_secret in EXPECTED_SECRETS: if required_secret not in secrets["secrets"]: raise Exception("Missing Secret [{}]".format(required_secret)) class SecretStore: def __init__(self, secrets): self.secrets = secrets.get("secrets", {}) def get_secret_by_name(self, secret_name): return self.secrets.get(secret_name)
expected_secrets = ['EQ_SERVER_SIDE_STORAGE_USER_ID_SALT', 'EQ_SERVER_SIDE_STORAGE_USER_IK_SALT', 'EQ_SERVER_SIDE_STORAGE_ENCRYPTION_USER_PEPPER', 'EQ_SECRET_KEY', 'EQ_RABBITMQ_USERNAME', 'EQ_RABBITMQ_PASSWORD'] def validate_required_secrets(secrets): for required_secret in EXPECTED_SECRETS: if required_secret not in secrets['secrets']: raise exception('Missing Secret [{}]'.format(required_secret)) class Secretstore: def __init__(self, secrets): self.secrets = secrets.get('secrets', {}) def get_secret_by_name(self, secret_name): return self.secrets.get(secret_name)
"""Top-level package for NEMO CF.""" __author__ = """Willi Rath""" __email__ = 'wrath@geomar.de' __version__ = '0.1.0'
"""Top-level package for NEMO CF.""" __author__ = 'Willi Rath' __email__ = 'wrath@geomar.de' __version__ = '0.1.0'
{ "targets": [{ "target_name": "fuse", "include_dirs": [ "<!(node -e \"require('napi-macros')\")", "<!(node -e \"require('fuse-shared-library/include')\")", ], "libraries": [ "<!(node -e \"require('fuse-shared-library/lib')\")", ], "sources": [ "fuse-native.c" ], 'xcode_settings': { 'OTHER_CFLAGS': [ '-g', '-O3', '-Wall' ] }, 'cflags': [ '-g', '-O3', '-Wall' ], }, { "target_name": "postinstall", "type": "none", "dependencies": ["fuse"], "copies": [{ "destination": "build/Release", "files": [ "<!(node -e \"require('fuse-shared-library/lib')\")" ], }] }] }
{'targets': [{'target_name': 'fuse', 'include_dirs': ['<!(node -e "require(\'napi-macros\')")', '<!(node -e "require(\'fuse-shared-library/include\')")'], 'libraries': ['<!(node -e "require(\'fuse-shared-library/lib\')")'], 'sources': ['fuse-native.c'], 'xcode_settings': {'OTHER_CFLAGS': ['-g', '-O3', '-Wall']}, 'cflags': ['-g', '-O3', '-Wall']}, {'target_name': 'postinstall', 'type': 'none', 'dependencies': ['fuse'], 'copies': [{'destination': 'build/Release', 'files': ['<!(node -e "require(\'fuse-shared-library/lib\')")']}]}]}
def split_list(list, n): target_list = [] cut = int(len(list) / n) if cut == 0: list = [[x] for x in list] none_array = [[] for i in range(0, n - len(list))] return list + none_array for i in range(0, n - 1): target_list.append(list[cut * i:cut * (1 + i)]) target_list.append(list[cut * (n - 1):len(list)]) return target_list if __name__ == '__main__': list = [x for x in range(1040)] result = split_list(list, 50) print(result)
def split_list(list, n): target_list = [] cut = int(len(list) / n) if cut == 0: list = [[x] for x in list] none_array = [[] for i in range(0, n - len(list))] return list + none_array for i in range(0, n - 1): target_list.append(list[cut * i:cut * (1 + i)]) target_list.append(list[cut * (n - 1):len(list)]) return target_list if __name__ == '__main__': list = [x for x in range(1040)] result = split_list(list, 50) print(result)
# # This file contains the Python code from Program 15.18 of # "Data Structures and Algorithms # with Object-Oriented Design Patterns in Python" # by Bruno R. Preiss. # # Copyright (c) 2003 by Bruno R. Preiss, P.Eng. All rights reserved. # # http://www.brpreiss.com/books/opus7/programs/pgm15_18.txt # class RadixSorter(Sorter): r = 8 R = 1 << r p = (32 + r - 1) / r def __init__(self): self._count = Array(self.R) self._tempArray = None # ...
class Radixsorter(Sorter): r = 8 r = 1 << r p = (32 + r - 1) / r def __init__(self): self._count = array(self.R) self._tempArray = None
extensions = dict( required_params=[], # empty to override defaults in gen_defaults validate_required_params=""" # Required args: either model_key or path if (is.null(model_key) && is.null(path)) stop("argument 'model_key' or 'path' must be provided") """, set_required_params="", ) doc = dict( preamble=""" Imports a generic model into H2O. Such model can be used then used for scoring and obtaining additional information about the model. The imported model has to be supported by H2O. """, examples=""" # library(h2o) # h2o.init() # generic_model <- h2o.genericModel(path="/path/to/model.zip", model_id="my_model") # predictions <- h2o.predict(generic_model, dataset) """ )
extensions = dict(required_params=[], validate_required_params='\n# Required args: either model_key or path\nif (is.null(model_key) && is.null(path)) stop("argument \'model_key\' or \'path\' must be provided")\n', set_required_params='') doc = dict(preamble='\nImports a generic model into H2O. Such model can be used then used for scoring and obtaining\nadditional information about the model. The imported model has to be supported by H2O.\n', examples='\n# library(h2o)\n# h2o.init()\n\n# generic_model <- h2o.genericModel(path="/path/to/model.zip", model_id="my_model")\n# predictions <- h2o.predict(generic_model, dataset)\n')
somthing = 'F5fjDxitafeZwPdwsmBL-Q' key_api = 'MiT75-jn5D_6MENzkehT5EReeVdYhp_86hQKYQp-3o10wIVXAbOakIT6khg8Y-_PBiy2fKPuAQFp9x7W80Ubn3xdiS8eCfy-nc7qtLNvs6oyAzdU2CsCRHEniyJUYHYx'
somthing = 'F5fjDxitafeZwPdwsmBL-Q' key_api = 'MiT75-jn5D_6MENzkehT5EReeVdYhp_86hQKYQp-3o10wIVXAbOakIT6khg8Y-_PBiy2fKPuAQFp9x7W80Ubn3xdiS8eCfy-nc7qtLNvs6oyAzdU2CsCRHEniyJUYHYx'
class ListView(Control,IComponent,IDisposable,IOleControl,IOleObject,IOleInPlaceObject,IOleInPlaceActiveObject,IOleWindow,IViewObject,IViewObject2,IPersist,IPersistStreamInit,IPersistPropertyBag,IPersistStorage,IQuickActivate,ISupportOleDropSource,IDropTarget,ISynchronizeInvoke,IWin32Window,IArrangedElement,IBindableComponent): """ Represents a Windows list view control,which displays a collection of items that can be displayed using one of four different views. ListView() """ def AccessibilityNotifyClients(self,*args): """ AccessibilityNotifyClients(self: Control,accEvent: AccessibleEvents,objectID: int,childID: int) Notifies the accessibility client applications of the specified System.Windows.Forms.AccessibleEvents for the specified child control . accEvent: The System.Windows.Forms.AccessibleEvents to notify the accessibility client applications of. objectID: The identifier of the System.Windows.Forms.AccessibleObject. childID: The child System.Windows.Forms.Control to notify of the accessible event. AccessibilityNotifyClients(self: Control,accEvent: AccessibleEvents,childID: int) Notifies the accessibility client applications of the specified System.Windows.Forms.AccessibleEvents for the specified child control. accEvent: The System.Windows.Forms.AccessibleEvents to notify the accessibility client applications of. childID: The child System.Windows.Forms.Control to notify of the accessible event. """ pass def ArrangeIcons(self,value=None): """ ArrangeIcons(self: ListView) Arranges items in the control when they are displayed as icons based on the value of the System.Windows.Forms.ListView.Alignment property. ArrangeIcons(self: ListView,value: ListViewAlignment) Arranges items in the control when they are displayed as icons with a specified alignment setting. value: One of the System.Windows.Forms.ListViewAlignment values. """ pass def AutoResizeColumn(self,columnIndex,headerAutoResize): """ AutoResizeColumn(self: ListView,columnIndex: int,headerAutoResize: ColumnHeaderAutoResizeStyle) Resizes the width of the given column as indicated by the resize style. columnIndex: The zero-based index of the column to resize. headerAutoResize: One of the System.Windows.Forms.ColumnHeaderAutoResizeStyle values. """ pass def AutoResizeColumns(self,headerAutoResize): """ AutoResizeColumns(self: ListView,headerAutoResize: ColumnHeaderAutoResizeStyle) Resizes the width of the columns as indicated by the resize style. headerAutoResize: One of the System.Windows.Forms.ColumnHeaderAutoResizeStyle values. """ pass def BeginUpdate(self): """ BeginUpdate(self: ListView) Prevents the control from drawing until the System.Windows.Forms.ListView.EndUpdate method is called. """ pass def Clear(self): """ Clear(self: ListView) Removes all items and columns from the control. """ pass def CreateAccessibilityInstance(self,*args): """ CreateAccessibilityInstance(self: Control) -> AccessibleObject Creates a new accessibility object for the control. Returns: A new System.Windows.Forms.AccessibleObject for the control. """ pass def CreateControlsInstance(self,*args): """ CreateControlsInstance(self: Control) -> ControlCollection Creates a new instance of the control collection for the control. Returns: A new instance of System.Windows.Forms.Control.ControlCollection assigned to the control. """ pass def CreateHandle(self,*args): """ CreateHandle(self: ListView) """ pass def DefWndProc(self,*args): """ DefWndProc(self: Control,m: Message) -> Message Sends the specified message to the default window procedure. m: The Windows System.Windows.Forms.Message to process. """ pass def DestroyHandle(self,*args): """ DestroyHandle(self: Control) Destroys the handle associated with the control. """ pass def Dispose(self): """ Dispose(self: ListView,disposing: bool) Releases the unmanaged resources used by the System.Windows.Forms.ListView and optionally releases the managed resources. disposing: true to release both managed and unmanaged resources; false to release only unmanaged resources. """ pass def EndUpdate(self): """ EndUpdate(self: ListView) Resumes drawing of the list view control after drawing is suspended by the System.Windows.Forms.ListView.BeginUpdate method. """ pass def EnsureVisible(self,index): """ EnsureVisible(self: ListView,index: int) Ensures that the specified item is visible within the control,scrolling the contents of the control if necessary. index: The zero-based index of the item to scroll into view. """ pass def FindItemWithText(self,text,includeSubItemsInSearch=None,startIndex=None,isPrefixSearch=None): """ FindItemWithText(self: ListView,text: str,includeSubItemsInSearch: bool,startIndex: int,isPrefixSearch: bool) -> ListViewItem Finds the first System.Windows.Forms.ListViewItem or System.Windows.Forms.ListViewItem.ListViewSubItem,if indicated,that begins with the specified text value. The search starts at the specified index. text: The text to search for. includeSubItemsInSearch: true to include subitems in the search; otherwise,false. startIndex: The index of the item at which to start the search. isPrefixSearch: true to allow partial matches; otherwise,false. Returns: The first System.Windows.Forms.ListViewItem that begins with the specified text value. FindItemWithText(self: ListView,text: str,includeSubItemsInSearch: bool,startIndex: int) -> ListViewItem Finds the first System.Windows.Forms.ListViewItem or System.Windows.Forms.ListViewItem.ListViewSubItem,if indicated,that begins with the specified text value. The search starts at the specified index. text: The text to search for. includeSubItemsInSearch: true to include subitems in the search; otherwise,false. startIndex: The index of the item at which to start the search. Returns: The first System.Windows.Forms.ListViewItem that begins with the specified text value. FindItemWithText(self: ListView,text: str) -> ListViewItem Finds the first System.Windows.Forms.ListViewItem that begins with the specified text value. text: The text to search for. Returns: The first System.Windows.Forms.ListViewItem that begins with the specified text value. """ pass def FindNearestItem(self,*__args): """ FindNearestItem(self: ListView,searchDirection: SearchDirectionHint,x: int,y: int) -> ListViewItem Finds the next item from the given x- and y-coordinates,searching in the specified direction. searchDirection: One of the System.Windows.Forms.SearchDirectionHint values. x: The x-coordinate for the point at which to begin searching. y: The y-coordinate for the point at which to begin searching. Returns: The System.Windows.Forms.ListViewItem that is closest to the given coordinates,searching in the specified direction. FindNearestItem(self: ListView,dir: SearchDirectionHint,point: Point) -> ListViewItem Finds the next item from the given point,searching in the specified direction dir: One of the System.Windows.Forms.SearchDirectionHint values. point: The point at which to begin searching. Returns: The System.Windows.Forms.ListViewItem that is closest to the given point,searching in the specified direction. """ pass def GetAccessibilityObjectById(self,*args): """ GetAccessibilityObjectById(self: Control,objectId: int) -> AccessibleObject Retrieves the specified System.Windows.Forms.AccessibleObject. objectId: An Int32 that identifies the System.Windows.Forms.AccessibleObject to retrieve. Returns: An System.Windows.Forms.AccessibleObject. """ pass def GetAutoSizeMode(self,*args): """ GetAutoSizeMode(self: Control) -> AutoSizeMode Retrieves a value indicating how a control will behave when its System.Windows.Forms.Control.AutoSize property is enabled. Returns: One of the System.Windows.Forms.AutoSizeMode values. """ pass def GetItemAt(self,x,y): """ GetItemAt(self: ListView,x: int,y: int) -> ListViewItem Retrieves the item at the specified location. x: The x-coordinate of the location to search for an item (expressed in client coordinates). y: The y-coordinate of the location to search for an item (expressed in client coordinates). Returns: A System.Windows.Forms.ListViewItem that represents the item at the specified position. If there is no item at the specified location,the method returns null. """ pass def GetItemRect(self,index,portion=None): """ GetItemRect(self: ListView,index: int,portion: ItemBoundsPortion) -> Rectangle Retrieves the specified portion of the bounding rectangle for a specific item within the list view control. index: The zero-based index of the item within the System.Windows.Forms.ListView.ListViewItemCollection whose bounding rectangle you want to return. portion: One of the System.Windows.Forms.ItemBoundsPortion values that represents a portion of the System.Windows.Forms.ListViewItem for which to retrieve the bounding rectangle. Returns: A System.Drawing.Rectangle that represents the bounding rectangle for the specified portion of the specified System.Windows.Forms.ListViewItem. GetItemRect(self: ListView,index: int) -> Rectangle Retrieves the bounding rectangle for a specific item within the list view control. index: The zero-based index of the item within the System.Windows.Forms.ListView.ListViewItemCollection whose bounding rectangle you want to return. Returns: A System.Drawing.Rectangle that represents the bounding rectangle of the specified System.Windows.Forms.ListViewItem. """ pass def GetScaledBounds(self,*args): """ GetScaledBounds(self: Control,bounds: Rectangle,factor: SizeF,specified: BoundsSpecified) -> Rectangle Retrieves the bounds within which the control is scaled. bounds: A System.Drawing.Rectangle that specifies the area for which to retrieve the display bounds. factor: The height and width of the control's bounds. specified: One of the values of System.Windows.Forms.BoundsSpecified that specifies the bounds of the control to use when defining its size and position. Returns: A System.Drawing.Rectangle representing the bounds within which the control is scaled. """ pass def GetService(self,*args): """ GetService(self: Component,service: Type) -> object Returns an object that represents a service provided by the System.ComponentModel.Component or by its System.ComponentModel.Container. service: A service provided by the System.ComponentModel.Component. Returns: An System.Object that represents a service provided by the System.ComponentModel.Component,or null if the System.ComponentModel.Component does not provide the specified service. """ pass def GetStyle(self,*args): """ GetStyle(self: Control,flag: ControlStyles) -> bool Retrieves the value of the specified control style bit for the control. flag: The System.Windows.Forms.ControlStyles bit to return the value from. Returns: true if the specified control style bit is set to true; otherwise,false. """ pass def GetTopLevel(self,*args): """ GetTopLevel(self: Control) -> bool Determines if the control is a top-level control. Returns: true if the control is a top-level control; otherwise,false. """ pass def HitTest(self,*__args): """ HitTest(self: ListView,x: int,y: int) -> ListViewHitTestInfo Provides item information,given x- and y-coordinates. x: The x-coordinate at which to retrieve the item information. The coordinate is relative to the upper-left corner of the control. y: The y-coordinate at which to retrieve the item information. The coordinate is relative to the upper-left corner of the control. Returns: A System.Windows.Forms.ListViewHitTestInfo. HitTest(self: ListView,point: Point) -> ListViewHitTestInfo Provides item information,given a point. point: The System.Drawing.Point at which to retrieve the item information. The coordinates are relative to the upper-left corner of the control. Returns: A System.Windows.Forms.ListViewHitTestInfo. """ pass def InitLayout(self,*args): """ InitLayout(self: Control) Called after the control has been added to another container. """ pass def InvokeGotFocus(self,*args): """ InvokeGotFocus(self: Control,toInvoke: Control,e: EventArgs) Raises the System.Windows.Forms.Control.GotFocus event for the specified control. toInvoke: The System.Windows.Forms.Control to assign the event to. e: An System.EventArgs that contains the event data. """ pass def InvokeLostFocus(self,*args): """ InvokeLostFocus(self: Control,toInvoke: Control,e: EventArgs) Raises the System.Windows.Forms.Control.LostFocus event for the specified control. toInvoke: The System.Windows.Forms.Control to assign the event to. e: An System.EventArgs that contains the event data. """ pass def InvokeOnClick(self,*args): """ InvokeOnClick(self: Control,toInvoke: Control,e: EventArgs) Raises the System.Windows.Forms.Control.Click event for the specified control. toInvoke: The System.Windows.Forms.Control to assign the System.Windows.Forms.Control.Click event to. e: An System.EventArgs that contains the event data. """ pass def InvokePaint(self,*args): """ InvokePaint(self: Control,c: Control,e: PaintEventArgs) Raises the System.Windows.Forms.Control.Paint event for the specified control. c: The System.Windows.Forms.Control to assign the System.Windows.Forms.Control.Paint event to. e: An System.Windows.Forms.PaintEventArgs that contains the event data. """ pass def InvokePaintBackground(self,*args): """ InvokePaintBackground(self: Control,c: Control,e: PaintEventArgs) Raises the PaintBackground event for the specified control. c: The System.Windows.Forms.Control to assign the System.Windows.Forms.Control.Paint event to. e: An System.Windows.Forms.PaintEventArgs that contains the event data. """ pass def IsInputChar(self,*args): """ IsInputChar(self: Control,charCode: Char) -> bool Determines if a character is an input character that the control recognizes. charCode: The character to test. Returns: true if the character should be sent directly to the control and not preprocessed; otherwise, false. """ pass def IsInputKey(self,*args): """ IsInputKey(self: ListView,keyData: Keys) -> bool keyData: One of the System.Windows.Forms.Keys values. Returns: true if the specified key is a regular input key; otherwise,false. """ pass def MemberwiseClone(self,*args): """ MemberwiseClone(self: MarshalByRefObject,cloneIdentity: bool) -> MarshalByRefObject Creates a shallow copy of the current System.MarshalByRefObject object. cloneIdentity: false to delete the current System.MarshalByRefObject object's identity,which will cause the object to be assigned a new identity when it is marshaled across a remoting boundary. A value of false is usually appropriate. true to copy the current System.MarshalByRefObject object's identity to its clone,which will cause remoting client calls to be routed to the remote server object. Returns: A shallow copy of the current System.MarshalByRefObject object. MemberwiseClone(self: object) -> object Creates a shallow copy of the current System.Object. Returns: A shallow copy of the current System.Object. """ pass def NotifyInvalidate(self,*args): """ NotifyInvalidate(self: Control,invalidatedArea: Rectangle) Raises the System.Windows.Forms.Control.Invalidated event with a specified region of the control to invalidate. invalidatedArea: A System.Drawing.Rectangle representing the area to invalidate. """ pass def OnAfterLabelEdit(self,*args): """ OnAfterLabelEdit(self: ListView,e: LabelEditEventArgs) Raises the System.Windows.Forms.ListView.AfterLabelEdit event. e: A System.Windows.Forms.LabelEditEventArgs that contains the event data. """ pass def OnAutoSizeChanged(self,*args): """ OnAutoSizeChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.AutoSizeChanged event. e: An System.EventArgs that contains the event data. """ pass def OnBackColorChanged(self,*args): """ OnBackColorChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.BackColorChanged event. e: An System.EventArgs that contains the event data. """ pass def OnBackgroundImageChanged(self,*args): """ OnBackgroundImageChanged(self: ListView,e: EventArgs) Raises the System.Windows.Forms.Control.BackgroundImageChanged event. e: An System.EventArgs that contains the event data. """ pass def OnBackgroundImageLayoutChanged(self,*args): """ OnBackgroundImageLayoutChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.BackgroundImageLayoutChanged event. e: An System.EventArgs that contains the event data. """ pass def OnBeforeLabelEdit(self,*args): """ OnBeforeLabelEdit(self: ListView,e: LabelEditEventArgs) Raises the System.Windows.Forms.ListView.BeforeLabelEdit event. e: A System.Windows.Forms.LabelEditEventArgs that contains the event data. """ pass def OnBindingContextChanged(self,*args): """ OnBindingContextChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.BindingContextChanged event. e: An System.EventArgs that contains the event data. """ pass def OnCacheVirtualItems(self,*args): """ OnCacheVirtualItems(self: ListView,e: CacheVirtualItemsEventArgs) Raises the System.Windows.Forms.ListView.CacheVirtualItems event. e: A System.Windows.Forms.CacheVirtualItemsEventArgs that contains the event data. """ pass def OnCausesValidationChanged(self,*args): """ OnCausesValidationChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.CausesValidationChanged event. e: An System.EventArgs that contains the event data. """ pass def OnChangeUICues(self,*args): """ OnChangeUICues(self: Control,e: UICuesEventArgs) Raises the System.Windows.Forms.Control.ChangeUICues event. e: A System.Windows.Forms.UICuesEventArgs that contains the event data. """ pass def OnClick(self,*args): """ OnClick(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.Click event. e: An System.EventArgs that contains the event data. """ pass def OnClientSizeChanged(self,*args): """ OnClientSizeChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.ClientSizeChanged event. e: An System.EventArgs that contains the event data. """ pass def OnColumnClick(self,*args): """ OnColumnClick(self: ListView,e: ColumnClickEventArgs) Raises the System.Windows.Forms.ListView.ColumnClick event. e: A System.Windows.Forms.ColumnClickEventArgs that contains the event data. """ pass def OnColumnReordered(self,*args): """ OnColumnReordered(self: ListView,e: ColumnReorderedEventArgs) Raises the System.Windows.Forms.ListView.ColumnReordered event. e: The System.Windows.Forms.ColumnReorderedEventArgs that contains the event data. """ pass def OnColumnWidthChanged(self,*args): """ OnColumnWidthChanged(self: ListView,e: ColumnWidthChangedEventArgs) Raises the System.Windows.Forms.ListView.ColumnWidthChanged event. e: A System.Windows.Forms.ColumnWidthChangedEventArgs that contains the event data. """ pass def OnColumnWidthChanging(self,*args): """ OnColumnWidthChanging(self: ListView,e: ColumnWidthChangingEventArgs) Raises the System.Windows.Forms.ListView.ColumnWidthChanging event. e: A System.Windows.Forms.ColumnWidthChangingEventArgs that contains the event data. """ pass def OnContextMenuChanged(self,*args): """ OnContextMenuChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.ContextMenuChanged event. e: An System.EventArgs that contains the event data. """ pass def OnContextMenuStripChanged(self,*args): """ OnContextMenuStripChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.ContextMenuStripChanged event. e: An System.EventArgs that contains the event data. """ pass def OnControlAdded(self,*args): """ OnControlAdded(self: Control,e: ControlEventArgs) Raises the System.Windows.Forms.Control.ControlAdded event. e: A System.Windows.Forms.ControlEventArgs that contains the event data. """ pass def OnControlRemoved(self,*args): """ OnControlRemoved(self: Control,e: ControlEventArgs) Raises the System.Windows.Forms.Control.ControlRemoved event. e: A System.Windows.Forms.ControlEventArgs that contains the event data. """ pass def OnCreateControl(self,*args): """ OnCreateControl(self: Control) Raises the System.Windows.Forms.Control.CreateControl method. """ pass def OnCursorChanged(self,*args): """ OnCursorChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.CursorChanged event. e: An System.EventArgs that contains the event data. """ pass def OnDockChanged(self,*args): """ OnDockChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.DockChanged event. e: An System.EventArgs that contains the event data. """ pass def OnDoubleClick(self,*args): """ OnDoubleClick(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.DoubleClick event. e: An System.EventArgs that contains the event data. """ pass def OnDpiChangedAfterParent(self,*args): """ OnDpiChangedAfterParent(self: Control,e: EventArgs) """ pass def OnDpiChangedBeforeParent(self,*args): """ OnDpiChangedBeforeParent(self: Control,e: EventArgs) """ pass def OnDragDrop(self,*args): """ OnDragDrop(self: Control,drgevent: DragEventArgs) Raises the System.Windows.Forms.Control.DragDrop event. drgevent: A System.Windows.Forms.DragEventArgs that contains the event data. """ pass def OnDragEnter(self,*args): """ OnDragEnter(self: Control,drgevent: DragEventArgs) Raises the System.Windows.Forms.Control.DragEnter event. drgevent: A System.Windows.Forms.DragEventArgs that contains the event data. """ pass def OnDragLeave(self,*args): """ OnDragLeave(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.DragLeave event. e: An System.EventArgs that contains the event data. """ pass def OnDragOver(self,*args): """ OnDragOver(self: Control,drgevent: DragEventArgs) Raises the System.Windows.Forms.Control.DragOver event. drgevent: A System.Windows.Forms.DragEventArgs that contains the event data. """ pass def OnDrawColumnHeader(self,*args): """ OnDrawColumnHeader(self: ListView,e: DrawListViewColumnHeaderEventArgs) Raises the System.Windows.Forms.ListView.DrawColumnHeader event. e: A System.Windows.Forms.DrawListViewColumnHeaderEventArgs that contains the event data. """ pass def OnDrawItem(self,*args): """ OnDrawItem(self: ListView,e: DrawListViewItemEventArgs) Raises the System.Windows.Forms.ListView.DrawItem event. e: A System.Windows.Forms.DrawListViewItemEventArgs that contains the event data. """ pass def OnDrawSubItem(self,*args): """ OnDrawSubItem(self: ListView,e: DrawListViewSubItemEventArgs) Raises the System.Windows.Forms.ListView.DrawSubItem event. e: A System.Windows.Forms.DrawListViewSubItemEventArgs that contains the event data. """ pass def OnEnabledChanged(self,*args): """ OnEnabledChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.EnabledChanged event. e: An System.EventArgs that contains the event data. """ pass def OnEnter(self,*args): """ OnEnter(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.Enter event. e: An System.EventArgs that contains the event data. """ pass def OnFontChanged(self,*args): """ OnFontChanged(self: ListView,e: EventArgs) Raises the FontChanged event. e: The System.EventArgs that contains the event data. """ pass def OnForeColorChanged(self,*args): """ OnForeColorChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.ForeColorChanged event. e: An System.EventArgs that contains the event data. """ pass def OnGiveFeedback(self,*args): """ OnGiveFeedback(self: Control,gfbevent: GiveFeedbackEventArgs) Raises the System.Windows.Forms.Control.GiveFeedback event. gfbevent: A System.Windows.Forms.GiveFeedbackEventArgs that contains the event data. """ pass def OnGotFocus(self,*args): """ OnGotFocus(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.GotFocus event. e: An System.EventArgs that contains the event data. """ pass def OnHandleCreated(self,*args): """ OnHandleCreated(self: ListView,e: EventArgs) e: An System.EventArgs that contains the event data. """ pass def OnHandleDestroyed(self,*args): """ OnHandleDestroyed(self: ListView,e: EventArgs) e: An System.EventArgs that contains the event data. """ pass def OnHelpRequested(self,*args): """ OnHelpRequested(self: Control,hevent: HelpEventArgs) Raises the System.Windows.Forms.Control.HelpRequested event. hevent: A System.Windows.Forms.HelpEventArgs that contains the event data. """ pass def OnImeModeChanged(self,*args): """ OnImeModeChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.ImeModeChanged event. e: An System.EventArgs that contains the event data. """ pass def OnInvalidated(self,*args): """ OnInvalidated(self: Control,e: InvalidateEventArgs) Raises the System.Windows.Forms.Control.Invalidated event. e: An System.Windows.Forms.InvalidateEventArgs that contains the event data. """ pass def OnItemActivate(self,*args): """ OnItemActivate(self: ListView,e: EventArgs) Raises the System.Windows.Forms.ListView.ItemActivate event. e: An System.EventArgs that contains the event data. """ pass def OnItemCheck(self,*args): """ OnItemCheck(self: ListView,ice: ItemCheckEventArgs) Raises the System.Windows.Forms.ListView.ItemCheck event. ice: An System.Windows.Forms.ItemCheckEventArgs that contains the event data. """ pass def OnItemChecked(self,*args): """ OnItemChecked(self: ListView,e: ItemCheckedEventArgs) Raises the System.Windows.Forms.ListView.ItemChecked event. e: An System.Windows.Forms.ItemCheckedEventArgs that contains the event data. """ pass def OnItemDrag(self,*args): """ OnItemDrag(self: ListView,e: ItemDragEventArgs) Raises the System.Windows.Forms.ListView.ItemDrag event. e: An System.Windows.Forms.ItemDragEventArgs that contains the event data. """ pass def OnItemMouseHover(self,*args): """ OnItemMouseHover(self: ListView,e: ListViewItemMouseHoverEventArgs) Raises the System.Windows.Forms.ListView.ItemMouseHover event. e: A System.Windows.Forms.ListViewItemMouseHoverEventArgs that contains the event data. """ pass def OnItemSelectionChanged(self,*args): """ OnItemSelectionChanged(self: ListView,e: ListViewItemSelectionChangedEventArgs) Raises the System.Windows.Forms.ListView.ItemSelectionChanged event. e: A System.Windows.Forms.ListViewItemSelectionChangedEventArgs that contains the event data. """ pass def OnKeyDown(self,*args): """ OnKeyDown(self: Control,e: KeyEventArgs) Raises the System.Windows.Forms.Control.KeyDown event. e: A System.Windows.Forms.KeyEventArgs that contains the event data. """ pass def OnKeyPress(self,*args): """ OnKeyPress(self: Control,e: KeyPressEventArgs) Raises the System.Windows.Forms.Control.KeyPress event. e: A System.Windows.Forms.KeyPressEventArgs that contains the event data. """ pass def OnKeyUp(self,*args): """ OnKeyUp(self: Control,e: KeyEventArgs) Raises the System.Windows.Forms.Control.KeyUp event. e: A System.Windows.Forms.KeyEventArgs that contains the event data. """ pass def OnLayout(self,*args): """ OnLayout(self: Control,levent: LayoutEventArgs) Raises the System.Windows.Forms.Control.Layout event. levent: A System.Windows.Forms.LayoutEventArgs that contains the event data. """ pass def OnLeave(self,*args): """ OnLeave(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.Leave event. e: An System.EventArgs that contains the event data. """ pass def OnLocationChanged(self,*args): """ OnLocationChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.LocationChanged event. e: An System.EventArgs that contains the event data. """ pass def OnLostFocus(self,*args): """ OnLostFocus(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.LostFocus event. e: An System.EventArgs that contains the event data. """ pass def OnMarginChanged(self,*args): """ OnMarginChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.MarginChanged event. e: A System.EventArgs that contains the event data. """ pass def OnMouseCaptureChanged(self,*args): """ OnMouseCaptureChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.MouseCaptureChanged event. e: An System.EventArgs that contains the event data. """ pass def OnMouseClick(self,*args): """ OnMouseClick(self: Control,e: MouseEventArgs) Raises the System.Windows.Forms.Control.MouseClick event. e: An System.Windows.Forms.MouseEventArgs that contains the event data. """ pass def OnMouseDoubleClick(self,*args): """ OnMouseDoubleClick(self: Control,e: MouseEventArgs) Raises the System.Windows.Forms.Control.MouseDoubleClick event. e: An System.Windows.Forms.MouseEventArgs that contains the event data. """ pass def OnMouseDown(self,*args): """ OnMouseDown(self: Control,e: MouseEventArgs) Raises the System.Windows.Forms.Control.MouseDown event. e: A System.Windows.Forms.MouseEventArgs that contains the event data. """ pass def OnMouseEnter(self,*args): """ OnMouseEnter(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.MouseEnter event. e: An System.EventArgs that contains the event data. """ pass def OnMouseHover(self,*args): """ OnMouseHover(self: ListView,e: EventArgs) Raises the System.Windows.Forms.Control.MouseHover event. e: An System.EventArgs that contains the event data. """ pass def OnMouseLeave(self,*args): """ OnMouseLeave(self: ListView,e: EventArgs) e: An System.EventArgs that contains the event data. """ pass def OnMouseMove(self,*args): """ OnMouseMove(self: Control,e: MouseEventArgs) Raises the System.Windows.Forms.Control.MouseMove event. e: A System.Windows.Forms.MouseEventArgs that contains the event data. """ pass def OnMouseUp(self,*args): """ OnMouseUp(self: Control,e: MouseEventArgs) Raises the System.Windows.Forms.Control.MouseUp event. e: A System.Windows.Forms.MouseEventArgs that contains the event data. """ pass def OnMouseWheel(self,*args): """ OnMouseWheel(self: Control,e: MouseEventArgs) Raises the System.Windows.Forms.Control.MouseWheel event. e: A System.Windows.Forms.MouseEventArgs that contains the event data. """ pass def OnMove(self,*args): """ OnMove(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.Move event. e: An System.EventArgs that contains the event data. """ pass def OnNotifyMessage(self,*args): """ OnNotifyMessage(self: Control,m: Message) Notifies the control of Windows messages. m: A System.Windows.Forms.Message that represents the Windows message. """ pass def OnPaddingChanged(self,*args): """ OnPaddingChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.PaddingChanged event. e: A System.EventArgs that contains the event data. """ pass def OnPaint(self,*args): """ OnPaint(self: Control,e: PaintEventArgs) Raises the System.Windows.Forms.Control.Paint event. e: A System.Windows.Forms.PaintEventArgs that contains the event data. """ pass def OnPaintBackground(self,*args): """ OnPaintBackground(self: Control,pevent: PaintEventArgs) Paints the background of the control. pevent: A System.Windows.Forms.PaintEventArgs that contains information about the control to paint. """ pass def OnParentBackColorChanged(self,*args): """ OnParentBackColorChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.BackColorChanged event when the System.Windows.Forms.Control.BackColor property value of the control's container changes. e: An System.EventArgs that contains the event data. """ pass def OnParentBackgroundImageChanged(self,*args): """ OnParentBackgroundImageChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.BackgroundImageChanged event when the System.Windows.Forms.Control.BackgroundImage property value of the control's container changes. e: An System.EventArgs that contains the event data. """ pass def OnParentBindingContextChanged(self,*args): """ OnParentBindingContextChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.BindingContextChanged event when the System.Windows.Forms.Control.BindingContext property value of the control's container changes. e: An System.EventArgs that contains the event data. """ pass def OnParentChanged(self,*args): """ OnParentChanged(self: ListView,e: EventArgs) e: An System.EventArgs that contains the event data. """ pass def OnParentCursorChanged(self,*args): """ OnParentCursorChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.CursorChanged event. e: An System.EventArgs that contains the event data. """ pass def OnParentEnabledChanged(self,*args): """ OnParentEnabledChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.EnabledChanged event when the System.Windows.Forms.Control.Enabled property value of the control's container changes. e: An System.EventArgs that contains the event data. """ pass def OnParentFontChanged(self,*args): """ OnParentFontChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.FontChanged event when the System.Windows.Forms.Control.Font property value of the control's container changes. e: An System.EventArgs that contains the event data. """ pass def OnParentForeColorChanged(self,*args): """ OnParentForeColorChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.ForeColorChanged event when the System.Windows.Forms.Control.ForeColor property value of the control's container changes. e: An System.EventArgs that contains the event data. """ pass def OnParentRightToLeftChanged(self,*args): """ OnParentRightToLeftChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.RightToLeftChanged event when the System.Windows.Forms.Control.RightToLeft property value of the control's container changes. e: An System.EventArgs that contains the event data. """ pass def OnParentVisibleChanged(self,*args): """ OnParentVisibleChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.VisibleChanged event when the System.Windows.Forms.Control.Visible property value of the control's container changes. e: An System.EventArgs that contains the event data. """ pass def OnPreviewKeyDown(self,*args): """ OnPreviewKeyDown(self: Control,e: PreviewKeyDownEventArgs) Raises the System.Windows.Forms.Control.PreviewKeyDown event. e: A System.Windows.Forms.PreviewKeyDownEventArgs that contains the event data. """ pass def OnPrint(self,*args): """ OnPrint(self: Control,e: PaintEventArgs) Raises the System.Windows.Forms.Control.Paint event. e: A System.Windows.Forms.PaintEventArgs that contains the event data. """ pass def OnQueryContinueDrag(self,*args): """ OnQueryContinueDrag(self: Control,qcdevent: QueryContinueDragEventArgs) Raises the System.Windows.Forms.Control.QueryContinueDrag event. qcdevent: A System.Windows.Forms.QueryContinueDragEventArgs that contains the event data. """ pass def OnRegionChanged(self,*args): """ OnRegionChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.RegionChanged event. e: An System.EventArgs that contains the event data. """ pass def OnResize(self,*args): """ OnResize(self: ListView,e: EventArgs) e: An System.EventArgs that contains the event data. """ pass def OnRetrieveVirtualItem(self,*args): """ OnRetrieveVirtualItem(self: ListView,e: RetrieveVirtualItemEventArgs) Raises the System.Windows.Forms.ListView.RetrieveVirtualItem event. e: A System.Windows.Forms.RetrieveVirtualItemEventArgs that contains the event data. """ pass def OnRightToLeftChanged(self,*args): """ OnRightToLeftChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.RightToLeftChanged event. e: An System.EventArgs that contains the event data. """ pass def OnRightToLeftLayoutChanged(self,*args): """ OnRightToLeftLayoutChanged(self: ListView,e: EventArgs) Raises the System.Windows.Forms.ListView.RightToLeftLayoutChanged event. e: An System.EventArgs that contains the event data. """ pass def OnSearchForVirtualItem(self,*args): """ OnSearchForVirtualItem(self: ListView,e: SearchForVirtualItemEventArgs) Raises the System.Windows.Forms.ListView.SearchForVirtualItem event. e: A System.Windows.Forms.SearchForVirtualItemEventArgs that contains the event data. """ pass def OnSelectedIndexChanged(self,*args): """ OnSelectedIndexChanged(self: ListView,e: EventArgs) Raises the System.Windows.Forms.ListView.SelectedIndexChanged event. e: An System.EventArgs that contains the event data. """ pass def OnSizeChanged(self,*args): """ OnSizeChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.SizeChanged event. e: An System.EventArgs that contains the event data. """ pass def OnStyleChanged(self,*args): """ OnStyleChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.StyleChanged event. e: An System.EventArgs that contains the event data. """ pass def OnSystemColorsChanged(self,*args): """ OnSystemColorsChanged(self: ListView,e: EventArgs) e: An System.EventArgs that contains the event data. """ pass def OnTabIndexChanged(self,*args): """ OnTabIndexChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.TabIndexChanged event. e: An System.EventArgs that contains the event data. """ pass def OnTabStopChanged(self,*args): """ OnTabStopChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.TabStopChanged event. e: An System.EventArgs that contains the event data. """ pass def OnTextChanged(self,*args): """ OnTextChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.TextChanged event. e: An System.EventArgs that contains the event data. """ pass def OnValidated(self,*args): """ OnValidated(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.Validated event. e: An System.EventArgs that contains the event data. """ pass def OnValidating(self,*args): """ OnValidating(self: Control,e: CancelEventArgs) Raises the System.Windows.Forms.Control.Validating event. e: A System.ComponentModel.CancelEventArgs that contains the event data. """ pass def OnVirtualItemsSelectionRangeChanged(self,*args): """ OnVirtualItemsSelectionRangeChanged(self: ListView,e: ListViewVirtualItemsSelectionRangeChangedEventArgs) Raises the System.Windows.Forms.ListView.VirtualItemsSelectionRangeChanged event. e: A System.Windows.Forms.ListViewVirtualItemsSelectionRangeChangedEventArgs that contains the event data. """ pass def OnVisibleChanged(self,*args): """ OnVisibleChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.VisibleChanged event. e: An System.EventArgs that contains the event data. """ pass def ProcessCmdKey(self,*args): """ ProcessCmdKey(self: Control,msg: Message,keyData: Keys) -> (bool,Message) Processes a command key. msg: A System.Windows.Forms.Message,passed by reference,that represents the window message to process. keyData: One of the System.Windows.Forms.Keys values that represents the key to process. Returns: true if the character was processed by the control; otherwise,false. """ pass def ProcessDialogChar(self,*args): """ ProcessDialogChar(self: Control,charCode: Char) -> bool Processes a dialog character. charCode: The character to process. Returns: true if the character was processed by the control; otherwise,false. """ pass def ProcessDialogKey(self,*args): """ ProcessDialogKey(self: Control,keyData: Keys) -> bool Processes a dialog key. keyData: One of the System.Windows.Forms.Keys values that represents the key to process. Returns: true if the key was processed by the control; otherwise,false. """ pass def ProcessKeyEventArgs(self,*args): """ ProcessKeyEventArgs(self: Control,m: Message) -> (bool,Message) Processes a key message and generates the appropriate control events. m: A System.Windows.Forms.Message,passed by reference,that represents the window message to process. Returns: true if the message was processed by the control; otherwise,false. """ pass def ProcessKeyMessage(self,*args): """ ProcessKeyMessage(self: Control,m: Message) -> (bool,Message) Processes a keyboard message. m: A System.Windows.Forms.Message,passed by reference,that represents the window message to process. Returns: true if the message was processed by the control; otherwise,false. """ pass def ProcessKeyPreview(self,*args): """ ProcessKeyPreview(self: Control,m: Message) -> (bool,Message) Previews a keyboard message. m: A System.Windows.Forms.Message,passed by reference,that represents the window message to process. Returns: true if the message was processed by the control; otherwise,false. """ pass def ProcessMnemonic(self,*args): """ ProcessMnemonic(self: Control,charCode: Char) -> bool Processes a mnemonic character. charCode: The character to process. Returns: true if the character was processed as a mnemonic by the control; otherwise,false. """ pass def RaiseDragEvent(self,*args): """ RaiseDragEvent(self: Control,key: object,e: DragEventArgs) Raises the appropriate drag event. key: The event to raise. e: A System.Windows.Forms.DragEventArgs that contains the event data. """ pass def RaiseKeyEvent(self,*args): """ RaiseKeyEvent(self: Control,key: object,e: KeyEventArgs) Raises the appropriate key event. key: The event to raise. e: A System.Windows.Forms.KeyEventArgs that contains the event data. """ pass def RaiseMouseEvent(self,*args): """ RaiseMouseEvent(self: Control,key: object,e: MouseEventArgs) Raises the appropriate mouse event. key: The event to raise. e: A System.Windows.Forms.MouseEventArgs that contains the event data. """ pass def RaisePaintEvent(self,*args): """ RaisePaintEvent(self: Control,key: object,e: PaintEventArgs) Raises the appropriate paint event. key: The event to raise. e: A System.Windows.Forms.PaintEventArgs that contains the event data. """ pass def RealizeProperties(self,*args): """ RealizeProperties(self: ListView) Initializes the properties of the System.Windows.Forms.ListView control that manage the appearance of the control. """ pass def RecreateHandle(self,*args): """ RecreateHandle(self: Control) Forces the re-creation of the handle for the control. """ pass def RedrawItems(self,startIndex,endIndex,invalidateOnly): """ RedrawItems(self: ListView,startIndex: int,endIndex: int,invalidateOnly: bool) Forces a range of System.Windows.Forms.ListViewItem objects to be redrawn. startIndex: The index for the first item in the range to be redrawn. endIndex: The index for the last item of the range to be redrawn. invalidateOnly: true to invalidate the range of items; false to invalidate and repaint the items. """ pass def RescaleConstantsForDpi(self,*args): """ RescaleConstantsForDpi(self: Control,deviceDpiOld: int,deviceDpiNew: int) """ pass def ResetMouseEventArgs(self,*args): """ ResetMouseEventArgs(self: Control) Resets the control to handle the System.Windows.Forms.Control.MouseLeave event. """ pass def RtlTranslateAlignment(self,*args): """ RtlTranslateAlignment(self: Control,align: ContentAlignment) -> ContentAlignment Converts the specified System.Drawing.ContentAlignment to the appropriate System.Drawing.ContentAlignment to support right-to-left text. align: One of the System.Drawing.ContentAlignment values. Returns: One of the System.Drawing.ContentAlignment values. RtlTranslateAlignment(self: Control,align: LeftRightAlignment) -> LeftRightAlignment Converts the specified System.Windows.Forms.LeftRightAlignment to the appropriate System.Windows.Forms.LeftRightAlignment to support right-to-left text. align: One of the System.Windows.Forms.LeftRightAlignment values. Returns: One of the System.Windows.Forms.LeftRightAlignment values. RtlTranslateAlignment(self: Control,align: HorizontalAlignment) -> HorizontalAlignment Converts the specified System.Windows.Forms.HorizontalAlignment to the appropriate System.Windows.Forms.HorizontalAlignment to support right-to-left text. align: One of the System.Windows.Forms.HorizontalAlignment values. Returns: One of the System.Windows.Forms.HorizontalAlignment values. """ pass def RtlTranslateContent(self,*args): """ RtlTranslateContent(self: Control,align: ContentAlignment) -> ContentAlignment Converts the specified System.Drawing.ContentAlignment to the appropriate System.Drawing.ContentAlignment to support right-to-left text. align: One of the System.Drawing.ContentAlignment values. Returns: One of the System.Drawing.ContentAlignment values. """ pass def RtlTranslateHorizontal(self,*args): """ RtlTranslateHorizontal(self: Control,align: HorizontalAlignment) -> HorizontalAlignment Converts the specified System.Windows.Forms.HorizontalAlignment to the appropriate System.Windows.Forms.HorizontalAlignment to support right-to-left text. align: One of the System.Windows.Forms.HorizontalAlignment values. Returns: One of the System.Windows.Forms.HorizontalAlignment values. """ pass def RtlTranslateLeftRight(self,*args): """ RtlTranslateLeftRight(self: Control,align: LeftRightAlignment) -> LeftRightAlignment Converts the specified System.Windows.Forms.LeftRightAlignment to the appropriate System.Windows.Forms.LeftRightAlignment to support right-to-left text. align: One of the System.Windows.Forms.LeftRightAlignment values. Returns: One of the System.Windows.Forms.LeftRightAlignment values. """ pass def ScaleControl(self,*args): """ ScaleControl(self: Control,factor: SizeF,specified: BoundsSpecified) Scales a control's location,size,padding and margin. factor: The factor by which the height and width of the control will be scaled. specified: A System.Windows.Forms.BoundsSpecified value that specifies the bounds of the control to use when defining its size and position. """ pass def ScaleCore(self,*args): """ ScaleCore(self: Control,dx: Single,dy: Single) This method is not relevant for this class. dx: The horizontal scaling factor. dy: The vertical scaling factor. """ pass def Select(self): """ Select(self: Control,directed: bool,forward: bool) Activates a child control. Optionally specifies the direction in the tab order to select the control from. directed: true to specify the direction of the control to select; otherwise,false. forward: true to move forward in the tab order; false to move backward in the tab order. """ pass def SetAutoSizeMode(self,*args): """ SetAutoSizeMode(self: Control,mode: AutoSizeMode) Sets a value indicating how a control will behave when its System.Windows.Forms.Control.AutoSize property is enabled. mode: One of the System.Windows.Forms.AutoSizeMode values. """ pass def SetBoundsCore(self,*args): """ SetBoundsCore(self: Control,x: int,y: int,width: int,height: int,specified: BoundsSpecified) Performs the work of setting the specified bounds of this control. x: The new System.Windows.Forms.Control.Left property value of the control. y: The new System.Windows.Forms.Control.Top property value of the control. width: The new System.Windows.Forms.Control.Width property value of the control. height: The new System.Windows.Forms.Control.Height property value of the control. specified: A bitwise combination of the System.Windows.Forms.BoundsSpecified values. """ pass def SetClientSizeCore(self,*args): """ SetClientSizeCore(self: Control,x: int,y: int) Sets the size of the client area of the control. x: The client area width,in pixels. y: The client area height,in pixels. """ pass def SetStyle(self,*args): """ SetStyle(self: Control,flag: ControlStyles,value: bool) Sets a specified System.Windows.Forms.ControlStyles flag to either true or false. flag: The System.Windows.Forms.ControlStyles bit to set. value: true to apply the specified style to the control; otherwise,false. """ pass def SetTopLevel(self,*args): """ SetTopLevel(self: Control,value: bool) Sets the control as the top-level control. value: true to set the control as the top-level control; otherwise,false. """ pass def SetVisibleCore(self,*args): """ SetVisibleCore(self: Control,value: bool) Sets the control to the specified visible state. value: true to make the control visible; otherwise,false. """ pass def SizeFromClientSize(self,*args): """ SizeFromClientSize(self: Control,clientSize: Size) -> Size Determines the size of the entire control from the height and width of its client area. clientSize: A System.Drawing.Size value representing the height and width of the control's client area. Returns: A System.Drawing.Size value representing the height and width of the entire control. """ pass def Sort(self): """ Sort(self: ListView) Sorts the items of the list view. """ pass def ToString(self): """ ToString(self: ListView) -> str Returns a string representation of the System.Windows.Forms.ListView control. Returns: A string that states the control type,the count of items in the System.Windows.Forms.ListView control,and the type of the first item in the System.Windows.Forms.ListView,if the count is not 0. """ pass def UpdateBounds(self,*args): """ UpdateBounds(self: Control,x: int,y: int,width: int,height: int,clientWidth: int,clientHeight: int) Updates the bounds of the control with the specified size,location,and client size. x: The System.Drawing.Point.X coordinate of the control. y: The System.Drawing.Point.Y coordinate of the control. width: The System.Drawing.Size.Width of the control. height: The System.Drawing.Size.Height of the control. clientWidth: The client System.Drawing.Size.Width of the control. clientHeight: The client System.Drawing.Size.Height of the control. UpdateBounds(self: Control,x: int,y: int,width: int,height: int) Updates the bounds of the control with the specified size and location. x: The System.Drawing.Point.X coordinate of the control. y: The System.Drawing.Point.Y coordinate of the control. width: The System.Drawing.Size.Width of the control. height: The System.Drawing.Size.Height of the control. UpdateBounds(self: Control) Updates the bounds of the control with the current size and location. """ pass def UpdateExtendedStyles(self,*args): """ UpdateExtendedStyles(self: ListView) Updates the extended styles applied to the list view control. """ pass def UpdateStyles(self,*args): """ UpdateStyles(self: Control) Forces the assigned styles to be reapplied to the control. """ pass def UpdateZOrder(self,*args): """ UpdateZOrder(self: Control) Updates the control in its parent's z-order. """ pass def WndProc(self,*args): """ WndProc(self: ListView,m: Message) -> Message Overrides System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message@). m: The Windows System.Windows.Forms.Message to process. """ pass def __enter__(self,*args): """ __enter__(self: IDisposable) -> object Provides the implementation of __enter__ for objects which implement IDisposable. """ pass def __exit__(self,*args): """ __exit__(self: IDisposable,exc_type: object,exc_value: object,exc_back: object) Provides the implementation of __exit__ for objects which implement IDisposable. """ pass def __init__(self,*args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass def __str__(self,*args): pass Activation=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets the type of action the user must take to activate an item. Get: Activation(self: ListView) -> ItemActivation Set: Activation(self: ListView)=value """ Alignment=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets the alignment of items in the control. Get: Alignment(self: ListView) -> ListViewAlignment Set: Alignment(self: ListView)=value """ AllowColumnReorder=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets a value indicating whether the user can drag column headers to reorder columns in the control. Get: AllowColumnReorder(self: ListView) -> bool Set: AllowColumnReorder(self: ListView)=value """ AutoArrange=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets whether icons are automatically kept arranged. Get: AutoArrange(self: ListView) -> bool Set: AutoArrange(self: ListView)=value """ BackColor=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets the background color. Get: BackColor(self: ListView) -> Color Set: BackColor(self: ListView)=value """ BackgroundImageLayout=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets an System.Windows.Forms.ImageLayout value. Get: BackgroundImageLayout(self: ListView) -> ImageLayout Set: BackgroundImageLayout(self: ListView)=value """ BackgroundImageTiled=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets a value indicating whether the background image of the System.Windows.Forms.ListView should be tiled. Get: BackgroundImageTiled(self: ListView) -> bool Set: BackgroundImageTiled(self: ListView)=value """ BorderStyle=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets the border style of the control. Get: BorderStyle(self: ListView) -> BorderStyle Set: BorderStyle(self: ListView)=value """ CanEnableIme=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets a value indicating whether the System.Windows.Forms.Control.ImeMode property can be set to an active value,to enable IME support. """ CanRaiseEvents=property(lambda self: object(),lambda self,v: None,lambda self: None) """Determines if events can be raised on the control. """ CheckBoxes=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets a value indicating whether a check box appears next to each item in the control. Get: CheckBoxes(self: ListView) -> bool Set: CheckBoxes(self: ListView)=value """ CheckedIndices=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the indexes of the currently checked items in the control. Get: CheckedIndices(self: ListView) -> CheckedIndexCollection """ CheckedItems=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the currently checked items in the control. Get: CheckedItems(self: ListView) -> CheckedListViewItemCollection """ Columns=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the collection of all column headers that appear in the control. Get: Columns(self: ListView) -> ColumnHeaderCollection """ CreateParams=property(lambda self: object(),lambda self,v: None,lambda self: None) """This property is not relevant for this class. """ DefaultCursor=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets the default cursor for the control. """ DefaultImeMode=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the default Input Method Editor (IME) mode supported by the control. """ DefaultMargin=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the space,in pixels,that is specified by default between controls. """ DefaultMaximumSize=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the length and height,in pixels,that is specified as the default maximum size of a control. """ DefaultMinimumSize=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the length and height,in pixels,that is specified as the default minimum size of a control. """ DefaultPadding=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the internal spacing,in pixels,of the contents of a control. """ DefaultSize=property(lambda self: object(),lambda self,v: None,lambda self: None) DesignMode=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets a value that indicates whether the System.ComponentModel.Component is currently in design mode. """ DoubleBuffered=property(lambda self: object(),lambda self,v: None,lambda self: None) Events=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the list of event handlers that are attached to this System.ComponentModel.Component. """ FocusedItem=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets the item in the control that currently has focus. Get: FocusedItem(self: ListView) -> ListViewItem Set: FocusedItem(self: ListView)=value """ FontHeight=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets the height of the font of the control. """ ForeColor=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets the foreground color. Get: ForeColor(self: ListView) -> Color Set: ForeColor(self: ListView)=value """ FullRowSelect=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets a value indicating whether clicking an item selects all its subitems. Get: FullRowSelect(self: ListView) -> bool Set: FullRowSelect(self: ListView)=value """ GridLines=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets a value indicating whether grid lines appear between the rows and columns containing the items and subitems in the control. Get: GridLines(self: ListView) -> bool Set: GridLines(self: ListView)=value """ Groups=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the collection of System.Windows.Forms.ListViewGroup objects assigned to the control. Get: Groups(self: ListView) -> ListViewGroupCollection """ HeaderStyle=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets the column header style. Get: HeaderStyle(self: ListView) -> ColumnHeaderStyle Set: HeaderStyle(self: ListView)=value """ HideSelection=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets a value indicating whether the selected item in the control remains highlighted when the control loses focus. Get: HideSelection(self: ListView) -> bool Set: HideSelection(self: ListView)=value """ HotTracking=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets a value indicating whether the text of an item or subitem has the appearance of a hyperlink when the mouse pointer passes over it. Get: HotTracking(self: ListView) -> bool Set: HotTracking(self: ListView)=value """ HoverSelection=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets a value indicating whether an item is automatically selected when the mouse pointer remains over the item for a few seconds. Get: HoverSelection(self: ListView) -> bool Set: HoverSelection(self: ListView)=value """ ImeModeBase=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets the IME mode of a control. """ InsertionMark=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets an object used to indicate the expected drop location when an item is dragged within a System.Windows.Forms.ListView control. Get: InsertionMark(self: ListView) -> ListViewInsertionMark """ Items=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets a collection containing all items in the control. Get: Items(self: ListView) -> ListViewItemCollection """ LabelEdit=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets a value indicating whether the user can edit the labels of items in the control. Get: LabelEdit(self: ListView) -> bool Set: LabelEdit(self: ListView)=value """ LabelWrap=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets a value indicating whether item labels wrap when items are displayed in the control as icons. Get: LabelWrap(self: ListView) -> bool Set: LabelWrap(self: ListView)=value """ LargeImageList=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets the System.Windows.Forms.ImageList to use when displaying items as large icons in the control. Get: LargeImageList(self: ListView) -> ImageList Set: LargeImageList(self: ListView)=value """ ListViewItemSorter=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets the sorting comparer for the control. Get: ListViewItemSorter(self: ListView) -> IComparer Set: ListViewItemSorter(self: ListView)=value """ MultiSelect=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets a value indicating whether multiple items can be selected. Get: MultiSelect(self: ListView) -> bool Set: MultiSelect(self: ListView)=value """ OwnerDraw=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets a value indicating whether the System.Windows.Forms.ListView control is drawn by the operating system or by code that you provide. Get: OwnerDraw(self: ListView) -> bool Set: OwnerDraw(self: ListView)=value """ Padding=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets the space between the System.Windows.Forms.ListView control and its contents. Get: Padding(self: ListView) -> Padding Set: Padding(self: ListView)=value """ RenderRightToLeft=property(lambda self: object(),lambda self,v: None,lambda self: None) """This property is now obsolete. """ ResizeRedraw=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets a value indicating whether the control redraws itself when resized. """ RightToLeftLayout=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets a value indicating whether the control is laid out from right to left. Get: RightToLeftLayout(self: ListView) -> bool Set: RightToLeftLayout(self: ListView)=value """ ScaleChildren=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets a value that determines the scaling of child controls. """ Scrollable=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets a value indicating whether a scroll bar is added to the control when there is not enough room to display all items. Get: Scrollable(self: ListView) -> bool Set: Scrollable(self: ListView)=value """ SelectedIndices=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the indexes of the selected items in the control. Get: SelectedIndices(self: ListView) -> SelectedIndexCollection """ SelectedItems=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the items that are selected in the control. Get: SelectedItems(self: ListView) -> SelectedListViewItemCollection """ ShowFocusCues=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets a value indicating whether the control should display focus rectangles. """ ShowGroups=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets a value indicating whether items are displayed in groups. Get: ShowGroups(self: ListView) -> bool Set: ShowGroups(self: ListView)=value """ ShowItemToolTips=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets a value indicating whether ToolTips are shown for the System.Windows.Forms.ListViewItem objects contained in the System.Windows.Forms.ListView. Get: ShowItemToolTips(self: ListView) -> bool Set: ShowItemToolTips(self: ListView)=value """ ShowKeyboardCues=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets a value indicating whether the user interface is in the appropriate state to show or hide keyboard accelerators. """ SmallImageList=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets the System.Windows.Forms.ImageList to use when displaying items as small icons in the control. Get: SmallImageList(self: ListView) -> ImageList Set: SmallImageList(self: ListView)=value """ Sorting=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets the sort order for items in the control. Get: Sorting(self: ListView) -> SortOrder Set: Sorting(self: ListView)=value """ StateImageList=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets the System.Windows.Forms.ImageList associated with application-defined states in the control. Get: StateImageList(self: ListView) -> ImageList Set: StateImageList(self: ListView)=value """ Text=property(lambda self: object(),lambda self,v: None,lambda self: None) """This property is not relevant for this class. Get: Text(self: ListView) -> str Set: Text(self: ListView)=value """ TileSize=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets the size of the tiles shown in tile view. Get: TileSize(self: ListView) -> Size Set: TileSize(self: ListView)=value """ TopItem=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets the first visible item in the control. Get: TopItem(self: ListView) -> ListViewItem Set: TopItem(self: ListView)=value """ UseCompatibleStateImageBehavior=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets a value indicating whether the System.Windows.Forms.ListView uses state image behavior that is compatible with the .NET Framework 1.1 or the .NET Framework 2.0. Get: UseCompatibleStateImageBehavior(self: ListView) -> bool Set: UseCompatibleStateImageBehavior(self: ListView)=value """ View=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets how items are displayed in the control. Get: View(self: ListView) -> View Set: View(self: ListView)=value """ VirtualListSize=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets the number of System.Windows.Forms.ListViewItem objects contained in the list when in virtual mode. Get: VirtualListSize(self: ListView) -> int Set: VirtualListSize(self: ListView)=value """ VirtualMode=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets a value indicating whether you have provided your own data-management operations for the System.Windows.Forms.ListView control. Get: VirtualMode(self: ListView) -> bool Set: VirtualMode(self: ListView)=value """ AfterLabelEdit=None BackgroundImageLayoutChanged=None BeforeLabelEdit=None CacheVirtualItems=None CheckedIndexCollection=None CheckedListViewItemCollection=None ColumnClick=None ColumnHeaderCollection=None ColumnReordered=None ColumnWidthChanged=None ColumnWidthChanging=None DrawColumnHeader=None DrawItem=None DrawSubItem=None ItemActivate=None ItemCheck=None ItemChecked=None ItemDrag=None ItemMouseHover=None ItemSelectionChanged=None ListViewItemCollection=None PaddingChanged=None Paint=None RetrieveVirtualItem=None RightToLeftLayoutChanged=None SearchForVirtualItem=None SelectedIndexChanged=None SelectedIndexCollection=None SelectedListViewItemCollection=None TextChanged=None VirtualItemsSelectionRangeChanged=None
class Listview(Control, IComponent, IDisposable, IOleControl, IOleObject, IOleInPlaceObject, IOleInPlaceActiveObject, IOleWindow, IViewObject, IViewObject2, IPersist, IPersistStreamInit, IPersistPropertyBag, IPersistStorage, IQuickActivate, ISupportOleDropSource, IDropTarget, ISynchronizeInvoke, IWin32Window, IArrangedElement, IBindableComponent): """ Represents a Windows list view control,which displays a collection of items that can be displayed using one of four different views. ListView() """ def accessibility_notify_clients(self, *args): """ AccessibilityNotifyClients(self: Control,accEvent: AccessibleEvents,objectID: int,childID: int) Notifies the accessibility client applications of the specified System.Windows.Forms.AccessibleEvents for the specified child control . accEvent: The System.Windows.Forms.AccessibleEvents to notify the accessibility client applications of. objectID: The identifier of the System.Windows.Forms.AccessibleObject. childID: The child System.Windows.Forms.Control to notify of the accessible event. AccessibilityNotifyClients(self: Control,accEvent: AccessibleEvents,childID: int) Notifies the accessibility client applications of the specified System.Windows.Forms.AccessibleEvents for the specified child control. accEvent: The System.Windows.Forms.AccessibleEvents to notify the accessibility client applications of. childID: The child System.Windows.Forms.Control to notify of the accessible event. """ pass def arrange_icons(self, value=None): """ ArrangeIcons(self: ListView) Arranges items in the control when they are displayed as icons based on the value of the System.Windows.Forms.ListView.Alignment property. ArrangeIcons(self: ListView,value: ListViewAlignment) Arranges items in the control when they are displayed as icons with a specified alignment setting. value: One of the System.Windows.Forms.ListViewAlignment values. """ pass def auto_resize_column(self, columnIndex, headerAutoResize): """ AutoResizeColumn(self: ListView,columnIndex: int,headerAutoResize: ColumnHeaderAutoResizeStyle) Resizes the width of the given column as indicated by the resize style. columnIndex: The zero-based index of the column to resize. headerAutoResize: One of the System.Windows.Forms.ColumnHeaderAutoResizeStyle values. """ pass def auto_resize_columns(self, headerAutoResize): """ AutoResizeColumns(self: ListView,headerAutoResize: ColumnHeaderAutoResizeStyle) Resizes the width of the columns as indicated by the resize style. headerAutoResize: One of the System.Windows.Forms.ColumnHeaderAutoResizeStyle values. """ pass def begin_update(self): """ BeginUpdate(self: ListView) Prevents the control from drawing until the System.Windows.Forms.ListView.EndUpdate method is called. """ pass def clear(self): """ Clear(self: ListView) Removes all items and columns from the control. """ pass def create_accessibility_instance(self, *args): """ CreateAccessibilityInstance(self: Control) -> AccessibleObject Creates a new accessibility object for the control. Returns: A new System.Windows.Forms.AccessibleObject for the control. """ pass def create_controls_instance(self, *args): """ CreateControlsInstance(self: Control) -> ControlCollection Creates a new instance of the control collection for the control. Returns: A new instance of System.Windows.Forms.Control.ControlCollection assigned to the control. """ pass def create_handle(self, *args): """ CreateHandle(self: ListView) """ pass def def_wnd_proc(self, *args): """ DefWndProc(self: Control,m: Message) -> Message Sends the specified message to the default window procedure. m: The Windows System.Windows.Forms.Message to process. """ pass def destroy_handle(self, *args): """ DestroyHandle(self: Control) Destroys the handle associated with the control. """ pass def dispose(self): """ Dispose(self: ListView,disposing: bool) Releases the unmanaged resources used by the System.Windows.Forms.ListView and optionally releases the managed resources. disposing: true to release both managed and unmanaged resources; false to release only unmanaged resources. """ pass def end_update(self): """ EndUpdate(self: ListView) Resumes drawing of the list view control after drawing is suspended by the System.Windows.Forms.ListView.BeginUpdate method. """ pass def ensure_visible(self, index): """ EnsureVisible(self: ListView,index: int) Ensures that the specified item is visible within the control,scrolling the contents of the control if necessary. index: The zero-based index of the item to scroll into view. """ pass def find_item_with_text(self, text, includeSubItemsInSearch=None, startIndex=None, isPrefixSearch=None): """ FindItemWithText(self: ListView,text: str,includeSubItemsInSearch: bool,startIndex: int,isPrefixSearch: bool) -> ListViewItem Finds the first System.Windows.Forms.ListViewItem or System.Windows.Forms.ListViewItem.ListViewSubItem,if indicated,that begins with the specified text value. The search starts at the specified index. text: The text to search for. includeSubItemsInSearch: true to include subitems in the search; otherwise,false. startIndex: The index of the item at which to start the search. isPrefixSearch: true to allow partial matches; otherwise,false. Returns: The first System.Windows.Forms.ListViewItem that begins with the specified text value. FindItemWithText(self: ListView,text: str,includeSubItemsInSearch: bool,startIndex: int) -> ListViewItem Finds the first System.Windows.Forms.ListViewItem or System.Windows.Forms.ListViewItem.ListViewSubItem,if indicated,that begins with the specified text value. The search starts at the specified index. text: The text to search for. includeSubItemsInSearch: true to include subitems in the search; otherwise,false. startIndex: The index of the item at which to start the search. Returns: The first System.Windows.Forms.ListViewItem that begins with the specified text value. FindItemWithText(self: ListView,text: str) -> ListViewItem Finds the first System.Windows.Forms.ListViewItem that begins with the specified text value. text: The text to search for. Returns: The first System.Windows.Forms.ListViewItem that begins with the specified text value. """ pass def find_nearest_item(self, *__args): """ FindNearestItem(self: ListView,searchDirection: SearchDirectionHint,x: int,y: int) -> ListViewItem Finds the next item from the given x- and y-coordinates,searching in the specified direction. searchDirection: One of the System.Windows.Forms.SearchDirectionHint values. x: The x-coordinate for the point at which to begin searching. y: The y-coordinate for the point at which to begin searching. Returns: The System.Windows.Forms.ListViewItem that is closest to the given coordinates,searching in the specified direction. FindNearestItem(self: ListView,dir: SearchDirectionHint,point: Point) -> ListViewItem Finds the next item from the given point,searching in the specified direction dir: One of the System.Windows.Forms.SearchDirectionHint values. point: The point at which to begin searching. Returns: The System.Windows.Forms.ListViewItem that is closest to the given point,searching in the specified direction. """ pass def get_accessibility_object_by_id(self, *args): """ GetAccessibilityObjectById(self: Control,objectId: int) -> AccessibleObject Retrieves the specified System.Windows.Forms.AccessibleObject. objectId: An Int32 that identifies the System.Windows.Forms.AccessibleObject to retrieve. Returns: An System.Windows.Forms.AccessibleObject. """ pass def get_auto_size_mode(self, *args): """ GetAutoSizeMode(self: Control) -> AutoSizeMode Retrieves a value indicating how a control will behave when its System.Windows.Forms.Control.AutoSize property is enabled. Returns: One of the System.Windows.Forms.AutoSizeMode values. """ pass def get_item_at(self, x, y): """ GetItemAt(self: ListView,x: int,y: int) -> ListViewItem Retrieves the item at the specified location. x: The x-coordinate of the location to search for an item (expressed in client coordinates). y: The y-coordinate of the location to search for an item (expressed in client coordinates). Returns: A System.Windows.Forms.ListViewItem that represents the item at the specified position. If there is no item at the specified location,the method returns null. """ pass def get_item_rect(self, index, portion=None): """ GetItemRect(self: ListView,index: int,portion: ItemBoundsPortion) -> Rectangle Retrieves the specified portion of the bounding rectangle for a specific item within the list view control. index: The zero-based index of the item within the System.Windows.Forms.ListView.ListViewItemCollection whose bounding rectangle you want to return. portion: One of the System.Windows.Forms.ItemBoundsPortion values that represents a portion of the System.Windows.Forms.ListViewItem for which to retrieve the bounding rectangle. Returns: A System.Drawing.Rectangle that represents the bounding rectangle for the specified portion of the specified System.Windows.Forms.ListViewItem. GetItemRect(self: ListView,index: int) -> Rectangle Retrieves the bounding rectangle for a specific item within the list view control. index: The zero-based index of the item within the System.Windows.Forms.ListView.ListViewItemCollection whose bounding rectangle you want to return. Returns: A System.Drawing.Rectangle that represents the bounding rectangle of the specified System.Windows.Forms.ListViewItem. """ pass def get_scaled_bounds(self, *args): """ GetScaledBounds(self: Control,bounds: Rectangle,factor: SizeF,specified: BoundsSpecified) -> Rectangle Retrieves the bounds within which the control is scaled. bounds: A System.Drawing.Rectangle that specifies the area for which to retrieve the display bounds. factor: The height and width of the control's bounds. specified: One of the values of System.Windows.Forms.BoundsSpecified that specifies the bounds of the control to use when defining its size and position. Returns: A System.Drawing.Rectangle representing the bounds within which the control is scaled. """ pass def get_service(self, *args): """ GetService(self: Component,service: Type) -> object Returns an object that represents a service provided by the System.ComponentModel.Component or by its System.ComponentModel.Container. service: A service provided by the System.ComponentModel.Component. Returns: An System.Object that represents a service provided by the System.ComponentModel.Component,or null if the System.ComponentModel.Component does not provide the specified service. """ pass def get_style(self, *args): """ GetStyle(self: Control,flag: ControlStyles) -> bool Retrieves the value of the specified control style bit for the control. flag: The System.Windows.Forms.ControlStyles bit to return the value from. Returns: true if the specified control style bit is set to true; otherwise,false. """ pass def get_top_level(self, *args): """ GetTopLevel(self: Control) -> bool Determines if the control is a top-level control. Returns: true if the control is a top-level control; otherwise,false. """ pass def hit_test(self, *__args): """ HitTest(self: ListView,x: int,y: int) -> ListViewHitTestInfo Provides item information,given x- and y-coordinates. x: The x-coordinate at which to retrieve the item information. The coordinate is relative to the upper-left corner of the control. y: The y-coordinate at which to retrieve the item information. The coordinate is relative to the upper-left corner of the control. Returns: A System.Windows.Forms.ListViewHitTestInfo. HitTest(self: ListView,point: Point) -> ListViewHitTestInfo Provides item information,given a point. point: The System.Drawing.Point at which to retrieve the item information. The coordinates are relative to the upper-left corner of the control. Returns: A System.Windows.Forms.ListViewHitTestInfo. """ pass def init_layout(self, *args): """ InitLayout(self: Control) Called after the control has been added to another container. """ pass def invoke_got_focus(self, *args): """ InvokeGotFocus(self: Control,toInvoke: Control,e: EventArgs) Raises the System.Windows.Forms.Control.GotFocus event for the specified control. toInvoke: The System.Windows.Forms.Control to assign the event to. e: An System.EventArgs that contains the event data. """ pass def invoke_lost_focus(self, *args): """ InvokeLostFocus(self: Control,toInvoke: Control,e: EventArgs) Raises the System.Windows.Forms.Control.LostFocus event for the specified control. toInvoke: The System.Windows.Forms.Control to assign the event to. e: An System.EventArgs that contains the event data. """ pass def invoke_on_click(self, *args): """ InvokeOnClick(self: Control,toInvoke: Control,e: EventArgs) Raises the System.Windows.Forms.Control.Click event for the specified control. toInvoke: The System.Windows.Forms.Control to assign the System.Windows.Forms.Control.Click event to. e: An System.EventArgs that contains the event data. """ pass def invoke_paint(self, *args): """ InvokePaint(self: Control,c: Control,e: PaintEventArgs) Raises the System.Windows.Forms.Control.Paint event for the specified control. c: The System.Windows.Forms.Control to assign the System.Windows.Forms.Control.Paint event to. e: An System.Windows.Forms.PaintEventArgs that contains the event data. """ pass def invoke_paint_background(self, *args): """ InvokePaintBackground(self: Control,c: Control,e: PaintEventArgs) Raises the PaintBackground event for the specified control. c: The System.Windows.Forms.Control to assign the System.Windows.Forms.Control.Paint event to. e: An System.Windows.Forms.PaintEventArgs that contains the event data. """ pass def is_input_char(self, *args): """ IsInputChar(self: Control,charCode: Char) -> bool Determines if a character is an input character that the control recognizes. charCode: The character to test. Returns: true if the character should be sent directly to the control and not preprocessed; otherwise, false. """ pass def is_input_key(self, *args): """ IsInputKey(self: ListView,keyData: Keys) -> bool keyData: One of the System.Windows.Forms.Keys values. Returns: true if the specified key is a regular input key; otherwise,false. """ pass def memberwise_clone(self, *args): """ MemberwiseClone(self: MarshalByRefObject,cloneIdentity: bool) -> MarshalByRefObject Creates a shallow copy of the current System.MarshalByRefObject object. cloneIdentity: false to delete the current System.MarshalByRefObject object's identity,which will cause the object to be assigned a new identity when it is marshaled across a remoting boundary. A value of false is usually appropriate. true to copy the current System.MarshalByRefObject object's identity to its clone,which will cause remoting client calls to be routed to the remote server object. Returns: A shallow copy of the current System.MarshalByRefObject object. MemberwiseClone(self: object) -> object Creates a shallow copy of the current System.Object. Returns: A shallow copy of the current System.Object. """ pass def notify_invalidate(self, *args): """ NotifyInvalidate(self: Control,invalidatedArea: Rectangle) Raises the System.Windows.Forms.Control.Invalidated event with a specified region of the control to invalidate. invalidatedArea: A System.Drawing.Rectangle representing the area to invalidate. """ pass def on_after_label_edit(self, *args): """ OnAfterLabelEdit(self: ListView,e: LabelEditEventArgs) Raises the System.Windows.Forms.ListView.AfterLabelEdit event. e: A System.Windows.Forms.LabelEditEventArgs that contains the event data. """ pass def on_auto_size_changed(self, *args): """ OnAutoSizeChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.AutoSizeChanged event. e: An System.EventArgs that contains the event data. """ pass def on_back_color_changed(self, *args): """ OnBackColorChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.BackColorChanged event. e: An System.EventArgs that contains the event data. """ pass def on_background_image_changed(self, *args): """ OnBackgroundImageChanged(self: ListView,e: EventArgs) Raises the System.Windows.Forms.Control.BackgroundImageChanged event. e: An System.EventArgs that contains the event data. """ pass def on_background_image_layout_changed(self, *args): """ OnBackgroundImageLayoutChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.BackgroundImageLayoutChanged event. e: An System.EventArgs that contains the event data. """ pass def on_before_label_edit(self, *args): """ OnBeforeLabelEdit(self: ListView,e: LabelEditEventArgs) Raises the System.Windows.Forms.ListView.BeforeLabelEdit event. e: A System.Windows.Forms.LabelEditEventArgs that contains the event data. """ pass def on_binding_context_changed(self, *args): """ OnBindingContextChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.BindingContextChanged event. e: An System.EventArgs that contains the event data. """ pass def on_cache_virtual_items(self, *args): """ OnCacheVirtualItems(self: ListView,e: CacheVirtualItemsEventArgs) Raises the System.Windows.Forms.ListView.CacheVirtualItems event. e: A System.Windows.Forms.CacheVirtualItemsEventArgs that contains the event data. """ pass def on_causes_validation_changed(self, *args): """ OnCausesValidationChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.CausesValidationChanged event. e: An System.EventArgs that contains the event data. """ pass def on_change_ui_cues(self, *args): """ OnChangeUICues(self: Control,e: UICuesEventArgs) Raises the System.Windows.Forms.Control.ChangeUICues event. e: A System.Windows.Forms.UICuesEventArgs that contains the event data. """ pass def on_click(self, *args): """ OnClick(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.Click event. e: An System.EventArgs that contains the event data. """ pass def on_client_size_changed(self, *args): """ OnClientSizeChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.ClientSizeChanged event. e: An System.EventArgs that contains the event data. """ pass def on_column_click(self, *args): """ OnColumnClick(self: ListView,e: ColumnClickEventArgs) Raises the System.Windows.Forms.ListView.ColumnClick event. e: A System.Windows.Forms.ColumnClickEventArgs that contains the event data. """ pass def on_column_reordered(self, *args): """ OnColumnReordered(self: ListView,e: ColumnReorderedEventArgs) Raises the System.Windows.Forms.ListView.ColumnReordered event. e: The System.Windows.Forms.ColumnReorderedEventArgs that contains the event data. """ pass def on_column_width_changed(self, *args): """ OnColumnWidthChanged(self: ListView,e: ColumnWidthChangedEventArgs) Raises the System.Windows.Forms.ListView.ColumnWidthChanged event. e: A System.Windows.Forms.ColumnWidthChangedEventArgs that contains the event data. """ pass def on_column_width_changing(self, *args): """ OnColumnWidthChanging(self: ListView,e: ColumnWidthChangingEventArgs) Raises the System.Windows.Forms.ListView.ColumnWidthChanging event. e: A System.Windows.Forms.ColumnWidthChangingEventArgs that contains the event data. """ pass def on_context_menu_changed(self, *args): """ OnContextMenuChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.ContextMenuChanged event. e: An System.EventArgs that contains the event data. """ pass def on_context_menu_strip_changed(self, *args): """ OnContextMenuStripChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.ContextMenuStripChanged event. e: An System.EventArgs that contains the event data. """ pass def on_control_added(self, *args): """ OnControlAdded(self: Control,e: ControlEventArgs) Raises the System.Windows.Forms.Control.ControlAdded event. e: A System.Windows.Forms.ControlEventArgs that contains the event data. """ pass def on_control_removed(self, *args): """ OnControlRemoved(self: Control,e: ControlEventArgs) Raises the System.Windows.Forms.Control.ControlRemoved event. e: A System.Windows.Forms.ControlEventArgs that contains the event data. """ pass def on_create_control(self, *args): """ OnCreateControl(self: Control) Raises the System.Windows.Forms.Control.CreateControl method. """ pass def on_cursor_changed(self, *args): """ OnCursorChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.CursorChanged event. e: An System.EventArgs that contains the event data. """ pass def on_dock_changed(self, *args): """ OnDockChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.DockChanged event. e: An System.EventArgs that contains the event data. """ pass def on_double_click(self, *args): """ OnDoubleClick(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.DoubleClick event. e: An System.EventArgs that contains the event data. """ pass def on_dpi_changed_after_parent(self, *args): """ OnDpiChangedAfterParent(self: Control,e: EventArgs) """ pass def on_dpi_changed_before_parent(self, *args): """ OnDpiChangedBeforeParent(self: Control,e: EventArgs) """ pass def on_drag_drop(self, *args): """ OnDragDrop(self: Control,drgevent: DragEventArgs) Raises the System.Windows.Forms.Control.DragDrop event. drgevent: A System.Windows.Forms.DragEventArgs that contains the event data. """ pass def on_drag_enter(self, *args): """ OnDragEnter(self: Control,drgevent: DragEventArgs) Raises the System.Windows.Forms.Control.DragEnter event. drgevent: A System.Windows.Forms.DragEventArgs that contains the event data. """ pass def on_drag_leave(self, *args): """ OnDragLeave(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.DragLeave event. e: An System.EventArgs that contains the event data. """ pass def on_drag_over(self, *args): """ OnDragOver(self: Control,drgevent: DragEventArgs) Raises the System.Windows.Forms.Control.DragOver event. drgevent: A System.Windows.Forms.DragEventArgs that contains the event data. """ pass def on_draw_column_header(self, *args): """ OnDrawColumnHeader(self: ListView,e: DrawListViewColumnHeaderEventArgs) Raises the System.Windows.Forms.ListView.DrawColumnHeader event. e: A System.Windows.Forms.DrawListViewColumnHeaderEventArgs that contains the event data. """ pass def on_draw_item(self, *args): """ OnDrawItem(self: ListView,e: DrawListViewItemEventArgs) Raises the System.Windows.Forms.ListView.DrawItem event. e: A System.Windows.Forms.DrawListViewItemEventArgs that contains the event data. """ pass def on_draw_sub_item(self, *args): """ OnDrawSubItem(self: ListView,e: DrawListViewSubItemEventArgs) Raises the System.Windows.Forms.ListView.DrawSubItem event. e: A System.Windows.Forms.DrawListViewSubItemEventArgs that contains the event data. """ pass def on_enabled_changed(self, *args): """ OnEnabledChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.EnabledChanged event. e: An System.EventArgs that contains the event data. """ pass def on_enter(self, *args): """ OnEnter(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.Enter event. e: An System.EventArgs that contains the event data. """ pass def on_font_changed(self, *args): """ OnFontChanged(self: ListView,e: EventArgs) Raises the FontChanged event. e: The System.EventArgs that contains the event data. """ pass def on_fore_color_changed(self, *args): """ OnForeColorChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.ForeColorChanged event. e: An System.EventArgs that contains the event data. """ pass def on_give_feedback(self, *args): """ OnGiveFeedback(self: Control,gfbevent: GiveFeedbackEventArgs) Raises the System.Windows.Forms.Control.GiveFeedback event. gfbevent: A System.Windows.Forms.GiveFeedbackEventArgs that contains the event data. """ pass def on_got_focus(self, *args): """ OnGotFocus(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.GotFocus event. e: An System.EventArgs that contains the event data. """ pass def on_handle_created(self, *args): """ OnHandleCreated(self: ListView,e: EventArgs) e: An System.EventArgs that contains the event data. """ pass def on_handle_destroyed(self, *args): """ OnHandleDestroyed(self: ListView,e: EventArgs) e: An System.EventArgs that contains the event data. """ pass def on_help_requested(self, *args): """ OnHelpRequested(self: Control,hevent: HelpEventArgs) Raises the System.Windows.Forms.Control.HelpRequested event. hevent: A System.Windows.Forms.HelpEventArgs that contains the event data. """ pass def on_ime_mode_changed(self, *args): """ OnImeModeChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.ImeModeChanged event. e: An System.EventArgs that contains the event data. """ pass def on_invalidated(self, *args): """ OnInvalidated(self: Control,e: InvalidateEventArgs) Raises the System.Windows.Forms.Control.Invalidated event. e: An System.Windows.Forms.InvalidateEventArgs that contains the event data. """ pass def on_item_activate(self, *args): """ OnItemActivate(self: ListView,e: EventArgs) Raises the System.Windows.Forms.ListView.ItemActivate event. e: An System.EventArgs that contains the event data. """ pass def on_item_check(self, *args): """ OnItemCheck(self: ListView,ice: ItemCheckEventArgs) Raises the System.Windows.Forms.ListView.ItemCheck event. ice: An System.Windows.Forms.ItemCheckEventArgs that contains the event data. """ pass def on_item_checked(self, *args): """ OnItemChecked(self: ListView,e: ItemCheckedEventArgs) Raises the System.Windows.Forms.ListView.ItemChecked event. e: An System.Windows.Forms.ItemCheckedEventArgs that contains the event data. """ pass def on_item_drag(self, *args): """ OnItemDrag(self: ListView,e: ItemDragEventArgs) Raises the System.Windows.Forms.ListView.ItemDrag event. e: An System.Windows.Forms.ItemDragEventArgs that contains the event data. """ pass def on_item_mouse_hover(self, *args): """ OnItemMouseHover(self: ListView,e: ListViewItemMouseHoverEventArgs) Raises the System.Windows.Forms.ListView.ItemMouseHover event. e: A System.Windows.Forms.ListViewItemMouseHoverEventArgs that contains the event data. """ pass def on_item_selection_changed(self, *args): """ OnItemSelectionChanged(self: ListView,e: ListViewItemSelectionChangedEventArgs) Raises the System.Windows.Forms.ListView.ItemSelectionChanged event. e: A System.Windows.Forms.ListViewItemSelectionChangedEventArgs that contains the event data. """ pass def on_key_down(self, *args): """ OnKeyDown(self: Control,e: KeyEventArgs) Raises the System.Windows.Forms.Control.KeyDown event. e: A System.Windows.Forms.KeyEventArgs that contains the event data. """ pass def on_key_press(self, *args): """ OnKeyPress(self: Control,e: KeyPressEventArgs) Raises the System.Windows.Forms.Control.KeyPress event. e: A System.Windows.Forms.KeyPressEventArgs that contains the event data. """ pass def on_key_up(self, *args): """ OnKeyUp(self: Control,e: KeyEventArgs) Raises the System.Windows.Forms.Control.KeyUp event. e: A System.Windows.Forms.KeyEventArgs that contains the event data. """ pass def on_layout(self, *args): """ OnLayout(self: Control,levent: LayoutEventArgs) Raises the System.Windows.Forms.Control.Layout event. levent: A System.Windows.Forms.LayoutEventArgs that contains the event data. """ pass def on_leave(self, *args): """ OnLeave(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.Leave event. e: An System.EventArgs that contains the event data. """ pass def on_location_changed(self, *args): """ OnLocationChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.LocationChanged event. e: An System.EventArgs that contains the event data. """ pass def on_lost_focus(self, *args): """ OnLostFocus(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.LostFocus event. e: An System.EventArgs that contains the event data. """ pass def on_margin_changed(self, *args): """ OnMarginChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.MarginChanged event. e: A System.EventArgs that contains the event data. """ pass def on_mouse_capture_changed(self, *args): """ OnMouseCaptureChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.MouseCaptureChanged event. e: An System.EventArgs that contains the event data. """ pass def on_mouse_click(self, *args): """ OnMouseClick(self: Control,e: MouseEventArgs) Raises the System.Windows.Forms.Control.MouseClick event. e: An System.Windows.Forms.MouseEventArgs that contains the event data. """ pass def on_mouse_double_click(self, *args): """ OnMouseDoubleClick(self: Control,e: MouseEventArgs) Raises the System.Windows.Forms.Control.MouseDoubleClick event. e: An System.Windows.Forms.MouseEventArgs that contains the event data. """ pass def on_mouse_down(self, *args): """ OnMouseDown(self: Control,e: MouseEventArgs) Raises the System.Windows.Forms.Control.MouseDown event. e: A System.Windows.Forms.MouseEventArgs that contains the event data. """ pass def on_mouse_enter(self, *args): """ OnMouseEnter(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.MouseEnter event. e: An System.EventArgs that contains the event data. """ pass def on_mouse_hover(self, *args): """ OnMouseHover(self: ListView,e: EventArgs) Raises the System.Windows.Forms.Control.MouseHover event. e: An System.EventArgs that contains the event data. """ pass def on_mouse_leave(self, *args): """ OnMouseLeave(self: ListView,e: EventArgs) e: An System.EventArgs that contains the event data. """ pass def on_mouse_move(self, *args): """ OnMouseMove(self: Control,e: MouseEventArgs) Raises the System.Windows.Forms.Control.MouseMove event. e: A System.Windows.Forms.MouseEventArgs that contains the event data. """ pass def on_mouse_up(self, *args): """ OnMouseUp(self: Control,e: MouseEventArgs) Raises the System.Windows.Forms.Control.MouseUp event. e: A System.Windows.Forms.MouseEventArgs that contains the event data. """ pass def on_mouse_wheel(self, *args): """ OnMouseWheel(self: Control,e: MouseEventArgs) Raises the System.Windows.Forms.Control.MouseWheel event. e: A System.Windows.Forms.MouseEventArgs that contains the event data. """ pass def on_move(self, *args): """ OnMove(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.Move event. e: An System.EventArgs that contains the event data. """ pass def on_notify_message(self, *args): """ OnNotifyMessage(self: Control,m: Message) Notifies the control of Windows messages. m: A System.Windows.Forms.Message that represents the Windows message. """ pass def on_padding_changed(self, *args): """ OnPaddingChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.PaddingChanged event. e: A System.EventArgs that contains the event data. """ pass def on_paint(self, *args): """ OnPaint(self: Control,e: PaintEventArgs) Raises the System.Windows.Forms.Control.Paint event. e: A System.Windows.Forms.PaintEventArgs that contains the event data. """ pass def on_paint_background(self, *args): """ OnPaintBackground(self: Control,pevent: PaintEventArgs) Paints the background of the control. pevent: A System.Windows.Forms.PaintEventArgs that contains information about the control to paint. """ pass def on_parent_back_color_changed(self, *args): """ OnParentBackColorChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.BackColorChanged event when the System.Windows.Forms.Control.BackColor property value of the control's container changes. e: An System.EventArgs that contains the event data. """ pass def on_parent_background_image_changed(self, *args): """ OnParentBackgroundImageChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.BackgroundImageChanged event when the System.Windows.Forms.Control.BackgroundImage property value of the control's container changes. e: An System.EventArgs that contains the event data. """ pass def on_parent_binding_context_changed(self, *args): """ OnParentBindingContextChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.BindingContextChanged event when the System.Windows.Forms.Control.BindingContext property value of the control's container changes. e: An System.EventArgs that contains the event data. """ pass def on_parent_changed(self, *args): """ OnParentChanged(self: ListView,e: EventArgs) e: An System.EventArgs that contains the event data. """ pass def on_parent_cursor_changed(self, *args): """ OnParentCursorChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.CursorChanged event. e: An System.EventArgs that contains the event data. """ pass def on_parent_enabled_changed(self, *args): """ OnParentEnabledChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.EnabledChanged event when the System.Windows.Forms.Control.Enabled property value of the control's container changes. e: An System.EventArgs that contains the event data. """ pass def on_parent_font_changed(self, *args): """ OnParentFontChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.FontChanged event when the System.Windows.Forms.Control.Font property value of the control's container changes. e: An System.EventArgs that contains the event data. """ pass def on_parent_fore_color_changed(self, *args): """ OnParentForeColorChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.ForeColorChanged event when the System.Windows.Forms.Control.ForeColor property value of the control's container changes. e: An System.EventArgs that contains the event data. """ pass def on_parent_right_to_left_changed(self, *args): """ OnParentRightToLeftChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.RightToLeftChanged event when the System.Windows.Forms.Control.RightToLeft property value of the control's container changes. e: An System.EventArgs that contains the event data. """ pass def on_parent_visible_changed(self, *args): """ OnParentVisibleChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.VisibleChanged event when the System.Windows.Forms.Control.Visible property value of the control's container changes. e: An System.EventArgs that contains the event data. """ pass def on_preview_key_down(self, *args): """ OnPreviewKeyDown(self: Control,e: PreviewKeyDownEventArgs) Raises the System.Windows.Forms.Control.PreviewKeyDown event. e: A System.Windows.Forms.PreviewKeyDownEventArgs that contains the event data. """ pass def on_print(self, *args): """ OnPrint(self: Control,e: PaintEventArgs) Raises the System.Windows.Forms.Control.Paint event. e: A System.Windows.Forms.PaintEventArgs that contains the event data. """ pass def on_query_continue_drag(self, *args): """ OnQueryContinueDrag(self: Control,qcdevent: QueryContinueDragEventArgs) Raises the System.Windows.Forms.Control.QueryContinueDrag event. qcdevent: A System.Windows.Forms.QueryContinueDragEventArgs that contains the event data. """ pass def on_region_changed(self, *args): """ OnRegionChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.RegionChanged event. e: An System.EventArgs that contains the event data. """ pass def on_resize(self, *args): """ OnResize(self: ListView,e: EventArgs) e: An System.EventArgs that contains the event data. """ pass def on_retrieve_virtual_item(self, *args): """ OnRetrieveVirtualItem(self: ListView,e: RetrieveVirtualItemEventArgs) Raises the System.Windows.Forms.ListView.RetrieveVirtualItem event. e: A System.Windows.Forms.RetrieveVirtualItemEventArgs that contains the event data. """ pass def on_right_to_left_changed(self, *args): """ OnRightToLeftChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.RightToLeftChanged event. e: An System.EventArgs that contains the event data. """ pass def on_right_to_left_layout_changed(self, *args): """ OnRightToLeftLayoutChanged(self: ListView,e: EventArgs) Raises the System.Windows.Forms.ListView.RightToLeftLayoutChanged event. e: An System.EventArgs that contains the event data. """ pass def on_search_for_virtual_item(self, *args): """ OnSearchForVirtualItem(self: ListView,e: SearchForVirtualItemEventArgs) Raises the System.Windows.Forms.ListView.SearchForVirtualItem event. e: A System.Windows.Forms.SearchForVirtualItemEventArgs that contains the event data. """ pass def on_selected_index_changed(self, *args): """ OnSelectedIndexChanged(self: ListView,e: EventArgs) Raises the System.Windows.Forms.ListView.SelectedIndexChanged event. e: An System.EventArgs that contains the event data. """ pass def on_size_changed(self, *args): """ OnSizeChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.SizeChanged event. e: An System.EventArgs that contains the event data. """ pass def on_style_changed(self, *args): """ OnStyleChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.StyleChanged event. e: An System.EventArgs that contains the event data. """ pass def on_system_colors_changed(self, *args): """ OnSystemColorsChanged(self: ListView,e: EventArgs) e: An System.EventArgs that contains the event data. """ pass def on_tab_index_changed(self, *args): """ OnTabIndexChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.TabIndexChanged event. e: An System.EventArgs that contains the event data. """ pass def on_tab_stop_changed(self, *args): """ OnTabStopChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.TabStopChanged event. e: An System.EventArgs that contains the event data. """ pass def on_text_changed(self, *args): """ OnTextChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.TextChanged event. e: An System.EventArgs that contains the event data. """ pass def on_validated(self, *args): """ OnValidated(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.Validated event. e: An System.EventArgs that contains the event data. """ pass def on_validating(self, *args): """ OnValidating(self: Control,e: CancelEventArgs) Raises the System.Windows.Forms.Control.Validating event. e: A System.ComponentModel.CancelEventArgs that contains the event data. """ pass def on_virtual_items_selection_range_changed(self, *args): """ OnVirtualItemsSelectionRangeChanged(self: ListView,e: ListViewVirtualItemsSelectionRangeChangedEventArgs) Raises the System.Windows.Forms.ListView.VirtualItemsSelectionRangeChanged event. e: A System.Windows.Forms.ListViewVirtualItemsSelectionRangeChangedEventArgs that contains the event data. """ pass def on_visible_changed(self, *args): """ OnVisibleChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.VisibleChanged event. e: An System.EventArgs that contains the event data. """ pass def process_cmd_key(self, *args): """ ProcessCmdKey(self: Control,msg: Message,keyData: Keys) -> (bool,Message) Processes a command key. msg: A System.Windows.Forms.Message,passed by reference,that represents the window message to process. keyData: One of the System.Windows.Forms.Keys values that represents the key to process. Returns: true if the character was processed by the control; otherwise,false. """ pass def process_dialog_char(self, *args): """ ProcessDialogChar(self: Control,charCode: Char) -> bool Processes a dialog character. charCode: The character to process. Returns: true if the character was processed by the control; otherwise,false. """ pass def process_dialog_key(self, *args): """ ProcessDialogKey(self: Control,keyData: Keys) -> bool Processes a dialog key. keyData: One of the System.Windows.Forms.Keys values that represents the key to process. Returns: true if the key was processed by the control; otherwise,false. """ pass def process_key_event_args(self, *args): """ ProcessKeyEventArgs(self: Control,m: Message) -> (bool,Message) Processes a key message and generates the appropriate control events. m: A System.Windows.Forms.Message,passed by reference,that represents the window message to process. Returns: true if the message was processed by the control; otherwise,false. """ pass def process_key_message(self, *args): """ ProcessKeyMessage(self: Control,m: Message) -> (bool,Message) Processes a keyboard message. m: A System.Windows.Forms.Message,passed by reference,that represents the window message to process. Returns: true if the message was processed by the control; otherwise,false. """ pass def process_key_preview(self, *args): """ ProcessKeyPreview(self: Control,m: Message) -> (bool,Message) Previews a keyboard message. m: A System.Windows.Forms.Message,passed by reference,that represents the window message to process. Returns: true if the message was processed by the control; otherwise,false. """ pass def process_mnemonic(self, *args): """ ProcessMnemonic(self: Control,charCode: Char) -> bool Processes a mnemonic character. charCode: The character to process. Returns: true if the character was processed as a mnemonic by the control; otherwise,false. """ pass def raise_drag_event(self, *args): """ RaiseDragEvent(self: Control,key: object,e: DragEventArgs) Raises the appropriate drag event. key: The event to raise. e: A System.Windows.Forms.DragEventArgs that contains the event data. """ pass def raise_key_event(self, *args): """ RaiseKeyEvent(self: Control,key: object,e: KeyEventArgs) Raises the appropriate key event. key: The event to raise. e: A System.Windows.Forms.KeyEventArgs that contains the event data. """ pass def raise_mouse_event(self, *args): """ RaiseMouseEvent(self: Control,key: object,e: MouseEventArgs) Raises the appropriate mouse event. key: The event to raise. e: A System.Windows.Forms.MouseEventArgs that contains the event data. """ pass def raise_paint_event(self, *args): """ RaisePaintEvent(self: Control,key: object,e: PaintEventArgs) Raises the appropriate paint event. key: The event to raise. e: A System.Windows.Forms.PaintEventArgs that contains the event data. """ pass def realize_properties(self, *args): """ RealizeProperties(self: ListView) Initializes the properties of the System.Windows.Forms.ListView control that manage the appearance of the control. """ pass def recreate_handle(self, *args): """ RecreateHandle(self: Control) Forces the re-creation of the handle for the control. """ pass def redraw_items(self, startIndex, endIndex, invalidateOnly): """ RedrawItems(self: ListView,startIndex: int,endIndex: int,invalidateOnly: bool) Forces a range of System.Windows.Forms.ListViewItem objects to be redrawn. startIndex: The index for the first item in the range to be redrawn. endIndex: The index for the last item of the range to be redrawn. invalidateOnly: true to invalidate the range of items; false to invalidate and repaint the items. """ pass def rescale_constants_for_dpi(self, *args): """ RescaleConstantsForDpi(self: Control,deviceDpiOld: int,deviceDpiNew: int) """ pass def reset_mouse_event_args(self, *args): """ ResetMouseEventArgs(self: Control) Resets the control to handle the System.Windows.Forms.Control.MouseLeave event. """ pass def rtl_translate_alignment(self, *args): """ RtlTranslateAlignment(self: Control,align: ContentAlignment) -> ContentAlignment Converts the specified System.Drawing.ContentAlignment to the appropriate System.Drawing.ContentAlignment to support right-to-left text. align: One of the System.Drawing.ContentAlignment values. Returns: One of the System.Drawing.ContentAlignment values. RtlTranslateAlignment(self: Control,align: LeftRightAlignment) -> LeftRightAlignment Converts the specified System.Windows.Forms.LeftRightAlignment to the appropriate System.Windows.Forms.LeftRightAlignment to support right-to-left text. align: One of the System.Windows.Forms.LeftRightAlignment values. Returns: One of the System.Windows.Forms.LeftRightAlignment values. RtlTranslateAlignment(self: Control,align: HorizontalAlignment) -> HorizontalAlignment Converts the specified System.Windows.Forms.HorizontalAlignment to the appropriate System.Windows.Forms.HorizontalAlignment to support right-to-left text. align: One of the System.Windows.Forms.HorizontalAlignment values. Returns: One of the System.Windows.Forms.HorizontalAlignment values. """ pass def rtl_translate_content(self, *args): """ RtlTranslateContent(self: Control,align: ContentAlignment) -> ContentAlignment Converts the specified System.Drawing.ContentAlignment to the appropriate System.Drawing.ContentAlignment to support right-to-left text. align: One of the System.Drawing.ContentAlignment values. Returns: One of the System.Drawing.ContentAlignment values. """ pass def rtl_translate_horizontal(self, *args): """ RtlTranslateHorizontal(self: Control,align: HorizontalAlignment) -> HorizontalAlignment Converts the specified System.Windows.Forms.HorizontalAlignment to the appropriate System.Windows.Forms.HorizontalAlignment to support right-to-left text. align: One of the System.Windows.Forms.HorizontalAlignment values. Returns: One of the System.Windows.Forms.HorizontalAlignment values. """ pass def rtl_translate_left_right(self, *args): """ RtlTranslateLeftRight(self: Control,align: LeftRightAlignment) -> LeftRightAlignment Converts the specified System.Windows.Forms.LeftRightAlignment to the appropriate System.Windows.Forms.LeftRightAlignment to support right-to-left text. align: One of the System.Windows.Forms.LeftRightAlignment values. Returns: One of the System.Windows.Forms.LeftRightAlignment values. """ pass def scale_control(self, *args): """ ScaleControl(self: Control,factor: SizeF,specified: BoundsSpecified) Scales a control's location,size,padding and margin. factor: The factor by which the height and width of the control will be scaled. specified: A System.Windows.Forms.BoundsSpecified value that specifies the bounds of the control to use when defining its size and position. """ pass def scale_core(self, *args): """ ScaleCore(self: Control,dx: Single,dy: Single) This method is not relevant for this class. dx: The horizontal scaling factor. dy: The vertical scaling factor. """ pass def select(self): """ Select(self: Control,directed: bool,forward: bool) Activates a child control. Optionally specifies the direction in the tab order to select the control from. directed: true to specify the direction of the control to select; otherwise,false. forward: true to move forward in the tab order; false to move backward in the tab order. """ pass def set_auto_size_mode(self, *args): """ SetAutoSizeMode(self: Control,mode: AutoSizeMode) Sets a value indicating how a control will behave when its System.Windows.Forms.Control.AutoSize property is enabled. mode: One of the System.Windows.Forms.AutoSizeMode values. """ pass def set_bounds_core(self, *args): """ SetBoundsCore(self: Control,x: int,y: int,width: int,height: int,specified: BoundsSpecified) Performs the work of setting the specified bounds of this control. x: The new System.Windows.Forms.Control.Left property value of the control. y: The new System.Windows.Forms.Control.Top property value of the control. width: The new System.Windows.Forms.Control.Width property value of the control. height: The new System.Windows.Forms.Control.Height property value of the control. specified: A bitwise combination of the System.Windows.Forms.BoundsSpecified values. """ pass def set_client_size_core(self, *args): """ SetClientSizeCore(self: Control,x: int,y: int) Sets the size of the client area of the control. x: The client area width,in pixels. y: The client area height,in pixels. """ pass def set_style(self, *args): """ SetStyle(self: Control,flag: ControlStyles,value: bool) Sets a specified System.Windows.Forms.ControlStyles flag to either true or false. flag: The System.Windows.Forms.ControlStyles bit to set. value: true to apply the specified style to the control; otherwise,false. """ pass def set_top_level(self, *args): """ SetTopLevel(self: Control,value: bool) Sets the control as the top-level control. value: true to set the control as the top-level control; otherwise,false. """ pass def set_visible_core(self, *args): """ SetVisibleCore(self: Control,value: bool) Sets the control to the specified visible state. value: true to make the control visible; otherwise,false. """ pass def size_from_client_size(self, *args): """ SizeFromClientSize(self: Control,clientSize: Size) -> Size Determines the size of the entire control from the height and width of its client area. clientSize: A System.Drawing.Size value representing the height and width of the control's client area. Returns: A System.Drawing.Size value representing the height and width of the entire control. """ pass def sort(self): """ Sort(self: ListView) Sorts the items of the list view. """ pass def to_string(self): """ ToString(self: ListView) -> str Returns a string representation of the System.Windows.Forms.ListView control. Returns: A string that states the control type,the count of items in the System.Windows.Forms.ListView control,and the type of the first item in the System.Windows.Forms.ListView,if the count is not 0. """ pass def update_bounds(self, *args): """ UpdateBounds(self: Control,x: int,y: int,width: int,height: int,clientWidth: int,clientHeight: int) Updates the bounds of the control with the specified size,location,and client size. x: The System.Drawing.Point.X coordinate of the control. y: The System.Drawing.Point.Y coordinate of the control. width: The System.Drawing.Size.Width of the control. height: The System.Drawing.Size.Height of the control. clientWidth: The client System.Drawing.Size.Width of the control. clientHeight: The client System.Drawing.Size.Height of the control. UpdateBounds(self: Control,x: int,y: int,width: int,height: int) Updates the bounds of the control with the specified size and location. x: The System.Drawing.Point.X coordinate of the control. y: The System.Drawing.Point.Y coordinate of the control. width: The System.Drawing.Size.Width of the control. height: The System.Drawing.Size.Height of the control. UpdateBounds(self: Control) Updates the bounds of the control with the current size and location. """ pass def update_extended_styles(self, *args): """ UpdateExtendedStyles(self: ListView) Updates the extended styles applied to the list view control. """ pass def update_styles(self, *args): """ UpdateStyles(self: Control) Forces the assigned styles to be reapplied to the control. """ pass def update_z_order(self, *args): """ UpdateZOrder(self: Control) Updates the control in its parent's z-order. """ pass def wnd_proc(self, *args): """ WndProc(self: ListView,m: Message) -> Message Overrides System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message@). m: The Windows System.Windows.Forms.Message to process. """ pass def __enter__(self, *args): """ __enter__(self: IDisposable) -> object Provides the implementation of __enter__ for objects which implement IDisposable. """ pass def __exit__(self, *args): """ __exit__(self: IDisposable,exc_type: object,exc_value: object,exc_back: object) Provides the implementation of __exit__ for objects which implement IDisposable. """ pass def __init__(self, *args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass def __str__(self, *args): pass activation = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets the type of action the user must take to activate an item.\n\n\n\nGet: Activation(self: ListView) -> ItemActivation\n\n\n\nSet: Activation(self: ListView)=value\n\n' alignment = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets the alignment of items in the control.\n\n\n\nGet: Alignment(self: ListView) -> ListViewAlignment\n\n\n\nSet: Alignment(self: ListView)=value\n\n' allow_column_reorder = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets a value indicating whether the user can drag column headers to reorder columns in the control.\n\n\n\nGet: AllowColumnReorder(self: ListView) -> bool\n\n\n\nSet: AllowColumnReorder(self: ListView)=value\n\n' auto_arrange = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets whether icons are automatically kept arranged.\n\n\n\nGet: AutoArrange(self: ListView) -> bool\n\n\n\nSet: AutoArrange(self: ListView)=value\n\n' back_color = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets the background color.\n\n\n\nGet: BackColor(self: ListView) -> Color\n\n\n\nSet: BackColor(self: ListView)=value\n\n' background_image_layout = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets an System.Windows.Forms.ImageLayout value.\n\n\n\nGet: BackgroundImageLayout(self: ListView) -> ImageLayout\n\n\n\nSet: BackgroundImageLayout(self: ListView)=value\n\n' background_image_tiled = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets a value indicating whether the background image of the System.Windows.Forms.ListView should be tiled.\n\n\n\nGet: BackgroundImageTiled(self: ListView) -> bool\n\n\n\nSet: BackgroundImageTiled(self: ListView)=value\n\n' border_style = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets the border style of the control.\n\n\n\nGet: BorderStyle(self: ListView) -> BorderStyle\n\n\n\nSet: BorderStyle(self: ListView)=value\n\n' can_enable_ime = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets a value indicating whether the System.Windows.Forms.Control.ImeMode property can be set to an active value,to enable IME support.\n\n\n\n' can_raise_events = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Determines if events can be raised on the control.\n\n\n\n' check_boxes = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets a value indicating whether a check box appears next to each item in the control.\n\n\n\nGet: CheckBoxes(self: ListView) -> bool\n\n\n\nSet: CheckBoxes(self: ListView)=value\n\n' checked_indices = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the indexes of the currently checked items in the control.\n\n\n\nGet: CheckedIndices(self: ListView) -> CheckedIndexCollection\n\n\n\n' checked_items = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the currently checked items in the control.\n\n\n\nGet: CheckedItems(self: ListView) -> CheckedListViewItemCollection\n\n\n\n' columns = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the collection of all column headers that appear in the control.\n\n\n\nGet: Columns(self: ListView) -> ColumnHeaderCollection\n\n\n\n' create_params = property(lambda self: object(), lambda self, v: None, lambda self: None) 'This property is not relevant for this class.\n\n\n\n' default_cursor = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets the default cursor for the control.\n\n\n\n' default_ime_mode = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the default Input Method Editor (IME) mode supported by the control.\n\n\n\n' default_margin = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the space,in pixels,that is specified by default between controls.\n\n\n\n' default_maximum_size = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the length and height,in pixels,that is specified as the default maximum size of a control.\n\n\n\n' default_minimum_size = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the length and height,in pixels,that is specified as the default minimum size of a control.\n\n\n\n' default_padding = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the internal spacing,in pixels,of the contents of a control.\n\n\n\n' default_size = property(lambda self: object(), lambda self, v: None, lambda self: None) design_mode = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets a value that indicates whether the System.ComponentModel.Component is currently in design mode.\n\n\n\n' double_buffered = property(lambda self: object(), lambda self, v: None, lambda self: None) events = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the list of event handlers that are attached to this System.ComponentModel.Component.\n\n\n\n' focused_item = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets the item in the control that currently has focus.\n\n\n\nGet: FocusedItem(self: ListView) -> ListViewItem\n\n\n\nSet: FocusedItem(self: ListView)=value\n\n' font_height = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets the height of the font of the control.\n\n\n\n' fore_color = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets the foreground color.\n\n\n\nGet: ForeColor(self: ListView) -> Color\n\n\n\nSet: ForeColor(self: ListView)=value\n\n' full_row_select = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets a value indicating whether clicking an item selects all its subitems.\n\n\n\nGet: FullRowSelect(self: ListView) -> bool\n\n\n\nSet: FullRowSelect(self: ListView)=value\n\n' grid_lines = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets a value indicating whether grid lines appear between the rows and columns containing the items and subitems in the control.\n\n\n\nGet: GridLines(self: ListView) -> bool\n\n\n\nSet: GridLines(self: ListView)=value\n\n' groups = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the collection of System.Windows.Forms.ListViewGroup objects assigned to the control.\n\n\n\nGet: Groups(self: ListView) -> ListViewGroupCollection\n\n\n\n' header_style = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets the column header style.\n\n\n\nGet: HeaderStyle(self: ListView) -> ColumnHeaderStyle\n\n\n\nSet: HeaderStyle(self: ListView)=value\n\n' hide_selection = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets a value indicating whether the selected item in the control remains highlighted when the control loses focus.\n\n\n\nGet: HideSelection(self: ListView) -> bool\n\n\n\nSet: HideSelection(self: ListView)=value\n\n' hot_tracking = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets a value indicating whether the text of an item or subitem has the appearance of a hyperlink when the mouse pointer passes over it.\n\n\n\nGet: HotTracking(self: ListView) -> bool\n\n\n\nSet: HotTracking(self: ListView)=value\n\n' hover_selection = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets a value indicating whether an item is automatically selected when the mouse pointer remains over the item for a few seconds.\n\n\n\nGet: HoverSelection(self: ListView) -> bool\n\n\n\nSet: HoverSelection(self: ListView)=value\n\n' ime_mode_base = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets the IME mode of a control.\n\n\n\n' insertion_mark = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets an object used to indicate the expected drop location when an item is dragged within a System.Windows.Forms.ListView control.\n\n\n\nGet: InsertionMark(self: ListView) -> ListViewInsertionMark\n\n\n\n' items = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets a collection containing all items in the control.\n\n\n\nGet: Items(self: ListView) -> ListViewItemCollection\n\n\n\n' label_edit = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets a value indicating whether the user can edit the labels of items in the control.\n\n\n\nGet: LabelEdit(self: ListView) -> bool\n\n\n\nSet: LabelEdit(self: ListView)=value\n\n' label_wrap = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets a value indicating whether item labels wrap when items are displayed in the control as icons.\n\n\n\nGet: LabelWrap(self: ListView) -> bool\n\n\n\nSet: LabelWrap(self: ListView)=value\n\n' large_image_list = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets the System.Windows.Forms.ImageList to use when displaying items as large icons in the control.\n\n\n\nGet: LargeImageList(self: ListView) -> ImageList\n\n\n\nSet: LargeImageList(self: ListView)=value\n\n' list_view_item_sorter = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets the sorting comparer for the control.\n\n\n\nGet: ListViewItemSorter(self: ListView) -> IComparer\n\n\n\nSet: ListViewItemSorter(self: ListView)=value\n\n' multi_select = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets a value indicating whether multiple items can be selected.\n\n\n\nGet: MultiSelect(self: ListView) -> bool\n\n\n\nSet: MultiSelect(self: ListView)=value\n\n' owner_draw = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets a value indicating whether the System.Windows.Forms.ListView control is drawn by the operating system or by code that you provide.\n\n\n\nGet: OwnerDraw(self: ListView) -> bool\n\n\n\nSet: OwnerDraw(self: ListView)=value\n\n' padding = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets the space between the System.Windows.Forms.ListView control and its contents.\n\n\n\nGet: Padding(self: ListView) -> Padding\n\n\n\nSet: Padding(self: ListView)=value\n\n' render_right_to_left = property(lambda self: object(), lambda self, v: None, lambda self: None) 'This property is now obsolete.\n\n\n\n' resize_redraw = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets a value indicating whether the control redraws itself when resized.\n\n\n\n' right_to_left_layout = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets a value indicating whether the control is laid out from right to left.\n\n\n\nGet: RightToLeftLayout(self: ListView) -> bool\n\n\n\nSet: RightToLeftLayout(self: ListView)=value\n\n' scale_children = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets a value that determines the scaling of child controls.\n\n\n\n' scrollable = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets a value indicating whether a scroll bar is added to the control when there is not enough room to display all items.\n\n\n\nGet: Scrollable(self: ListView) -> bool\n\n\n\nSet: Scrollable(self: ListView)=value\n\n' selected_indices = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the indexes of the selected items in the control.\n\n\n\nGet: SelectedIndices(self: ListView) -> SelectedIndexCollection\n\n\n\n' selected_items = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the items that are selected in the control.\n\n\n\nGet: SelectedItems(self: ListView) -> SelectedListViewItemCollection\n\n\n\n' show_focus_cues = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets a value indicating whether the control should display focus rectangles.\n\n\n\n' show_groups = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets a value indicating whether items are displayed in groups.\n\n\n\nGet: ShowGroups(self: ListView) -> bool\n\n\n\nSet: ShowGroups(self: ListView)=value\n\n' show_item_tool_tips = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets a value indicating whether ToolTips are shown for the System.Windows.Forms.ListViewItem objects contained in the System.Windows.Forms.ListView.\n\n\n\nGet: ShowItemToolTips(self: ListView) -> bool\n\n\n\nSet: ShowItemToolTips(self: ListView)=value\n\n' show_keyboard_cues = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets a value indicating whether the user interface is in the appropriate state to show or hide keyboard accelerators.\n\n\n\n' small_image_list = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets the System.Windows.Forms.ImageList to use when displaying items as small icons in the control.\n\n\n\nGet: SmallImageList(self: ListView) -> ImageList\n\n\n\nSet: SmallImageList(self: ListView)=value\n\n' sorting = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets the sort order for items in the control.\n\n\n\nGet: Sorting(self: ListView) -> SortOrder\n\n\n\nSet: Sorting(self: ListView)=value\n\n' state_image_list = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets the System.Windows.Forms.ImageList associated with application-defined states in the control.\n\n\n\nGet: StateImageList(self: ListView) -> ImageList\n\n\n\nSet: StateImageList(self: ListView)=value\n\n' text = property(lambda self: object(), lambda self, v: None, lambda self: None) 'This property is not relevant for this class.\n\n\n\nGet: Text(self: ListView) -> str\n\n\n\nSet: Text(self: ListView)=value\n\n' tile_size = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets the size of the tiles shown in tile view.\n\n\n\nGet: TileSize(self: ListView) -> Size\n\n\n\nSet: TileSize(self: ListView)=value\n\n' top_item = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets the first visible item in the control.\n\n\n\nGet: TopItem(self: ListView) -> ListViewItem\n\n\n\nSet: TopItem(self: ListView)=value\n\n' use_compatible_state_image_behavior = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets a value indicating whether the System.Windows.Forms.ListView uses state image behavior that is compatible with the .NET Framework 1.1 or the .NET Framework 2.0.\n\n\n\nGet: UseCompatibleStateImageBehavior(self: ListView) -> bool\n\n\n\nSet: UseCompatibleStateImageBehavior(self: ListView)=value\n\n' view = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets how items are displayed in the control.\n\n\n\nGet: View(self: ListView) -> View\n\n\n\nSet: View(self: ListView)=value\n\n' virtual_list_size = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets the number of System.Windows.Forms.ListViewItem objects contained in the list when in virtual mode.\n\n\n\nGet: VirtualListSize(self: ListView) -> int\n\n\n\nSet: VirtualListSize(self: ListView)=value\n\n' virtual_mode = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets a value indicating whether you have provided your own data-management operations for the System.Windows.Forms.ListView control.\n\n\n\nGet: VirtualMode(self: ListView) -> bool\n\n\n\nSet: VirtualMode(self: ListView)=value\n\n' after_label_edit = None background_image_layout_changed = None before_label_edit = None cache_virtual_items = None checked_index_collection = None checked_list_view_item_collection = None column_click = None column_header_collection = None column_reordered = None column_width_changed = None column_width_changing = None draw_column_header = None draw_item = None draw_sub_item = None item_activate = None item_check = None item_checked = None item_drag = None item_mouse_hover = None item_selection_changed = None list_view_item_collection = None padding_changed = None paint = None retrieve_virtual_item = None right_to_left_layout_changed = None search_for_virtual_item = None selected_index_changed = None selected_index_collection = None selected_list_view_item_collection = None text_changed = None virtual_items_selection_range_changed = None
# -*- coding: utf-8 -*- ## courses table Course = db.define_table("courses", Field("title", label=T('Title')), Field("short_description", "text", label=T('Short Description')), Field("description", "text", widget=ckeditor.widget, label=T('Description')), Field("price", "float", default=0, label=T('Price')), Field("discount", "float", default=0, label=T('Discount')), Field("max_students", "integer", default=10, label=T('Max Students')), Field("total_hours", "integer", default=10, label=T('Total Hours')), Field("banner", "upload", label=T('Banner')), Field("icon", "upload", label=T('Icon')), Field("course_owner", "reference auth_user", label=T('Owner')) ) ## classes table Class = db.define_table("classes", Field("course", "reference courses", label=T('Course')), Field("start_date", "date", label=T('Start Date')), Field("end_date", "date", label=T('End Date')), Field("available_until", "date", label=T('Available Until')), Field("status", label=T('Status')) ) ## students table Student = db.define_table("students", Field("student", "reference auth_user", label=T('Student')), Field("class_id", "reference classes", label=T('Class Id')) ) ## modules table Module = db.define_table("modules", Field("title", label=T('Title')), Field("description", "text", widget=ckeditor.widget, label=T('Description')), Field("place", "integer", label=T('Place')), Field("course_id", "reference courses", label=T('Course Id')) ) ## single lesson table Lesson = db.define_table("lessons", Field("title", label=T('Title')), Field("lesson_module", "reference modules", label=T('Module')), Field("place", "integer", label=T('Place')) ) ## schedule lessons table Schedule_Lesson = db.define_table("schedule_lessons", Field("lesson_id", "reference lessons", label=T('Lesson Id')), Field("class_id", "reference classes", label=T('Class Id')), Field("release_date", "date", label=T('Release Date')) ) ## video lesson table Video = db.define_table("videos", Field("video_url", label=T('Video URL')), Field("video_upload", "upload",label=T('Upload Video')), Field("place", "integer", label=T('Place')), Field("lesson", "reference lessons", label=T('Lesson')), Field("lesson_type", "integer", default=1, label=T('Lesson Type')) ) ## text lesson table Text = db.define_table("texts", Field("body", "text", widget=ckeditor.widget, label=T('Body')), Field("place", "integer", label=T('Place')), Field("lesson", "reference lessons", label=T('Lesson')), Field("lesson_type", "integer", default=2, label=T('Lesson Type')) ) ## exercise lesson table Exercise = db.define_table("exercises", Field("question", "text", widget=ckeditor.widget, label=T('Question')), Field("alternative_a", label=T('Alternative A')), Field("alternative_b", label=T('Alternative B')), Field("alternative_c", label=T('Alternative C')), Field("alternative_d", label=T('Alternative D')), Field("correct", "integer", label=T('Correct Alternative')), Field("place", "integer", label=T('Place')), Field("lesson", "reference lessons", label=T('Lesson')), Field("lesson_type", "integer", default=3, label=T('Lesson Type')) ) ## track lesson table Track = db.define_table("tracks", Field("user_id", "reference auth_user", label=T('User Id')), Field("user_class", "reference classes", label=T('User Class')), Field("lesson", "reference lessons", label=T('User Lesson')) ) ## calendar table Date = db.define_table("dates", Field("title", label=T('Title')), Field("marked_date", "date", label=T('Date')), Field("class_id", "reference classes", label=T('Class Id')) ) ## forum table Forum = db.define_table("forum", Field("title", label=T('Title')), Field("body", "text", widget=ckeditor.widget, label=T('Body')), Field("class_id", "reference classes", label=T('Class Id')), auth.signature ) ## forum comments table Comment = db.define_table("comments", Field("body", "text", widget=ckeditor.widget, label=T('Body')), Field("post", "reference forum", label=T('Post')), auth.signature ) ## course interest table Interest = db.define_table("interests", Field("email", label=T('E-mail')), Field("course", "reference courses", label=T('Course')), auth.signature ) ## teacher's announcement table Announcement = db.define_table("announcements", Field("title", label=T('Title')), Field("body", "text", widget=ckeditor.widget, label=T('Body')), Field("class_id", "reference classes", label=T('Class Id')) ) ## certificates' info Certificate = db.define_table("certificates", Field("bg_template", "upload", label=T('Template')), Field("class_id", "reference classes", label=T('Class Id')), Field("teacher_signature", "upload", label=T('Signature')) ) ###################### ### PAYMENT TABLES ### ###################### ## register user's orders Order = db.define_table('orders', Field('user_id', 'reference auth_user', label=T('User Id')), Field('order_date', 'datetime', label=T('Order Date')), Field('products', 'list:reference classes', label=T('Products')), Field('amount', 'double', label=T('Amount')), Field('status', label=T('Status')), Field('token', label=T('Token')) ) ## stores pending transactions to connect to payment services Pending = db.define_table('pending_transactions', Field('order_id', 'reference orders', label=T('Order Id')), Field('confirmed', 'boolean', default=False, label=T('Confirmed')), auth.signature ) ## stores confirmed transactions to register user's payments Confirmed = db.define_table('confirmed_transactions', Field('order_id', 'reference orders', label=T('Order Id')), Field('pending_id', 'reference pending_transactions', ondelete='SET NULL', label=T('Pending Id')), Field('confirmation_time', 'datetime', label=T('Confirmation Time')), auth.signature )
course = db.define_table('courses', field('title', label=t('Title')), field('short_description', 'text', label=t('Short Description')), field('description', 'text', widget=ckeditor.widget, label=t('Description')), field('price', 'float', default=0, label=t('Price')), field('discount', 'float', default=0, label=t('Discount')), field('max_students', 'integer', default=10, label=t('Max Students')), field('total_hours', 'integer', default=10, label=t('Total Hours')), field('banner', 'upload', label=t('Banner')), field('icon', 'upload', label=t('Icon')), field('course_owner', 'reference auth_user', label=t('Owner'))) class = db.define_table('classes', field('course', 'reference courses', label=t('Course')), field('start_date', 'date', label=t('Start Date')), field('end_date', 'date', label=t('End Date')), field('available_until', 'date', label=t('Available Until')), field('status', label=t('Status'))) student = db.define_table('students', field('student', 'reference auth_user', label=t('Student')), field('class_id', 'reference classes', label=t('Class Id'))) module = db.define_table('modules', field('title', label=t('Title')), field('description', 'text', widget=ckeditor.widget, label=t('Description')), field('place', 'integer', label=t('Place')), field('course_id', 'reference courses', label=t('Course Id'))) lesson = db.define_table('lessons', field('title', label=t('Title')), field('lesson_module', 'reference modules', label=t('Module')), field('place', 'integer', label=t('Place'))) schedule__lesson = db.define_table('schedule_lessons', field('lesson_id', 'reference lessons', label=t('Lesson Id')), field('class_id', 'reference classes', label=t('Class Id')), field('release_date', 'date', label=t('Release Date'))) video = db.define_table('videos', field('video_url', label=t('Video URL')), field('video_upload', 'upload', label=t('Upload Video')), field('place', 'integer', label=t('Place')), field('lesson', 'reference lessons', label=t('Lesson')), field('lesson_type', 'integer', default=1, label=t('Lesson Type'))) text = db.define_table('texts', field('body', 'text', widget=ckeditor.widget, label=t('Body')), field('place', 'integer', label=t('Place')), field('lesson', 'reference lessons', label=t('Lesson')), field('lesson_type', 'integer', default=2, label=t('Lesson Type'))) exercise = db.define_table('exercises', field('question', 'text', widget=ckeditor.widget, label=t('Question')), field('alternative_a', label=t('Alternative A')), field('alternative_b', label=t('Alternative B')), field('alternative_c', label=t('Alternative C')), field('alternative_d', label=t('Alternative D')), field('correct', 'integer', label=t('Correct Alternative')), field('place', 'integer', label=t('Place')), field('lesson', 'reference lessons', label=t('Lesson')), field('lesson_type', 'integer', default=3, label=t('Lesson Type'))) track = db.define_table('tracks', field('user_id', 'reference auth_user', label=t('User Id')), field('user_class', 'reference classes', label=t('User Class')), field('lesson', 'reference lessons', label=t('User Lesson'))) date = db.define_table('dates', field('title', label=t('Title')), field('marked_date', 'date', label=t('Date')), field('class_id', 'reference classes', label=t('Class Id'))) forum = db.define_table('forum', field('title', label=t('Title')), field('body', 'text', widget=ckeditor.widget, label=t('Body')), field('class_id', 'reference classes', label=t('Class Id')), auth.signature) comment = db.define_table('comments', field('body', 'text', widget=ckeditor.widget, label=t('Body')), field('post', 'reference forum', label=t('Post')), auth.signature) interest = db.define_table('interests', field('email', label=t('E-mail')), field('course', 'reference courses', label=t('Course')), auth.signature) announcement = db.define_table('announcements', field('title', label=t('Title')), field('body', 'text', widget=ckeditor.widget, label=t('Body')), field('class_id', 'reference classes', label=t('Class Id'))) certificate = db.define_table('certificates', field('bg_template', 'upload', label=t('Template')), field('class_id', 'reference classes', label=t('Class Id')), field('teacher_signature', 'upload', label=t('Signature'))) order = db.define_table('orders', field('user_id', 'reference auth_user', label=t('User Id')), field('order_date', 'datetime', label=t('Order Date')), field('products', 'list:reference classes', label=t('Products')), field('amount', 'double', label=t('Amount')), field('status', label=t('Status')), field('token', label=t('Token'))) pending = db.define_table('pending_transactions', field('order_id', 'reference orders', label=t('Order Id')), field('confirmed', 'boolean', default=False, label=t('Confirmed')), auth.signature) confirmed = db.define_table('confirmed_transactions', field('order_id', 'reference orders', label=t('Order Id')), field('pending_id', 'reference pending_transactions', ondelete='SET NULL', label=t('Pending Id')), field('confirmation_time', 'datetime', label=t('Confirmation Time')), auth.signature)
def get_encoder_decoder_hp(model='gin', decoder=None): if model == 'gin': model_hp = { "num_layers": 5, "hidden": [64,64,64,64], "dropout": 0.5, "act": "relu", "eps": "False", "mlp_layers": 2, "neighbor_pooling_type": "sum", } elif model == 'gat': model_hp = { # hp from model "num_layers": 2, "hidden": [8], "heads": 8, "dropout": 0.6, "act": "elu", } elif model == 'gcn': model_hp = { "num_layers": 2, "hidden": [16], "dropout": 0.5, "act": "relu" } elif model == 'sage': model_hp = { "num_layers": 2, "hidden": [64], "dropout": 0.5, "act": "relu", "agg": "mean", } elif model == 'topk': model_hp = { "num_layers": 5, "hidden": [64, 64, 64, 64] } if decoder is None: decoder_hp = { "hidden": 64, "dropout": 0.5, "act": "relu", "graph_pooling_type": "sum" } elif decoder == "JKSumPoolMLP": decoder_hp = { "dropout": 0.5, "graph_pooling_type": "sum" } elif decoder == "topk": decoder_hp = { "dropout": 0.5 } return model_hp, decoder_hp
def get_encoder_decoder_hp(model='gin', decoder=None): if model == 'gin': model_hp = {'num_layers': 5, 'hidden': [64, 64, 64, 64], 'dropout': 0.5, 'act': 'relu', 'eps': 'False', 'mlp_layers': 2, 'neighbor_pooling_type': 'sum'} elif model == 'gat': model_hp = {'num_layers': 2, 'hidden': [8], 'heads': 8, 'dropout': 0.6, 'act': 'elu'} elif model == 'gcn': model_hp = {'num_layers': 2, 'hidden': [16], 'dropout': 0.5, 'act': 'relu'} elif model == 'sage': model_hp = {'num_layers': 2, 'hidden': [64], 'dropout': 0.5, 'act': 'relu', 'agg': 'mean'} elif model == 'topk': model_hp = {'num_layers': 5, 'hidden': [64, 64, 64, 64]} if decoder is None: decoder_hp = {'hidden': 64, 'dropout': 0.5, 'act': 'relu', 'graph_pooling_type': 'sum'} elif decoder == 'JKSumPoolMLP': decoder_hp = {'dropout': 0.5, 'graph_pooling_type': 'sum'} elif decoder == 'topk': decoder_hp = {'dropout': 0.5} return (model_hp, decoder_hp)
class Solution: def canConstruct(self, ransomNote: str, magazine: str) -> bool: count_r={} for c in ransomNote: if c not in count_r: count_r[c]=1 else: count_r[c]+=1 print(count_r) for cr in magazine: if cr not in count_r or count_r[cr]==0: # print("entered") continue else: count_r[cr]-=1 print(count_r) x=sum(count_r.values()) print(x) if x==0: return 1 else: return 0
class Solution: def can_construct(self, ransomNote: str, magazine: str) -> bool: count_r = {} for c in ransomNote: if c not in count_r: count_r[c] = 1 else: count_r[c] += 1 print(count_r) for cr in magazine: if cr not in count_r or count_r[cr] == 0: continue else: count_r[cr] -= 1 print(count_r) x = sum(count_r.values()) print(x) if x == 0: return 1 else: return 0
BOTTLE_CONTENT_MANAGER_API_PORT = 8081 BOTTLE_DEORATOR_PORTFOLIOS_API_PORT = 8082 BOTTLE_DEORATOR_TAGS_API_PORT = 8083 BOTTLE_DEORATOR_VOTES_API_PORT = 8084 USE_SOLR_AS_PERSISTENCE = True SOLR_URL = 'http://localhost:8983/solr' DECORATION_SOLR_FIELD_0 = 'portfolios' DECORATION_SOLR_FIELD_1 = 'tags'
bottle_content_manager_api_port = 8081 bottle_deorator_portfolios_api_port = 8082 bottle_deorator_tags_api_port = 8083 bottle_deorator_votes_api_port = 8084 use_solr_as_persistence = True solr_url = 'http://localhost:8983/solr' decoration_solr_field_0 = 'portfolios' decoration_solr_field_1 = 'tags'
# keep a list of the N best things we have seen, discard anything else class nbest(object): def __init__(self,N=1000): self.store = [] self.N = N def add(self,item): self.store.append(item) self.store.sort(reverse=True) self.store = self.store[:self.N] def __getitem__(self,k): return self.store[k] def __len__(self): return len(self.store)
class Nbest(object): def __init__(self, N=1000): self.store = [] self.N = N def add(self, item): self.store.append(item) self.store.sort(reverse=True) self.store = self.store[:self.N] def __getitem__(self, k): return self.store[k] def __len__(self): return len(self.store)
#f = open("datum/iris.csv") #print (f.read()) #f.close() #closing file is good practice #Using ff code will make closing file unnecessary with open("datum/iris.csv") as f: contents = (f.read()) print(contents)
with open('datum/iris.csv') as f: contents = f.read() print(contents)
def main(j, args, params, tags, tasklet): page = args.page logpath = args.requestContext.params.get('logpath') templatepath = args.requestContext.params.get('templatepath') installedpath = args.requestContext.params.get('installedpath') metapath = args.requestContext.params.get('metapath') domain = args.requestContext.params.get('domain') name = args.requestContext.params.get('servicename') instance = args.requestContext.params.get('instance') instancestr = ':%s' % instance if instance else '' page.addHeading("Code editors for %s:%s%s" % (domain, name, instancestr), 2) for representation, path in (('Installed', installedpath), ('Logs', logpath), ('Template', templatepath), ('Metadata', metapath)): if not path or not j.system.fs.exists(path): continue page.addHeading("%s" % representation, 3) page.addExplorer(path, readonly=False, tree=True, height=300) params.result = page return params def match(j, args, params, tags, tasklet): return True
def main(j, args, params, tags, tasklet): page = args.page logpath = args.requestContext.params.get('logpath') templatepath = args.requestContext.params.get('templatepath') installedpath = args.requestContext.params.get('installedpath') metapath = args.requestContext.params.get('metapath') domain = args.requestContext.params.get('domain') name = args.requestContext.params.get('servicename') instance = args.requestContext.params.get('instance') instancestr = ':%s' % instance if instance else '' page.addHeading('Code editors for %s:%s%s' % (domain, name, instancestr), 2) for (representation, path) in (('Installed', installedpath), ('Logs', logpath), ('Template', templatepath), ('Metadata', metapath)): if not path or not j.system.fs.exists(path): continue page.addHeading('%s' % representation, 3) page.addExplorer(path, readonly=False, tree=True, height=300) params.result = page return params def match(j, args, params, tags, tasklet): return True
# ==================================================================================== # # base_response.py - This file is part of the YFrake package. # # ------------------------------------------------------------------------------------ # # # # MIT License # # # # Copyright (c) 2022 Mattias Aabmets # # # # Permission is hereby granted, free of charge, to any person obtaining a copy # # of this software and associated documentation files (the "Software"), to deal # # in the Software without restriction, including without limitation the rights # # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # # copies of the Software, and to permit persons to whom the Software is # # furnished to do so, subject to the following conditions: # # # # The above copyright notice and this permission notice shall be included in all # # copies or substantial portions of the Software. # # # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # # SOFTWARE. # # # # ==================================================================================== # class BaseResponse: """ Base class of the ClientResponse. """ _err_msg = 'Operation not available on response object attributes! (YFrake)' # ------------------------------------------------------------------------------------ # def __init__(self): self._endpoint: str | None = None self._error: dict | None = None self._data: dict | None = None # ------------------------------------------------------------------------------------ # @classmethod def _raise_error(cls) -> None: raise TypeError(cls._err_msg) # ------------------------------------------------------------------------------------ # @property def endpoint(self) -> str | None: return self._endpoint @endpoint.setter def endpoint(self, _) -> None: self._raise_error() @endpoint.deleter def endpoint(self) -> None: self._raise_error() # ------------------------------------------------------------------------------------ # @property def error(self) -> dict | None: return self._error @error.setter def error(self, _) -> None: self._raise_error() @error.deleter def error(self) -> None: self._raise_error() # ------------------------------------------------------------------------------------ # @property def data(self) -> dict | None: return self._data @data.setter def data(self, _) -> None: self._raise_error() @data.deleter def data(self) -> None: self._raise_error()
class Baseresponse: """ Base class of the ClientResponse. """ _err_msg = 'Operation not available on response object attributes! (YFrake)' def __init__(self): self._endpoint: str | None = None self._error: dict | None = None self._data: dict | None = None @classmethod def _raise_error(cls) -> None: raise type_error(cls._err_msg) @property def endpoint(self) -> str | None: return self._endpoint @endpoint.setter def endpoint(self, _) -> None: self._raise_error() @endpoint.deleter def endpoint(self) -> None: self._raise_error() @property def error(self) -> dict | None: return self._error @error.setter def error(self, _) -> None: self._raise_error() @error.deleter def error(self) -> None: self._raise_error() @property def data(self) -> dict | None: return self._data @data.setter def data(self, _) -> None: self._raise_error() @data.deleter def data(self) -> None: self._raise_error()
def cargarListas(nombrearchivo,lista): try: archivo = open(nombrearchivo, "rt") while True: linea = archivo.readline() if not linea: break linea = linea[:-1] listaNombre, Articulos = linea.split("=") if Articulos.strip() == "": listaArticulos = [] else: listaArticulos = Articulos.split(",") lista.append([listaNombre,listaArticulos]) archivo.close() except: print("") return lista def salvarListas(nommbrearchivo,listas): try: archivo = open(nommbrearchivo, "wt") for lista in listas: listaarchivo = "" for articulos in lista[1]: listaarchivo += "{0},".format(articulos) archivo.write(lista[0] + "=" + listaarchivo[:-1] + "\n") archivo.close() except: print("\nError al Guardar Archivo") input() def getListaNombre(lista,lista_actual): if len(lista) == 0: return '** LISTA VACIA **' else: return lista[lista_actual][0] def agregarLista(lista,listaNombre): lista.append([listaNombre,[]]) return lista def agregarArticulo(lista,listaNombre): lista.append(listaNombre) return lista def borrarLista(lista,listaNumero): lista.pop(listaNumero) return lista
def cargar_listas(nombrearchivo, lista): try: archivo = open(nombrearchivo, 'rt') while True: linea = archivo.readline() if not linea: break linea = linea[:-1] (lista_nombre, articulos) = linea.split('=') if Articulos.strip() == '': lista_articulos = [] else: lista_articulos = Articulos.split(',') lista.append([listaNombre, listaArticulos]) archivo.close() except: print('') return lista def salvar_listas(nommbrearchivo, listas): try: archivo = open(nommbrearchivo, 'wt') for lista in listas: listaarchivo = '' for articulos in lista[1]: listaarchivo += '{0},'.format(articulos) archivo.write(lista[0] + '=' + listaarchivo[:-1] + '\n') archivo.close() except: print('\nError al Guardar Archivo') input() def get_lista_nombre(lista, lista_actual): if len(lista) == 0: return '** LISTA VACIA **' else: return lista[lista_actual][0] def agregar_lista(lista, listaNombre): lista.append([listaNombre, []]) return lista def agregar_articulo(lista, listaNombre): lista.append(listaNombre) return lista def borrar_lista(lista, listaNumero): lista.pop(listaNumero) return lista
# Time: O(n^2 * k) # Space: O(k) class Solution(object): def maxVacationDays(self, flights, days): """ :type flights: List[List[int]] :type days: List[List[int]] :rtype: int """ if not days or not flights: return 0 dp = [[0] * len(days) for _ in xrange(2)] for week in reversed(xrange(len(days[0]))): for cur_city in xrange(len(days)): dp[week % 2][cur_city] = days[cur_city][week] + dp[(week+1) % 2][cur_city] for dest_city in xrange(len(days)): if flights[cur_city][dest_city] == 1: dp[week % 2][cur_city] = max(dp[week % 2][cur_city], \ days[dest_city][week] + dp[(week+1) % 2][dest_city]) return dp[0][0]
class Solution(object): def max_vacation_days(self, flights, days): """ :type flights: List[List[int]] :type days: List[List[int]] :rtype: int """ if not days or not flights: return 0 dp = [[0] * len(days) for _ in xrange(2)] for week in reversed(xrange(len(days[0]))): for cur_city in xrange(len(days)): dp[week % 2][cur_city] = days[cur_city][week] + dp[(week + 1) % 2][cur_city] for dest_city in xrange(len(days)): if flights[cur_city][dest_city] == 1: dp[week % 2][cur_city] = max(dp[week % 2][cur_city], days[dest_city][week] + dp[(week + 1) % 2][dest_city]) return dp[0][0]
first_number = int(input()) prime_count = 0 while True: if 1>= first_number: break running_number = first_number divider = first_number // 2 if ( 0 == first_number % 2 ) else ( first_number // 2 ) + 1; count = 0 while divider != 1: if 0 == running_number % divider: count += 1 divider -= 1 if count == 0: prime_count += 1 first_number -= 1 if 1 == first_number: break print(prime_count)
first_number = int(input()) prime_count = 0 while True: if 1 >= first_number: break running_number = first_number divider = first_number // 2 if 0 == first_number % 2 else first_number // 2 + 1 count = 0 while divider != 1: if 0 == running_number % divider: count += 1 divider -= 1 if count == 0: prime_count += 1 first_number -= 1 if 1 == first_number: break print(prime_count)
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. ALLOWED_PARAM_MERGE_STRATEGIES = (OVERWRITE, MERGE, DEEP_MERGE) = ( 'overwrite', 'merge', 'deep_merge') def get_param_merge_strategy(merge_strategies, param_key): if merge_strategies is None: return OVERWRITE env_default = merge_strategies.get('default', OVERWRITE) merge_strategy = merge_strategies.get(param_key, env_default) if merge_strategy in ALLOWED_PARAM_MERGE_STRATEGIES: return merge_strategy return env_default
allowed_param_merge_strategies = (overwrite, merge, deep_merge) = ('overwrite', 'merge', 'deep_merge') def get_param_merge_strategy(merge_strategies, param_key): if merge_strategies is None: return OVERWRITE env_default = merge_strategies.get('default', OVERWRITE) merge_strategy = merge_strategies.get(param_key, env_default) if merge_strategy in ALLOWED_PARAM_MERGE_STRATEGIES: return merge_strategy return env_default
# for item in ["mash","john","sera"]: # print(item) # for item in range(5,10,2): # print(item) # for x in range(4): # for y in range(3): # print(f"({x}, {y})") numbers = [5, 2 , 5 ,2 ,2] for item in numbers: output = "" for count in range(item): output += "X" print(output)
numbers = [5, 2, 5, 2, 2] for item in numbers: output = '' for count in range(item): output += 'X' print(output)
# Problem: https://www.hackerrank.com/challenges/30-data-types/problem # Score: 30.0 i = 4 d = 4.0 s = 'HackerRank ' x = int(input()) y = float(input()) z = input() print(i+x, d+y, s+z, sep='\n')
i = 4 d = 4.0 s = 'HackerRank ' x = int(input()) y = float(input()) z = input() print(i + x, d + y, s + z, sep='\n')
class ConsumerRegister: all_consumers = {} def __init__(self, name): self.name = name self.consumer_class = None def consumer(self): def decorator(plugin_cls): self.consumer_class = plugin_cls self.all_consumers[self.name] = { 'consumer_cls': self.consumer_class } return plugin_cls return decorator @classmethod def get_consumer(cls, name): try: return cls.all_consumers[name] except KeyError: return None
class Consumerregister: all_consumers = {} def __init__(self, name): self.name = name self.consumer_class = None def consumer(self): def decorator(plugin_cls): self.consumer_class = plugin_cls self.all_consumers[self.name] = {'consumer_cls': self.consumer_class} return plugin_cls return decorator @classmethod def get_consumer(cls, name): try: return cls.all_consumers[name] except KeyError: return None
class ConfigBase: def __init__(self,**kwargs): for k,v in kwargs.items(): setattr(self,k,v) @classmethod def get_class_config_info_dict(cls): if issubclass(cls.__base__, ConfigBase): dic=cls.__base__.get_class_config_info_dict() else: dic = {} for k, v in cls.__dict__.items(): if not k.startswith('_') and k[0].upper() == k[0] and v is not None: dic[k] = v return dic def get_config_info_dict(self): dic=self.get_class_config_info_dict() for k, v in self.__dict__.items(): if not k.startswith('_') and k[0].upper() == k[0] and v is not None: dic[k] = v return dic
class Configbase: def __init__(self, **kwargs): for (k, v) in kwargs.items(): setattr(self, k, v) @classmethod def get_class_config_info_dict(cls): if issubclass(cls.__base__, ConfigBase): dic = cls.__base__.get_class_config_info_dict() else: dic = {} for (k, v) in cls.__dict__.items(): if not k.startswith('_') and k[0].upper() == k[0] and (v is not None): dic[k] = v return dic def get_config_info_dict(self): dic = self.get_class_config_info_dict() for (k, v) in self.__dict__.items(): if not k.startswith('_') and k[0].upper() == k[0] and (v is not None): dic[k] = v return dic
def mergeSort(arr): if len(arr) >1: mid = len(arr)//2 L = arr[:mid] R = arr[mid:] mergeSort(L) mergeSort(R) i = j = k = 0 while i < len(L) and j < len(R): if L[i] < R[j]: arr[k] = L[i] i+= 1 else: arr[k] = R[j] j+= 1 k+= 1 while i < len(L): arr[k] = L[i] i+= 1 k+= 1 while j < len(R): arr[k] = R[j] j+= 1 k+= 1 def printList(arr): for i in range(len(arr)): print(arr[i], end =" ") print() if __name__ == '__main__': arr = [12, 34, 11, 2, 10] print ("Given array is", end ="\n") printList(arr) mergeSort(arr) print("Sorted array is: ", end ="\n") printList(arr)
def merge_sort(arr): if len(arr) > 1: mid = len(arr) // 2 l = arr[:mid] r = arr[mid:] merge_sort(L) merge_sort(R) i = j = k = 0 while i < len(L) and j < len(R): if L[i] < R[j]: arr[k] = L[i] i += 1 else: arr[k] = R[j] j += 1 k += 1 while i < len(L): arr[k] = L[i] i += 1 k += 1 while j < len(R): arr[k] = R[j] j += 1 k += 1 def print_list(arr): for i in range(len(arr)): print(arr[i], end=' ') print() if __name__ == '__main__': arr = [12, 34, 11, 2, 10] print('Given array is', end='\n') print_list(arr) merge_sort(arr) print('Sorted array is: ', end='\n') print_list(arr)
""" Concrete data service. This Django app manages API endpoints related to managing "concrete data", or data that serves as the foundational sources of truth for users. This is opposed to "derived data", which is data computed via mathematical, logical / relational, or other types of transformations. For example, a materialized view would be considered "derived data", while a CSV upload would be considered "concrete data". Making this distinction helps ensure application data flow is unitary, and that consequently, underlying data pipelines are acyclic. This methodology may reduce likelihood of data corruption via concurrency / paralellism or other concerns, and helps describe the data model more clearly. """
""" Concrete data service. This Django app manages API endpoints related to managing "concrete data", or data that serves as the foundational sources of truth for users. This is opposed to "derived data", which is data computed via mathematical, logical / relational, or other types of transformations. For example, a materialized view would be considered "derived data", while a CSV upload would be considered "concrete data". Making this distinction helps ensure application data flow is unitary, and that consequently, underlying data pipelines are acyclic. This methodology may reduce likelihood of data corruption via concurrency / paralellism or other concerns, and helps describe the data model more clearly. """
# -*- coding: utf-8 -*- """ Created on Sun Oct 11 10:18:56 2020 @author: Ashish """ def add_num(num1, num2): print("In module A") return num1+num2
""" Created on Sun Oct 11 10:18:56 2020 @author: Ashish """ def add_num(num1, num2): print('In module A') return num1 + num2
#python 3.5.2 class Stack: def __init__(self): self.items = [] def isEmpty(self): self.items == [] def push(self, item): self.items.append(item) def pop(self): return self.items.pop() def peek(self): return self.items[len(self.items)-1] def size(self): return len(self.items) def converDecToBinary(decimalNo, debug): s = Stack() temp = decimalNo remainder = 0 pushNo = 0 result = "" while temp > 0: remainder = temp%2 if remainder == 0: if debug : pushNo = 0 s.push('0') else: if debug : pushNo = 1 s.push('1') temp = temp//2 if debug : print( temp , 'remainder', pushNo) print( s.items ) print('-'*20) print('REVERSE THE NUMBERS') while s.size() != 0: if debug : print( s.items ) result = result + s.pop() print('-'*20) return result print( converDecToBinary(6 , True) ) print('-'*20) ''' 3 remainder 0 ['0'] -------------------- 1 remainder 1 ['0', '1'] -------------------- 0 remainder 1 ['0', '1', '1'] -------------------- REVERSE THE NUMBERS ['0', '1', '1'] ['0', '1'] ['0'] -------------------- 110 -------------------- '''
class Stack: def __init__(self): self.items = [] def is_empty(self): self.items == [] def push(self, item): self.items.append(item) def pop(self): return self.items.pop() def peek(self): return self.items[len(self.items) - 1] def size(self): return len(self.items) def conver_dec_to_binary(decimalNo, debug): s = stack() temp = decimalNo remainder = 0 push_no = 0 result = '' while temp > 0: remainder = temp % 2 if remainder == 0: if debug: push_no = 0 s.push('0') else: if debug: push_no = 1 s.push('1') temp = temp // 2 if debug: print(temp, 'remainder', pushNo) print(s.items) print('-' * 20) print('REVERSE THE NUMBERS') while s.size() != 0: if debug: print(s.items) result = result + s.pop() print('-' * 20) return result print(conver_dec_to_binary(6, True)) print('-' * 20) "\n3 remainder 0\n['0']\n--------------------\n1 remainder 1\n['0', '1']\n--------------------\n0 remainder 1\n['0', '1', '1']\n--------------------\nREVERSE THE NUMBERS\n['0', '1', '1']\n['0', '1']\n['0']\n--------------------\n110\n--------------------\n"
class TextManipulation: def formatText(text): newText = text.replace("&", "\n") return newText
class Textmanipulation: def format_text(text): new_text = text.replace('&', '\n') return newText
def define_orthonormal_basis(u): """ Calculates an orthonormal basis given an arbitrary vector u. Args: u (numpy array of floats) : arbitrary 2-dimensional vector used for new basis Returns: (numpy array of floats) : new orthonormal basis columns correspond to basis vectors """ # normalize vector u u = u / np.sqrt(u[0] ** 2 + u[1] ** 2) # calculate vector w that is orthogonal to w w = np.array([-u[1], u[0]]) W = np.column_stack((u, w)) return W np.random.seed(2020) # set random seed variance_1 = 1 variance_2 = 1 corr_coef = 0.8 cov_matrix = calculate_cov_matrix(variance_1, variance_2, corr_coef) X = get_data(cov_matrix) u = np.array([3, 1]) # Uncomment and run below to plot the basis vectors W = define_orthonormal_basis(u) with plt.xkcd(): plot_basis_vectors(X, W)
def define_orthonormal_basis(u): """ Calculates an orthonormal basis given an arbitrary vector u. Args: u (numpy array of floats) : arbitrary 2-dimensional vector used for new basis Returns: (numpy array of floats) : new orthonormal basis columns correspond to basis vectors """ u = u / np.sqrt(u[0] ** 2 + u[1] ** 2) w = np.array([-u[1], u[0]]) w = np.column_stack((u, w)) return W np.random.seed(2020) variance_1 = 1 variance_2 = 1 corr_coef = 0.8 cov_matrix = calculate_cov_matrix(variance_1, variance_2, corr_coef) x = get_data(cov_matrix) u = np.array([3, 1]) w = define_orthonormal_basis(u) with plt.xkcd(): plot_basis_vectors(X, W)
# Map query config QUERY_RADIUS = 3000 # mts. Radius to use on OSM data queries. MIN_DISTANCE_FOR_NEW_QUERY = 1000 # mts. Minimum distance to query area edge before issuing a new query. FULL_STOP_MAX_SPEED = 1.39 # m/s Max speed for considering car is stopped.
query_radius = 3000 min_distance_for_new_query = 1000 full_stop_max_speed = 1.39
# Copyright 2021 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Module containing base test results classes.""" # The test passed. PASS = 'SUCCESS' # The test was intentionally skipped. SKIP = 'SKIPPED' # The test failed. FAIL = 'FAILURE' # The test caused the containing process to crash. CRASH = 'CRASH' # The test timed out. TIMEOUT = 'TIMEOUT' # The test ran, but we couldn't determine what happened. UNKNOWN = 'UNKNOWN' # The test did not run. NOTRUN = 'NOTRUN'
"""Module containing base test results classes.""" pass = 'SUCCESS' skip = 'SKIPPED' fail = 'FAILURE' crash = 'CRASH' timeout = 'TIMEOUT' unknown = 'UNKNOWN' notrun = 'NOTRUN'
# THIS FILE IS GENERATED FROM PYWAVELETS SETUP.PY short_version = '0.3.0' version = '0.3.0' full_version = '0.3.0.dev-7ea3e91' git_revision = '7ea3e919b1d7bbf4d7685c47d3d10c16c599cd06' release = False if not release: version = full_version
short_version = '0.3.0' version = '0.3.0' full_version = '0.3.0.dev-7ea3e91' git_revision = '7ea3e919b1d7bbf4d7685c47d3d10c16c599cd06' release = False if not release: version = full_version
#/usr/bin/env python3 """ Solution to problem: https://practice.geeksforgeeks.org/problems/adding-ones/0 We reduced the runtime of algorithm from O(nm) to O(n+m) resulting in half the time running """ def get_array(array, n): """ gets the array Gets input and returns final computed value Parameters: array: list n : integer returns: n : list of added ones """ n = [0 for _ in range(n)] d_count = dict() array = [i - 1 for i in array] for i in array: if i not in d_count: d_count[i] = 0 d_count[i] += 1 k = 0 for i in range(len(n)): if i not in d_count: d_count[i] = 0 n[i] = d_count[i] + k k = n[i] return n def main(): """ This is the driver method """ t = int(input()) for _ in range(t): n, k = map(int, input().rstrip().split()) array = list(map(int, input().rstrip().split())) print(' '.join(map(str, get_array(array, n)))) if __name__ == '__main__': main()
""" Solution to problem: https://practice.geeksforgeeks.org/problems/adding-ones/0 We reduced the runtime of algorithm from O(nm) to O(n+m) resulting in half the time running """ def get_array(array, n): """ gets the array Gets input and returns final computed value Parameters: array: list n : integer returns: n : list of added ones """ n = [0 for _ in range(n)] d_count = dict() array = [i - 1 for i in array] for i in array: if i not in d_count: d_count[i] = 0 d_count[i] += 1 k = 0 for i in range(len(n)): if i not in d_count: d_count[i] = 0 n[i] = d_count[i] + k k = n[i] return n def main(): """ This is the driver method """ t = int(input()) for _ in range(t): (n, k) = map(int, input().rstrip().split()) array = list(map(int, input().rstrip().split())) print(' '.join(map(str, get_array(array, n)))) if __name__ == '__main__': main()
''' Create a function that sums two arguments together. If only one argument is provided, then return a function that expects one argument and returns the sum. For example, addTogether(2, 3) should return 5, and addTogether(2) should return a function. Calling this returned function with a single argument will then return the sum: var sumTwoAnd = addTogether(2); sumTwoAnd(3) returns 5. If either argument isn't a valid number, return undefined. ''' def addTogether(*args): if len(args) == 2: return sum(args) elif len(args) == 1: return lambda v: v + args[0] addTogether(2,3)
""" Create a function that sums two arguments together. If only one argument is provided, then return a function that expects one argument and returns the sum. For example, addTogether(2, 3) should return 5, and addTogether(2) should return a function. Calling this returned function with a single argument will then return the sum: var sumTwoAnd = addTogether(2); sumTwoAnd(3) returns 5. If either argument isn't a valid number, return undefined. """ def add_together(*args): if len(args) == 2: return sum(args) elif len(args) == 1: return lambda v: v + args[0] add_together(2, 3)
class ConfigHandlerException(Exception): """Main Config Handler Exception class""" class ConfigHandlerFileReadException(ConfigHandlerException): """Config Handler ConfigFile Read Exception class""" class ConfigHandlerNamingException(ConfigHandlerException): """Config Handler Naming Exception class"""
class Confighandlerexception(Exception): """Main Config Handler Exception class""" class Confighandlerfilereadexception(ConfigHandlerException): """Config Handler ConfigFile Read Exception class""" class Confighandlernamingexception(ConfigHandlerException): """Config Handler Naming Exception class"""
class Solution(object): def findTheDifference(self, s, t): """ :type s: str :type t: str :rtype: str """ return chr(reduce(lambda a, b: a ^ ord(b), s + t, 0))
class Solution(object): def find_the_difference(self, s, t): """ :type s: str :type t: str :rtype: str """ return chr(reduce(lambda a, b: a ^ ord(b), s + t, 0))
exp_name = 'prenet_c32s6d5_lstm' work_dir = f'./work_dirs/{exp_name}' # model settings model = dict( type='MultiStageRestorer', generator=dict( type='PReNet', in_channels=3, out_channels=3, mid_channels=32, recurrent_unit='LSTM', num_stages=6, num_resblocks=5, recursive_resblock=False ), losses=[dict(type='SSIMLoss', loss_weight=1.0, reduction='mean', recurrent=False)], ) # model training and testing settings train_cfg = None test_cfg = dict(metrics=['PSNR', 'SSIM']) # dataset settings train_dataset_type = 'DerainPairedDataset' val_dataset_type = 'DerainPairedDataset' train_pipeline = [ dict( type='LoadPairedImageFromFile', io_backend='disk', key='gt,lq', flag='color' ), dict(type='ArgsCrop', keys=['lq', 'gt']), dict(type='RescaleToZeroOne', keys=['lq', 'gt']), dict(type='ImageToTensor', keys=['lq', 'gt']), dict( type='Collect', keys=['lq', 'gt'], meta_keys=['lq_path', 'gt_path'] ) ] test_pipeline = [ dict( type='LoadPairedImageFromFile', io_backend='disk', key='gt,lq', flag='color' ), dict(type='RescaleToZeroOne', keys=['lq', 'gt']), dict(type='ImageToTensor', keys=['lq', 'gt']), dict( type='Collect', keys=['lq', 'gt'], meta_keys=['lq_path', 'gt_path'] ) ] data_root = '../data/Rain200L' data = dict( workers_per_gpu=8, train_dataloader=dict(samples_per_gpu=18, drop_last=True), val_dataloader=dict(samples_per_gpu=1), test_dataloader=dict(samples_per_gpu=1), train=dict( type='ExhaustivePatchDataset', patch_size=100, stride=80, # set to 100 for Rain1200 and Rain1400 dataset dataset=dict( type=train_dataset_type, dataroot=data_root, pipeline=train_pipeline, test_mode=False ) ), val=dict( type=val_dataset_type, dataroot=data_root, pipeline=test_pipeline, test_mode=True ), test=dict( type=val_dataset_type, dataroot=data_root, pipeline=test_pipeline, test_mode=True ) ) # optimizer optimizers = dict(type='Adam', lr=1e-3, betas=(0.9, 0.999)) optimizer_config = dict(grad_clip=None) # learning policy runner = dict(type='EpochBasedRunner', max_epochs=100) lr_config = dict( policy='Step', by_epoch=True, step=[30, 50, 80], gamma=0.2 ) checkpoint_config = dict(interval=10, save_optimizer=True, by_epoch=True) evaluation = dict(interval=25, save_image=True, by_epoch=True) log_config = dict( interval=400, hooks=[ dict(type='TextLoggerHook', by_epoch=False) ] ) visual_config = None # runtime settings dist_params = dict(backend='nccl') log_level = 'INFO' load_from = None resume_from = None workflow = [('train', 1)]
exp_name = 'prenet_c32s6d5_lstm' work_dir = f'./work_dirs/{exp_name}' model = dict(type='MultiStageRestorer', generator=dict(type='PReNet', in_channels=3, out_channels=3, mid_channels=32, recurrent_unit='LSTM', num_stages=6, num_resblocks=5, recursive_resblock=False), losses=[dict(type='SSIMLoss', loss_weight=1.0, reduction='mean', recurrent=False)]) train_cfg = None test_cfg = dict(metrics=['PSNR', 'SSIM']) train_dataset_type = 'DerainPairedDataset' val_dataset_type = 'DerainPairedDataset' train_pipeline = [dict(type='LoadPairedImageFromFile', io_backend='disk', key='gt,lq', flag='color'), dict(type='ArgsCrop', keys=['lq', 'gt']), dict(type='RescaleToZeroOne', keys=['lq', 'gt']), dict(type='ImageToTensor', keys=['lq', 'gt']), dict(type='Collect', keys=['lq', 'gt'], meta_keys=['lq_path', 'gt_path'])] test_pipeline = [dict(type='LoadPairedImageFromFile', io_backend='disk', key='gt,lq', flag='color'), dict(type='RescaleToZeroOne', keys=['lq', 'gt']), dict(type='ImageToTensor', keys=['lq', 'gt']), dict(type='Collect', keys=['lq', 'gt'], meta_keys=['lq_path', 'gt_path'])] data_root = '../data/Rain200L' data = dict(workers_per_gpu=8, train_dataloader=dict(samples_per_gpu=18, drop_last=True), val_dataloader=dict(samples_per_gpu=1), test_dataloader=dict(samples_per_gpu=1), train=dict(type='ExhaustivePatchDataset', patch_size=100, stride=80, dataset=dict(type=train_dataset_type, dataroot=data_root, pipeline=train_pipeline, test_mode=False)), val=dict(type=val_dataset_type, dataroot=data_root, pipeline=test_pipeline, test_mode=True), test=dict(type=val_dataset_type, dataroot=data_root, pipeline=test_pipeline, test_mode=True)) optimizers = dict(type='Adam', lr=0.001, betas=(0.9, 0.999)) optimizer_config = dict(grad_clip=None) runner = dict(type='EpochBasedRunner', max_epochs=100) lr_config = dict(policy='Step', by_epoch=True, step=[30, 50, 80], gamma=0.2) checkpoint_config = dict(interval=10, save_optimizer=True, by_epoch=True) evaluation = dict(interval=25, save_image=True, by_epoch=True) log_config = dict(interval=400, hooks=[dict(type='TextLoggerHook', by_epoch=False)]) visual_config = None dist_params = dict(backend='nccl') log_level = 'INFO' load_from = None resume_from = None workflow = [('train', 1)]
class SchedulableField(object, IDisposable): """ A non-calculated field eligible to be included in a schedule. SchedulableField(fieldType: ScheduleFieldType,parameterId: ElementId) SchedulableField(fieldType: ScheduleFieldType) SchedulableField() """ def Dispose(self): """ Dispose(self: SchedulableField) """ pass def Equals(self, obj): """ Equals(self: SchedulableField,obj: object) -> bool Determines whether the specified System.Object is equal to the current System.Object. obj: The other object to evaluate. """ pass def GetHashCode(self): """ GetHashCode(self: SchedulableField) -> int Gets the integer value of the SchedulableField as hash code """ pass def GetName(self, document): """ GetName(self: SchedulableField,document: Document) -> str Gets the name of the field. document: The document in which the field will be used. Returns: The name of the field. """ pass def ReleaseUnmanagedResources(self, *args): """ ReleaseUnmanagedResources(self: SchedulableField,disposing: bool) """ pass def __enter__(self, *args): """ __enter__(self: IDisposable) -> object """ pass def __eq__(self, *args): """ x.__eq__(y) <==> x==y """ pass def __exit__(self, *args): """ __exit__(self: IDisposable,exc_type: object,exc_value: object,exc_back: object) """ pass def __init__(self, *args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass @staticmethod def __new__(self, fieldType=None, parameterId=None): """ __new__(cls: type,fieldType: ScheduleFieldType,parameterId: ElementId) __new__(cls: type,fieldType: ScheduleFieldType) __new__(cls: type) """ pass def __ne__(self, *args): pass def __repr__(self, *args): """ __repr__(self: object) -> str """ pass FieldType = property(lambda self: object(), lambda self, v: None, lambda self: None) """The type of data displayed by the field. Get: FieldType(self: SchedulableField) -> ScheduleFieldType Set: FieldType(self: SchedulableField)=value """ IsValidObject = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Specifies whether the .NET object represents a valid Revit entity. Get: IsValidObject(self: SchedulableField) -> bool """ ParameterId = property( lambda self: object(), lambda self, v: None, lambda self: None ) """The ID of the parameter displayed by the field. Get: ParameterId(self: SchedulableField) -> ElementId Set: ParameterId(self: SchedulableField)=value """
class Schedulablefield(object, IDisposable): """ A non-calculated field eligible to be included in a schedule. SchedulableField(fieldType: ScheduleFieldType,parameterId: ElementId) SchedulableField(fieldType: ScheduleFieldType) SchedulableField() """ def dispose(self): """ Dispose(self: SchedulableField) """ pass def equals(self, obj): """ Equals(self: SchedulableField,obj: object) -> bool Determines whether the specified System.Object is equal to the current System.Object. obj: The other object to evaluate. """ pass def get_hash_code(self): """ GetHashCode(self: SchedulableField) -> int Gets the integer value of the SchedulableField as hash code """ pass def get_name(self, document): """ GetName(self: SchedulableField,document: Document) -> str Gets the name of the field. document: The document in which the field will be used. Returns: The name of the field. """ pass def release_unmanaged_resources(self, *args): """ ReleaseUnmanagedResources(self: SchedulableField,disposing: bool) """ pass def __enter__(self, *args): """ __enter__(self: IDisposable) -> object """ pass def __eq__(self, *args): """ x.__eq__(y) <==> x==y """ pass def __exit__(self, *args): """ __exit__(self: IDisposable,exc_type: object,exc_value: object,exc_back: object) """ pass def __init__(self, *args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass @staticmethod def __new__(self, fieldType=None, parameterId=None): """ __new__(cls: type,fieldType: ScheduleFieldType,parameterId: ElementId) __new__(cls: type,fieldType: ScheduleFieldType) __new__(cls: type) """ pass def __ne__(self, *args): pass def __repr__(self, *args): """ __repr__(self: object) -> str """ pass field_type = property(lambda self: object(), lambda self, v: None, lambda self: None) 'The type of data displayed by the field.\n\n\n\nGet: FieldType(self: SchedulableField) -> ScheduleFieldType\n\n\n\nSet: FieldType(self: SchedulableField)=value\n\n' is_valid_object = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Specifies whether the .NET object represents a valid Revit entity.\n\n\n\nGet: IsValidObject(self: SchedulableField) -> bool\n\n\n\n' parameter_id = property(lambda self: object(), lambda self, v: None, lambda self: None) 'The ID of the parameter displayed by the field.\n\n\n\nGet: ParameterId(self: SchedulableField) -> ElementId\n\n\n\nSet: ParameterId(self: SchedulableField)=value\n\n'
def findDecision(obj): #obj[0]: Coupon, obj[1]: Education, obj[2]: Occupation, obj[3]: Restaurant20to50, obj[4]: Distance # {"feature": "Coupon", "instances": 127, "metric_value": 0.9671, "depth": 1} if obj[0]>0: # {"feature": "Occupation", "instances": 111, "metric_value": 0.9353, "depth": 2} if obj[2]<=7.990990990990991: # {"feature": "Restaurant20to50", "instances": 68, "metric_value": 0.8113, "depth": 3} if obj[3]<=2.0: # {"feature": "Distance", "instances": 61, "metric_value": 0.8537, "depth": 4} if obj[4]>1: # {"feature": "Education", "instances": 36, "metric_value": 0.7107, "depth": 5} if obj[1]<=2: return 'True' elif obj[1]>2: return 'True' else: return 'True' elif obj[4]<=1: # {"feature": "Education", "instances": 25, "metric_value": 0.971, "depth": 5} if obj[1]>1: return 'False' elif obj[1]<=1: return 'True' else: return 'True' else: return 'True' elif obj[3]>2.0: return 'True' else: return 'True' elif obj[2]>7.990990990990991: # {"feature": "Restaurant20to50", "instances": 43, "metric_value": 0.9996, "depth": 3} if obj[3]>-1.0: # {"feature": "Education", "instances": 41, "metric_value": 0.9996, "depth": 4} if obj[1]<=3: # {"feature": "Distance", "instances": 35, "metric_value": 0.9947, "depth": 5} if obj[4]>1: return 'False' elif obj[4]<=1: return 'True' else: return 'True' elif obj[1]>3: # {"feature": "Distance", "instances": 6, "metric_value": 0.65, "depth": 5} if obj[4]<=1: return 'True' elif obj[4]>1: return 'True' else: return 'True' else: return 'True' elif obj[3]<=-1.0: return 'False' else: return 'False' else: return 'False' elif obj[0]<=0: # {"feature": "Education", "instances": 16, "metric_value": 0.896, "depth": 2} if obj[1]>0: # {"feature": "Restaurant20to50", "instances": 12, "metric_value": 0.9799, "depth": 3} if obj[3]>0.0: # {"feature": "Occupation", "instances": 10, "metric_value": 1.0, "depth": 4} if obj[2]<=6: # {"feature": "Distance", "instances": 6, "metric_value": 0.9183, "depth": 5} if obj[4]<=2: return 'True' elif obj[4]>2: return 'False' else: return 'False' elif obj[2]>6: # {"feature": "Distance", "instances": 4, "metric_value": 0.8113, "depth": 5} if obj[4]>2: return 'True' elif obj[4]<=2: return 'False' else: return 'False' else: return 'False' elif obj[3]<=0.0: return 'False' else: return 'False' elif obj[1]<=0: return 'False' else: return 'False' else: return 'False'
def find_decision(obj): if obj[0] > 0: if obj[2] <= 7.990990990990991: if obj[3] <= 2.0: if obj[4] > 1: if obj[1] <= 2: return 'True' elif obj[1] > 2: return 'True' else: return 'True' elif obj[4] <= 1: if obj[1] > 1: return 'False' elif obj[1] <= 1: return 'True' else: return 'True' else: return 'True' elif obj[3] > 2.0: return 'True' else: return 'True' elif obj[2] > 7.990990990990991: if obj[3] > -1.0: if obj[1] <= 3: if obj[4] > 1: return 'False' elif obj[4] <= 1: return 'True' else: return 'True' elif obj[1] > 3: if obj[4] <= 1: return 'True' elif obj[4] > 1: return 'True' else: return 'True' else: return 'True' elif obj[3] <= -1.0: return 'False' else: return 'False' else: return 'False' elif obj[0] <= 0: if obj[1] > 0: if obj[3] > 0.0: if obj[2] <= 6: if obj[4] <= 2: return 'True' elif obj[4] > 2: return 'False' else: return 'False' elif obj[2] > 6: if obj[4] > 2: return 'True' elif obj[4] <= 2: return 'False' else: return 'False' else: return 'False' elif obj[3] <= 0.0: return 'False' else: return 'False' elif obj[1] <= 0: return 'False' else: return 'False' else: return 'False'
class AgentException(Exception): """ Base exception""" description = 'Unknown error' statuscode = 5 def __str__(self): return '{0}: {1}'.format(self.description, ' '.join(self.args)) class InactiveAgent(AgentException): description = "Agent is not activated"
class Agentexception(Exception): """ Base exception""" description = 'Unknown error' statuscode = 5 def __str__(self): return '{0}: {1}'.format(self.description, ' '.join(self.args)) class Inactiveagent(AgentException): description = 'Agent is not activated'
a = 1 a = a + 2 print(a) a += 2 print(a) word = "race" word += " car" print(word)
a = 1 a = a + 2 print(a) a += 2 print(a) word = 'race' word += ' car' print(word)
# compare_versions.py # software library for question B def compare_versions(string1, string2): seperator = "." # first load the strings and then seperate the individual numbers into a list by # using the split function string1 = string1.split(seperator) string2 = string2.split(seperator) # loop through all the version levels for level in range(0, len(string1)): # if the current two levels are equal, then continue in the loop if string1[level] == string2[level]: continue # if all the levels are the same, then return that the versions are equal return print("Version %s is equal to version %s. " %(seperator.join(string1), seperator.join(string2))) # if the current level of string1 one is higher than string 2, return # string 1 elif string1[level] > string2[level]: return print("Version %s is greater than %s. " %(seperator.join(string1), seperator.join(string2))) break # else, return string2 else: return print("Version %s is greater than %s. " %(seperator.join(string2), seperator.join(string1))) break # Another cool way to answer this question: # Use python tuples! There is built in logic when comparing them def compare_tuples(string1, string2): seperator = "." # convert the strings to tuples string1 = tuple(string1.split(seperator)) string2 = tuple(string2.split(seperator)) # compare the tuples to each other and return whichever one is greater if (string1 == string2): return print("Version %s is equal to version %s. " %(seperator.join(string1), seperator.join(string2))) elif string1 > string2: return print("Version %s is greater than %s. " %(seperator.join(string1), seperator.join(string2))) else: return print("Version %s is greater than %s. " %(seperator.join(string2), seperator.join(string1)))
def compare_versions(string1, string2): seperator = '.' string1 = string1.split(seperator) string2 = string2.split(seperator) for level in range(0, len(string1)): if string1[level] == string2[level]: continue return print('Version %s is equal to version %s. ' % (seperator.join(string1), seperator.join(string2))) elif string1[level] > string2[level]: return print('Version %s is greater than %s. ' % (seperator.join(string1), seperator.join(string2))) break else: return print('Version %s is greater than %s. ' % (seperator.join(string2), seperator.join(string1))) break def compare_tuples(string1, string2): seperator = '.' string1 = tuple(string1.split(seperator)) string2 = tuple(string2.split(seperator)) if string1 == string2: return print('Version %s is equal to version %s. ' % (seperator.join(string1), seperator.join(string2))) elif string1 > string2: return print('Version %s is greater than %s. ' % (seperator.join(string1), seperator.join(string2))) else: return print('Version %s is greater than %s. ' % (seperator.join(string2), seperator.join(string1)))
-8 # ---------------------------------------------------------------------------- # <copyright company="Aspose" file="HttpRequest.py"> # Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved. # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify, merge, publish, distribute, sublicense, # and/or sell copies of the Software, and to permit persons to whom the # Software is furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # DEALINGS IN THE SOFTWARE. # </summary> # ---------------------------------------------------------------------------- class HttpRequest(object): def __init__(self, resource_path, path_params, query_params, header_params, form_params, body_params, files, collection_formats, auth_settings, return_http_data_only=None, preload_content=None, request_timeout=None): """Makes the HTTP request (synchronous) and returns deserialized data. To make an async request, set the async parameter. :param resource_path: Path to method endpoint. :param path_params: Path parameters in the url. :param query_params: Query parameters in the url. :param header_params: Header parameters to be placed in the request header. :param form_params: Request post form parameters, for `application/x-www-form-urlencoded`, `multipart/form-data`. :param body_params: Request body. :param files: dict key -> filename, value -> filepath, for `multipart/form-data`. :param collection_formats: dict of collection formats for path, query, header, and post parameters. :param auth_settings: Auth Settings names for the request. :param return_http_data_only: response data without head status code and headers :param preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: Request thread. """ self.resource_path = resource_path self.path_params = path_params self.query_params = query_params self.header_params = header_params self.form_params = form_params self.body_params = body_params self.files = files self.collection_formats = collection_formats self.auth_settings = auth_settings self.return_http_data_only = return_http_data_only or True self.preload_content = preload_content or True self.request_timeout = request_timeout or ''
-8 class Httprequest(object): def __init__(self, resource_path, path_params, query_params, header_params, form_params, body_params, files, collection_formats, auth_settings, return_http_data_only=None, preload_content=None, request_timeout=None): """Makes the HTTP request (synchronous) and returns deserialized data. To make an async request, set the async parameter. :param resource_path: Path to method endpoint. :param path_params: Path parameters in the url. :param query_params: Query parameters in the url. :param header_params: Header parameters to be placed in the request header. :param form_params: Request post form parameters, for `application/x-www-form-urlencoded`, `multipart/form-data`. :param body_params: Request body. :param files: dict key -> filename, value -> filepath, for `multipart/form-data`. :param collection_formats: dict of collection formats for path, query, header, and post parameters. :param auth_settings: Auth Settings names for the request. :param return_http_data_only: response data without head status code and headers :param preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: Request thread. """ self.resource_path = resource_path self.path_params = path_params self.query_params = query_params self.header_params = header_params self.form_params = form_params self.body_params = body_params self.files = files self.collection_formats = collection_formats self.auth_settings = auth_settings self.return_http_data_only = return_http_data_only or True self.preload_content = preload_content or True self.request_timeout = request_timeout or ''
class BaseSubmission: def __init__(self, team_name, player_names): self.team_name = team_name self.player_names = player_names def get_actions(self, obs): ''' Overview: You must implement this function. ''' raise NotImplementedError
class Basesubmission: def __init__(self, team_name, player_names): self.team_name = team_name self.player_names = player_names def get_actions(self, obs): """ Overview: You must implement this function. """ raise NotImplementedError
class R1DataCheckSpecificDto: def __init__(self, id_r1_data_check_specific=None, init_event=None, end_event=None, init_pixel=None, end_pixel=None, init_sample=None, end_sample=None, init_subrun=None, end_subrun=None, type_of_gap_calc=None, list_of_module_in_detail=None): self.__id_r1_data_check_specific = id_r1_data_check_specific self.__init_event = init_event self.__end_event = end_event self.__init_pixel = init_pixel self.__end_pixel = end_pixel self.__init_sample = init_sample self.__end_sample = end_sample self.__init_subrun = init_subrun self.__end_subrun = end_subrun self.__type_of_gap_calc = type_of_gap_calc self.__list_of_module_in_detail = list_of_module_in_detail @property def id_r1_data_check_specific(self): return self.__id_r1_data_check_specific @property def init_event(self): return self.__init_event @property def end_event(self): return self.__end_event @property def init_pixel(self): return self.__init_pixel @property def end_pixel(self): return self.__end_pixel @property def init_sample(self): return self.__init_sample @property def end_sample(self): return self.__end_sample @property def init_subrun(self): return self.__init_subrun @property def end_subrun(self): return self.__end_subrun @property def type_of_gap_calc(self): return self.__type_of_gap_calc @property def list_of_module_in_detail(self): return self.__list_of_module_in_detail @id_r1_data_check_specific.setter def id_r1_data_check_specific(self, value): self.__id_r1_data_check_specific = value @init_event.setter def init_event(self, value): self.__init_event = value @end_event.setter def end_event(self, value): self.__end_event = value @init_pixel.setter def init_pixel(self, value): self.__init_pixel = value @end_pixel.setter def end_pixel(self, value): self.__end_pixel = value @init_sample.setter def init_sample(self, value): self.__init_sample = value @end_sample.setter def end_sample(self, value): self.__end_sample = value @init_subrun.setter def init_subrun(self, value): self.__init_subrun = value @end_subrun.setter def end_subrun(self, value): self.__end_subrun = value @type_of_gap_calc.setter def type_of_gap_calc(self, value): self.__type_of_gap_calc = value @list_of_module_in_detail.setter def list_of_module_in_detail(self, value): self.__list_of_module_in_detail = value def create_r1_data_check_specific(id_r1_data_check_specific, init_event, end_event, init_pixel, end_pixel, init_sample, end_sample, init_subrun, end_subrun, type_of_gap_calc, list_of_module_in_detail): dto = R1DataCheckSpecificDto() dto.id_r1_data_check_specific = id_r1_data_check_specific dto.init_event = init_event dto.end_event = end_event dto.init_pixel = init_pixel dto.end_pixel = end_pixel dto.init_sample = init_sample dto.end_sample = end_sample dto.init_subrun = init_subrun dto.end_subrun = end_subrun dto.type_of_gap_calc = type_of_gap_calc dto.list_of_module_in_detail = list_of_module_in_detail return dto
class R1Datacheckspecificdto: def __init__(self, id_r1_data_check_specific=None, init_event=None, end_event=None, init_pixel=None, end_pixel=None, init_sample=None, end_sample=None, init_subrun=None, end_subrun=None, type_of_gap_calc=None, list_of_module_in_detail=None): self.__id_r1_data_check_specific = id_r1_data_check_specific self.__init_event = init_event self.__end_event = end_event self.__init_pixel = init_pixel self.__end_pixel = end_pixel self.__init_sample = init_sample self.__end_sample = end_sample self.__init_subrun = init_subrun self.__end_subrun = end_subrun self.__type_of_gap_calc = type_of_gap_calc self.__list_of_module_in_detail = list_of_module_in_detail @property def id_r1_data_check_specific(self): return self.__id_r1_data_check_specific @property def init_event(self): return self.__init_event @property def end_event(self): return self.__end_event @property def init_pixel(self): return self.__init_pixel @property def end_pixel(self): return self.__end_pixel @property def init_sample(self): return self.__init_sample @property def end_sample(self): return self.__end_sample @property def init_subrun(self): return self.__init_subrun @property def end_subrun(self): return self.__end_subrun @property def type_of_gap_calc(self): return self.__type_of_gap_calc @property def list_of_module_in_detail(self): return self.__list_of_module_in_detail @id_r1_data_check_specific.setter def id_r1_data_check_specific(self, value): self.__id_r1_data_check_specific = value @init_event.setter def init_event(self, value): self.__init_event = value @end_event.setter def end_event(self, value): self.__end_event = value @init_pixel.setter def init_pixel(self, value): self.__init_pixel = value @end_pixel.setter def end_pixel(self, value): self.__end_pixel = value @init_sample.setter def init_sample(self, value): self.__init_sample = value @end_sample.setter def end_sample(self, value): self.__end_sample = value @init_subrun.setter def init_subrun(self, value): self.__init_subrun = value @end_subrun.setter def end_subrun(self, value): self.__end_subrun = value @type_of_gap_calc.setter def type_of_gap_calc(self, value): self.__type_of_gap_calc = value @list_of_module_in_detail.setter def list_of_module_in_detail(self, value): self.__list_of_module_in_detail = value def create_r1_data_check_specific(id_r1_data_check_specific, init_event, end_event, init_pixel, end_pixel, init_sample, end_sample, init_subrun, end_subrun, type_of_gap_calc, list_of_module_in_detail): dto = r1_data_check_specific_dto() dto.id_r1_data_check_specific = id_r1_data_check_specific dto.init_event = init_event dto.end_event = end_event dto.init_pixel = init_pixel dto.end_pixel = end_pixel dto.init_sample = init_sample dto.end_sample = end_sample dto.init_subrun = init_subrun dto.end_subrun = end_subrun dto.type_of_gap_calc = type_of_gap_calc dto.list_of_module_in_detail = list_of_module_in_detail return dto
def takethis(): fullspeed() i01.moveHead(14,90) i01.moveArm("left",13,45,95,10) i01.moveArm("right",5,90,30,10) i01.moveHand("left",2,2,2,2,2,60) i01.moveHand("right",81,66,82,60,105,113) i01.moveTorso(85,76,90) sleep(3) closelefthand() i01.moveTorso(110,90,90) sleep(2) isitaball() i01.mouth.speak("what is it")
def takethis(): fullspeed() i01.moveHead(14, 90) i01.moveArm('left', 13, 45, 95, 10) i01.moveArm('right', 5, 90, 30, 10) i01.moveHand('left', 2, 2, 2, 2, 2, 60) i01.moveHand('right', 81, 66, 82, 60, 105, 113) i01.moveTorso(85, 76, 90) sleep(3) closelefthand() i01.moveTorso(110, 90, 90) sleep(2) isitaball() i01.mouth.speak('what is it')
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 2019-05-18 23:29:05 # @Author : Ivy Mong (davy0328meng@gmail.com) arr1 = [1, 3, 4, 6, 10] arr2 = [2, 5, 8, 11] ind = 0 ans = arr1.copy() for i in range(len(arr2)): while ind < len(arr1): if arr2[i] <= arr1[ind]: ans.insert(ind+i, arr2[i]) break else: ind += 1 else: ans = ans + arr2[i:] print(ans)
arr1 = [1, 3, 4, 6, 10] arr2 = [2, 5, 8, 11] ind = 0 ans = arr1.copy() for i in range(len(arr2)): while ind < len(arr1): if arr2[i] <= arr1[ind]: ans.insert(ind + i, arr2[i]) break else: ind += 1 else: ans = ans + arr2[i:] print(ans)
print('Dratuti!') print('Hello!') print('Hello, Georgios!') print('Hello, Pupa!')
print('Dratuti!') print('Hello!') print('Hello, Georgios!') print('Hello, Pupa!')
# Copyright (C) 2018 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # Repository rule to download, extract and patch breakpad. _BASE = "https://chromium.googlesource.com/breakpad/breakpad"; def _breakpad_impl(repository_ctx): repository_ctx.download_and_extract( url = _BASE + "/+archive/" + repository_ctx.attr.commit + ".tar.gz", output = ".", ) repository_ctx.symlink(Label("@gapid//tools/build/third_party/breakpad:breakpad.BUILD"), "BUILD") if repository_ctx.os.name.startswith("windows"): # Patch up breakpad on windows and add the dump_syms src. repository_ctx.symlink(Label("@gapid//tools/build/third_party/breakpad:windows.patch"), "windows.patch") repository_ctx.symlink(Label("@gapid//tools/build/third_party/breakpad:dump_syms_pe.cc"), "src/tools/windows/dump_syms/dump_syms_pe.cc") bash_exe = repository_ctx.os.environ["BAZEL_SH"] if "BAZEL_SH" in repository_ctx.os.environ else "c:/tools/msys64/usr/bin/bash.exe" result = repository_ctx.execute([bash_exe, "-c", "cd {} && /usr/bin/patch -p1 -i windows.patch".format(repository_ctx.path("."))]) if result.return_code: fail("Failed to apply patch: (%d)\n%s" % (result.return_code, result.stderr)) breakpad = repository_rule( implementation = _breakpad_impl, attrs = { "commit": attr.string(mandatory = True), }, )
_base = 'https://chromium.googlesource.com/breakpad/breakpad' def _breakpad_impl(repository_ctx): repository_ctx.download_and_extract(url=_BASE + '/+archive/' + repository_ctx.attr.commit + '.tar.gz', output='.') repository_ctx.symlink(label('@gapid//tools/build/third_party/breakpad:breakpad.BUILD'), 'BUILD') if repository_ctx.os.name.startswith('windows'): repository_ctx.symlink(label('@gapid//tools/build/third_party/breakpad:windows.patch'), 'windows.patch') repository_ctx.symlink(label('@gapid//tools/build/third_party/breakpad:dump_syms_pe.cc'), 'src/tools/windows/dump_syms/dump_syms_pe.cc') bash_exe = repository_ctx.os.environ['BAZEL_SH'] if 'BAZEL_SH' in repository_ctx.os.environ else 'c:/tools/msys64/usr/bin/bash.exe' result = repository_ctx.execute([bash_exe, '-c', 'cd {} && /usr/bin/patch -p1 -i windows.patch'.format(repository_ctx.path('.'))]) if result.return_code: fail('Failed to apply patch: (%d)\n%s' % (result.return_code, result.stderr)) breakpad = repository_rule(implementation=_breakpad_impl, attrs={'commit': attr.string(mandatory=True)})
DEBUG = True SECRET_KEY = "iECgbYWReMNxkRprrzMo5KAQYnb2UeZ3bwvReTSt+VSESW0OB8zbglT+6rEcDW9X" SQLALCHEMY_DATABASE_URI = "mysql+pymysql://root:999999@127.0.0.1:3306/fisher"
debug = True secret_key = 'iECgbYWReMNxkRprrzMo5KAQYnb2UeZ3bwvReTSt+VSESW0OB8zbglT+6rEcDW9X' sqlalchemy_database_uri = 'mysql+pymysql://root:999999@127.0.0.1:3306/fisher'
class RebarContainerItem(object,IDisposable): """ Provides implementation for Rebar stored in RebarContainer. """ def CanApplyPresentationMode(self,dBView): """ CanApplyPresentationMode(self: RebarContainerItem,dBView: View) -> bool Checks if a presentation mode can be applied for this rebar in the given view. dBView: The view in which presentation mode will be applied. Returns: True if presentation mode can be applied for this view,false otherwise. """ pass def CanUseHookType(self,proposedHookId): """ CanUseHookType(self: RebarContainerItem,proposedHookId: ElementId) -> bool Checks if the specified RebarHookType id is of a valid RebarHookType for the Rebar's RebarBarType proposedHookId: The Id of the RebarHookType Returns: Returns true if the id is of a valid RebarHookType for the Rebar element. """ pass def ClearPresentationMode(self,dBView): """ ClearPresentationMode(self: RebarContainerItem,dBView: View) Sets the presentation mode for this rebar set to the default (either for a single view,or for all views). dBView: The view where the presentation mode will be cleared. NULL for all views """ pass def ComputeDrivingCurves(self): """ ComputeDrivingCurves(self: RebarContainerItem) -> IList[Curve] Compute the driving curves. Returns: Returns an empty array if an error is encountered. """ pass def Dispose(self): """ Dispose(self: RebarContainerItem) """ pass def DoesBarExistAtPosition(self,barPosition): """ DoesBarExistAtPosition(self: RebarContainerItem,barPosition: int) -> bool Checks whether a bar exists at the specified position. barPosition: A bar position index between 0 and NumberOfBarPositions-1. """ pass def FindMatchingPredefinedPresentationMode(self,dBView): """ FindMatchingPredefinedPresentationMode(self: RebarContainerItem,dBView: View) -> RebarPresentationMode Determines if there is a matching RebarPresentationMode for the current set of selected hidden and unhidden bars assigned to the given view. dBView: The view. Returns: The presentation mode that matches the current set of selected hidden and unhidden bars. If there is no better match,this returns RebarPresentationMode.Select. """ pass def GetBarPositionTransform(self,barPositionIndex): """ GetBarPositionTransform(self: RebarContainerItem,barPositionIndex: int) -> Transform Return a transform representing the relative position of any individual bar in the set. barPositionIndex: An index between 0 and (NumberOfBarPositions-1). Returns: The position of a bar in the set relative to the first position. """ pass def GetBendData(self): """ GetBendData(self: RebarContainerItem) -> RebarBendData Gets the RebarBendData,containing bar and hook information,of the instance. """ pass def GetCenterlineCurves(self,adjustForSelfIntersection,suppressHooks,suppressBendRadius,multiplanarOption=None): """ GetCenterlineCurves(self: RebarContainerItem,adjustForSelfIntersection: bool,suppressHooks: bool,suppressBendRadius: bool) -> IList[Curve] A chain of curves representing the centerline of the rebar. adjustForSelfIntersection: If the curves overlap,as in a planar stirrup,this parameter controls whether they should be adjusted to avoid intersection (as in fine views), or kept in a single plane for simplicity (as in coarse views). suppressHooks: Identifies if the chain will include hooks curves. suppressBendRadius: Identifies if the connected chain will include unfilleted curves. Returns: The centerline curves or empty array if the curves cannot be computed because the parameters values are inconsistent with the constraints of the RebarShape definition. GetCenterlineCurves(self: RebarContainerItem,adjustForSelfIntersection: bool,suppressHooks: bool,suppressBendRadius: bool,multiplanarOption: MultiplanarOption) -> IList[Curve] A chain of curves representing the centerline of the rebar. adjustForSelfIntersection: If the curves overlap,as in a planar stirrup,this parameter controls whether they should be adjusted to avoid intersection (as in fine views), or kept in a single plane for simplicity (as in coarse views). suppressHooks: Identifies if the chain will include hooks curves. suppressBendRadius: Identifies if the connected chain will include unfilleted curves. multiplanarOption: If the Rebar is a multi-planar shape,this parameter controls whether to generate only the curves in the primary plane (IncludeOnlyPlanarCurves),or to generate all curves, (IncludeAllMultiplanarCurves) including the out-of-plane connector segments as well as multi-planar copies of the primary plane curves. This argument is ignored for planar shapes. Returns: The centerline curves or empty array if the curves cannot be computed because the parameters values are inconsistent with the constraints of the RebarShape definition. """ pass def GetDistributionPath(self): """ GetDistributionPath(self: RebarContainerItem) -> Line The distribution path of a rebar set. Returns: A line beginning at (0,0,0) and representing the direction and length of the set. """ pass def GetHookOrientation(self,iEnd): """ GetHookOrientation(self: RebarContainerItem,iEnd: int) -> RebarHookOrientation Returns the orientation of the hook plane at the start or at the end of the rebar with respect to the orientation of the first or the last curve and the plane normal. iEnd: 0 for the start hook,1 for the end hook. Returns: Value=Right: The hook is on your right as you stand at the end of the bar, with the bar behind you,taking the bar's normal as "up." Value=Left: The hook is on your left as you stand at the end of the bar, with the bar behind you,taking the bar's normal as "up." """ pass def GetHookTypeId(self,end): """ GetHookTypeId(self: RebarContainerItem,end: int) -> ElementId Get the id of the RebarHookType to be applied to the rebar. end: 0 for the start hook,1 for the end hook. Returns: The id of a RebarHookType,or invalidElementId if the rebar has no hook at the specified end. """ pass def GetPresentationMode(self,dBView): """ GetPresentationMode(self: RebarContainerItem,dBView: View) -> RebarPresentationMode Gets the presentaion mode for this rebar set when displayed in the given view. dBView: The view. Returns: The presentation mode. """ pass def HasPresentationOverrides(self,dBView): """ HasPresentationOverrides(self: RebarContainerItem,dBView: View) -> bool Identifies if this rebar set has overridden default presentation settings for the given view. dBView: The view. Returns: True if this rebar set has overriden default presentation settings,false otherwise. """ pass def IsBarHidden(self,view,barIndex): """ IsBarHidden(self: RebarContainerItem,view: View,barIndex: int) -> bool Identifies if a given bar in this rebar set is hidden in this view. view: The view. barIndex: The index of the bar from this rebar set. Returns: True if the bar is hidden in this view,false otherwise. """ pass def IsRebarInSection(self,dBView): """ IsRebarInSection(self: RebarContainerItem,dBView: View) -> bool Identifies if this rebar set is shown as a cross-section in the given view. dBView: The view. Returns: True if this rebar set is shown as a cross-section,false otherwise. """ pass def ReleaseUnmanagedResources(self,*args): """ ReleaseUnmanagedResources(self: RebarContainerItem,disposing: bool) """ pass def SetBarHiddenStatus(self,view,barIndex,hide): """ SetBarHiddenStatus(self: RebarContainerItem,view: View,barIndex: int,hide: bool) Sets the bar in this rebar set to be hidden or unhidden in the given view. view: The view. barIndex: The index of the bar from this set. hide: True to hide this bar in the view,false to unhide the bar. """ pass def SetFromCurves(self,style,barType,startHook,endHook,norm,curves,startHookOrient,endHookOrient,useExistingShapeIfPossible,createNewShape): """ SetFromCurves(self: RebarContainerItem,style: RebarStyle,barType: RebarBarType,startHook: RebarHookType,endHook: RebarHookType,norm: XYZ,curves: IList[Curve],startHookOrient: RebarHookOrientation,endHookOrient: RebarHookOrientation,useExistingShapeIfPossible: bool,createNewShape: bool) """ pass def SetFromCurvesAndShape(self,rebarShape,barType,startHook,endHook,norm,curves,startHookOrient,endHookOrient): """ SetFromCurvesAndShape(self: RebarContainerItem,rebarShape: RebarShape,barType: RebarBarType,startHook: RebarHookType,endHook: RebarHookType,norm: XYZ,curves: IList[Curve],startHookOrient: RebarHookOrientation,endHookOrient: RebarHookOrientation) """ pass def SetFromRebar(self,rebar): """ SetFromRebar(self: RebarContainerItem,rebar: Rebar) Set an instance of a RebarContainerItem element according to a Rebar parameters. rebar: The Rebar. """ pass def SetFromRebarShape(self,rebarShape,barType,origin,xVec,yVec): """ SetFromRebarShape(self: RebarContainerItem,rebarShape: RebarShape,barType: RebarBarType,origin: XYZ,xVec: XYZ,yVec: XYZ) Set an instance of a RebarContainerItem element,as an instance of a RebarShape. The instance will have the default shape parameters from the RebarShape, and its location is based on the bounding box of the shape in the shape definition. Hooks are removed from the shape before computing its bounding box. If appropriate hooks can be found in the document,they will be assigned arbitrarily. rebarShape: A RebarShape element that defines the shape of the rebar. barType: A RebarBarType element that defines bar diameter,bend radius and material of the rebar. origin: The lower-left corner of the shape's bounding box will be placed at this point in the project. xVec: The x-axis in the shape definition will be mapped to this direction in the project. yVec: The y-axis in the shape definition will be mapped to this direction in the project. """ pass def SetHookOrientation(self,iEnd,hookOrientation): """ SetHookOrientation(self: RebarContainerItem,iEnd: int,hookOrientation: RebarHookOrientation) Defines the orientation of the hook plane at the start or at the end of the rebar with respect to the orientation of the first or the last curve and the plane normal. iEnd: 0 for the start hook,1 for the end hook. hookOrientation: Only two values are permitted: Value=Right: The hook is on your right as you stand at the end of the bar, with the bar behind you,taking the bar's normal as "up." Value=Left: The hook is on your left as you stand at the end of the bar, with the bar behind you,taking the bar's normal as "up." """ pass def SetHookTypeId(self,end,hookTypeId): """ SetHookTypeId(self: RebarContainerItem,end: int,hookTypeId: ElementId) Set the id of the RebarHookType to be applied to the rebar. end: 0 for the start hook,1 for the end hook. hookTypeId: The id of a RebarHookType element,or invalidElementId if the rebar should have no hook at the specified end. """ pass def SetLayoutAsFixedNumber(self,numberOfBarPositions,arrayLength,barsOnNormalSide,includeFirstBar,includeLastBar): """ SetLayoutAsFixedNumber(self: RebarContainerItem,numberOfBarPositions: int,arrayLength: float,barsOnNormalSide: bool,includeFirstBar: bool,includeLastBar: bool) Sets the Layout Rule property of rebar set to FixedNumber. numberOfBarPositions: The number of bar positions in rebar set arrayLength: The distribution length of rebar set barsOnNormalSide: Identifies if the bars of the rebar set are on the same side of the rebar plane indicated by the normal includeFirstBar: Identifies if the first bar in rebar set is shown includeLastBar: Identifies if the last bar in rebar set is shown """ pass def SetLayoutAsMaximumSpacing(self,spacing,arrayLength,barsOnNormalSide,includeFirstBar,includeLastBar): """ SetLayoutAsMaximumSpacing(self: RebarContainerItem,spacing: float,arrayLength: float,barsOnNormalSide: bool,includeFirstBar: bool,includeLastBar: bool) Sets the Layout Rule property of rebar set to MaximumSpacing spacing: The maximum spacing between rebar in rebar set arrayLength: The distribution length of rebar set barsOnNormalSide: Identifies if the bars of the rebar set are on the same side of the rebar plane indicated by the normal includeFirstBar: Identifies if the first bar in rebar set is shown includeLastBar: Identifies if the last bar in rebar set is shown """ pass def SetLayoutAsMinimumClearSpacing(self,spacing,arrayLength,barsOnNormalSide,includeFirstBar,includeLastBar): """ SetLayoutAsMinimumClearSpacing(self: RebarContainerItem,spacing: float,arrayLength: float,barsOnNormalSide: bool,includeFirstBar: bool,includeLastBar: bool) Sets the Layout Rule property of rebar set to MinimumClearSpacing spacing: The maximum spacing between rebar in rebar set arrayLength: The distribution length of rebar set barsOnNormalSide: Identifies if the bars of the rebar set are on the same side of the rebar plane indicated by the normal includeFirstBar: Identifies if the first bar in rebar set is shown includeLastBar: Identifies if the last bar in rebar set is shown """ pass def SetLayoutAsNumberWithSpacing(self,numberOfBarPositions,spacing,barsOnNormalSide,includeFirstBar,includeLastBar): """ SetLayoutAsNumberWithSpacing(self: RebarContainerItem,numberOfBarPositions: int,spacing: float,barsOnNormalSide: bool,includeFirstBar: bool,includeLastBar: bool) Sets the Layout Rule property of rebar set to NumberWithSpacing numberOfBarPositions: The number of bar positions in rebar set spacing: The maximum spacing between rebar in rebar set barsOnNormalSide: Identifies if the bars of the rebar set are on the same side of the rebar plane indicated by the normal includeFirstBar: Identifies if the first bar in rebar set is shown includeLastBar: Identifies if the last bar in rebar set is shown """ pass def SetLayoutAsSingle(self): """ SetLayoutAsSingle(self: RebarContainerItem) Sets the Layout Rule property of rebar set to Single. """ pass def SetPresentationMode(self,dBView,presentationMode): """ SetPresentationMode(self: RebarContainerItem,dBView: View,presentationMode: RebarPresentationMode) Sets the presentation mode for this rebar set when displayed in the given view. dBView: The view. presentationMode: The presentation mode. """ pass def __enter__(self,*args): """ __enter__(self: IDisposable) -> object """ pass def __exit__(self,*args): """ __exit__(self: IDisposable,exc_type: object,exc_value: object,exc_back: object) """ pass def __init__(self,*args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass def __repr__(self,*args): """ __repr__(self: object) -> str """ pass ArrayLength=property(lambda self: object(),lambda self,v: None,lambda self: None) """Identifies the distribution path length of rebar set. Get: ArrayLength(self: RebarContainerItem) -> float Set: ArrayLength(self: RebarContainerItem)=value """ BarsOnNormalSide=property(lambda self: object(),lambda self,v: None,lambda self: None) """Identifies if the bars of the rebar set are on the same side of the rebar plane indicated by the normal. Get: BarsOnNormalSide(self: RebarContainerItem) -> bool Set: BarsOnNormalSide(self: RebarContainerItem)=value """ BarTypeId=property(lambda self: object(),lambda self,v: None,lambda self: None) """The identifier of the rebar bar type. Get: BarTypeId(self: RebarContainerItem) -> ElementId """ BaseFinishingTurns=property(lambda self: object(),lambda self,v: None,lambda self: None) """For a spiral,the number of finishing turns at the lower end of the spiral. Get: BaseFinishingTurns(self: RebarContainerItem) -> int Set: BaseFinishingTurns(self: RebarContainerItem)=value """ Height=property(lambda self: object(),lambda self,v: None,lambda self: None) """For a spiral,the overall height. Get: Height(self: RebarContainerItem) -> float Set: Height(self: RebarContainerItem)=value """ IncludeFirstBar=property(lambda self: object(),lambda self,v: None,lambda self: None) """Identifies if the first bar in rebar set is shown. Get: IncludeFirstBar(self: RebarContainerItem) -> bool Set: IncludeFirstBar(self: RebarContainerItem)=value """ IncludeLastBar=property(lambda self: object(),lambda self,v: None,lambda self: None) """Identifies if the last bar in rebar set is shown. Get: IncludeLastBar(self: RebarContainerItem) -> bool Set: IncludeLastBar(self: RebarContainerItem)=value """ IsValidObject=property(lambda self: object(),lambda self,v: None,lambda self: None) """Specifies whether the .NET object represents a valid Revit entity. Get: IsValidObject(self: RebarContainerItem) -> bool """ ItemIndex=property(lambda self: object(),lambda self,v: None,lambda self: None) """The index of this item in its associated RebarContainer. Get: ItemIndex(self: RebarContainerItem) -> int """ LayoutRule=property(lambda self: object(),lambda self,v: None,lambda self: None) """Identifies the layout rule of rebar set. Get: LayoutRule(self: RebarContainerItem) -> RebarLayoutRule """ MaxSpacing=property(lambda self: object(),lambda self,v: None,lambda self: None) """Identifies the maximum spacing between rebar in rebar set. Get: MaxSpacing(self: RebarContainerItem) -> float Set: MaxSpacing(self: RebarContainerItem)=value """ MultiplanarDepth=property(lambda self: object(),lambda self,v: None,lambda self: None) """For a multiplanar rebar,the depth of the instance. Get: MultiplanarDepth(self: RebarContainerItem) -> float Set: MultiplanarDepth(self: RebarContainerItem)=value """ Normal=property(lambda self: object(),lambda self,v: None,lambda self: None) """A unit-length vector normal to the plane of the rebar Get: Normal(self: RebarContainerItem) -> XYZ """ NumberOfBarPositions=property(lambda self: object(),lambda self,v: None,lambda self: None) """The number of potential bars in the set. Get: NumberOfBarPositions(self: RebarContainerItem) -> int Set: NumberOfBarPositions(self: RebarContainerItem)=value """ Pitch=property(lambda self: object(),lambda self,v: None,lambda self: None) """For a spiral,the pitch,or vertical distance traveled in one rotation. Get: Pitch(self: RebarContainerItem) -> float Set: Pitch(self: RebarContainerItem)=value """ Quantity=property(lambda self: object(),lambda self,v: None,lambda self: None) """Identifies the number of bars in rebar set. Get: Quantity(self: RebarContainerItem) -> int """ RebarShapeId=property(lambda self: object(),lambda self,v: None,lambda self: None) """The RebarShape element that defines the shape of the rebar. Get: RebarShapeId(self: RebarContainerItem) -> ElementId Set: RebarShapeId(self: RebarContainerItem)=value """ TopFinishingTurns=property(lambda self: object(),lambda self,v: None,lambda self: None) """For a spiral,the number of finishing turns at the upper end of the spiral. Get: TopFinishingTurns(self: RebarContainerItem) -> int Set: TopFinishingTurns(self: RebarContainerItem)=value """ TotalLength=property(lambda self: object(),lambda self,v: None,lambda self: None) """The length of an individual bar multiplied by Quantity. Get: TotalLength(self: RebarContainerItem) -> float """ Volume=property(lambda self: object(),lambda self,v: None,lambda self: None) """The volume of an individual bar multiplied by Quantity. Get: Volume(self: RebarContainerItem) -> float """
class Rebarcontaineritem(object, IDisposable): """ Provides implementation for Rebar stored in RebarContainer. """ def can_apply_presentation_mode(self, dBView): """ CanApplyPresentationMode(self: RebarContainerItem,dBView: View) -> bool Checks if a presentation mode can be applied for this rebar in the given view. dBView: The view in which presentation mode will be applied. Returns: True if presentation mode can be applied for this view,false otherwise. """ pass def can_use_hook_type(self, proposedHookId): """ CanUseHookType(self: RebarContainerItem,proposedHookId: ElementId) -> bool Checks if the specified RebarHookType id is of a valid RebarHookType for the Rebar's RebarBarType proposedHookId: The Id of the RebarHookType Returns: Returns true if the id is of a valid RebarHookType for the Rebar element. """ pass def clear_presentation_mode(self, dBView): """ ClearPresentationMode(self: RebarContainerItem,dBView: View) Sets the presentation mode for this rebar set to the default (either for a single view,or for all views). dBView: The view where the presentation mode will be cleared. NULL for all views """ pass def compute_driving_curves(self): """ ComputeDrivingCurves(self: RebarContainerItem) -> IList[Curve] Compute the driving curves. Returns: Returns an empty array if an error is encountered. """ pass def dispose(self): """ Dispose(self: RebarContainerItem) """ pass def does_bar_exist_at_position(self, barPosition): """ DoesBarExistAtPosition(self: RebarContainerItem,barPosition: int) -> bool Checks whether a bar exists at the specified position. barPosition: A bar position index between 0 and NumberOfBarPositions-1. """ pass def find_matching_predefined_presentation_mode(self, dBView): """ FindMatchingPredefinedPresentationMode(self: RebarContainerItem,dBView: View) -> RebarPresentationMode Determines if there is a matching RebarPresentationMode for the current set of selected hidden and unhidden bars assigned to the given view. dBView: The view. Returns: The presentation mode that matches the current set of selected hidden and unhidden bars. If there is no better match,this returns RebarPresentationMode.Select. """ pass def get_bar_position_transform(self, barPositionIndex): """ GetBarPositionTransform(self: RebarContainerItem,barPositionIndex: int) -> Transform Return a transform representing the relative position of any individual bar in the set. barPositionIndex: An index between 0 and (NumberOfBarPositions-1). Returns: The position of a bar in the set relative to the first position. """ pass def get_bend_data(self): """ GetBendData(self: RebarContainerItem) -> RebarBendData Gets the RebarBendData,containing bar and hook information,of the instance. """ pass def get_centerline_curves(self, adjustForSelfIntersection, suppressHooks, suppressBendRadius, multiplanarOption=None): """ GetCenterlineCurves(self: RebarContainerItem,adjustForSelfIntersection: bool,suppressHooks: bool,suppressBendRadius: bool) -> IList[Curve] A chain of curves representing the centerline of the rebar. adjustForSelfIntersection: If the curves overlap,as in a planar stirrup,this parameter controls whether they should be adjusted to avoid intersection (as in fine views), or kept in a single plane for simplicity (as in coarse views). suppressHooks: Identifies if the chain will include hooks curves. suppressBendRadius: Identifies if the connected chain will include unfilleted curves. Returns: The centerline curves or empty array if the curves cannot be computed because the parameters values are inconsistent with the constraints of the RebarShape definition. GetCenterlineCurves(self: RebarContainerItem,adjustForSelfIntersection: bool,suppressHooks: bool,suppressBendRadius: bool,multiplanarOption: MultiplanarOption) -> IList[Curve] A chain of curves representing the centerline of the rebar. adjustForSelfIntersection: If the curves overlap,as in a planar stirrup,this parameter controls whether they should be adjusted to avoid intersection (as in fine views), or kept in a single plane for simplicity (as in coarse views). suppressHooks: Identifies if the chain will include hooks curves. suppressBendRadius: Identifies if the connected chain will include unfilleted curves. multiplanarOption: If the Rebar is a multi-planar shape,this parameter controls whether to generate only the curves in the primary plane (IncludeOnlyPlanarCurves),or to generate all curves, (IncludeAllMultiplanarCurves) including the out-of-plane connector segments as well as multi-planar copies of the primary plane curves. This argument is ignored for planar shapes. Returns: The centerline curves or empty array if the curves cannot be computed because the parameters values are inconsistent with the constraints of the RebarShape definition. """ pass def get_distribution_path(self): """ GetDistributionPath(self: RebarContainerItem) -> Line The distribution path of a rebar set. Returns: A line beginning at (0,0,0) and representing the direction and length of the set. """ pass def get_hook_orientation(self, iEnd): """ GetHookOrientation(self: RebarContainerItem,iEnd: int) -> RebarHookOrientation Returns the orientation of the hook plane at the start or at the end of the rebar with respect to the orientation of the first or the last curve and the plane normal. iEnd: 0 for the start hook,1 for the end hook. Returns: Value=Right: The hook is on your right as you stand at the end of the bar, with the bar behind you,taking the bar's normal as "up." Value=Left: The hook is on your left as you stand at the end of the bar, with the bar behind you,taking the bar's normal as "up." """ pass def get_hook_type_id(self, end): """ GetHookTypeId(self: RebarContainerItem,end: int) -> ElementId Get the id of the RebarHookType to be applied to the rebar. end: 0 for the start hook,1 for the end hook. Returns: The id of a RebarHookType,or invalidElementId if the rebar has no hook at the specified end. """ pass def get_presentation_mode(self, dBView): """ GetPresentationMode(self: RebarContainerItem,dBView: View) -> RebarPresentationMode Gets the presentaion mode for this rebar set when displayed in the given view. dBView: The view. Returns: The presentation mode. """ pass def has_presentation_overrides(self, dBView): """ HasPresentationOverrides(self: RebarContainerItem,dBView: View) -> bool Identifies if this rebar set has overridden default presentation settings for the given view. dBView: The view. Returns: True if this rebar set has overriden default presentation settings,false otherwise. """ pass def is_bar_hidden(self, view, barIndex): """ IsBarHidden(self: RebarContainerItem,view: View,barIndex: int) -> bool Identifies if a given bar in this rebar set is hidden in this view. view: The view. barIndex: The index of the bar from this rebar set. Returns: True if the bar is hidden in this view,false otherwise. """ pass def is_rebar_in_section(self, dBView): """ IsRebarInSection(self: RebarContainerItem,dBView: View) -> bool Identifies if this rebar set is shown as a cross-section in the given view. dBView: The view. Returns: True if this rebar set is shown as a cross-section,false otherwise. """ pass def release_unmanaged_resources(self, *args): """ ReleaseUnmanagedResources(self: RebarContainerItem,disposing: bool) """ pass def set_bar_hidden_status(self, view, barIndex, hide): """ SetBarHiddenStatus(self: RebarContainerItem,view: View,barIndex: int,hide: bool) Sets the bar in this rebar set to be hidden or unhidden in the given view. view: The view. barIndex: The index of the bar from this set. hide: True to hide this bar in the view,false to unhide the bar. """ pass def set_from_curves(self, style, barType, startHook, endHook, norm, curves, startHookOrient, endHookOrient, useExistingShapeIfPossible, createNewShape): """ SetFromCurves(self: RebarContainerItem,style: RebarStyle,barType: RebarBarType,startHook: RebarHookType,endHook: RebarHookType,norm: XYZ,curves: IList[Curve],startHookOrient: RebarHookOrientation,endHookOrient: RebarHookOrientation,useExistingShapeIfPossible: bool,createNewShape: bool) """ pass def set_from_curves_and_shape(self, rebarShape, barType, startHook, endHook, norm, curves, startHookOrient, endHookOrient): """ SetFromCurvesAndShape(self: RebarContainerItem,rebarShape: RebarShape,barType: RebarBarType,startHook: RebarHookType,endHook: RebarHookType,norm: XYZ,curves: IList[Curve],startHookOrient: RebarHookOrientation,endHookOrient: RebarHookOrientation) """ pass def set_from_rebar(self, rebar): """ SetFromRebar(self: RebarContainerItem,rebar: Rebar) Set an instance of a RebarContainerItem element according to a Rebar parameters. rebar: The Rebar. """ pass def set_from_rebar_shape(self, rebarShape, barType, origin, xVec, yVec): """ SetFromRebarShape(self: RebarContainerItem,rebarShape: RebarShape,barType: RebarBarType,origin: XYZ,xVec: XYZ,yVec: XYZ) Set an instance of a RebarContainerItem element,as an instance of a RebarShape. The instance will have the default shape parameters from the RebarShape, and its location is based on the bounding box of the shape in the shape definition. Hooks are removed from the shape before computing its bounding box. If appropriate hooks can be found in the document,they will be assigned arbitrarily. rebarShape: A RebarShape element that defines the shape of the rebar. barType: A RebarBarType element that defines bar diameter,bend radius and material of the rebar. origin: The lower-left corner of the shape's bounding box will be placed at this point in the project. xVec: The x-axis in the shape definition will be mapped to this direction in the project. yVec: The y-axis in the shape definition will be mapped to this direction in the project. """ pass def set_hook_orientation(self, iEnd, hookOrientation): """ SetHookOrientation(self: RebarContainerItem,iEnd: int,hookOrientation: RebarHookOrientation) Defines the orientation of the hook plane at the start or at the end of the rebar with respect to the orientation of the first or the last curve and the plane normal. iEnd: 0 for the start hook,1 for the end hook. hookOrientation: Only two values are permitted: Value=Right: The hook is on your right as you stand at the end of the bar, with the bar behind you,taking the bar's normal as "up." Value=Left: The hook is on your left as you stand at the end of the bar, with the bar behind you,taking the bar's normal as "up." """ pass def set_hook_type_id(self, end, hookTypeId): """ SetHookTypeId(self: RebarContainerItem,end: int,hookTypeId: ElementId) Set the id of the RebarHookType to be applied to the rebar. end: 0 for the start hook,1 for the end hook. hookTypeId: The id of a RebarHookType element,or invalidElementId if the rebar should have no hook at the specified end. """ pass def set_layout_as_fixed_number(self, numberOfBarPositions, arrayLength, barsOnNormalSide, includeFirstBar, includeLastBar): """ SetLayoutAsFixedNumber(self: RebarContainerItem,numberOfBarPositions: int,arrayLength: float,barsOnNormalSide: bool,includeFirstBar: bool,includeLastBar: bool) Sets the Layout Rule property of rebar set to FixedNumber. numberOfBarPositions: The number of bar positions in rebar set arrayLength: The distribution length of rebar set barsOnNormalSide: Identifies if the bars of the rebar set are on the same side of the rebar plane indicated by the normal includeFirstBar: Identifies if the first bar in rebar set is shown includeLastBar: Identifies if the last bar in rebar set is shown """ pass def set_layout_as_maximum_spacing(self, spacing, arrayLength, barsOnNormalSide, includeFirstBar, includeLastBar): """ SetLayoutAsMaximumSpacing(self: RebarContainerItem,spacing: float,arrayLength: float,barsOnNormalSide: bool,includeFirstBar: bool,includeLastBar: bool) Sets the Layout Rule property of rebar set to MaximumSpacing spacing: The maximum spacing between rebar in rebar set arrayLength: The distribution length of rebar set barsOnNormalSide: Identifies if the bars of the rebar set are on the same side of the rebar plane indicated by the normal includeFirstBar: Identifies if the first bar in rebar set is shown includeLastBar: Identifies if the last bar in rebar set is shown """ pass def set_layout_as_minimum_clear_spacing(self, spacing, arrayLength, barsOnNormalSide, includeFirstBar, includeLastBar): """ SetLayoutAsMinimumClearSpacing(self: RebarContainerItem,spacing: float,arrayLength: float,barsOnNormalSide: bool,includeFirstBar: bool,includeLastBar: bool) Sets the Layout Rule property of rebar set to MinimumClearSpacing spacing: The maximum spacing between rebar in rebar set arrayLength: The distribution length of rebar set barsOnNormalSide: Identifies if the bars of the rebar set are on the same side of the rebar plane indicated by the normal includeFirstBar: Identifies if the first bar in rebar set is shown includeLastBar: Identifies if the last bar in rebar set is shown """ pass def set_layout_as_number_with_spacing(self, numberOfBarPositions, spacing, barsOnNormalSide, includeFirstBar, includeLastBar): """ SetLayoutAsNumberWithSpacing(self: RebarContainerItem,numberOfBarPositions: int,spacing: float,barsOnNormalSide: bool,includeFirstBar: bool,includeLastBar: bool) Sets the Layout Rule property of rebar set to NumberWithSpacing numberOfBarPositions: The number of bar positions in rebar set spacing: The maximum spacing between rebar in rebar set barsOnNormalSide: Identifies if the bars of the rebar set are on the same side of the rebar plane indicated by the normal includeFirstBar: Identifies if the first bar in rebar set is shown includeLastBar: Identifies if the last bar in rebar set is shown """ pass def set_layout_as_single(self): """ SetLayoutAsSingle(self: RebarContainerItem) Sets the Layout Rule property of rebar set to Single. """ pass def set_presentation_mode(self, dBView, presentationMode): """ SetPresentationMode(self: RebarContainerItem,dBView: View,presentationMode: RebarPresentationMode) Sets the presentation mode for this rebar set when displayed in the given view. dBView: The view. presentationMode: The presentation mode. """ pass def __enter__(self, *args): """ __enter__(self: IDisposable) -> object """ pass def __exit__(self, *args): """ __exit__(self: IDisposable,exc_type: object,exc_value: object,exc_back: object) """ pass def __init__(self, *args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass def __repr__(self, *args): """ __repr__(self: object) -> str """ pass array_length = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Identifies the distribution path length of rebar set.\n\n\n\nGet: ArrayLength(self: RebarContainerItem) -> float\n\n\n\nSet: ArrayLength(self: RebarContainerItem)=value\n\n' bars_on_normal_side = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Identifies if the bars of the rebar set are on the same side of the rebar plane indicated by the normal.\n\n\n\nGet: BarsOnNormalSide(self: RebarContainerItem) -> bool\n\n\n\nSet: BarsOnNormalSide(self: RebarContainerItem)=value\n\n' bar_type_id = property(lambda self: object(), lambda self, v: None, lambda self: None) 'The identifier of the rebar bar type.\n\n\n\nGet: BarTypeId(self: RebarContainerItem) -> ElementId\n\n\n\n' base_finishing_turns = property(lambda self: object(), lambda self, v: None, lambda self: None) 'For a spiral,the number of finishing turns at the lower end of the spiral.\n\n\n\nGet: BaseFinishingTurns(self: RebarContainerItem) -> int\n\n\n\nSet: BaseFinishingTurns(self: RebarContainerItem)=value\n\n' height = property(lambda self: object(), lambda self, v: None, lambda self: None) 'For a spiral,the overall height.\n\n\n\nGet: Height(self: RebarContainerItem) -> float\n\n\n\nSet: Height(self: RebarContainerItem)=value\n\n' include_first_bar = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Identifies if the first bar in rebar set is shown.\n\n\n\nGet: IncludeFirstBar(self: RebarContainerItem) -> bool\n\n\n\nSet: IncludeFirstBar(self: RebarContainerItem)=value\n\n' include_last_bar = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Identifies if the last bar in rebar set is shown.\n\n\n\nGet: IncludeLastBar(self: RebarContainerItem) -> bool\n\n\n\nSet: IncludeLastBar(self: RebarContainerItem)=value\n\n' is_valid_object = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Specifies whether the .NET object represents a valid Revit entity.\n\n\n\nGet: IsValidObject(self: RebarContainerItem) -> bool\n\n\n\n' item_index = property(lambda self: object(), lambda self, v: None, lambda self: None) 'The index of this item in its associated RebarContainer.\n\n\n\nGet: ItemIndex(self: RebarContainerItem) -> int\n\n\n\n' layout_rule = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Identifies the layout rule of rebar set.\n\n\n\nGet: LayoutRule(self: RebarContainerItem) -> RebarLayoutRule\n\n\n\n' max_spacing = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Identifies the maximum spacing between rebar in rebar set.\n\n\n\nGet: MaxSpacing(self: RebarContainerItem) -> float\n\n\n\nSet: MaxSpacing(self: RebarContainerItem)=value\n\n' multiplanar_depth = property(lambda self: object(), lambda self, v: None, lambda self: None) 'For a multiplanar rebar,the depth of the instance.\n\n\n\nGet: MultiplanarDepth(self: RebarContainerItem) -> float\n\n\n\nSet: MultiplanarDepth(self: RebarContainerItem)=value\n\n' normal = property(lambda self: object(), lambda self, v: None, lambda self: None) 'A unit-length vector normal to the plane of the rebar\n\n\n\nGet: Normal(self: RebarContainerItem) -> XYZ\n\n\n\n' number_of_bar_positions = property(lambda self: object(), lambda self, v: None, lambda self: None) 'The number of potential bars in the set.\n\n\n\nGet: NumberOfBarPositions(self: RebarContainerItem) -> int\n\n\n\nSet: NumberOfBarPositions(self: RebarContainerItem)=value\n\n' pitch = property(lambda self: object(), lambda self, v: None, lambda self: None) 'For a spiral,the pitch,or vertical distance traveled in one rotation.\n\n\n\nGet: Pitch(self: RebarContainerItem) -> float\n\n\n\nSet: Pitch(self: RebarContainerItem)=value\n\n' quantity = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Identifies the number of bars in rebar set.\n\n\n\nGet: Quantity(self: RebarContainerItem) -> int\n\n\n\n' rebar_shape_id = property(lambda self: object(), lambda self, v: None, lambda self: None) 'The RebarShape element that defines the shape of the rebar.\n\n\n\nGet: RebarShapeId(self: RebarContainerItem) -> ElementId\n\n\n\nSet: RebarShapeId(self: RebarContainerItem)=value\n\n' top_finishing_turns = property(lambda self: object(), lambda self, v: None, lambda self: None) 'For a spiral,the number of finishing turns at the upper end of the spiral.\n\n\n\nGet: TopFinishingTurns(self: RebarContainerItem) -> int\n\n\n\nSet: TopFinishingTurns(self: RebarContainerItem)=value\n\n' total_length = property(lambda self: object(), lambda self, v: None, lambda self: None) 'The length of an individual bar multiplied by Quantity.\n\n\n\nGet: TotalLength(self: RebarContainerItem) -> float\n\n\n\n' volume = property(lambda self: object(), lambda self, v: None, lambda self: None) 'The volume of an individual bar multiplied by Quantity.\n\n\n\nGet: Volume(self: RebarContainerItem) -> float\n\n\n\n'
def test_shib_redirect(client, app): r = client.get("/login/shib") assert r.status_code == 302 def test_shib_login(app, client): r = client.get( "/login/shib/login", headers={app.config["SHIBBOLETH_HEADER"]: "test"} ) assert r.status_code == 200 def test_shib_login_redirect(app, client): r = client.get("/login/shib?redirect=http://localhost") r = client.get( "/login/shib/login", headers={app.config["SHIBBOLETH_HEADER"]: "test"} ) assert r.status_code == 302 assert r.headers["Location"] == "http://localhost" def test_shib_login_fail(client): r = client.get("/login/shib/login") assert r.status_code == 401
def test_shib_redirect(client, app): r = client.get('/login/shib') assert r.status_code == 302 def test_shib_login(app, client): r = client.get('/login/shib/login', headers={app.config['SHIBBOLETH_HEADER']: 'test'}) assert r.status_code == 200 def test_shib_login_redirect(app, client): r = client.get('/login/shib?redirect=http://localhost') r = client.get('/login/shib/login', headers={app.config['SHIBBOLETH_HEADER']: 'test'}) assert r.status_code == 302 assert r.headers['Location'] == 'http://localhost' def test_shib_login_fail(client): r = client.get('/login/shib/login') assert r.status_code == 401
siblings = int(input()) popsicles = int(input()) #your code goes here if((popsicles % siblings)==0): print("give away") else: print("eat them yourself")
siblings = int(input()) popsicles = int(input()) if popsicles % siblings == 0: print('give away') else: print('eat them yourself')
# encoding: utf-8 # module System.Text calls itself Text # from mscorlib,Version=4.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089,System,Version=4.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089 # by generator 1.145 # no doc # no imports # no functions # classes class Encoding(object,ICloneable): """ Represents a character encoding. """ def Clone(self): """ Clone(self: Encoding) -> object When overridden in a derived class,creates a shallow copy of the current System.Text.Encoding object. Returns: A copy of the current System.Text.Encoding object. """ pass @staticmethod def Convert(srcEncoding,dstEncoding,bytes,index=None,count=None): """ Convert(srcEncoding: Encoding,dstEncoding: Encoding,bytes: Array[Byte],index: int,count: int) -> Array[Byte] Converts a range of bytes in a byte array from one encoding to another. srcEncoding: The encoding of the source array,bytes. dstEncoding: The encoding of the output array. bytes: The array of bytes to convert. index: The index of the first element of bytes to convert. count: The number of bytes to convert. Returns: An array of type System.Byte containing the result of converting a range of bytes in bytes from srcEncoding to dstEncoding. Convert(srcEncoding: Encoding,dstEncoding: Encoding,bytes: Array[Byte]) -> Array[Byte] Converts an entire byte array from one encoding to another. srcEncoding: The encoding format of bytes. dstEncoding: The target encoding format. bytes: The bytes to convert. Returns: An array of type System.Byte containing the results of converting bytes from srcEncoding to dstEncoding. """ pass def Equals(self,value): """ Equals(self: Encoding,value: object) -> bool Determines whether the specified System.Object is equal to the current instance. value: The System.Object to compare with the current instance. Returns: true if value is an instance of System.Text.Encoding and is equal to the current instance; otherwise,false. """ pass def GetByteCount(self,*__args): """ GetByteCount(self: Encoding,chars: Array[Char],index: int,count: int) -> int When overridden in a derived class,calculates the number of bytes produced by encoding a set of characters from the specified character array. chars: The character array containing the set of characters to encode. index: The index of the first character to encode. count: The number of characters to encode. Returns: The number of bytes produced by encoding the specified characters. GetByteCount(self: Encoding,chars: Char*,count: int) -> int When overridden in a derived class,calculates the number of bytes produced by encoding a set of characters starting at the specified character pointer. chars: A pointer to the first character to encode. count: The number of characters to encode. Returns: The number of bytes produced by encoding the specified characters. GetByteCount(self: Encoding,chars: Array[Char]) -> int When overridden in a derived class,calculates the number of bytes produced by encoding all the characters in the specified character array. chars: The character array containing the characters to encode. Returns: The number of bytes produced by encoding all the characters in the specified character array. GetByteCount(self: Encoding,s: str) -> int When overridden in a derived class,calculates the number of bytes produced by encoding the characters in the specified string. s: The string containing the set of characters to encode. Returns: The number of bytes produced by encoding the specified characters. """ pass def GetBytes(self,*__args): """ GetBytes(self: Encoding,s: str) -> Array[Byte] When overridden in a derived class,encodes all the characters in the specified string into a sequence of bytes. s: The string containing the characters to encode. Returns: A byte array containing the results of encoding the specified set of characters. GetBytes(self: Encoding,s: str,charIndex: int,charCount: int,bytes: Array[Byte],byteIndex: int) -> int When overridden in a derived class,encodes a set of characters from the specified string into the specified byte array. s: The string containing the set of characters to encode. charIndex: The index of the first character to encode. charCount: The number of characters to encode. bytes: The byte array to contain the resulting sequence of bytes. byteIndex: The index at which to start writing the resulting sequence of bytes. Returns: The actual number of bytes written into bytes. GetBytes(self: Encoding,chars: Char*,charCount: int,bytes: Byte*,byteCount: int) -> int When overridden in a derived class,encodes a set of characters starting at the specified character pointer into a sequence of bytes that are stored starting at the specified byte pointer. chars: A pointer to the first character to encode. charCount: The number of characters to encode. bytes: A pointer to the location at which to start writing the resulting sequence of bytes. byteCount: The maximum number of bytes to write. Returns: The actual number of bytes written at the location indicated by the bytes parameter. GetBytes(self: Encoding,chars: Array[Char]) -> Array[Byte] When overridden in a derived class,encodes all the characters in the specified character array into a sequence of bytes. chars: The character array containing the characters to encode. Returns: A byte array containing the results of encoding the specified set of characters. GetBytes(self: Encoding,chars: Array[Char],index: int,count: int) -> Array[Byte] When overridden in a derived class,encodes a set of characters from the specified character array into a sequence of bytes. chars: The character array containing the set of characters to encode. index: The index of the first character to encode. count: The number of characters to encode. Returns: A byte array containing the results of encoding the specified set of characters. GetBytes(self: Encoding,chars: Array[Char],charIndex: int,charCount: int,bytes: Array[Byte],byteIndex: int) -> int When overridden in a derived class,encodes a set of characters from the specified character array into the specified byte array. chars: The character array containing the set of characters to encode. charIndex: The index of the first character to encode. charCount: The number of characters to encode. bytes: The byte array to contain the resulting sequence of bytes. byteIndex: The index at which to start writing the resulting sequence of bytes. Returns: The actual number of bytes written into bytes. """ pass def GetCharCount(self,bytes,*__args): """ GetCharCount(self: Encoding,bytes: Byte*,count: int) -> int When overridden in a derived class,calculates the number of characters produced by decoding a sequence of bytes starting at the specified byte pointer. bytes: A pointer to the first byte to decode. count: The number of bytes to decode. Returns: The number of characters produced by decoding the specified sequence of bytes. GetCharCount(self: Encoding,bytes: Array[Byte],index: int,count: int) -> int When overridden in a derived class,calculates the number of characters produced by decoding a sequence of bytes from the specified byte array. bytes: The byte array containing the sequence of bytes to decode. index: The index of the first byte to decode. count: The number of bytes to decode. Returns: The number of characters produced by decoding the specified sequence of bytes. GetCharCount(self: Encoding,bytes: Array[Byte]) -> int When overridden in a derived class,calculates the number of characters produced by decoding all the bytes in the specified byte array. bytes: The byte array containing the sequence of bytes to decode. Returns: The number of characters produced by decoding the specified sequence of bytes. """ pass def GetChars(self,bytes,*__args): """ GetChars(self: Encoding,bytes: Array[Byte],byteIndex: int,byteCount: int,chars: Array[Char],charIndex: int) -> int When overridden in a derived class,decodes a sequence of bytes from the specified byte array into the specified character array. bytes: The byte array containing the sequence of bytes to decode. byteIndex: The index of the first byte to decode. byteCount: The number of bytes to decode. chars: The character array to contain the resulting set of characters. charIndex: The index at which to start writing the resulting set of characters. Returns: The actual number of characters written into chars. GetChars(self: Encoding,bytes: Byte*,byteCount: int,chars: Char*,charCount: int) -> int When overridden in a derived class,decodes a sequence of bytes starting at the specified byte pointer into a set of characters that are stored starting at the specified character pointer. bytes: A pointer to the first byte to decode. byteCount: The number of bytes to decode. chars: A pointer to the location at which to start writing the resulting set of characters. charCount: The maximum number of characters to write. Returns: The actual number of characters written at the location indicated by the chars parameter. GetChars(self: Encoding,bytes: Array[Byte]) -> Array[Char] When overridden in a derived class,decodes all the bytes in the specified byte array into a set of characters. bytes: The byte array containing the sequence of bytes to decode. Returns: A character array containing the results of decoding the specified sequence of bytes. GetChars(self: Encoding,bytes: Array[Byte],index: int,count: int) -> Array[Char] When overridden in a derived class,decodes a sequence of bytes from the specified byte array into a set of characters. bytes: The byte array containing the sequence of bytes to decode. index: The index of the first byte to decode. count: The number of bytes to decode. Returns: A character array containing the results of decoding the specified sequence of bytes. """ pass def GetDecoder(self): """ GetDecoder(self: Encoding) -> Decoder When overridden in a derived class,obtains a decoder that converts an encoded sequence of bytes into a sequence of characters. Returns: A System.Text.Decoder that converts an encoded sequence of bytes into a sequence of characters. """ pass def GetEncoder(self): """ GetEncoder(self: Encoding) -> Encoder When overridden in a derived class,obtains an encoder that converts a sequence of Unicode characters into an encoded sequence of bytes. Returns: A System.Text.Encoder that converts a sequence of Unicode characters into an encoded sequence of bytes. """ pass @staticmethod def GetEncoding(*__args): """ GetEncoding(name: str) -> Encoding Returns the encoding associated with the specified code page name. name: The code page name of the preferred encoding. Any value returned by the System.Text.Encoding.WebName property is valid. Possible values are listed in the Name column of the table that appears in the System.Text.Encoding class topic. Returns: The encoding associated with the specified code page. GetEncoding(name: str,encoderFallback: EncoderFallback,decoderFallback: DecoderFallback) -> Encoding Returns the encoding associated with the specified code page name. Parameters specify an error handler for characters that cannot be encoded and byte sequences that cannot be decoded. name: The code page name of the preferred encoding. Any value returned by the System.Text.Encoding.WebName property is valid. Possible values are listed in the Name column of the table that appears in the System.Text.Encoding class topic. encoderFallback: An object that provides an error-handling procedure when a character cannot be encoded with the current encoding. decoderFallback: An object that provides an error-handling procedure when a byte sequence cannot be decoded with the current encoding. Returns: The encoding that is associated with the specified code page. GetEncoding(codepage: int) -> Encoding Returns the encoding associated with the specified code page identifier. codepage: The code page identifier of the preferred encoding. Possible values are listed in the Code Page column of the table that appears in the System.Text.Encoding class topic.-or- 0 (zero),to use the default encoding. Returns: The encoding that is associated with the specified code page. GetEncoding(codepage: int,encoderFallback: EncoderFallback,decoderFallback: DecoderFallback) -> Encoding Returns the encoding associated with the specified code page identifier. Parameters specify an error handler for characters that cannot be encoded and byte sequences that cannot be decoded. codepage: The code page identifier of the preferred encoding. Possible values are listed in the Code Page column of the table that appears in the System.Text.Encoding class topic.-or- 0 (zero),to use the default encoding. encoderFallback: An object that provides an error-handling procedure when a character cannot be encoded with the current encoding. decoderFallback: An object that provides an error-handling procedure when a byte sequence cannot be decoded with the current encoding. Returns: The encoding that is associated with the specified code page. """ pass @staticmethod def GetEncodings(): """ GetEncodings() -> Array[EncodingInfo] Returns an array that contains all encodings. Returns: An array that contains all encodings. """ pass def GetHashCode(self): """ GetHashCode(self: Encoding) -> int Returns the hash code for the current instance. Returns: The hash code for the current instance. """ pass def GetMaxByteCount(self,charCount): """ GetMaxByteCount(self: Encoding,charCount: int) -> int When overridden in a derived class,calculates the maximum number of bytes produced by encoding the specified number of characters. charCount: The number of characters to encode. Returns: The maximum number of bytes produced by encoding the specified number of characters. """ pass def GetMaxCharCount(self,byteCount): """ GetMaxCharCount(self: Encoding,byteCount: int) -> int When overridden in a derived class,calculates the maximum number of characters produced by decoding the specified number of bytes. byteCount: The number of bytes to decode. Returns: The maximum number of characters produced by decoding the specified number of bytes. """ pass def GetPreamble(self): """ GetPreamble(self: Encoding) -> Array[Byte] When overridden in a derived class,returns a sequence of bytes that specifies the encoding used. Returns: A byte array containing a sequence of bytes that specifies the encoding used.-or- A byte array of length zero,if a preamble is not required. """ pass def GetString(self,bytes,*__args): """ GetString(self: Encoding,bytes: Array[Byte],index: int,count: int) -> str When overridden in a derived class,decodes a sequence of bytes from the specified byte array into a string. bytes: The byte array containing the sequence of bytes to decode. index: The index of the first byte to decode. count: The number of bytes to decode. Returns: A System.String containing the results of decoding the specified sequence of bytes. GetString(self: Encoding,bytes: Array[Byte]) -> str When overridden in a derived class,decodes all the bytes in the specified byte array into a string. bytes: The byte array containing the sequence of bytes to decode. Returns: A System.String containing the results of decoding the specified sequence of bytes. GetString(self: Encoding,bytes: Byte*,byteCount: int) -> str """ pass def IsAlwaysNormalized(self,form=None): """ IsAlwaysNormalized(self: Encoding,form: NormalizationForm) -> bool When overridden in a derived class,gets a value indicating whether the current encoding is always normalized,using the specified normalization form. form: One of the System.Text.NormalizationForm values. Returns: true if the current System.Text.Encoding object is always normalized using the specified System.Text.NormalizationForm value; otherwise,false. The default is false. IsAlwaysNormalized(self: Encoding) -> bool Gets a value indicating whether the current encoding is always normalized, using the default normalization form. Returns: true if the current System.Text.Encoding is always normalized; otherwise, false. The default is false. """ pass @staticmethod def RegisterProvider(provider): """ RegisterProvider(provider: EncodingProvider) """ pass def __eq__(self,*args): """ x.__eq__(y) <==> x==y """ pass def __init__(self,*args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass @staticmethod def __new__(self,*args): #cannot find CLR constructor """ __new__(cls: type) __new__(cls: type,codePage: int) __new__(cls: type,codePage: int,encoderFallback: EncoderFallback,decoderFallback: DecoderFallback) """ pass def __ne__(self,*args): pass def __reduce_ex__(self,*args): pass def __repr__(self,*args): """ __repr__(self: object) -> str """ pass BodyName=property(lambda self: object(),lambda self,v: None,lambda self: None) """When overridden in a derived class,gets a name for the current encoding that can be used with mail agent body tags. Get: BodyName(self: Encoding) -> str """ CodePage=property(lambda self: object(),lambda self,v: None,lambda self: None) """When overridden in a derived class,gets the code page identifier of the current System.Text.Encoding. Get: CodePage(self: Encoding) -> int """ DecoderFallback=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets the System.Text.DecoderFallback object for the current System.Text.Encoding object. Get: DecoderFallback(self: Encoding) -> DecoderFallback Set: DecoderFallback(self: Encoding)=value """ EncoderFallback=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets the System.Text.EncoderFallback object for the current System.Text.Encoding object. Get: EncoderFallback(self: Encoding) -> EncoderFallback Set: EncoderFallback(self: Encoding)=value """ EncodingName=property(lambda self: object(),lambda self,v: None,lambda self: None) """When overridden in a derived class,gets the human-readable description of the current encoding. Get: EncodingName(self: Encoding) -> str """ HeaderName=property(lambda self: object(),lambda self,v: None,lambda self: None) """When overridden in a derived class,gets a name for the current encoding that can be used with mail agent header tags. Get: HeaderName(self: Encoding) -> str """ IsBrowserDisplay=property(lambda self: object(),lambda self,v: None,lambda self: None) """When overridden in a derived class,gets a value indicating whether the current encoding can be used by browser clients for displaying content. Get: IsBrowserDisplay(self: Encoding) -> bool """ IsBrowserSave=property(lambda self: object(),lambda self,v: None,lambda self: None) """When overridden in a derived class,gets a value indicating whether the current encoding can be used by browser clients for saving content. Get: IsBrowserSave(self: Encoding) -> bool """ IsMailNewsDisplay=property(lambda self: object(),lambda self,v: None,lambda self: None) """When overridden in a derived class,gets a value indicating whether the current encoding can be used by mail and news clients for displaying content. Get: IsMailNewsDisplay(self: Encoding) -> bool """ IsMailNewsSave=property(lambda self: object(),lambda self,v: None,lambda self: None) """When overridden in a derived class,gets a value indicating whether the current encoding can be used by mail and news clients for saving content. Get: IsMailNewsSave(self: Encoding) -> bool """ IsReadOnly=property(lambda self: object(),lambda self,v: None,lambda self: None) """When overridden in a derived class,gets a value indicating whether the current encoding is read-only. Get: IsReadOnly(self: Encoding) -> bool """ IsSingleByte=property(lambda self: object(),lambda self,v: None,lambda self: None) """When overridden in a derived class,gets a value indicating whether the current encoding uses single-byte code points. Get: IsSingleByte(self: Encoding) -> bool """ WebName=property(lambda self: object(),lambda self,v: None,lambda self: None) """When overridden in a derived class,gets the name registered with the Internet Assigned Numbers Authority (IANA) for the current encoding. Get: WebName(self: Encoding) -> str """ WindowsCodePage=property(lambda self: object(),lambda self,v: None,lambda self: None) """When overridden in a derived class,gets the Windows operating system code page that most closely corresponds to the current encoding. Get: WindowsCodePage(self: Encoding) -> int """ ASCII=None BigEndianUnicode=None Default=None Unicode=None UTF32=None UTF7=None UTF8=None class ASCIIEncoding(Encoding,ICloneable): """ Represents an ASCII character encoding of Unicode characters. ASCIIEncoding() """ def GetByteCount(self,chars,*__args): """ GetByteCount(self: ASCIIEncoding,chars: Char*,count: int) -> int Calculates the number of bytes produced by encoding a set of characters starting at the specified character pointer. chars: A pointer to the first character to encode. count: The number of characters to encode. Returns: The number of bytes produced by encoding the specified characters. GetByteCount(self: ASCIIEncoding,chars: str) -> int Calculates the number of bytes produced by encoding the characters in the specified System.String. chars: The System.String containing the set of characters to encode. Returns: The number of bytes produced by encoding the specified characters. GetByteCount(self: ASCIIEncoding,chars: Array[Char],index: int,count: int) -> int Calculates the number of bytes produced by encoding a set of characters from the specified character array. chars: The character array containing the set of characters to encode. index: The index of the first character to encode. count: The number of characters to encode. Returns: The number of bytes produced by encoding the specified characters. """ pass def GetBytes(self,*__args): """ GetBytes(self: ASCIIEncoding,chars: Char*,charCount: int,bytes: Byte*,byteCount: int) -> int Encodes a set of characters starting at the specified character pointer into a sequence of bytes that are stored starting at the specified byte pointer. chars: A pointer to the first character to encode. charCount: The number of characters to encode. bytes: A pointer to the location at which to start writing the resulting sequence of bytes. byteCount: The maximum number of bytes to write. Returns: The actual number of bytes written at the location indicated by bytes. GetBytes(self: ASCIIEncoding,chars: Array[Char],charIndex: int,charCount: int,bytes: Array[Byte],byteIndex: int) -> int Encodes a set of characters from the specified character array into the specified byte array. chars: The character array containing the set of characters to encode. charIndex: The index of the first character to encode. charCount: The number of characters to encode. bytes: The byte array to contain the resulting sequence of bytes. byteIndex: The index at which to start writing the resulting sequence of bytes. Returns: The actual number of bytes written into bytes. GetBytes(self: ASCIIEncoding,chars: str,charIndex: int,charCount: int,bytes: Array[Byte],byteIndex: int) -> int Encodes a set of characters from the specified System.String into the specified byte array. chars: The System.String containing the set of characters to encode. charIndex: The index of the first character to encode. charCount: The number of characters to encode. bytes: The byte array to contain the resulting sequence of bytes. byteIndex: The index at which to start writing the resulting sequence of bytes. Returns: The actual number of bytes written into bytes. """ pass def GetCharCount(self,bytes,*__args): """ GetCharCount(self: ASCIIEncoding,bytes: Byte*,count: int) -> int Calculates the number of characters produced by decoding a sequence of bytes starting at the specified byte pointer. bytes: A pointer to the first byte to decode. count: The number of bytes to decode. Returns: The number of characters produced by decoding the specified sequence of bytes. GetCharCount(self: ASCIIEncoding,bytes: Array[Byte],index: int,count: int) -> int Calculates the number of characters produced by decoding a sequence of bytes from the specified byte array. bytes: The byte array containing the sequence of bytes to decode. index: The index of the first byte to decode. count: The number of bytes to decode. Returns: The number of characters produced by decoding the specified sequence of bytes. """ pass def GetChars(self,bytes,*__args): """ GetChars(self: ASCIIEncoding,bytes: Byte*,byteCount: int,chars: Char*,charCount: int) -> int Decodes a sequence of bytes starting at the specified byte pointer into a set of characters that are stored starting at the specified character pointer. bytes: A pointer to the first byte to decode. byteCount: The number of bytes to decode. chars: A pointer to the location at which to start writing the resulting set of characters. charCount: The maximum number of characters to write. Returns: The actual number of characters written at the location indicated by chars. GetChars(self: ASCIIEncoding,bytes: Array[Byte],byteIndex: int,byteCount: int,chars: Array[Char],charIndex: int) -> int Decodes a sequence of bytes from the specified byte array into the specified character array. bytes: The byte array containing the sequence of bytes to decode. byteIndex: The index of the first byte to decode. byteCount: The number of bytes to decode. chars: The character array to contain the resulting set of characters. charIndex: The index at which to start writing the resulting set of characters. Returns: The actual number of characters written into chars. """ pass def GetDecoder(self): """ GetDecoder(self: ASCIIEncoding) -> Decoder Obtains a decoder that converts an ASCII encoded sequence of bytes into a sequence of Unicode characters. Returns: A System.Text.Decoder that converts an ASCII encoded sequence of bytes into a sequence of Unicode characters. """ pass def GetEncoder(self): """ GetEncoder(self: ASCIIEncoding) -> Encoder Obtains an encoder that converts a sequence of Unicode characters into an ASCII encoded sequence of bytes. Returns: An System.Text.Encoder that converts a sequence of Unicode characters into an ASCII encoded sequence of bytes. """ pass def GetMaxByteCount(self,charCount): """ GetMaxByteCount(self: ASCIIEncoding,charCount: int) -> int Calculates the maximum number of bytes produced by encoding the specified number of characters. charCount: The number of characters to encode. Returns: The maximum number of bytes produced by encoding the specified number of characters. """ pass def GetMaxCharCount(self,byteCount): """ GetMaxCharCount(self: ASCIIEncoding,byteCount: int) -> int Calculates the maximum number of characters produced by decoding the specified number of bytes. byteCount: The number of bytes to decode. Returns: The maximum number of characters produced by decoding the specified number of bytes. """ pass def GetString(self,bytes,*__args): """ GetString(self: ASCIIEncoding,bytes: Array[Byte],byteIndex: int,byteCount: int) -> str Decodes a range of bytes from a byte array into a string. bytes: The byte array containing the sequence of bytes to decode. byteIndex: The index of the first byte to decode. byteCount: The number of bytes to decode. Returns: A System.String containing the results of decoding the specified sequence of bytes. """ pass def __init__(self,*args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass def __reduce_ex__(self,*args): pass IsSingleByte=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets a value indicating whether the current encoding uses single-byte code points. Get: IsSingleByte(self: ASCIIEncoding) -> bool """ class Decoder(object): """ Converts a sequence of encoded bytes into a set of characters. """ def Convert(self,bytes,*__args): """ Convert(self: Decoder,bytes: Byte*,byteCount: int,chars: Char*,charCount: int,flush: bool) -> (int,int,bool) Converts a buffer of encoded bytes to UTF-16 encoded characters and stores the result in another buffer. bytes: The address of a buffer that contains the byte sequences to convert. byteCount: The number of bytes in bytes to convert. chars: The address of a buffer to store the converted characters. charCount: The maximum number of characters in chars to use in the conversion. flush: true to indicate no further data is to be converted; otherwise,false. Convert(self: Decoder,bytes: Array[Byte],byteIndex: int,byteCount: int,chars: Array[Char],charIndex: int,charCount: int,flush: bool) -> (int,int,bool) Converts an array of encoded bytes to UTF-16 encoded characters and stores the result in a byte array. bytes: A byte array to convert. byteIndex: The first element of bytes to convert. byteCount: The number of elements of bytes to convert. chars: An array to store the converted characters. charIndex: The first element of chars in which data is stored. charCount: The maximum number of elements of chars to use in the conversion. flush: true to indicate that no further data is to be converted; otherwise,false. """ pass def GetCharCount(self,bytes,*__args): """ GetCharCount(self: Decoder,bytes: Byte*,count: int,flush: bool) -> int When overridden in a derived class,calculates the number of characters produced by decoding a sequence of bytes starting at the specified byte pointer. A parameter indicates whether to clear the internal state of the decoder after the calculation. bytes: A pointer to the first byte to decode. count: The number of bytes to decode. flush: true to simulate clearing the internal state of the encoder after the calculation; otherwise,false. Returns: The number of characters produced by decoding the specified sequence of bytes and any bytes in the internal buffer. GetCharCount(self: Decoder,bytes: Array[Byte],index: int,count: int,flush: bool) -> int When overridden in a derived class,calculates the number of characters produced by decoding a sequence of bytes from the specified byte array. A parameter indicates whether to clear the internal state of the decoder after the calculation. bytes: The byte array containing the sequence of bytes to decode. index: The index of the first byte to decode. count: The number of bytes to decode. flush: true to simulate clearing the internal state of the encoder after the calculation; otherwise,false. Returns: The number of characters produced by decoding the specified sequence of bytes and any bytes in the internal buffer. GetCharCount(self: Decoder,bytes: Array[Byte],index: int,count: int) -> int When overridden in a derived class,calculates the number of characters produced by decoding a sequence of bytes from the specified byte array. bytes: The byte array containing the sequence of bytes to decode. index: The index of the first byte to decode. count: The number of bytes to decode. Returns: The number of characters produced by decoding the specified sequence of bytes and any bytes in the internal buffer. """ pass def GetChars(self,bytes,*__args): """ GetChars(self: Decoder,bytes: Byte*,byteCount: int,chars: Char*,charCount: int,flush: bool) -> int When overridden in a derived class,decodes a sequence of bytes starting at the specified byte pointer and any bytes in the internal buffer into a set of characters that are stored starting at the specified character pointer. A parameter indicates whether to clear the internal state of the decoder after the conversion. bytes: A pointer to the first byte to decode. byteCount: The number of bytes to decode. chars: A pointer to the location at which to start writing the resulting set of characters. charCount: The maximum number of characters to write. flush: true to clear the internal state of the decoder after the conversion; otherwise,false. Returns: The actual number of characters written at the location indicated by the chars parameter. GetChars(self: Decoder,bytes: Array[Byte],byteIndex: int,byteCount: int,chars: Array[Char],charIndex: int,flush: bool) -> int When overridden in a derived class,decodes a sequence of bytes from the specified byte array and any bytes in the internal buffer into the specified character array. A parameter indicates whether to clear the internal state of the decoder after the conversion. bytes: The byte array containing the sequence of bytes to decode. byteIndex: The index of the first byte to decode. byteCount: The number of bytes to decode. chars: The character array to contain the resulting set of characters. charIndex: The index at which to start writing the resulting set of characters. flush: true to clear the internal state of the decoder after the conversion; otherwise,false. Returns: The actual number of characters written into the chars parameter. GetChars(self: Decoder,bytes: Array[Byte],byteIndex: int,byteCount: int,chars: Array[Char],charIndex: int) -> int When overridden in a derived class,decodes a sequence of bytes from the specified byte array and any bytes in the internal buffer into the specified character array. bytes: The byte array containing the sequence of bytes to decode. byteIndex: The index of the first byte to decode. byteCount: The number of bytes to decode. chars: The character array to contain the resulting set of characters. charIndex: The index at which to start writing the resulting set of characters. Returns: The actual number of characters written into chars. """ pass def Reset(self): """ Reset(self: Decoder) When overridden in a derived class,sets the decoder back to its initial state. """ pass Fallback=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets a System.Text.DecoderFallback object for the current System.Text.Decoder object. Get: Fallback(self: Decoder) -> DecoderFallback Set: Fallback(self: Decoder)=value """ FallbackBuffer=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the System.Text.DecoderFallbackBuffer object associated with the current System.Text.Decoder object. Get: FallbackBuffer(self: Decoder) -> DecoderFallbackBuffer """ class DecoderFallback(object): """ Provides a failure-handling mechanism,called a fallback,for an encoded input byte sequence that cannot be converted to an output character. """ def CreateFallbackBuffer(self): """ CreateFallbackBuffer(self: DecoderFallback) -> DecoderFallbackBuffer When overridden in a derived class,initializes a new instance of the System.Text.DecoderFallbackBuffer class. Returns: An object that provides a fallback buffer for a decoder. """ pass MaxCharCount=property(lambda self: object(),lambda self,v: None,lambda self: None) """When overridden in a derived class,gets the maximum number of characters the current System.Text.DecoderFallback object can return. Get: MaxCharCount(self: DecoderFallback) -> int """ ExceptionFallback=None ReplacementFallback=None class DecoderExceptionFallback(DecoderFallback): """ Throws System.Text.DecoderFallbackException if an encoded input byte sequence cannot be converted to a decoded output character. This class cannot be inherited. DecoderExceptionFallback() """ def CreateFallbackBuffer(self): """ CreateFallbackBuffer(self: DecoderExceptionFallback) -> DecoderFallbackBuffer Initializes a new instance of the System.Text.DecoderExceptionFallback class. Returns: A System.Text.DecoderFallbackBuffer object. """ pass def Equals(self,value): """ Equals(self: DecoderExceptionFallback,value: object) -> bool Indicates whether the current System.Text.DecoderExceptionFallback object and a specified object are equal. value: An object that derives from the System.Text.DecoderExceptionFallback class. Returns: true if value is not null and is a System.Text.DecoderExceptionFallback object; otherwise,false. """ pass def GetHashCode(self): """ GetHashCode(self: DecoderExceptionFallback) -> int Retrieves the hash code for this instance. Returns: The return value is always the same arbitrary value,and has no special significance. """ pass def __eq__(self,*args): """ x.__eq__(y) <==> x==y """ pass def __ne__(self,*args): pass MaxCharCount=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the maximum number of characters this instance can return. Get: MaxCharCount(self: DecoderExceptionFallback) -> int """ class DecoderFallbackBuffer(object): """ Provides a buffer that allows a fallback handler to return an alternate string to a decoder when it cannot decode an input byte sequence. """ def Fallback(self,bytesUnknown,index): """ Fallback(self: DecoderFallbackBuffer,bytesUnknown: Array[Byte],index: int) -> bool When overridden in a derived class,prepares the fallback buffer to handle the specified input byte sequence. bytesUnknown: An input array of bytes. index: The index position of a byte in bytesUnknown. Returns: true if the fallback buffer can process bytesUnknown; false if the fallback buffer ignores bytesUnknown. """ pass def GetNextChar(self): """ GetNextChar(self: DecoderFallbackBuffer) -> Char When overridden in a derived class,retrieves the next character in the fallback buffer. Returns: The next character in the fallback buffer. """ pass def MovePrevious(self): """ MovePrevious(self: DecoderFallbackBuffer) -> bool When overridden in a derived class,causes the next call to the System.Text.DecoderFallbackBuffer.GetNextChar method to access the data buffer character position that is prior to the current character position. Returns: true if the System.Text.DecoderFallbackBuffer.MovePrevious operation was successful; otherwise,false. """ pass def Reset(self): """ Reset(self: DecoderFallbackBuffer) Initializes all data and state information pertaining to this fallback buffer. """ pass Remaining=property(lambda self: object(),lambda self,v: None,lambda self: None) """When overridden in a derived class,gets the number of characters in the current System.Text.DecoderFallbackBuffer object that remain to be processed. Get: Remaining(self: DecoderFallbackBuffer) -> int """ class DecoderExceptionFallbackBuffer(DecoderFallbackBuffer): """ Throws System.Text.DecoderFallbackException when an encoded input byte sequence cannot be converted to a decoded output character. This class cannot be inherited. DecoderExceptionFallbackBuffer() """ def Fallback(self,bytesUnknown,index): """ Fallback(self: DecoderExceptionFallbackBuffer,bytesUnknown: Array[Byte],index: int) -> bool Throws System.Text.DecoderFallbackException when the input byte sequence cannot be decoded. The nominal return value is not used. bytesUnknown: An input array of bytes. index: The index position of a byte in the input. Returns: None. No value is returned because the System.Text.DecoderExceptionFallbackBuffer.Fallback(System.Byte[],System.Int32) method always throws an exception. The nominal return value is true. A return value is defined,although it is unchanging,because this method implements an abstract method. """ pass def GetNextChar(self): """ GetNextChar(self: DecoderExceptionFallbackBuffer) -> Char Retrieves the next character in the exception data buffer. Returns: The return value is always the Unicode character NULL (U+0000). A return value is defined,although it is unchanging,because this method implements an abstract method. """ pass def MovePrevious(self): """ MovePrevious(self: DecoderExceptionFallbackBuffer) -> bool Causes the next call to System.Text.DecoderExceptionFallbackBuffer.GetNextChar to access the exception data buffer character position that is prior to the current position. Returns: The return value is always false. A return value is defined,although it is unchanging,because this method implements an abstract method. """ pass Remaining=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the number of characters in the current System.Text.DecoderExceptionFallbackBuffer object that remain to be processed. Get: Remaining(self: DecoderExceptionFallbackBuffer) -> int """ class DecoderFallbackException(ArgumentException,ISerializable,_Exception): """ The exception that is thrown when a decoder fallback operation fails. This class cannot be inherited. DecoderFallbackException() DecoderFallbackException(message: str) DecoderFallbackException(message: str,innerException: Exception) DecoderFallbackException(message: str,bytesUnknown: Array[Byte],index: int) """ def add_SerializeObjectState(self,*args): """ add_SerializeObjectState(self: Exception,value: EventHandler[SafeSerializationEventArgs]) """ pass def remove_SerializeObjectState(self,*args): """ remove_SerializeObjectState(self: Exception,value: EventHandler[SafeSerializationEventArgs]) """ pass def __init__(self,*args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass @staticmethod def __new__(self,message=None,*__args): """ __new__(cls: type) __new__(cls: type,message: str) __new__(cls: type,message: str,innerException: Exception) __new__(cls: type,message: str,bytesUnknown: Array[Byte],index: int) """ pass def __reduce_ex__(self,*args): pass def __str__(self,*args): pass BytesUnknown=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the input byte sequence that caused the exception. Get: BytesUnknown(self: DecoderFallbackException) -> Array[Byte] """ Index=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the index position in the input byte sequence of the byte that caused the exception. Get: Index(self: DecoderFallbackException) -> int """ class DecoderReplacementFallback(DecoderFallback): """ Provides a failure-handling mechanism,called a fallback,for an encoded input byte sequence that cannot be converted to an output character. The fallback emits a user-specified replacement string instead of a decoded input byte sequence. This class cannot be inherited. DecoderReplacementFallback() DecoderReplacementFallback(replacement: str) """ def CreateFallbackBuffer(self): """ CreateFallbackBuffer(self: DecoderReplacementFallback) -> DecoderFallbackBuffer Creates a System.Text.DecoderFallbackBuffer object that is initialized with the replacement string of this System.Text.DecoderReplacementFallback object. Returns: A System.Text.DecoderFallbackBuffer object that specifies a string to use instead of the original decoding operation input. """ pass def Equals(self,value): """ Equals(self: DecoderReplacementFallback,value: object) -> bool Indicates whether the value of a specified object is equal to the System.Text.DecoderReplacementFallback object. value: A System.Text.DecoderReplacementFallback object. Returns: true if value is a System.Text.DecoderReplacementFallback object having a System.Text.DecoderReplacementFallback.DefaultString property that is equal to the System.Text.DecoderReplacementFallback.DefaultString property of the current System.Text.DecoderReplacementFallback object; otherwise,false. """ pass def GetHashCode(self): """ GetHashCode(self: DecoderReplacementFallback) -> int Retrieves the hash code for the value of the System.Text.DecoderReplacementFallback object. Returns: The hash code of the value of the object. """ pass def __eq__(self,*args): """ x.__eq__(y) <==> x==y """ pass @staticmethod def __new__(self,replacement=None): """ __new__(cls: type) __new__(cls: type,replacement: str) """ pass def __ne__(self,*args): pass DefaultString=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the replacement string that is the value of the System.Text.DecoderReplacementFallback object. Get: DefaultString(self: DecoderReplacementFallback) -> str """ MaxCharCount=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the number of characters in the replacement string for the System.Text.DecoderReplacementFallback object. Get: MaxCharCount(self: DecoderReplacementFallback) -> int """ class DecoderReplacementFallbackBuffer(DecoderFallbackBuffer): """ Represents a substitute output string that is emitted when the original input byte sequence cannot be decoded. This class cannot be inherited. DecoderReplacementFallbackBuffer(fallback: DecoderReplacementFallback) """ def Fallback(self,bytesUnknown,index): """ Fallback(self: DecoderReplacementFallbackBuffer,bytesUnknown: Array[Byte],index: int) -> bool Prepares the replacement fallback buffer to use the current replacement string. bytesUnknown: An input byte sequence. This parameter is ignored unless an exception is thrown. index: The index position of the byte in bytesUnknown. This parameter is ignored in this operation. Returns: true if the replacement string is not empty; false if the replacement string is empty. """ pass def GetNextChar(self): """ GetNextChar(self: DecoderReplacementFallbackBuffer) -> Char Retrieves the next character in the replacement fallback buffer. Returns: The next character in the replacement fallback buffer. """ pass def MovePrevious(self): """ MovePrevious(self: DecoderReplacementFallbackBuffer) -> bool Causes the next call to System.Text.DecoderReplacementFallbackBuffer.GetNextChar to access the character position in the replacement fallback buffer prior to the current character position. Returns: true if the System.Text.DecoderReplacementFallbackBuffer.MovePrevious operation was successful; otherwise,false. """ pass def Reset(self): """ Reset(self: DecoderReplacementFallbackBuffer) Initializes all internal state information and data in the System.Text.DecoderReplacementFallbackBuffer object. """ pass @staticmethod def __new__(self,fallback): """ __new__(cls: type,fallback: DecoderReplacementFallback) """ pass Remaining=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the number of characters in the replacement fallback buffer that remain to be processed. Get: Remaining(self: DecoderReplacementFallbackBuffer) -> int """ class Encoder(object): """ Converts a set of characters into a sequence of bytes. """ def Convert(self,chars,*__args): """ Convert(self: Encoder,chars: Char*,charCount: int,bytes: Byte*,byteCount: int,flush: bool) -> (int,int,bool) Converts a buffer of Unicode characters to an encoded byte sequence and stores the result in another buffer. chars: The address of a string of UTF-16 encoded characters to convert. charCount: The number of characters in chars to convert. bytes: The address of a buffer to store the converted bytes. byteCount: The maximum number of bytes in bytes to use in the conversion. flush: true to indicate no further data is to be converted; otherwise,false. Convert(self: Encoder,chars: Array[Char],charIndex: int,charCount: int,bytes: Array[Byte],byteIndex: int,byteCount: int,flush: bool) -> (int,int,bool) Converts an array of Unicode characters to an encoded byte sequence and stores the result in an array of bytes. chars: An array of characters to convert. charIndex: The first element of chars to convert. charCount: The number of elements of chars to convert. bytes: An array where the converted bytes are stored. byteIndex: The first element of bytes in which data is stored. byteCount: The maximum number of elements of bytes to use in the conversion. flush: true to indicate no further data is to be converted; otherwise,false. """ pass def GetByteCount(self,chars,*__args): """ GetByteCount(self: Encoder,chars: Char*,count: int,flush: bool) -> int When overridden in a derived class,calculates the number of bytes produced by encoding a set of characters starting at the specified character pointer. A parameter indicates whether to clear the internal state of the encoder after the calculation. chars: A pointer to the first character to encode. count: The number of characters to encode. flush: true to simulate clearing the internal state of the encoder after the calculation; otherwise,false. Returns: The number of bytes produced by encoding the specified characters and any characters in the internal buffer. GetByteCount(self: Encoder,chars: Array[Char],index: int,count: int,flush: bool) -> int When overridden in a derived class,calculates the number of bytes produced by encoding a set of characters from the specified character array. A parameter indicates whether to clear the internal state of the encoder after the calculation. chars: The character array containing the set of characters to encode. index: The index of the first character to encode. count: The number of characters to encode. flush: true to simulate clearing the internal state of the encoder after the calculation; otherwise,false. Returns: The number of bytes produced by encoding the specified characters and any characters in the internal buffer. """ pass def GetBytes(self,chars,*__args): """ GetBytes(self: Encoder,chars: Char*,charCount: int,bytes: Byte*,byteCount: int,flush: bool) -> int When overridden in a derived class,encodes a set of characters starting at the specified character pointer and any characters in the internal buffer into a sequence of bytes that are stored starting at the specified byte pointer. A parameter indicates whether to clear the internal state of the encoder after the conversion. chars: A pointer to the first character to encode. charCount: The number of characters to encode. bytes: A pointer to the location at which to start writing the resulting sequence of bytes. byteCount: The maximum number of bytes to write. flush: true to clear the internal state of the encoder after the conversion; otherwise,false. Returns: The actual number of bytes written at the location indicated by the bytes parameter. GetBytes(self: Encoder,chars: Array[Char],charIndex: int,charCount: int,bytes: Array[Byte],byteIndex: int,flush: bool) -> int When overridden in a derived class,encodes a set of characters from the specified character array and any characters in the internal buffer into the specified byte array. A parameter indicates whether to clear the internal state of the encoder after the conversion. chars: The character array containing the set of characters to encode. charIndex: The index of the first character to encode. charCount: The number of characters to encode. bytes: The byte array to contain the resulting sequence of bytes. byteIndex: The index at which to start writing the resulting sequence of bytes. flush: true to clear the internal state of the encoder after the conversion; otherwise,false. Returns: The actual number of bytes written into bytes. """ pass def Reset(self): """ Reset(self: Encoder) When overridden in a derived class,sets the encoder back to its initial state. """ pass Fallback=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets a System.Text.EncoderFallback object for the current System.Text.Encoder object. Get: Fallback(self: Encoder) -> EncoderFallback Set: Fallback(self: Encoder)=value """ FallbackBuffer=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the System.Text.EncoderFallbackBuffer object associated with the current System.Text.Encoder object. Get: FallbackBuffer(self: Encoder) -> EncoderFallbackBuffer """ class EncoderFallback(object): """ Provides a failure-handling mechanism,called a fallback,for an input character that cannot be converted to an encoded output byte sequence. """ def CreateFallbackBuffer(self): """ CreateFallbackBuffer(self: EncoderFallback) -> EncoderFallbackBuffer When overridden in a derived class,initializes a new instance of the System.Text.EncoderFallbackBuffer class. Returns: An object that provides a fallback buffer for an encoder. """ pass MaxCharCount=property(lambda self: object(),lambda self,v: None,lambda self: None) """When overridden in a derived class,gets the maximum number of characters the current System.Text.EncoderFallback object can return. Get: MaxCharCount(self: EncoderFallback) -> int """ ExceptionFallback=None ReplacementFallback=None class EncoderExceptionFallback(EncoderFallback): """ Throws a System.Text.EncoderFallbackException if an input character cannot be converted to an encoded output byte sequence. This class cannot be inherited. EncoderExceptionFallback() """ def CreateFallbackBuffer(self): """ CreateFallbackBuffer(self: EncoderExceptionFallback) -> EncoderFallbackBuffer Initializes a new instance of the System.Text.EncoderExceptionFallback class. Returns: A System.Text.EncoderFallbackBuffer object. """ pass def Equals(self,value): """ Equals(self: EncoderExceptionFallback,value: object) -> bool Indicates whether the current System.Text.EncoderExceptionFallback object and a specified object are equal. value: An object that derives from the System.Text.EncoderExceptionFallback class. Returns: true if value is not null (Nothing in Visual Basic .NET) and is a System.Text.EncoderExceptionFallback object; otherwise,false. """ pass def GetHashCode(self): """ GetHashCode(self: EncoderExceptionFallback) -> int Retrieves the hash code for this instance. Returns: The return value is always the same arbitrary value,and has no special significance. """ pass def __eq__(self,*args): """ x.__eq__(y) <==> x==y """ pass def __ne__(self,*args): pass MaxCharCount=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the maximum number of characters this instance can return. Get: MaxCharCount(self: EncoderExceptionFallback) -> int """ class EncoderFallbackBuffer(object): """ Provides a buffer that allows a fallback handler to return an alternate string to an encoder when it cannot encode an input character. """ def Fallback(self,*__args): """ Fallback(self: EncoderFallbackBuffer,charUnknownHigh: Char,charUnknownLow: Char,index: int) -> bool When overridden in a derived class,prepares the fallback buffer to handle the specified surrogate pair. charUnknownHigh: The high surrogate of the input pair. charUnknownLow: The low surrogate of the input pair. index: The index position of the surrogate pair in the input buffer. Returns: true if the fallback buffer can process charUnknownHigh and charUnknownLow; false if the fallback buffer ignores the surrogate pair. Fallback(self: EncoderFallbackBuffer,charUnknown: Char,index: int) -> bool When overridden in a derived class,prepares the fallback buffer to handle the specified input character. charUnknown: An input character. index: The index position of the character in the input buffer. Returns: true if the fallback buffer can process charUnknown; false if the fallback buffer ignores charUnknown. """ pass def GetNextChar(self): """ GetNextChar(self: EncoderFallbackBuffer) -> Char When overridden in a derived class,retrieves the next character in the fallback buffer. Returns: The next character in the fallback buffer. """ pass def MovePrevious(self): """ MovePrevious(self: EncoderFallbackBuffer) -> bool When overridden in a derived class,causes the next call to the System.Text.EncoderFallbackBuffer.GetNextChar method to access the data buffer character position that is prior to the current character position. Returns: true if the System.Text.EncoderFallbackBuffer.MovePrevious operation was successful; otherwise,false. """ pass def Reset(self): """ Reset(self: EncoderFallbackBuffer) Initializes all data and state information pertaining to this fallback buffer. """ pass Remaining=property(lambda self: object(),lambda self,v: None,lambda self: None) """When overridden in a derived class,gets the number of characters in the current System.Text.EncoderFallbackBuffer object that remain to be processed. Get: Remaining(self: EncoderFallbackBuffer) -> int """ class EncoderExceptionFallbackBuffer(EncoderFallbackBuffer): """ Throws System.Text.EncoderFallbackException when an input character cannot be converted to an encoded output byte sequence. This class cannot be inherited. EncoderExceptionFallbackBuffer() """ def Fallback(self,*__args): """ Fallback(self: EncoderExceptionFallbackBuffer,charUnknownHigh: Char,charUnknownLow: Char,index: int) -> bool Throws an exception because the input character cannot be encoded. Parameters specify the value and index position of the surrogate pair in the input,and the nominal return value is not used. charUnknownHigh: The high surrogate of the input pair. charUnknownLow: The low surrogate of the input pair. index: The index position of the surrogate pair in the input buffer. Returns: None. No value is returned because the System.Text.EncoderExceptionFallbackBuffer.Fallback(System.Char,System.Char,Syst em.Int32) method always throws an exception. Fallback(self: EncoderExceptionFallbackBuffer,charUnknown: Char,index: int) -> bool Throws an exception because the input character cannot be encoded. Parameters specify the value and index position of the character that cannot be converted. charUnknown: An input character. index: The index position of the character in the input buffer. Returns: None. No value is returned because the System.Text.EncoderExceptionFallbackBuffer.Fallback(System.Char,System.Int32) method always throws an exception. """ pass def GetNextChar(self): """ GetNextChar(self: EncoderExceptionFallbackBuffer) -> Char Retrieves the next character in the exception fallback buffer. Returns: The return value is always the Unicode character,NULL (U+0000). A return value is defined,although it is unchanging,because this method implements an abstract method. """ pass def MovePrevious(self): """ MovePrevious(self: EncoderExceptionFallbackBuffer) -> bool Causes the next call to the System.Text.EncoderExceptionFallbackBuffer.GetNextChar method to access the exception data buffer character position that is prior to the current position. Returns: The return value is always false.A return value is defined,although it is unchanging,because this method implements an abstract method. """ pass Remaining=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the number of characters in the current System.Text.EncoderExceptionFallbackBuffer object that remain to be processed. Get: Remaining(self: EncoderExceptionFallbackBuffer) -> int """ class EncoderFallbackException(ArgumentException,ISerializable,_Exception): """ The exception that is thrown when an encoder fallback operation fails. This class cannot be inherited. EncoderFallbackException() EncoderFallbackException(message: str) EncoderFallbackException(message: str,innerException: Exception) """ def add_SerializeObjectState(self,*args): """ add_SerializeObjectState(self: Exception,value: EventHandler[SafeSerializationEventArgs]) """ pass def IsUnknownSurrogate(self): """ IsUnknownSurrogate(self: EncoderFallbackException) -> bool Indicates whether the input that caused the exception is a surrogate pair. Returns: true if the input was a surrogate pair; otherwise,false. """ pass def remove_SerializeObjectState(self,*args): """ remove_SerializeObjectState(self: Exception,value: EventHandler[SafeSerializationEventArgs]) """ pass def __init__(self,*args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass @staticmethod def __new__(self,message=None,innerException=None): """ __new__(cls: type) __new__(cls: type,message: str) __new__(cls: type,message: str,innerException: Exception) """ pass def __reduce_ex__(self,*args): pass def __str__(self,*args): pass CharUnknown=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the input character that caused the exception. Get: CharUnknown(self: EncoderFallbackException) -> Char """ CharUnknownHigh=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the high component character of the surrogate pair that caused the exception. Get: CharUnknownHigh(self: EncoderFallbackException) -> Char """ CharUnknownLow=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the low component character of the surrogate pair that caused the exception. Get: CharUnknownLow(self: EncoderFallbackException) -> Char """ Index=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the index position in the input buffer of the character that caused the exception. Get: Index(self: EncoderFallbackException) -> int """ class EncoderReplacementFallback(EncoderFallback): """ Provides a failure handling mechanism,called a fallback,for an input character that cannot be converted to an output byte sequence. The fallback uses a user-specified replacement string instead of the original input character. This class cannot be inherited. EncoderReplacementFallback() EncoderReplacementFallback(replacement: str) """ def CreateFallbackBuffer(self): """ CreateFallbackBuffer(self: EncoderReplacementFallback) -> EncoderFallbackBuffer Creates a System.Text.EncoderFallbackBuffer object that is initialized with the replacement string of this System.Text.EncoderReplacementFallback object. Returns: A System.Text.EncoderFallbackBuffer object equal to this System.Text.EncoderReplacementFallback object. """ pass def Equals(self,value): """ Equals(self: EncoderReplacementFallback,value: object) -> bool Indicates whether the value of a specified object is equal to the System.Text.EncoderReplacementFallback object. value: A System.Text.EncoderReplacementFallback object. Returns: true if the value parameter specifies an System.Text.EncoderReplacementFallback object and the replacement string of that object is equal to the replacement string of this System.Text.EncoderReplacementFallback object; otherwise,false. """ pass def GetHashCode(self): """ GetHashCode(self: EncoderReplacementFallback) -> int Retrieves the hash code for the value of the System.Text.EncoderReplacementFallback object. Returns: The hash code of the value of the object. """ pass def __eq__(self,*args): """ x.__eq__(y) <==> x==y """ pass @staticmethod def __new__(self,replacement=None): """ __new__(cls: type) __new__(cls: type,replacement: str) """ pass def __ne__(self,*args): pass DefaultString=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the replacement string that is the value of the System.Text.EncoderReplacementFallback object. Get: DefaultString(self: EncoderReplacementFallback) -> str """ MaxCharCount=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the number of characters in the replacement string for the System.Text.EncoderReplacementFallback object. Get: MaxCharCount(self: EncoderReplacementFallback) -> int """ class EncoderReplacementFallbackBuffer(EncoderFallbackBuffer): """ Represents a substitute input string that is used when the original input character cannot be encoded. This class cannot be inherited. EncoderReplacementFallbackBuffer(fallback: EncoderReplacementFallback) """ def Fallback(self,*__args): """ Fallback(self: EncoderReplacementFallbackBuffer,charUnknownHigh: Char,charUnknownLow: Char,index: int) -> bool Indicates whether a replacement string can be used when an input surrogate pair cannot be encoded,or whether the surrogate pair can be ignored. Parameters specify the surrogate pair and the index position of the pair in the input. charUnknownHigh: The high surrogate of the input pair. charUnknownLow: The low surrogate of the input pair. index: The index position of the surrogate pair in the input buffer. Returns: true if the replacement string is not empty; false if the replacement string is empty. Fallback(self: EncoderReplacementFallbackBuffer,charUnknown: Char,index: int) -> bool Prepares the replacement fallback buffer to use the current replacement string. charUnknown: An input character. This parameter is ignored in this operation unless an exception is thrown. index: The index position of the character in the input buffer. This parameter is ignored in this operation. Returns: true if the replacement string is not empty; false if the replacement string is empty. """ pass def GetNextChar(self): """ GetNextChar(self: EncoderReplacementFallbackBuffer) -> Char Retrieves the next character in the replacement fallback buffer. Returns: The next Unicode character in the replacement fallback buffer that the application can encode. """ pass def MovePrevious(self): """ MovePrevious(self: EncoderReplacementFallbackBuffer) -> bool Causes the next call to the System.Text.EncoderReplacementFallbackBuffer.GetNextChar method to access the character position in the replacement fallback buffer prior to the current character position. Returns: true if the System.Text.EncoderReplacementFallbackBuffer.MovePrevious operation was successful; otherwise,false. """ pass def Reset(self): """ Reset(self: EncoderReplacementFallbackBuffer) Initializes all internal state information and data in this instance of System.Text.EncoderReplacementFallbackBuffer. """ pass @staticmethod def __new__(self,fallback): """ __new__(cls: type,fallback: EncoderReplacementFallback) """ pass Remaining=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the number of characters in the replacement fallback buffer that remain to be processed. Get: Remaining(self: EncoderReplacementFallbackBuffer) -> int """ class EncodingInfo(object): """ Provides basic information about an encoding. """ def Equals(self,value): """ Equals(self: EncodingInfo,value: object) -> bool Gets a value indicating whether the specified object is equal to the current System.Text.EncodingInfo object. value: An object to compare to the current System.Text.EncodingInfo object. Returns: true if value is a System.Text.EncodingInfo object and is equal to the current System.Text.EncodingInfo object; otherwise,false. """ pass def GetEncoding(self): """ GetEncoding(self: EncodingInfo) -> Encoding Returns a System.Text.Encoding object that corresponds to the current System.Text.EncodingInfo object. Returns: A System.Text.Encoding object that corresponds to the current System.Text.EncodingInfo object. """ pass def GetHashCode(self): """ GetHashCode(self: EncodingInfo) -> int Returns the hash code for the current System.Text.EncodingInfo object. Returns: A 32-bit signed integer hash code. """ pass def __eq__(self,*args): """ x.__eq__(y) <==> x==y """ pass def __ne__(self,*args): pass CodePage=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the code page identifier of the encoding. Get: CodePage(self: EncodingInfo) -> int """ DisplayName=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the human-readable description of the encoding. Get: DisplayName(self: EncodingInfo) -> str """ Name=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the name registered with the Internet Assigned Numbers Authority (IANA) for the encoding. Get: Name(self: EncodingInfo) -> str """ class EncodingProvider(object): """ EncodingProvider() """ def GetEncoding(self,*__args): """ GetEncoding(self: EncodingProvider,name: str,encoderFallback: EncoderFallback,decoderFallback: DecoderFallback) -> Encoding GetEncoding(self: EncodingProvider,codepage: int,encoderFallback: EncoderFallback,decoderFallback: DecoderFallback) -> Encoding GetEncoding(self: EncodingProvider,name: str) -> Encoding GetEncoding(self: EncodingProvider,codepage: int) -> Encoding """ pass class NormalizationForm(Enum,IComparable,IFormattable,IConvertible): """ Defines the type of normalization to perform. enum NormalizationForm,values: FormC (1),FormD (2),FormKC (5),FormKD (6) """ def __eq__(self,*args): """ x.__eq__(y) <==> x==yx.__eq__(y) <==> x==yx.__eq__(y) <==> x==y """ pass def __format__(self,*args): """ __format__(formattable: IFormattable,format: str) -> str """ pass def __ge__(self,*args): pass def __gt__(self,*args): pass def __init__(self,*args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass def __le__(self,*args): pass def __lt__(self,*args): pass def __ne__(self,*args): pass def __reduce_ex__(self,*args): pass def __str__(self,*args): pass FormC=None FormD=None FormKC=None FormKD=None value__=None class StringBuilder(object,ISerializable): """ Represents a mutable string of characters. This class cannot be inherited. StringBuilder() StringBuilder(capacity: int) StringBuilder(value: str) StringBuilder(value: str,capacity: int) StringBuilder(value: str,startIndex: int,length: int,capacity: int) StringBuilder(capacity: int,maxCapacity: int) """ def Append(self,value,*__args): """ Append(self: StringBuilder,value: Decimal) -> StringBuilder Appends the string representation of a specified decimal number to this instance. value: The value to append. Returns: A reference to this instance after the append operation has completed. Append(self: StringBuilder,value: UInt16) -> StringBuilder Appends the string representation of a specified 16-bit unsigned integer to this instance. value: The value to append. Returns: A reference to this instance after the append operation has completed. Append(self: StringBuilder,value: float) -> StringBuilder Appends the string representation of a specified double-precision floating-point number to this instance. value: The value to append. Returns: A reference to this instance after the append operation has completed. Append(self: StringBuilder,value: Int64) -> StringBuilder Appends the string representation of a specified 64-bit signed integer to this instance. value: The value to append. Returns: A reference to this instance after the append operation has completed. Append(self: StringBuilder,value: Single) -> StringBuilder Appends the string representation of a specified single-precision floating-point number to this instance. value: The value to append. Returns: A reference to this instance after the append operation has completed. Append(self: StringBuilder,value: Array[Char]) -> StringBuilder Appends the string representation of the Unicode characters in a specified array to this instance. value: The array of characters to append. Returns: A reference to this instance after the append operation has completed. Append(self: StringBuilder,value: Char*,valueCount: int) -> StringBuilder Append(self: StringBuilder,value: object) -> StringBuilder Appends the string representation of a specified object to this instance. value: The object to append. Returns: A reference to this instance after the append operation has completed. Append(self: StringBuilder,value: UInt32) -> StringBuilder Appends the string representation of a specified 32-bit unsigned integer to this instance. value: The value to append. Returns: A reference to this instance after the append operation has completed. Append(self: StringBuilder,value: UInt64) -> StringBuilder Appends the string representation of a specified 64-bit unsigned integer to this instance. value: The value to append. Returns: A reference to this instance after the append operation has completed. Append(self: StringBuilder,value: str,startIndex: int,count: int) -> StringBuilder Appends a copy of a specified substring to this instance. value: The string that contains the substring to append. startIndex: The starting position of the substring within value. count: The number of characters in value to append. Returns: A reference to this instance after the append operation has completed. Append(self: StringBuilder,value: bool) -> StringBuilder Appends the string representation of a specified Boolean value to this instance. value: The Boolean value to append. Returns: A reference to this instance after the append operation has completed. Append(self: StringBuilder,value: str) -> StringBuilder Appends a copy of the specified string to this instance. value: The string to append. Returns: A reference to this instance after the append operation has completed. Append(self: StringBuilder,value: Char,repeatCount: int) -> StringBuilder Appends a specified number of copies of the string representation of a Unicode character to this instance. value: The character to append. repeatCount: The number of times to append value. Returns: A reference to this instance after the append operation has completed. Append(self: StringBuilder,value: Array[Char],startIndex: int,charCount: int) -> StringBuilder Appends the string representation of a specified subarray of Unicode characters to this instance. value: A character array. startIndex: The starting position in value. charCount: The number of characters to append. Returns: A reference to this instance after the append operation has completed. Append(self: StringBuilder,value: Int16) -> StringBuilder Appends the string representation of a specified 16-bit signed integer to this instance. value: The value to append. Returns: A reference to this instance after the append operation has completed. Append(self: StringBuilder,value: int) -> StringBuilder Appends the string representation of a specified 32-bit signed integer to this instance. value: The value to append. Returns: A reference to this instance after the append operation has completed. Append(self: StringBuilder,value: Char) -> StringBuilder Appends the string representation of a specified Unicode character to this instance. value: The Unicode character to append. Returns: A reference to this instance after the append operation has completed. Append(self: StringBuilder,value: SByte) -> StringBuilder Appends the string representation of a specified 8-bit signed integer to this instance. value: The value to append. Returns: A reference to this instance after the append operation has completed. Append(self: StringBuilder,value: Byte) -> StringBuilder Appends the string representation of a specified 8-bit unsigned integer to this instance. value: The value to append. Returns: A reference to this instance after the append operation has completed. """ pass def AppendFormat(self,*__args): """ AppendFormat(self: StringBuilder,provider: IFormatProvider,format: str,arg0: object,arg1: object) -> StringBuilder AppendFormat(self: StringBuilder,provider: IFormatProvider,format: str,arg0: object) -> StringBuilder AppendFormat(self: StringBuilder,provider: IFormatProvider,format: str,*args: Array[object]) -> StringBuilder Appends the string returned by processing a composite format string,which contains zero or more format items,to this instance. Each format item is replaced by the string representation of a corresponding argument in a parameter array using a specified format provider. provider: An object that supplies culture-specific formatting information. format: A composite format string (see Remarks). args: An array of objects to format. Returns: A reference to this instance after the append operation has completed. After the append operation,this instance contains any data that existed before the operation,suffixed by a copy of format where any format specification is replaced by the string representation of the corresponding object argument. AppendFormat(self: StringBuilder,provider: IFormatProvider,format: str,arg0: object,arg1: object,arg2: object) -> StringBuilder AppendFormat(self: StringBuilder,format: str,arg0: object,arg1: object) -> StringBuilder Appends the string returned by processing a composite format string,which contains zero or more format items,to this instance. Each format item is replaced by the string representation of either of two arguments. format: A composite format string (see Remarks). arg0: The first object to format. arg1: The second object to format. Returns: A reference to this instance with format appended. Each format item in format is replaced by the string representation of the corresponding object argument. AppendFormat(self: StringBuilder,format: str,arg0: object) -> StringBuilder Appends the string returned by processing a composite format string,which contains zero or more format items,to this instance. Each format item is replaced by the string representation of a single argument. format: A composite format string (see Remarks). arg0: An object to format. Returns: A reference to this instance with format appended. Each format item in format is replaced by the string representation of arg0. AppendFormat(self: StringBuilder,format: str,*args: Array[object]) -> StringBuilder Appends the string returned by processing a composite format string,which contains zero or more format items,to this instance. Each format item is replaced by the string representation of a corresponding argument in a parameter array. format: A composite format string (see Remarks). args: An array of objects to format. Returns: A reference to this instance with format appended. Each format item in format is replaced by the string representation of the corresponding object argument. AppendFormat(self: StringBuilder,format: str,arg0: object,arg1: object,arg2: object) -> StringBuilder Appends the string returned by processing a composite format string,which contains zero or more format items,to this instance. Each format item is replaced by the string representation of either of three arguments. format: A composite format string (see Remarks). arg0: The first object to format. arg1: The second object to format. arg2: The third object to format. Returns: A reference to this instance with format appended. Each format item in format is replaced by the string representation of the corresponding object argument. """ pass def AppendLine(self,value=None): """ AppendLine(self: StringBuilder,value: str) -> StringBuilder Appends a copy of the specified string followed by the default line terminator to the end of the current System.Text.StringBuilder object. value: The string to append. Returns: A reference to this instance after the append operation has completed. AppendLine(self: StringBuilder) -> StringBuilder Appends the default line terminator to the end of the current System.Text.StringBuilder object. Returns: A reference to this instance after the append operation has completed. """ pass def Clear(self): """ Clear(self: StringBuilder) -> StringBuilder Removes all characters from the current System.Text.StringBuilder instance. Returns: An object whose System.Text.StringBuilder.Length is 0 (zero). """ pass def CopyTo(self,sourceIndex,destination,destinationIndex,count): """ CopyTo(self: StringBuilder,sourceIndex: int,destination: Array[Char],destinationIndex: int,count: int) Copies the characters from a specified segment of this instance to a specified segment of a destination System.Char array. sourceIndex: The starting position in this instance where characters will be copied from. The index is zero-based. destination: The array where characters will be copied. destinationIndex: The starting position in destination where characters will be copied. The index is zero-based. count: The number of characters to be copied. """ pass def EnsureCapacity(self,capacity): """ EnsureCapacity(self: StringBuilder,capacity: int) -> int Ensures that the capacity of this instance of System.Text.StringBuilder is at least the specified value. capacity: The minimum capacity to ensure. Returns: The new capacity of this instance. """ pass def Equals(self,*__args): """ Equals(self: StringBuilder,sb: StringBuilder) -> bool Returns a value indicating whether this instance is equal to a specified object. sb: An object to compare with this instance,or null. Returns: true if this instance and sb have equal string, System.Text.StringBuilder.Capacity,and System.Text.StringBuilder.MaxCapacity values; otherwise,false. """ pass def Insert(self,index,value,*__args): """ Insert(self: StringBuilder,index: int,value: Single) -> StringBuilder Inserts the string representation of a single-precision floating point number into this instance at the specified character position. index: The position in this instance where insertion begins. value: The value to insert. Returns: A reference to this instance after the insert operation has completed. Insert(self: StringBuilder,index: int,value: float) -> StringBuilder Inserts the string representation of a double-precision floating-point number into this instance at the specified character position. index: The position in this instance where insertion begins. value: The value to insert. Returns: A reference to this instance after the insert operation has completed. Insert(self: StringBuilder,index: int,value: int) -> StringBuilder Inserts the string representation of a specified 32-bit signed integer into this instance at the specified character position. index: The position in this instance where insertion begins. value: The value to insert. Returns: A reference to this instance after the insert operation has completed. Insert(self: StringBuilder,index: int,value: Int64) -> StringBuilder Inserts the string representation of a 64-bit signed integer into this instance at the specified character position. index: The position in this instance where insertion begins. value: The value to insert. Returns: A reference to this instance after the insert operation has completed. Insert(self: StringBuilder,index: int,value: Decimal) -> StringBuilder Inserts the string representation of a decimal number into this instance at the specified character position. index: The position in this instance where insertion begins. value: The value to insert. Returns: A reference to this instance after the insert operation has completed. Insert(self: StringBuilder,index: int,value: UInt64) -> StringBuilder Inserts the string representation of a 64-bit unsigned integer into this instance at the specified character position. index: The position in this instance where insertion begins. value: The value to insert. Returns: A reference to this instance after the insert operation has completed. Insert(self: StringBuilder,index: int,value: object) -> StringBuilder Inserts the string representation of an object into this instance at the specified character position. index: The position in this instance where insertion begins. value: The object to insert,or null. Returns: A reference to this instance after the insert operation has completed. Insert(self: StringBuilder,index: int,value: UInt16) -> StringBuilder Inserts the string representation of a 16-bit unsigned integer into this instance at the specified character position. index: The position in this instance where insertion begins. value: The value to insert. Returns: A reference to this instance after the insert operation has completed. Insert(self: StringBuilder,index: int,value: UInt32) -> StringBuilder Inserts the string representation of a 32-bit unsigned integer into this instance at the specified character position. index: The position in this instance where insertion begins. value: The value to insert. Returns: A reference to this instance after the insert operation has completed. Insert(self: StringBuilder,index: int,value: bool) -> StringBuilder Inserts the string representation of a Boolean value into this instance at the specified character position. index: The position in this instance where insertion begins. value: The value to insert. Returns: A reference to this instance after the insert operation has completed. Insert(self: StringBuilder,index: int,value: SByte) -> StringBuilder Inserts the string representation of a specified 8-bit signed integer into this instance at the specified character position. index: The position in this instance where insertion begins. value: The value to insert. Returns: A reference to this instance after the insert operation has completed. Insert(self: StringBuilder,index: int,value: str,count: int) -> StringBuilder Inserts one or more copies of a specified string into this instance at the specified character position. index: The position in this instance where insertion begins. value: The string to insert. count: The number of times to insert value. Returns: A reference to this instance after insertion has completed. Insert(self: StringBuilder,index: int,value: str) -> StringBuilder Inserts a string into this instance at the specified character position. index: The position in this instance where insertion begins. value: The string to insert. Returns: A reference to this instance after the insert operation has completed. Insert(self: StringBuilder,index: int,value: Byte) -> StringBuilder Inserts the string representation of a specified 8-bit unsigned integer into this instance at the specified character position. index: The position in this instance where insertion begins. value: The value to insert. Returns: A reference to this instance after the insert operation has completed. Insert(self: StringBuilder,index: int,value: Array[Char]) -> StringBuilder Inserts the string representation of a specified array of Unicode characters into this instance at the specified character position. index: The position in this instance where insertion begins. value: The character array to insert. Returns: A reference to this instance after the insert operation has completed. Insert(self: StringBuilder,index: int,value: Array[Char],startIndex: int,charCount: int) -> StringBuilder Inserts the string representation of a specified subarray of Unicode characters into this instance at the specified character position. index: The position in this instance where insertion begins. value: A character array. startIndex: The starting index within value. charCount: The number of characters to insert. Returns: A reference to this instance after the insert operation has completed. Insert(self: StringBuilder,index: int,value: Int16) -> StringBuilder Inserts the string representation of a specified 16-bit signed integer into this instance at the specified character position. index: The position in this instance where insertion begins. value: The value to insert. Returns: A reference to this instance after the insert operation has completed. Insert(self: StringBuilder,index: int,value: Char) -> StringBuilder Inserts the string representation of a specified Unicode character into this instance at the specified character position. index: The position in this instance where insertion begins. value: The value to insert. Returns: A reference to this instance after the insert operation has completed. """ pass def Remove(self,startIndex,length): """ Remove(self: StringBuilder,startIndex: int,length: int) -> StringBuilder Removes the specified range of characters from this instance. startIndex: The zero-based position in this instance where removal begins. length: The number of characters to remove. Returns: A reference to this instance after the excise operation has completed. """ pass def Replace(self,*__args): """ Replace(self: StringBuilder,oldChar: Char,newChar: Char) -> StringBuilder Replaces all occurrences of a specified character in this instance with another specified character. oldChar: The character to replace. newChar: The character that replaces oldChar. Returns: A reference to this instance with oldChar replaced by newChar. Replace(self: StringBuilder,oldChar: Char,newChar: Char,startIndex: int,count: int) -> StringBuilder Replaces,within a substring of this instance,all occurrences of a specified character with another specified character. oldChar: The character to replace. newChar: The character that replaces oldChar. startIndex: The position in this instance where the substring begins. count: The length of the substring. Returns: A reference to this instance with oldChar replaced by newChar in the range from startIndex to startIndex + count -1. Replace(self: StringBuilder,oldValue: str,newValue: str) -> StringBuilder Replaces all occurrences of a specified string in this instance with another specified string. oldValue: The string to replace. newValue: The string that replaces oldValue,or null. Returns: A reference to this instance with all instances of oldValue replaced by newValue. Replace(self: StringBuilder,oldValue: str,newValue: str,startIndex: int,count: int) -> StringBuilder Replaces,within a substring of this instance,all occurrences of a specified string with another specified string. oldValue: The string to replace. newValue: The string that replaces oldValue,or null. startIndex: The position in this instance where the substring begins. count: The length of the substring. Returns: A reference to this instance with all instances of oldValue replaced by newValue in the range from startIndex to startIndex + count - 1. """ pass def ToString(self,startIndex=None,length=None): """ ToString(self: StringBuilder,startIndex: int,length: int) -> str Converts the value of a substring of this instance to a System.String. startIndex: The starting position of the substring in this instance. length: The length of the substring. Returns: A string whose value is the same as the specified substring of this instance. ToString(self: StringBuilder) -> str Converts the value of this instance to a System.String. Returns: A string whose value is the same as this instance. """ pass def __eq__(self,*args): """ x.__eq__(y) <==> x==y """ pass def __getitem__(self,*args): """ x.__getitem__(y) <==> x[y] """ pass def __init__(self,*args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass @staticmethod def __new__(self,*__args): """ __new__(cls: type) __new__(cls: type,capacity: int) __new__(cls: type,value: str) __new__(cls: type,value: str,capacity: int) __new__(cls: type,value: str,startIndex: int,length: int,capacity: int) __new__(cls: type,capacity: int,maxCapacity: int) """ pass def __reduce_ex__(self,*args): pass def __repr__(self,*args): """ __repr__(self: object) -> str """ pass def __setitem__(self,*args): """ x.__setitem__(i,y) <==> x[i]= """ pass def __str__(self,*args): pass Capacity=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets the maximum number of characters that can be contained in the memory allocated by the current instance. Get: Capacity(self: StringBuilder) -> int Set: Capacity(self: StringBuilder)=value """ Length=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets the length of the current System.Text.StringBuilder object. Get: Length(self: StringBuilder) -> int Set: Length(self: StringBuilder)=value """ MaxCapacity=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the maximum capacity of this instance. Get: MaxCapacity(self: StringBuilder) -> int """ class UnicodeEncoding(Encoding,ICloneable): """ Represents a UTF-16 encoding of Unicode characters. UnicodeEncoding() UnicodeEncoding(bigEndian: bool,byteOrderMark: bool) UnicodeEncoding(bigEndian: bool,byteOrderMark: bool,throwOnInvalidBytes: bool) """ def Equals(self,value): """ Equals(self: UnicodeEncoding,value: object) -> bool Determines whether the specified System.Object is equal to the current System.Text.UnicodeEncoding object. value: The System.Object to compare with the current object. Returns: true if value is an instance of System.Text.UnicodeEncoding and is equal to the current object; otherwise,false. """ pass def GetByteCount(self,*__args): """ GetByteCount(self: UnicodeEncoding,chars: Char*,count: int) -> int Calculates the number of bytes produced by encoding a set of characters starting at the specified character pointer. chars: A pointer to the first character to encode. count: The number of characters to encode. Returns: The number of bytes produced by encoding the specified characters. GetByteCount(self: UnicodeEncoding,s: str) -> int Calculates the number of bytes produced by encoding the characters in the specified System.String. s: The System.String containing the set of characters to encode. Returns: The number of bytes produced by encoding the specified characters. GetByteCount(self: UnicodeEncoding,chars: Array[Char],index: int,count: int) -> int Calculates the number of bytes produced by encoding a set of characters from the specified character array. chars: The character array containing the set of characters to encode. index: The index of the first character to encode. count: The number of characters to encode. Returns: The number of bytes produced by encoding the specified characters. """ pass def GetBytes(self,*__args): """ GetBytes(self: UnicodeEncoding,chars: Char*,charCount: int,bytes: Byte*,byteCount: int) -> int Encodes a set of characters starting at the specified character pointer into a sequence of bytes that are stored starting at the specified byte pointer. chars: A pointer to the first character to encode. charCount: The number of characters to encode. bytes: A pointer to the location at which to start writing the resulting sequence of bytes. byteCount: The maximum number of bytes to write. Returns: The actual number of bytes written at the location indicated by the bytes parameter. GetBytes(self: UnicodeEncoding,chars: Array[Char],charIndex: int,charCount: int,bytes: Array[Byte],byteIndex: int) -> int Encodes a set of characters from the specified character array into the specified byte array. chars: The character array containing the set of characters to encode. charIndex: The index of the first character to encode. charCount: The number of characters to encode. bytes: The byte array to contain the resulting sequence of bytes. byteIndex: The index at which to start writing the resulting sequence of bytes. Returns: The actual number of bytes written into bytes. GetBytes(self: UnicodeEncoding,s: str,charIndex: int,charCount: int,bytes: Array[Byte],byteIndex: int) -> int Encodes a set of characters from the specified System.String into the specified byte array. s: The System.String containing the set of characters to encode. charIndex: The index of the first character to encode. charCount: The number of characters to encode. bytes: The byte array to contain the resulting sequence of bytes. byteIndex: The index at which to start writing the resulting sequence of bytes. Returns: The actual number of bytes written into bytes. """ pass def GetCharCount(self,bytes,*__args): """ GetCharCount(self: UnicodeEncoding,bytes: Byte*,count: int) -> int Calculates the number of characters produced by decoding a sequence of bytes starting at the specified byte pointer. bytes: A pointer to the first byte to decode. count: The number of bytes to decode. Returns: The number of characters produced by decoding the specified sequence of bytes. GetCharCount(self: UnicodeEncoding,bytes: Array[Byte],index: int,count: int) -> int Calculates the number of characters produced by decoding a sequence of bytes from the specified byte array. bytes: The byte array containing the sequence of bytes to decode. index: The index of the first byte to decode. count: The number of bytes to decode. Returns: The number of characters produced by decoding the specified sequence of bytes. """ pass def GetChars(self,bytes,*__args): """ GetChars(self: UnicodeEncoding,bytes: Byte*,byteCount: int,chars: Char*,charCount: int) -> int Decodes a sequence of bytes starting at the specified byte pointer into a set of characters that are stored starting at the specified character pointer. bytes: A pointer to the first byte to decode. byteCount: The number of bytes to decode. chars: A pointer to the location at which to start writing the resulting set of characters. charCount: The maximum number of characters to write. Returns: The actual number of characters written at the location indicated by the chars parameter. GetChars(self: UnicodeEncoding,bytes: Array[Byte],byteIndex: int,byteCount: int,chars: Array[Char],charIndex: int) -> int Decodes a sequence of bytes from the specified byte array into the specified character array. bytes: The byte array containing the sequence of bytes to decode. byteIndex: The index of the first byte to decode. byteCount: The number of bytes to decode. chars: The character array to contain the resulting set of characters. charIndex: The index at which to start writing the resulting set of characters. Returns: The actual number of characters written into chars. """ pass def GetDecoder(self): """ GetDecoder(self: UnicodeEncoding) -> Decoder Obtains a decoder that converts a UTF-16 encoded sequence of bytes into a sequence of Unicode characters. Returns: A System.Text.Decoder that converts a UTF-16 encoded sequence of bytes into a sequence of Unicode characters. """ pass def GetEncoder(self): """ GetEncoder(self: UnicodeEncoding) -> Encoder Obtains an encoder that converts a sequence of Unicode characters into a UTF-16 encoded sequence of bytes. Returns: A System.Text.Encoder object that converts a sequence of Unicode characters into a UTF-16 encoded sequence of bytes. """ pass def GetHashCode(self): """ GetHashCode(self: UnicodeEncoding) -> int Returns the hash code for the current instance. Returns: The hash code for the current System.Text.UnicodeEncoding object. """ pass def GetMaxByteCount(self,charCount): """ GetMaxByteCount(self: UnicodeEncoding,charCount: int) -> int Calculates the maximum number of bytes produced by encoding the specified number of characters. charCount: The number of characters to encode. Returns: The maximum number of bytes produced by encoding the specified number of characters. """ pass def GetMaxCharCount(self,byteCount): """ GetMaxCharCount(self: UnicodeEncoding,byteCount: int) -> int Calculates the maximum number of characters produced by decoding the specified number of bytes. byteCount: The number of bytes to decode. Returns: The maximum number of characters produced by decoding the specified number of bytes. """ pass def GetPreamble(self): """ GetPreamble(self: UnicodeEncoding) -> Array[Byte] Returns a Unicode byte order mark encoded in UTF-16 format,if the constructor for this instance requests a byte order mark. Returns: A byte array containing the Unicode byte order mark,if the constructor for this instance requests a byte order mark. Otherwise,this method returns a byte array of length zero. """ pass def GetString(self,bytes,*__args): """ GetString(self: UnicodeEncoding,bytes: Array[Byte],index: int,count: int) -> str Decodes a range of bytes from a byte array into a string. bytes: The byte array containing the sequence of bytes to decode. index: The index of the first byte to decode. count: The number of bytes to decode. Returns: A System.String object containing the results of decoding the specified sequence of bytes. """ pass def __eq__(self,*args): """ x.__eq__(y) <==> x==y """ pass def __init__(self,*args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass @staticmethod def __new__(self,bigEndian=None,byteOrderMark=None,throwOnInvalidBytes=None): """ __new__(cls: type) __new__(cls: type,bigEndian: bool,byteOrderMark: bool) __new__(cls: type,bigEndian: bool,byteOrderMark: bool,throwOnInvalidBytes: bool) """ pass def __ne__(self,*args): pass def __reduce_ex__(self,*args): pass CharSize=2 class UTF32Encoding(Encoding,ICloneable): """ Represents a UTF-32 encoding of Unicode characters. UTF32Encoding() UTF32Encoding(bigEndian: bool,byteOrderMark: bool) UTF32Encoding(bigEndian: bool,byteOrderMark: bool,throwOnInvalidCharacters: bool) """ def Equals(self,value): """ Equals(self: UTF32Encoding,value: object) -> bool Determines whether the specified System.Object is equal to the current System.Text.UTF32Encoding object. value: The System.Object to compare with the current object. Returns: true if value is an instance of System.Text.UTF32Encoding and is equal to the current object; otherwise,false. """ pass def GetByteCount(self,*__args): """ GetByteCount(self: UTF32Encoding,chars: Char*,count: int) -> int Calculates the number of bytes produced by encoding a set of characters starting at the specified character pointer. chars: A pointer to the first character to encode. count: The number of characters to encode. Returns: The number of bytes produced by encoding the specified characters. GetByteCount(self: UTF32Encoding,s: str) -> int Calculates the number of bytes produced by encoding the characters in the specified System.String. s: The System.String containing the set of characters to encode. Returns: The number of bytes produced by encoding the specified characters. GetByteCount(self: UTF32Encoding,chars: Array[Char],index: int,count: int) -> int Calculates the number of bytes produced by encoding a set of characters from the specified character array. chars: The character array containing the set of characters to encode. index: The index of the first character to encode. count: The number of characters to encode. Returns: The number of bytes produced by encoding the specified characters. """ pass def GetBytes(self,*__args): """ GetBytes(self: UTF32Encoding,chars: Char*,charCount: int,bytes: Byte*,byteCount: int) -> int Encodes a set of characters starting at the specified character pointer into a sequence of bytes that are stored starting at the specified byte pointer. chars: A pointer to the first character to encode. charCount: The number of characters to encode. bytes: A pointer to the location at which to start writing the resulting sequence of bytes. byteCount: The maximum number of bytes to write. Returns: The actual number of bytes written at the location indicated by the bytes parameter. GetBytes(self: UTF32Encoding,chars: Array[Char],charIndex: int,charCount: int,bytes: Array[Byte],byteIndex: int) -> int Encodes a set of characters from the specified character array into the specified byte array. chars: The character array containing the set of characters to encode. charIndex: The index of the first character to encode. charCount: The number of characters to encode. bytes: The byte array to contain the resulting sequence of bytes. byteIndex: The index at which to start writing the resulting sequence of bytes. Returns: The actual number of bytes written into bytes. GetBytes(self: UTF32Encoding,s: str,charIndex: int,charCount: int,bytes: Array[Byte],byteIndex: int) -> int Encodes a set of characters from the specified System.String into the specified byte array. s: The System.String containing the set of characters to encode. charIndex: The index of the first character to encode. charCount: The number of characters to encode. bytes: The byte array to contain the resulting sequence of bytes. byteIndex: The index at which to start writing the resulting sequence of bytes. Returns: The actual number of bytes written into bytes. """ pass def GetCharCount(self,bytes,*__args): """ GetCharCount(self: UTF32Encoding,bytes: Byte*,count: int) -> int Calculates the number of characters produced by decoding a sequence of bytes starting at the specified byte pointer. bytes: A pointer to the first byte to decode. count: The number of bytes to decode. Returns: The number of characters produced by decoding the specified sequence of bytes. GetCharCount(self: UTF32Encoding,bytes: Array[Byte],index: int,count: int) -> int Calculates the number of characters produced by decoding a sequence of bytes from the specified byte array. bytes: The byte array containing the sequence of bytes to decode. index: The index of the first byte to decode. count: The number of bytes to decode. Returns: The number of characters produced by decoding the specified sequence of bytes. """ pass def GetChars(self,bytes,*__args): """ GetChars(self: UTF32Encoding,bytes: Byte*,byteCount: int,chars: Char*,charCount: int) -> int Decodes a sequence of bytes starting at the specified byte pointer into a set of characters that are stored starting at the specified character pointer. bytes: A pointer to the first byte to decode. byteCount: The number of bytes to decode. chars: A pointer to the location at which to start writing the resulting set of characters. charCount: The maximum number of characters to write. Returns: The actual number of characters written at the location indicated by chars. GetChars(self: UTF32Encoding,bytes: Array[Byte],byteIndex: int,byteCount: int,chars: Array[Char],charIndex: int) -> int Decodes a sequence of bytes from the specified byte array into the specified character array. bytes: The byte array containing the sequence of bytes to decode. byteIndex: The index of the first byte to decode. byteCount: The number of bytes to decode. chars: The character array to contain the resulting set of characters. charIndex: The index at which to start writing the resulting set of characters. Returns: The actual number of characters written into chars. """ pass def GetDecoder(self): """ GetDecoder(self: UTF32Encoding) -> Decoder Obtains a decoder that converts a UTF-32 encoded sequence of bytes into a sequence of Unicode characters. Returns: A System.Text.Decoder that converts a UTF-32 encoded sequence of bytes into a sequence of Unicode characters. """ pass def GetEncoder(self): """ GetEncoder(self: UTF32Encoding) -> Encoder Obtains an encoder that converts a sequence of Unicode characters into a UTF-32 encoded sequence of bytes. Returns: A System.Text.Encoder that converts a sequence of Unicode characters into a UTF-32 encoded sequence of bytes. """ pass def GetHashCode(self): """ GetHashCode(self: UTF32Encoding) -> int Returns the hash code for the current instance. Returns: The hash code for the current System.Text.UTF32Encoding object. """ pass def GetMaxByteCount(self,charCount): """ GetMaxByteCount(self: UTF32Encoding,charCount: int) -> int Calculates the maximum number of bytes produced by encoding the specified number of characters. charCount: The number of characters to encode. Returns: The maximum number of bytes produced by encoding the specified number of characters. """ pass def GetMaxCharCount(self,byteCount): """ GetMaxCharCount(self: UTF32Encoding,byteCount: int) -> int Calculates the maximum number of characters produced by decoding the specified number of bytes. byteCount: The number of bytes to decode. Returns: The maximum number of characters produced by decoding the specified number of bytes. """ pass def GetPreamble(self): """ GetPreamble(self: UTF32Encoding) -> Array[Byte] Returns a Unicode byte order mark encoded in UTF-32 format,if the constructor for this instance requests a byte order mark. Returns: A byte array containing the Unicode byte order mark,if the constructor for this instance requests a byte order mark. Otherwise,this method returns a byte array of length zero. """ pass def GetString(self,bytes,*__args): """ GetString(self: UTF32Encoding,bytes: Array[Byte],index: int,count: int) -> str Decodes a range of bytes from a byte array into a string. bytes: The byte array containing the sequence of bytes to decode. index: The index of the first byte to decode. count: The number of bytes to decode. Returns: A System.String containing the results of decoding the specified sequence of bytes. """ pass def __eq__(self,*args): """ x.__eq__(y) <==> x==y """ pass def __init__(self,*args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass @staticmethod def __new__(self,bigEndian=None,byteOrderMark=None,throwOnInvalidCharacters=None): """ __new__(cls: type) __new__(cls: type,bigEndian: bool,byteOrderMark: bool) __new__(cls: type,bigEndian: bool,byteOrderMark: bool,throwOnInvalidCharacters: bool) """ pass def __ne__(self,*args): pass def __reduce_ex__(self,*args): pass class UTF7Encoding(Encoding,ICloneable): """ Represents a UTF-7 encoding of Unicode characters. UTF7Encoding() UTF7Encoding(allowOptionals: bool) """ def Equals(self,value): """ Equals(self: UTF7Encoding,value: object) -> bool Gets a value indicating whether the specified object is equal to the current System.Text.UTF7Encoding object. value: An object to compare to the current System.Text.UTF7Encoding object. Returns: true if value is a System.Text.UTF7Encoding object and is equal to the current System.Text.UTF7Encoding object; otherwise,false. """ pass def GetByteCount(self,*__args): """ GetByteCount(self: UTF7Encoding,chars: Char*,count: int) -> int Calculates the number of bytes produced by encoding a set of characters starting at the specified character pointer. chars: A pointer to the first character to encode. count: The number of characters to encode. Returns: The number of bytes produced by encoding the specified characters. GetByteCount(self: UTF7Encoding,s: str) -> int Calculates the number of bytes produced by encoding the characters in the specified System.String object. s: The System.String object containing the set of characters to encode. Returns: The number of bytes produced by encoding the specified characters. GetByteCount(self: UTF7Encoding,chars: Array[Char],index: int,count: int) -> int Calculates the number of bytes produced by encoding a set of characters from the specified character array. chars: The character array containing the set of characters to encode. index: The index of the first character to encode. count: The number of characters to encode. Returns: The number of bytes produced by encoding the specified characters. """ pass def GetBytes(self,*__args): """ GetBytes(self: UTF7Encoding,chars: Char*,charCount: int,bytes: Byte*,byteCount: int) -> int Encodes a set of characters starting at the specified character pointer into a sequence of bytes that are stored starting at the specified byte pointer. chars: A pointer to the first character to encode. charCount: The number of characters to encode. bytes: A pointer to the location at which to start writing the resulting sequence of bytes. byteCount: The maximum number of bytes to write. Returns: The actual number of bytes written at the location indicated by bytes. GetBytes(self: UTF7Encoding,chars: Array[Char],charIndex: int,charCount: int,bytes: Array[Byte],byteIndex: int) -> int Encodes a set of characters from the specified character array into the specified byte array. chars: The character array containing the set of characters to encode. charIndex: The index of the first character to encode. charCount: The number of characters to encode. bytes: The byte array to contain the resulting sequence of bytes. byteIndex: The index at which to start writing the resulting sequence of bytes. Returns: The actual number of bytes written into bytes. GetBytes(self: UTF7Encoding,s: str,charIndex: int,charCount: int,bytes: Array[Byte],byteIndex: int) -> int Encodes a set of characters from the specified System.String into the specified byte array. s: The System.String containing the set of characters to encode. charIndex: The index of the first character to encode. charCount: The number of characters to encode. bytes: The byte array to contain the resulting sequence of bytes. byteIndex: The index at which to start writing the resulting sequence of bytes. Returns: The actual number of bytes written into bytes. """ pass def GetCharCount(self,bytes,*__args): """ GetCharCount(self: UTF7Encoding,bytes: Byte*,count: int) -> int Calculates the number of characters produced by decoding a sequence of bytes starting at the specified byte pointer. bytes: A pointer to the first byte to decode. count: The number of bytes to decode. Returns: The number of characters produced by decoding the specified sequence of bytes. GetCharCount(self: UTF7Encoding,bytes: Array[Byte],index: int,count: int) -> int Calculates the number of characters produced by decoding a sequence of bytes from the specified byte array. bytes: The byte array containing the sequence of bytes to decode. index: The index of the first byte to decode. count: The number of bytes to decode. Returns: The number of characters produced by decoding the specified sequence of bytes. """ pass def GetChars(self,bytes,*__args): """ GetChars(self: UTF7Encoding,bytes: Byte*,byteCount: int,chars: Char*,charCount: int) -> int Decodes a sequence of bytes starting at the specified byte pointer into a set of characters that are stored starting at the specified character pointer. bytes: A pointer to the first byte to decode. byteCount: The number of bytes to decode. chars: A pointer to the location at which to start writing the resulting set of characters. charCount: The maximum number of characters to write. Returns: The actual number of characters written at the location indicated by chars. GetChars(self: UTF7Encoding,bytes: Array[Byte],byteIndex: int,byteCount: int,chars: Array[Char],charIndex: int) -> int Decodes a sequence of bytes from the specified byte array into the specified character array. bytes: The byte array containing the sequence of bytes to decode. byteIndex: The index of the first byte to decode. byteCount: The number of bytes to decode. chars: The character array to contain the resulting set of characters. charIndex: The index at which to start writing the resulting set of characters. Returns: The actual number of characters written into chars. """ pass def GetDecoder(self): """ GetDecoder(self: UTF7Encoding) -> Decoder Obtains a decoder that converts a UTF-7 encoded sequence of bytes into a sequence of Unicode characters. Returns: A System.Text.Decoder that converts a UTF-7 encoded sequence of bytes into a sequence of Unicode characters. """ pass def GetEncoder(self): """ GetEncoder(self: UTF7Encoding) -> Encoder Obtains an encoder that converts a sequence of Unicode characters into a UTF-7 encoded sequence of bytes. Returns: A System.Text.Encoder that converts a sequence of Unicode characters into a UTF-7 encoded sequence of bytes. """ pass def GetHashCode(self): """ GetHashCode(self: UTF7Encoding) -> int Returns the hash code for the current System.Text.UTF7Encoding object. Returns: A 32-bit signed integer hash code. """ pass def GetMaxByteCount(self,charCount): """ GetMaxByteCount(self: UTF7Encoding,charCount: int) -> int Calculates the maximum number of bytes produced by encoding the specified number of characters. charCount: The number of characters to encode. Returns: The maximum number of bytes produced by encoding the specified number of characters. """ pass def GetMaxCharCount(self,byteCount): """ GetMaxCharCount(self: UTF7Encoding,byteCount: int) -> int Calculates the maximum number of characters produced by decoding the specified number of bytes. byteCount: The number of bytes to decode. Returns: The maximum number of characters produced by decoding the specified number of bytes. """ pass def GetString(self,bytes,*__args): """ GetString(self: UTF7Encoding,bytes: Array[Byte],index: int,count: int) -> str Decodes a range of bytes from a byte array into a string. bytes: The byte array containing the sequence of bytes to decode. index: The index of the first byte to decode. count: The number of bytes to decode. Returns: A System.String containing the results of decoding the specified sequence of bytes. """ pass def __eq__(self,*args): """ x.__eq__(y) <==> x==y """ pass def __init__(self,*args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass @staticmethod def __new__(self,allowOptionals=None): """ __new__(cls: type) __new__(cls: type,allowOptionals: bool) """ pass def __ne__(self,*args): pass def __reduce_ex__(self,*args): pass class UTF8Encoding(Encoding,ICloneable): """ Represents a UTF-8 encoding of Unicode characters. UTF8Encoding() UTF8Encoding(encoderShouldEmitUTF8Identifier: bool) UTF8Encoding(encoderShouldEmitUTF8Identifier: bool,throwOnInvalidBytes: bool) """ def Equals(self,value): """ Equals(self: UTF8Encoding,value: object) -> bool Determines whether the specified System.Object is equal to the current System.Text.UTF8Encoding object. value: The System.Object to compare with the current instance. Returns: true if value is an instance of System.Text.UTF8Encoding and is equal to the current object; otherwise,false. """ pass def GetByteCount(self,chars,*__args): """ GetByteCount(self: UTF8Encoding,chars: Char*,count: int) -> int Calculates the number of bytes produced by encoding a set of characters starting at the specified character pointer. chars: A pointer to the first character to encode. count: The number of characters to encode. Returns: The number of bytes produced by encoding the specified characters. GetByteCount(self: UTF8Encoding,chars: str) -> int Calculates the number of bytes produced by encoding the characters in the specified System.String. chars: The System.String containing the set of characters to encode. Returns: The number of bytes produced by encoding the specified characters. GetByteCount(self: UTF8Encoding,chars: Array[Char],index: int,count: int) -> int Calculates the number of bytes produced by encoding a set of characters from the specified character array. chars: The character array containing the set of characters to encode. index: The index of the first character to encode. count: The number of characters to encode. Returns: The number of bytes produced by encoding the specified characters. """ pass def GetBytes(self,*__args): """ GetBytes(self: UTF8Encoding,chars: Char*,charCount: int,bytes: Byte*,byteCount: int) -> int Encodes a set of characters starting at the specified character pointer into a sequence of bytes that are stored starting at the specified byte pointer. chars: A pointer to the first character to encode. charCount: The number of characters to encode. bytes: A pointer to the location at which to start writing the resulting sequence of bytes. byteCount: The maximum number of bytes to write. Returns: The actual number of bytes written at the location indicated by bytes. GetBytes(self: UTF8Encoding,chars: Array[Char],charIndex: int,charCount: int,bytes: Array[Byte],byteIndex: int) -> int Encodes a set of characters from the specified character array into the specified byte array. chars: The character array containing the set of characters to encode. charIndex: The index of the first character to encode. charCount: The number of characters to encode. bytes: The byte array to contain the resulting sequence of bytes. byteIndex: The index at which to start writing the resulting sequence of bytes. Returns: The actual number of bytes written into bytes. GetBytes(self: UTF8Encoding,s: str,charIndex: int,charCount: int,bytes: Array[Byte],byteIndex: int) -> int Encodes a set of characters from the specified System.String into the specified byte array. s: The System.String containing the set of characters to encode. charIndex: The index of the first character to encode. charCount: The number of characters to encode. bytes: The byte array to contain the resulting sequence of bytes. byteIndex: The index at which to start writing the resulting sequence of bytes. Returns: The actual number of bytes written into bytes. """ pass def GetCharCount(self,bytes,*__args): """ GetCharCount(self: UTF8Encoding,bytes: Byte*,count: int) -> int Calculates the number of characters produced by decoding a sequence of bytes starting at the specified byte pointer. bytes: A pointer to the first byte to decode. count: The number of bytes to decode. Returns: The number of characters produced by decoding the specified sequence of bytes. GetCharCount(self: UTF8Encoding,bytes: Array[Byte],index: int,count: int) -> int Calculates the number of characters produced by decoding a sequence of bytes from the specified byte array. bytes: The byte array containing the sequence of bytes to decode. index: The index of the first byte to decode. count: The number of bytes to decode. Returns: The number of characters produced by decoding the specified sequence of bytes. """ pass def GetChars(self,bytes,*__args): """ GetChars(self: UTF8Encoding,bytes: Byte*,byteCount: int,chars: Char*,charCount: int) -> int Decodes a sequence of bytes starting at the specified byte pointer into a set of characters that are stored starting at the specified character pointer. bytes: A pointer to the first byte to decode. byteCount: The number of bytes to decode. chars: A pointer to the location at which to start writing the resulting set of characters. charCount: The maximum number of characters to write. Returns: The actual number of characters written at the location indicated by chars. GetChars(self: UTF8Encoding,bytes: Array[Byte],byteIndex: int,byteCount: int,chars: Array[Char],charIndex: int) -> int Decodes a sequence of bytes from the specified byte array into the specified character array. bytes: The byte array containing the sequence of bytes to decode. byteIndex: The index of the first byte to decode. byteCount: The number of bytes to decode. chars: The character array to contain the resulting set of characters. charIndex: The index at which to start writing the resulting set of characters. Returns: The actual number of characters written into chars. """ pass def GetDecoder(self): """ GetDecoder(self: UTF8Encoding) -> Decoder Obtains a decoder that converts a UTF-8 encoded sequence of bytes into a sequence of Unicode characters. Returns: A System.Text.Decoder that converts a UTF-8 encoded sequence of bytes into a sequence of Unicode characters. """ pass def GetEncoder(self): """ GetEncoder(self: UTF8Encoding) -> Encoder Obtains an encoder that converts a sequence of Unicode characters into a UTF-8 encoded sequence of bytes. Returns: A System.Text.Encoder that converts a sequence of Unicode characters into a UTF-8 encoded sequence of bytes. """ pass def GetHashCode(self): """ GetHashCode(self: UTF8Encoding) -> int Returns the hash code for the current instance. Returns: The hash code for the current instance. """ pass def GetMaxByteCount(self,charCount): """ GetMaxByteCount(self: UTF8Encoding,charCount: int) -> int Calculates the maximum number of bytes produced by encoding the specified number of characters. charCount: The number of characters to encode. Returns: The maximum number of bytes produced by encoding the specified number of characters. """ pass def GetMaxCharCount(self,byteCount): """ GetMaxCharCount(self: UTF8Encoding,byteCount: int) -> int Calculates the maximum number of characters produced by decoding the specified number of bytes. byteCount: The number of bytes to decode. Returns: The maximum number of characters produced by decoding the specified number of bytes. """ pass def GetPreamble(self): """ GetPreamble(self: UTF8Encoding) -> Array[Byte] Returns a Unicode byte order mark encoded in UTF-8 format,if the constructor for this instance requests a byte order mark. Returns: A byte array containing the Unicode byte order mark,if the constructor for this instance requests a byte order mark. Otherwise,this method returns a byte array of length zero. """ pass def GetString(self,bytes,*__args): """ GetString(self: UTF8Encoding,bytes: Array[Byte],index: int,count: int) -> str Decodes a range of bytes from a byte array into a string. bytes: The byte array containing the sequence of bytes to decode. index: The index of the first byte to decode. count: The number of bytes to decode. Returns: A System.String containing the results of decoding the specified sequence of bytes. """ pass def __eq__(self,*args): """ x.__eq__(y) <==> x==y """ pass def __init__(self,*args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass @staticmethod def __new__(self,encoderShouldEmitUTF8Identifier=None,throwOnInvalidBytes=None): """ __new__(cls: type) __new__(cls: type,encoderShouldEmitUTF8Identifier: bool) __new__(cls: type,encoderShouldEmitUTF8Identifier: bool,throwOnInvalidBytes: bool) """ pass def __ne__(self,*args): pass def __reduce_ex__(self,*args): pass # variables with complex values
class Encoding(object, ICloneable): """ Represents a character encoding. """ def clone(self): """ Clone(self: Encoding) -> object When overridden in a derived class,creates a shallow copy of the current System.Text.Encoding object. Returns: A copy of the current System.Text.Encoding object. """ pass @staticmethod def convert(srcEncoding, dstEncoding, bytes, index=None, count=None): """ Convert(srcEncoding: Encoding,dstEncoding: Encoding,bytes: Array[Byte],index: int,count: int) -> Array[Byte] Converts a range of bytes in a byte array from one encoding to another. srcEncoding: The encoding of the source array,bytes. dstEncoding: The encoding of the output array. bytes: The array of bytes to convert. index: The index of the first element of bytes to convert. count: The number of bytes to convert. Returns: An array of type System.Byte containing the result of converting a range of bytes in bytes from srcEncoding to dstEncoding. Convert(srcEncoding: Encoding,dstEncoding: Encoding,bytes: Array[Byte]) -> Array[Byte] Converts an entire byte array from one encoding to another. srcEncoding: The encoding format of bytes. dstEncoding: The target encoding format. bytes: The bytes to convert. Returns: An array of type System.Byte containing the results of converting bytes from srcEncoding to dstEncoding. """ pass def equals(self, value): """ Equals(self: Encoding,value: object) -> bool Determines whether the specified System.Object is equal to the current instance. value: The System.Object to compare with the current instance. Returns: true if value is an instance of System.Text.Encoding and is equal to the current instance; otherwise,false. """ pass def get_byte_count(self, *__args): """ GetByteCount(self: Encoding,chars: Array[Char],index: int,count: int) -> int When overridden in a derived class,calculates the number of bytes produced by encoding a set of characters from the specified character array. chars: The character array containing the set of characters to encode. index: The index of the first character to encode. count: The number of characters to encode. Returns: The number of bytes produced by encoding the specified characters. GetByteCount(self: Encoding,chars: Char*,count: int) -> int When overridden in a derived class,calculates the number of bytes produced by encoding a set of characters starting at the specified character pointer. chars: A pointer to the first character to encode. count: The number of characters to encode. Returns: The number of bytes produced by encoding the specified characters. GetByteCount(self: Encoding,chars: Array[Char]) -> int When overridden in a derived class,calculates the number of bytes produced by encoding all the characters in the specified character array. chars: The character array containing the characters to encode. Returns: The number of bytes produced by encoding all the characters in the specified character array. GetByteCount(self: Encoding,s: str) -> int When overridden in a derived class,calculates the number of bytes produced by encoding the characters in the specified string. s: The string containing the set of characters to encode. Returns: The number of bytes produced by encoding the specified characters. """ pass def get_bytes(self, *__args): """ GetBytes(self: Encoding,s: str) -> Array[Byte] When overridden in a derived class,encodes all the characters in the specified string into a sequence of bytes. s: The string containing the characters to encode. Returns: A byte array containing the results of encoding the specified set of characters. GetBytes(self: Encoding,s: str,charIndex: int,charCount: int,bytes: Array[Byte],byteIndex: int) -> int When overridden in a derived class,encodes a set of characters from the specified string into the specified byte array. s: The string containing the set of characters to encode. charIndex: The index of the first character to encode. charCount: The number of characters to encode. bytes: The byte array to contain the resulting sequence of bytes. byteIndex: The index at which to start writing the resulting sequence of bytes. Returns: The actual number of bytes written into bytes. GetBytes(self: Encoding,chars: Char*,charCount: int,bytes: Byte*,byteCount: int) -> int When overridden in a derived class,encodes a set of characters starting at the specified character pointer into a sequence of bytes that are stored starting at the specified byte pointer. chars: A pointer to the first character to encode. charCount: The number of characters to encode. bytes: A pointer to the location at which to start writing the resulting sequence of bytes. byteCount: The maximum number of bytes to write. Returns: The actual number of bytes written at the location indicated by the bytes parameter. GetBytes(self: Encoding,chars: Array[Char]) -> Array[Byte] When overridden in a derived class,encodes all the characters in the specified character array into a sequence of bytes. chars: The character array containing the characters to encode. Returns: A byte array containing the results of encoding the specified set of characters. GetBytes(self: Encoding,chars: Array[Char],index: int,count: int) -> Array[Byte] When overridden in a derived class,encodes a set of characters from the specified character array into a sequence of bytes. chars: The character array containing the set of characters to encode. index: The index of the first character to encode. count: The number of characters to encode. Returns: A byte array containing the results of encoding the specified set of characters. GetBytes(self: Encoding,chars: Array[Char],charIndex: int,charCount: int,bytes: Array[Byte],byteIndex: int) -> int When overridden in a derived class,encodes a set of characters from the specified character array into the specified byte array. chars: The character array containing the set of characters to encode. charIndex: The index of the first character to encode. charCount: The number of characters to encode. bytes: The byte array to contain the resulting sequence of bytes. byteIndex: The index at which to start writing the resulting sequence of bytes. Returns: The actual number of bytes written into bytes. """ pass def get_char_count(self, bytes, *__args): """ GetCharCount(self: Encoding,bytes: Byte*,count: int) -> int When overridden in a derived class,calculates the number of characters produced by decoding a sequence of bytes starting at the specified byte pointer. bytes: A pointer to the first byte to decode. count: The number of bytes to decode. Returns: The number of characters produced by decoding the specified sequence of bytes. GetCharCount(self: Encoding,bytes: Array[Byte],index: int,count: int) -> int When overridden in a derived class,calculates the number of characters produced by decoding a sequence of bytes from the specified byte array. bytes: The byte array containing the sequence of bytes to decode. index: The index of the first byte to decode. count: The number of bytes to decode. Returns: The number of characters produced by decoding the specified sequence of bytes. GetCharCount(self: Encoding,bytes: Array[Byte]) -> int When overridden in a derived class,calculates the number of characters produced by decoding all the bytes in the specified byte array. bytes: The byte array containing the sequence of bytes to decode. Returns: The number of characters produced by decoding the specified sequence of bytes. """ pass def get_chars(self, bytes, *__args): """ GetChars(self: Encoding,bytes: Array[Byte],byteIndex: int,byteCount: int,chars: Array[Char],charIndex: int) -> int When overridden in a derived class,decodes a sequence of bytes from the specified byte array into the specified character array. bytes: The byte array containing the sequence of bytes to decode. byteIndex: The index of the first byte to decode. byteCount: The number of bytes to decode. chars: The character array to contain the resulting set of characters. charIndex: The index at which to start writing the resulting set of characters. Returns: The actual number of characters written into chars. GetChars(self: Encoding,bytes: Byte*,byteCount: int,chars: Char*,charCount: int) -> int When overridden in a derived class,decodes a sequence of bytes starting at the specified byte pointer into a set of characters that are stored starting at the specified character pointer. bytes: A pointer to the first byte to decode. byteCount: The number of bytes to decode. chars: A pointer to the location at which to start writing the resulting set of characters. charCount: The maximum number of characters to write. Returns: The actual number of characters written at the location indicated by the chars parameter. GetChars(self: Encoding,bytes: Array[Byte]) -> Array[Char] When overridden in a derived class,decodes all the bytes in the specified byte array into a set of characters. bytes: The byte array containing the sequence of bytes to decode. Returns: A character array containing the results of decoding the specified sequence of bytes. GetChars(self: Encoding,bytes: Array[Byte],index: int,count: int) -> Array[Char] When overridden in a derived class,decodes a sequence of bytes from the specified byte array into a set of characters. bytes: The byte array containing the sequence of bytes to decode. index: The index of the first byte to decode. count: The number of bytes to decode. Returns: A character array containing the results of decoding the specified sequence of bytes. """ pass def get_decoder(self): """ GetDecoder(self: Encoding) -> Decoder When overridden in a derived class,obtains a decoder that converts an encoded sequence of bytes into a sequence of characters. Returns: A System.Text.Decoder that converts an encoded sequence of bytes into a sequence of characters. """ pass def get_encoder(self): """ GetEncoder(self: Encoding) -> Encoder When overridden in a derived class,obtains an encoder that converts a sequence of Unicode characters into an encoded sequence of bytes. Returns: A System.Text.Encoder that converts a sequence of Unicode characters into an encoded sequence of bytes. """ pass @staticmethod def get_encoding(*__args): """ GetEncoding(name: str) -> Encoding Returns the encoding associated with the specified code page name. name: The code page name of the preferred encoding. Any value returned by the System.Text.Encoding.WebName property is valid. Possible values are listed in the Name column of the table that appears in the System.Text.Encoding class topic. Returns: The encoding associated with the specified code page. GetEncoding(name: str,encoderFallback: EncoderFallback,decoderFallback: DecoderFallback) -> Encoding Returns the encoding associated with the specified code page name. Parameters specify an error handler for characters that cannot be encoded and byte sequences that cannot be decoded. name: The code page name of the preferred encoding. Any value returned by the System.Text.Encoding.WebName property is valid. Possible values are listed in the Name column of the table that appears in the System.Text.Encoding class topic. encoderFallback: An object that provides an error-handling procedure when a character cannot be encoded with the current encoding. decoderFallback: An object that provides an error-handling procedure when a byte sequence cannot be decoded with the current encoding. Returns: The encoding that is associated with the specified code page. GetEncoding(codepage: int) -> Encoding Returns the encoding associated with the specified code page identifier. codepage: The code page identifier of the preferred encoding. Possible values are listed in the Code Page column of the table that appears in the System.Text.Encoding class topic.-or- 0 (zero),to use the default encoding. Returns: The encoding that is associated with the specified code page. GetEncoding(codepage: int,encoderFallback: EncoderFallback,decoderFallback: DecoderFallback) -> Encoding Returns the encoding associated with the specified code page identifier. Parameters specify an error handler for characters that cannot be encoded and byte sequences that cannot be decoded. codepage: The code page identifier of the preferred encoding. Possible values are listed in the Code Page column of the table that appears in the System.Text.Encoding class topic.-or- 0 (zero),to use the default encoding. encoderFallback: An object that provides an error-handling procedure when a character cannot be encoded with the current encoding. decoderFallback: An object that provides an error-handling procedure when a byte sequence cannot be decoded with the current encoding. Returns: The encoding that is associated with the specified code page. """ pass @staticmethod def get_encodings(): """ GetEncodings() -> Array[EncodingInfo] Returns an array that contains all encodings. Returns: An array that contains all encodings. """ pass def get_hash_code(self): """ GetHashCode(self: Encoding) -> int Returns the hash code for the current instance. Returns: The hash code for the current instance. """ pass def get_max_byte_count(self, charCount): """ GetMaxByteCount(self: Encoding,charCount: int) -> int When overridden in a derived class,calculates the maximum number of bytes produced by encoding the specified number of characters. charCount: The number of characters to encode. Returns: The maximum number of bytes produced by encoding the specified number of characters. """ pass def get_max_char_count(self, byteCount): """ GetMaxCharCount(self: Encoding,byteCount: int) -> int When overridden in a derived class,calculates the maximum number of characters produced by decoding the specified number of bytes. byteCount: The number of bytes to decode. Returns: The maximum number of characters produced by decoding the specified number of bytes. """ pass def get_preamble(self): """ GetPreamble(self: Encoding) -> Array[Byte] When overridden in a derived class,returns a sequence of bytes that specifies the encoding used. Returns: A byte array containing a sequence of bytes that specifies the encoding used.-or- A byte array of length zero,if a preamble is not required. """ pass def get_string(self, bytes, *__args): """ GetString(self: Encoding,bytes: Array[Byte],index: int,count: int) -> str When overridden in a derived class,decodes a sequence of bytes from the specified byte array into a string. bytes: The byte array containing the sequence of bytes to decode. index: The index of the first byte to decode. count: The number of bytes to decode. Returns: A System.String containing the results of decoding the specified sequence of bytes. GetString(self: Encoding,bytes: Array[Byte]) -> str When overridden in a derived class,decodes all the bytes in the specified byte array into a string. bytes: The byte array containing the sequence of bytes to decode. Returns: A System.String containing the results of decoding the specified sequence of bytes. GetString(self: Encoding,bytes: Byte*,byteCount: int) -> str """ pass def is_always_normalized(self, form=None): """ IsAlwaysNormalized(self: Encoding,form: NormalizationForm) -> bool When overridden in a derived class,gets a value indicating whether the current encoding is always normalized,using the specified normalization form. form: One of the System.Text.NormalizationForm values. Returns: true if the current System.Text.Encoding object is always normalized using the specified System.Text.NormalizationForm value; otherwise,false. The default is false. IsAlwaysNormalized(self: Encoding) -> bool Gets a value indicating whether the current encoding is always normalized, using the default normalization form. Returns: true if the current System.Text.Encoding is always normalized; otherwise, false. The default is false. """ pass @staticmethod def register_provider(provider): """ RegisterProvider(provider: EncodingProvider) """ pass def __eq__(self, *args): """ x.__eq__(y) <==> x==y """ pass def __init__(self, *args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass @staticmethod def __new__(self, *args): """ __new__(cls: type) __new__(cls: type,codePage: int) __new__(cls: type,codePage: int,encoderFallback: EncoderFallback,decoderFallback: DecoderFallback) """ pass def __ne__(self, *args): pass def __reduce_ex__(self, *args): pass def __repr__(self, *args): """ __repr__(self: object) -> str """ pass body_name = property(lambda self: object(), lambda self, v: None, lambda self: None) 'When overridden in a derived class,gets a name for the current encoding that can be used with mail agent body tags.\n\n\n\nGet: BodyName(self: Encoding) -> str\n\n\n\n' code_page = property(lambda self: object(), lambda self, v: None, lambda self: None) 'When overridden in a derived class,gets the code page identifier of the current System.Text.Encoding.\n\n\n\nGet: CodePage(self: Encoding) -> int\n\n\n\n' decoder_fallback = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets the System.Text.DecoderFallback object for the current System.Text.Encoding object.\n\n\n\nGet: DecoderFallback(self: Encoding) -> DecoderFallback\n\n\n\nSet: DecoderFallback(self: Encoding)=value\n\n' encoder_fallback = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets the System.Text.EncoderFallback object for the current System.Text.Encoding object.\n\n\n\nGet: EncoderFallback(self: Encoding) -> EncoderFallback\n\n\n\nSet: EncoderFallback(self: Encoding)=value\n\n' encoding_name = property(lambda self: object(), lambda self, v: None, lambda self: None) 'When overridden in a derived class,gets the human-readable description of the current encoding.\n\n\n\nGet: EncodingName(self: Encoding) -> str\n\n\n\n' header_name = property(lambda self: object(), lambda self, v: None, lambda self: None) 'When overridden in a derived class,gets a name for the current encoding that can be used with mail agent header tags.\n\n\n\nGet: HeaderName(self: Encoding) -> str\n\n\n\n' is_browser_display = property(lambda self: object(), lambda self, v: None, lambda self: None) 'When overridden in a derived class,gets a value indicating whether the current encoding can be used by browser clients for displaying content.\n\n\n\nGet: IsBrowserDisplay(self: Encoding) -> bool\n\n\n\n' is_browser_save = property(lambda self: object(), lambda self, v: None, lambda self: None) 'When overridden in a derived class,gets a value indicating whether the current encoding can be used by browser clients for saving content.\n\n\n\nGet: IsBrowserSave(self: Encoding) -> bool\n\n\n\n' is_mail_news_display = property(lambda self: object(), lambda self, v: None, lambda self: None) 'When overridden in a derived class,gets a value indicating whether the current encoding can be used by mail and news clients for displaying content.\n\n\n\nGet: IsMailNewsDisplay(self: Encoding) -> bool\n\n\n\n' is_mail_news_save = property(lambda self: object(), lambda self, v: None, lambda self: None) 'When overridden in a derived class,gets a value indicating whether the current encoding can be used by mail and news clients for saving content.\n\n\n\nGet: IsMailNewsSave(self: Encoding) -> bool\n\n\n\n' is_read_only = property(lambda self: object(), lambda self, v: None, lambda self: None) 'When overridden in a derived class,gets a value indicating whether the current encoding is read-only.\n\n\n\nGet: IsReadOnly(self: Encoding) -> bool\n\n\n\n' is_single_byte = property(lambda self: object(), lambda self, v: None, lambda self: None) 'When overridden in a derived class,gets a value indicating whether the current encoding uses single-byte code points.\n\n\n\nGet: IsSingleByte(self: Encoding) -> bool\n\n\n\n' web_name = property(lambda self: object(), lambda self, v: None, lambda self: None) 'When overridden in a derived class,gets the name registered with the Internet Assigned Numbers Authority (IANA) for the current encoding.\n\n\n\nGet: WebName(self: Encoding) -> str\n\n\n\n' windows_code_page = property(lambda self: object(), lambda self, v: None, lambda self: None) 'When overridden in a derived class,gets the Windows operating system code page that most closely corresponds to the current encoding.\n\n\n\nGet: WindowsCodePage(self: Encoding) -> int\n\n\n\n' ascii = None big_endian_unicode = None default = None unicode = None utf32 = None utf7 = None utf8 = None class Asciiencoding(Encoding, ICloneable): """ Represents an ASCII character encoding of Unicode characters. ASCIIEncoding() """ def get_byte_count(self, chars, *__args): """ GetByteCount(self: ASCIIEncoding,chars: Char*,count: int) -> int Calculates the number of bytes produced by encoding a set of characters starting at the specified character pointer. chars: A pointer to the first character to encode. count: The number of characters to encode. Returns: The number of bytes produced by encoding the specified characters. GetByteCount(self: ASCIIEncoding,chars: str) -> int Calculates the number of bytes produced by encoding the characters in the specified System.String. chars: The System.String containing the set of characters to encode. Returns: The number of bytes produced by encoding the specified characters. GetByteCount(self: ASCIIEncoding,chars: Array[Char],index: int,count: int) -> int Calculates the number of bytes produced by encoding a set of characters from the specified character array. chars: The character array containing the set of characters to encode. index: The index of the first character to encode. count: The number of characters to encode. Returns: The number of bytes produced by encoding the specified characters. """ pass def get_bytes(self, *__args): """ GetBytes(self: ASCIIEncoding,chars: Char*,charCount: int,bytes: Byte*,byteCount: int) -> int Encodes a set of characters starting at the specified character pointer into a sequence of bytes that are stored starting at the specified byte pointer. chars: A pointer to the first character to encode. charCount: The number of characters to encode. bytes: A pointer to the location at which to start writing the resulting sequence of bytes. byteCount: The maximum number of bytes to write. Returns: The actual number of bytes written at the location indicated by bytes. GetBytes(self: ASCIIEncoding,chars: Array[Char],charIndex: int,charCount: int,bytes: Array[Byte],byteIndex: int) -> int Encodes a set of characters from the specified character array into the specified byte array. chars: The character array containing the set of characters to encode. charIndex: The index of the first character to encode. charCount: The number of characters to encode. bytes: The byte array to contain the resulting sequence of bytes. byteIndex: The index at which to start writing the resulting sequence of bytes. Returns: The actual number of bytes written into bytes. GetBytes(self: ASCIIEncoding,chars: str,charIndex: int,charCount: int,bytes: Array[Byte],byteIndex: int) -> int Encodes a set of characters from the specified System.String into the specified byte array. chars: The System.String containing the set of characters to encode. charIndex: The index of the first character to encode. charCount: The number of characters to encode. bytes: The byte array to contain the resulting sequence of bytes. byteIndex: The index at which to start writing the resulting sequence of bytes. Returns: The actual number of bytes written into bytes. """ pass def get_char_count(self, bytes, *__args): """ GetCharCount(self: ASCIIEncoding,bytes: Byte*,count: int) -> int Calculates the number of characters produced by decoding a sequence of bytes starting at the specified byte pointer. bytes: A pointer to the first byte to decode. count: The number of bytes to decode. Returns: The number of characters produced by decoding the specified sequence of bytes. GetCharCount(self: ASCIIEncoding,bytes: Array[Byte],index: int,count: int) -> int Calculates the number of characters produced by decoding a sequence of bytes from the specified byte array. bytes: The byte array containing the sequence of bytes to decode. index: The index of the first byte to decode. count: The number of bytes to decode. Returns: The number of characters produced by decoding the specified sequence of bytes. """ pass def get_chars(self, bytes, *__args): """ GetChars(self: ASCIIEncoding,bytes: Byte*,byteCount: int,chars: Char*,charCount: int) -> int Decodes a sequence of bytes starting at the specified byte pointer into a set of characters that are stored starting at the specified character pointer. bytes: A pointer to the first byte to decode. byteCount: The number of bytes to decode. chars: A pointer to the location at which to start writing the resulting set of characters. charCount: The maximum number of characters to write. Returns: The actual number of characters written at the location indicated by chars. GetChars(self: ASCIIEncoding,bytes: Array[Byte],byteIndex: int,byteCount: int,chars: Array[Char],charIndex: int) -> int Decodes a sequence of bytes from the specified byte array into the specified character array. bytes: The byte array containing the sequence of bytes to decode. byteIndex: The index of the first byte to decode. byteCount: The number of bytes to decode. chars: The character array to contain the resulting set of characters. charIndex: The index at which to start writing the resulting set of characters. Returns: The actual number of characters written into chars. """ pass def get_decoder(self): """ GetDecoder(self: ASCIIEncoding) -> Decoder Obtains a decoder that converts an ASCII encoded sequence of bytes into a sequence of Unicode characters. Returns: A System.Text.Decoder that converts an ASCII encoded sequence of bytes into a sequence of Unicode characters. """ pass def get_encoder(self): """ GetEncoder(self: ASCIIEncoding) -> Encoder Obtains an encoder that converts a sequence of Unicode characters into an ASCII encoded sequence of bytes. Returns: An System.Text.Encoder that converts a sequence of Unicode characters into an ASCII encoded sequence of bytes. """ pass def get_max_byte_count(self, charCount): """ GetMaxByteCount(self: ASCIIEncoding,charCount: int) -> int Calculates the maximum number of bytes produced by encoding the specified number of characters. charCount: The number of characters to encode. Returns: The maximum number of bytes produced by encoding the specified number of characters. """ pass def get_max_char_count(self, byteCount): """ GetMaxCharCount(self: ASCIIEncoding,byteCount: int) -> int Calculates the maximum number of characters produced by decoding the specified number of bytes. byteCount: The number of bytes to decode. Returns: The maximum number of characters produced by decoding the specified number of bytes. """ pass def get_string(self, bytes, *__args): """ GetString(self: ASCIIEncoding,bytes: Array[Byte],byteIndex: int,byteCount: int) -> str Decodes a range of bytes from a byte array into a string. bytes: The byte array containing the sequence of bytes to decode. byteIndex: The index of the first byte to decode. byteCount: The number of bytes to decode. Returns: A System.String containing the results of decoding the specified sequence of bytes. """ pass def __init__(self, *args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass def __reduce_ex__(self, *args): pass is_single_byte = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets a value indicating whether the current encoding uses single-byte code points.\n\n\n\nGet: IsSingleByte(self: ASCIIEncoding) -> bool\n\n\n\n' class Decoder(object): """ Converts a sequence of encoded bytes into a set of characters. """ def convert(self, bytes, *__args): """ Convert(self: Decoder,bytes: Byte*,byteCount: int,chars: Char*,charCount: int,flush: bool) -> (int,int,bool) Converts a buffer of encoded bytes to UTF-16 encoded characters and stores the result in another buffer. bytes: The address of a buffer that contains the byte sequences to convert. byteCount: The number of bytes in bytes to convert. chars: The address of a buffer to store the converted characters. charCount: The maximum number of characters in chars to use in the conversion. flush: true to indicate no further data is to be converted; otherwise,false. Convert(self: Decoder,bytes: Array[Byte],byteIndex: int,byteCount: int,chars: Array[Char],charIndex: int,charCount: int,flush: bool) -> (int,int,bool) Converts an array of encoded bytes to UTF-16 encoded characters and stores the result in a byte array. bytes: A byte array to convert. byteIndex: The first element of bytes to convert. byteCount: The number of elements of bytes to convert. chars: An array to store the converted characters. charIndex: The first element of chars in which data is stored. charCount: The maximum number of elements of chars to use in the conversion. flush: true to indicate that no further data is to be converted; otherwise,false. """ pass def get_char_count(self, bytes, *__args): """ GetCharCount(self: Decoder,bytes: Byte*,count: int,flush: bool) -> int When overridden in a derived class,calculates the number of characters produced by decoding a sequence of bytes starting at the specified byte pointer. A parameter indicates whether to clear the internal state of the decoder after the calculation. bytes: A pointer to the first byte to decode. count: The number of bytes to decode. flush: true to simulate clearing the internal state of the encoder after the calculation; otherwise,false. Returns: The number of characters produced by decoding the specified sequence of bytes and any bytes in the internal buffer. GetCharCount(self: Decoder,bytes: Array[Byte],index: int,count: int,flush: bool) -> int When overridden in a derived class,calculates the number of characters produced by decoding a sequence of bytes from the specified byte array. A parameter indicates whether to clear the internal state of the decoder after the calculation. bytes: The byte array containing the sequence of bytes to decode. index: The index of the first byte to decode. count: The number of bytes to decode. flush: true to simulate clearing the internal state of the encoder after the calculation; otherwise,false. Returns: The number of characters produced by decoding the specified sequence of bytes and any bytes in the internal buffer. GetCharCount(self: Decoder,bytes: Array[Byte],index: int,count: int) -> int When overridden in a derived class,calculates the number of characters produced by decoding a sequence of bytes from the specified byte array. bytes: The byte array containing the sequence of bytes to decode. index: The index of the first byte to decode. count: The number of bytes to decode. Returns: The number of characters produced by decoding the specified sequence of bytes and any bytes in the internal buffer. """ pass def get_chars(self, bytes, *__args): """ GetChars(self: Decoder,bytes: Byte*,byteCount: int,chars: Char*,charCount: int,flush: bool) -> int When overridden in a derived class,decodes a sequence of bytes starting at the specified byte pointer and any bytes in the internal buffer into a set of characters that are stored starting at the specified character pointer. A parameter indicates whether to clear the internal state of the decoder after the conversion. bytes: A pointer to the first byte to decode. byteCount: The number of bytes to decode. chars: A pointer to the location at which to start writing the resulting set of characters. charCount: The maximum number of characters to write. flush: true to clear the internal state of the decoder after the conversion; otherwise,false. Returns: The actual number of characters written at the location indicated by the chars parameter. GetChars(self: Decoder,bytes: Array[Byte],byteIndex: int,byteCount: int,chars: Array[Char],charIndex: int,flush: bool) -> int When overridden in a derived class,decodes a sequence of bytes from the specified byte array and any bytes in the internal buffer into the specified character array. A parameter indicates whether to clear the internal state of the decoder after the conversion. bytes: The byte array containing the sequence of bytes to decode. byteIndex: The index of the first byte to decode. byteCount: The number of bytes to decode. chars: The character array to contain the resulting set of characters. charIndex: The index at which to start writing the resulting set of characters. flush: true to clear the internal state of the decoder after the conversion; otherwise,false. Returns: The actual number of characters written into the chars parameter. GetChars(self: Decoder,bytes: Array[Byte],byteIndex: int,byteCount: int,chars: Array[Char],charIndex: int) -> int When overridden in a derived class,decodes a sequence of bytes from the specified byte array and any bytes in the internal buffer into the specified character array. bytes: The byte array containing the sequence of bytes to decode. byteIndex: The index of the first byte to decode. byteCount: The number of bytes to decode. chars: The character array to contain the resulting set of characters. charIndex: The index at which to start writing the resulting set of characters. Returns: The actual number of characters written into chars. """ pass def reset(self): """ Reset(self: Decoder) When overridden in a derived class,sets the decoder back to its initial state. """ pass fallback = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets a System.Text.DecoderFallback object for the current System.Text.Decoder object.\n\n\n\nGet: Fallback(self: Decoder) -> DecoderFallback\n\n\n\nSet: Fallback(self: Decoder)=value\n\n' fallback_buffer = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the System.Text.DecoderFallbackBuffer object associated with the current System.Text.Decoder object.\n\n\n\nGet: FallbackBuffer(self: Decoder) -> DecoderFallbackBuffer\n\n\n\n' class Decoderfallback(object): """ Provides a failure-handling mechanism,called a fallback,for an encoded input byte sequence that cannot be converted to an output character. """ def create_fallback_buffer(self): """ CreateFallbackBuffer(self: DecoderFallback) -> DecoderFallbackBuffer When overridden in a derived class,initializes a new instance of the System.Text.DecoderFallbackBuffer class. Returns: An object that provides a fallback buffer for a decoder. """ pass max_char_count = property(lambda self: object(), lambda self, v: None, lambda self: None) 'When overridden in a derived class,gets the maximum number of characters the current System.Text.DecoderFallback object can return.\n\n\n\nGet: MaxCharCount(self: DecoderFallback) -> int\n\n\n\n' exception_fallback = None replacement_fallback = None class Decoderexceptionfallback(DecoderFallback): """ Throws System.Text.DecoderFallbackException if an encoded input byte sequence cannot be converted to a decoded output character. This class cannot be inherited. DecoderExceptionFallback() """ def create_fallback_buffer(self): """ CreateFallbackBuffer(self: DecoderExceptionFallback) -> DecoderFallbackBuffer Initializes a new instance of the System.Text.DecoderExceptionFallback class. Returns: A System.Text.DecoderFallbackBuffer object. """ pass def equals(self, value): """ Equals(self: DecoderExceptionFallback,value: object) -> bool Indicates whether the current System.Text.DecoderExceptionFallback object and a specified object are equal. value: An object that derives from the System.Text.DecoderExceptionFallback class. Returns: true if value is not null and is a System.Text.DecoderExceptionFallback object; otherwise,false. """ pass def get_hash_code(self): """ GetHashCode(self: DecoderExceptionFallback) -> int Retrieves the hash code for this instance. Returns: The return value is always the same arbitrary value,and has no special significance. """ pass def __eq__(self, *args): """ x.__eq__(y) <==> x==y """ pass def __ne__(self, *args): pass max_char_count = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the maximum number of characters this instance can return.\n\n\n\nGet: MaxCharCount(self: DecoderExceptionFallback) -> int\n\n\n\n' class Decoderfallbackbuffer(object): """ Provides a buffer that allows a fallback handler to return an alternate string to a decoder when it cannot decode an input byte sequence. """ def fallback(self, bytesUnknown, index): """ Fallback(self: DecoderFallbackBuffer,bytesUnknown: Array[Byte],index: int) -> bool When overridden in a derived class,prepares the fallback buffer to handle the specified input byte sequence. bytesUnknown: An input array of bytes. index: The index position of a byte in bytesUnknown. Returns: true if the fallback buffer can process bytesUnknown; false if the fallback buffer ignores bytesUnknown. """ pass def get_next_char(self): """ GetNextChar(self: DecoderFallbackBuffer) -> Char When overridden in a derived class,retrieves the next character in the fallback buffer. Returns: The next character in the fallback buffer. """ pass def move_previous(self): """ MovePrevious(self: DecoderFallbackBuffer) -> bool When overridden in a derived class,causes the next call to the System.Text.DecoderFallbackBuffer.GetNextChar method to access the data buffer character position that is prior to the current character position. Returns: true if the System.Text.DecoderFallbackBuffer.MovePrevious operation was successful; otherwise,false. """ pass def reset(self): """ Reset(self: DecoderFallbackBuffer) Initializes all data and state information pertaining to this fallback buffer. """ pass remaining = property(lambda self: object(), lambda self, v: None, lambda self: None) 'When overridden in a derived class,gets the number of characters in the current System.Text.DecoderFallbackBuffer object that remain to be processed.\n\n\n\nGet: Remaining(self: DecoderFallbackBuffer) -> int\n\n\n\n' class Decoderexceptionfallbackbuffer(DecoderFallbackBuffer): """ Throws System.Text.DecoderFallbackException when an encoded input byte sequence cannot be converted to a decoded output character. This class cannot be inherited. DecoderExceptionFallbackBuffer() """ def fallback(self, bytesUnknown, index): """ Fallback(self: DecoderExceptionFallbackBuffer,bytesUnknown: Array[Byte],index: int) -> bool Throws System.Text.DecoderFallbackException when the input byte sequence cannot be decoded. The nominal return value is not used. bytesUnknown: An input array of bytes. index: The index position of a byte in the input. Returns: None. No value is returned because the System.Text.DecoderExceptionFallbackBuffer.Fallback(System.Byte[],System.Int32) method always throws an exception. The nominal return value is true. A return value is defined,although it is unchanging,because this method implements an abstract method. """ pass def get_next_char(self): """ GetNextChar(self: DecoderExceptionFallbackBuffer) -> Char Retrieves the next character in the exception data buffer. Returns: The return value is always the Unicode character NULL (U+0000). A return value is defined,although it is unchanging,because this method implements an abstract method. """ pass def move_previous(self): """ MovePrevious(self: DecoderExceptionFallbackBuffer) -> bool Causes the next call to System.Text.DecoderExceptionFallbackBuffer.GetNextChar to access the exception data buffer character position that is prior to the current position. Returns: The return value is always false. A return value is defined,although it is unchanging,because this method implements an abstract method. """ pass remaining = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the number of characters in the current System.Text.DecoderExceptionFallbackBuffer object that remain to be processed.\n\n\n\nGet: Remaining(self: DecoderExceptionFallbackBuffer) -> int\n\n\n\n' class Decoderfallbackexception(ArgumentException, ISerializable, _Exception): """ The exception that is thrown when a decoder fallback operation fails. This class cannot be inherited. DecoderFallbackException() DecoderFallbackException(message: str) DecoderFallbackException(message: str,innerException: Exception) DecoderFallbackException(message: str,bytesUnknown: Array[Byte],index: int) """ def add__serialize_object_state(self, *args): """ add_SerializeObjectState(self: Exception,value: EventHandler[SafeSerializationEventArgs]) """ pass def remove__serialize_object_state(self, *args): """ remove_SerializeObjectState(self: Exception,value: EventHandler[SafeSerializationEventArgs]) """ pass def __init__(self, *args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass @staticmethod def __new__(self, message=None, *__args): """ __new__(cls: type) __new__(cls: type,message: str) __new__(cls: type,message: str,innerException: Exception) __new__(cls: type,message: str,bytesUnknown: Array[Byte],index: int) """ pass def __reduce_ex__(self, *args): pass def __str__(self, *args): pass bytes_unknown = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the input byte sequence that caused the exception.\n\n\n\nGet: BytesUnknown(self: DecoderFallbackException) -> Array[Byte]\n\n\n\n' index = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the index position in the input byte sequence of the byte that caused the exception.\n\n\n\nGet: Index(self: DecoderFallbackException) -> int\n\n\n\n' class Decoderreplacementfallback(DecoderFallback): """ Provides a failure-handling mechanism,called a fallback,for an encoded input byte sequence that cannot be converted to an output character. The fallback emits a user-specified replacement string instead of a decoded input byte sequence. This class cannot be inherited. DecoderReplacementFallback() DecoderReplacementFallback(replacement: str) """ def create_fallback_buffer(self): """ CreateFallbackBuffer(self: DecoderReplacementFallback) -> DecoderFallbackBuffer Creates a System.Text.DecoderFallbackBuffer object that is initialized with the replacement string of this System.Text.DecoderReplacementFallback object. Returns: A System.Text.DecoderFallbackBuffer object that specifies a string to use instead of the original decoding operation input. """ pass def equals(self, value): """ Equals(self: DecoderReplacementFallback,value: object) -> bool Indicates whether the value of a specified object is equal to the System.Text.DecoderReplacementFallback object. value: A System.Text.DecoderReplacementFallback object. Returns: true if value is a System.Text.DecoderReplacementFallback object having a System.Text.DecoderReplacementFallback.DefaultString property that is equal to the System.Text.DecoderReplacementFallback.DefaultString property of the current System.Text.DecoderReplacementFallback object; otherwise,false. """ pass def get_hash_code(self): """ GetHashCode(self: DecoderReplacementFallback) -> int Retrieves the hash code for the value of the System.Text.DecoderReplacementFallback object. Returns: The hash code of the value of the object. """ pass def __eq__(self, *args): """ x.__eq__(y) <==> x==y """ pass @staticmethod def __new__(self, replacement=None): """ __new__(cls: type) __new__(cls: type,replacement: str) """ pass def __ne__(self, *args): pass default_string = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the replacement string that is the value of the System.Text.DecoderReplacementFallback object.\n\n\n\nGet: DefaultString(self: DecoderReplacementFallback) -> str\n\n\n\n' max_char_count = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the number of characters in the replacement string for the System.Text.DecoderReplacementFallback object.\n\n\n\nGet: MaxCharCount(self: DecoderReplacementFallback) -> int\n\n\n\n' class Decoderreplacementfallbackbuffer(DecoderFallbackBuffer): """ Represents a substitute output string that is emitted when the original input byte sequence cannot be decoded. This class cannot be inherited. DecoderReplacementFallbackBuffer(fallback: DecoderReplacementFallback) """ def fallback(self, bytesUnknown, index): """ Fallback(self: DecoderReplacementFallbackBuffer,bytesUnknown: Array[Byte],index: int) -> bool Prepares the replacement fallback buffer to use the current replacement string. bytesUnknown: An input byte sequence. This parameter is ignored unless an exception is thrown. index: The index position of the byte in bytesUnknown. This parameter is ignored in this operation. Returns: true if the replacement string is not empty; false if the replacement string is empty. """ pass def get_next_char(self): """ GetNextChar(self: DecoderReplacementFallbackBuffer) -> Char Retrieves the next character in the replacement fallback buffer. Returns: The next character in the replacement fallback buffer. """ pass def move_previous(self): """ MovePrevious(self: DecoderReplacementFallbackBuffer) -> bool Causes the next call to System.Text.DecoderReplacementFallbackBuffer.GetNextChar to access the character position in the replacement fallback buffer prior to the current character position. Returns: true if the System.Text.DecoderReplacementFallbackBuffer.MovePrevious operation was successful; otherwise,false. """ pass def reset(self): """ Reset(self: DecoderReplacementFallbackBuffer) Initializes all internal state information and data in the System.Text.DecoderReplacementFallbackBuffer object. """ pass @staticmethod def __new__(self, fallback): """ __new__(cls: type,fallback: DecoderReplacementFallback) """ pass remaining = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the number of characters in the replacement fallback buffer that remain to be processed.\n\n\n\nGet: Remaining(self: DecoderReplacementFallbackBuffer) -> int\n\n\n\n' class Encoder(object): """ Converts a set of characters into a sequence of bytes. """ def convert(self, chars, *__args): """ Convert(self: Encoder,chars: Char*,charCount: int,bytes: Byte*,byteCount: int,flush: bool) -> (int,int,bool) Converts a buffer of Unicode characters to an encoded byte sequence and stores the result in another buffer. chars: The address of a string of UTF-16 encoded characters to convert. charCount: The number of characters in chars to convert. bytes: The address of a buffer to store the converted bytes. byteCount: The maximum number of bytes in bytes to use in the conversion. flush: true to indicate no further data is to be converted; otherwise,false. Convert(self: Encoder,chars: Array[Char],charIndex: int,charCount: int,bytes: Array[Byte],byteIndex: int,byteCount: int,flush: bool) -> (int,int,bool) Converts an array of Unicode characters to an encoded byte sequence and stores the result in an array of bytes. chars: An array of characters to convert. charIndex: The first element of chars to convert. charCount: The number of elements of chars to convert. bytes: An array where the converted bytes are stored. byteIndex: The first element of bytes in which data is stored. byteCount: The maximum number of elements of bytes to use in the conversion. flush: true to indicate no further data is to be converted; otherwise,false. """ pass def get_byte_count(self, chars, *__args): """ GetByteCount(self: Encoder,chars: Char*,count: int,flush: bool) -> int When overridden in a derived class,calculates the number of bytes produced by encoding a set of characters starting at the specified character pointer. A parameter indicates whether to clear the internal state of the encoder after the calculation. chars: A pointer to the first character to encode. count: The number of characters to encode. flush: true to simulate clearing the internal state of the encoder after the calculation; otherwise,false. Returns: The number of bytes produced by encoding the specified characters and any characters in the internal buffer. GetByteCount(self: Encoder,chars: Array[Char],index: int,count: int,flush: bool) -> int When overridden in a derived class,calculates the number of bytes produced by encoding a set of characters from the specified character array. A parameter indicates whether to clear the internal state of the encoder after the calculation. chars: The character array containing the set of characters to encode. index: The index of the first character to encode. count: The number of characters to encode. flush: true to simulate clearing the internal state of the encoder after the calculation; otherwise,false. Returns: The number of bytes produced by encoding the specified characters and any characters in the internal buffer. """ pass def get_bytes(self, chars, *__args): """ GetBytes(self: Encoder,chars: Char*,charCount: int,bytes: Byte*,byteCount: int,flush: bool) -> int When overridden in a derived class,encodes a set of characters starting at the specified character pointer and any characters in the internal buffer into a sequence of bytes that are stored starting at the specified byte pointer. A parameter indicates whether to clear the internal state of the encoder after the conversion. chars: A pointer to the first character to encode. charCount: The number of characters to encode. bytes: A pointer to the location at which to start writing the resulting sequence of bytes. byteCount: The maximum number of bytes to write. flush: true to clear the internal state of the encoder after the conversion; otherwise,false. Returns: The actual number of bytes written at the location indicated by the bytes parameter. GetBytes(self: Encoder,chars: Array[Char],charIndex: int,charCount: int,bytes: Array[Byte],byteIndex: int,flush: bool) -> int When overridden in a derived class,encodes a set of characters from the specified character array and any characters in the internal buffer into the specified byte array. A parameter indicates whether to clear the internal state of the encoder after the conversion. chars: The character array containing the set of characters to encode. charIndex: The index of the first character to encode. charCount: The number of characters to encode. bytes: The byte array to contain the resulting sequence of bytes. byteIndex: The index at which to start writing the resulting sequence of bytes. flush: true to clear the internal state of the encoder after the conversion; otherwise,false. Returns: The actual number of bytes written into bytes. """ pass def reset(self): """ Reset(self: Encoder) When overridden in a derived class,sets the encoder back to its initial state. """ pass fallback = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets a System.Text.EncoderFallback object for the current System.Text.Encoder object.\n\n\n\nGet: Fallback(self: Encoder) -> EncoderFallback\n\n\n\nSet: Fallback(self: Encoder)=value\n\n' fallback_buffer = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the System.Text.EncoderFallbackBuffer object associated with the current System.Text.Encoder object.\n\n\n\nGet: FallbackBuffer(self: Encoder) -> EncoderFallbackBuffer\n\n\n\n' class Encoderfallback(object): """ Provides a failure-handling mechanism,called a fallback,for an input character that cannot be converted to an encoded output byte sequence. """ def create_fallback_buffer(self): """ CreateFallbackBuffer(self: EncoderFallback) -> EncoderFallbackBuffer When overridden in a derived class,initializes a new instance of the System.Text.EncoderFallbackBuffer class. Returns: An object that provides a fallback buffer for an encoder. """ pass max_char_count = property(lambda self: object(), lambda self, v: None, lambda self: None) 'When overridden in a derived class,gets the maximum number of characters the current System.Text.EncoderFallback object can return.\n\n\n\nGet: MaxCharCount(self: EncoderFallback) -> int\n\n\n\n' exception_fallback = None replacement_fallback = None class Encoderexceptionfallback(EncoderFallback): """ Throws a System.Text.EncoderFallbackException if an input character cannot be converted to an encoded output byte sequence. This class cannot be inherited. EncoderExceptionFallback() """ def create_fallback_buffer(self): """ CreateFallbackBuffer(self: EncoderExceptionFallback) -> EncoderFallbackBuffer Initializes a new instance of the System.Text.EncoderExceptionFallback class. Returns: A System.Text.EncoderFallbackBuffer object. """ pass def equals(self, value): """ Equals(self: EncoderExceptionFallback,value: object) -> bool Indicates whether the current System.Text.EncoderExceptionFallback object and a specified object are equal. value: An object that derives from the System.Text.EncoderExceptionFallback class. Returns: true if value is not null (Nothing in Visual Basic .NET) and is a System.Text.EncoderExceptionFallback object; otherwise,false. """ pass def get_hash_code(self): """ GetHashCode(self: EncoderExceptionFallback) -> int Retrieves the hash code for this instance. Returns: The return value is always the same arbitrary value,and has no special significance. """ pass def __eq__(self, *args): """ x.__eq__(y) <==> x==y """ pass def __ne__(self, *args): pass max_char_count = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the maximum number of characters this instance can return.\n\n\n\nGet: MaxCharCount(self: EncoderExceptionFallback) -> int\n\n\n\n' class Encoderfallbackbuffer(object): """ Provides a buffer that allows a fallback handler to return an alternate string to an encoder when it cannot encode an input character. """ def fallback(self, *__args): """ Fallback(self: EncoderFallbackBuffer,charUnknownHigh: Char,charUnknownLow: Char,index: int) -> bool When overridden in a derived class,prepares the fallback buffer to handle the specified surrogate pair. charUnknownHigh: The high surrogate of the input pair. charUnknownLow: The low surrogate of the input pair. index: The index position of the surrogate pair in the input buffer. Returns: true if the fallback buffer can process charUnknownHigh and charUnknownLow; false if the fallback buffer ignores the surrogate pair. Fallback(self: EncoderFallbackBuffer,charUnknown: Char,index: int) -> bool When overridden in a derived class,prepares the fallback buffer to handle the specified input character. charUnknown: An input character. index: The index position of the character in the input buffer. Returns: true if the fallback buffer can process charUnknown; false if the fallback buffer ignores charUnknown. """ pass def get_next_char(self): """ GetNextChar(self: EncoderFallbackBuffer) -> Char When overridden in a derived class,retrieves the next character in the fallback buffer. Returns: The next character in the fallback buffer. """ pass def move_previous(self): """ MovePrevious(self: EncoderFallbackBuffer) -> bool When overridden in a derived class,causes the next call to the System.Text.EncoderFallbackBuffer.GetNextChar method to access the data buffer character position that is prior to the current character position. Returns: true if the System.Text.EncoderFallbackBuffer.MovePrevious operation was successful; otherwise,false. """ pass def reset(self): """ Reset(self: EncoderFallbackBuffer) Initializes all data and state information pertaining to this fallback buffer. """ pass remaining = property(lambda self: object(), lambda self, v: None, lambda self: None) 'When overridden in a derived class,gets the number of characters in the current System.Text.EncoderFallbackBuffer object that remain to be processed.\n\n\n\nGet: Remaining(self: EncoderFallbackBuffer) -> int\n\n\n\n' class Encoderexceptionfallbackbuffer(EncoderFallbackBuffer): """ Throws System.Text.EncoderFallbackException when an input character cannot be converted to an encoded output byte sequence. This class cannot be inherited. EncoderExceptionFallbackBuffer() """ def fallback(self, *__args): """ Fallback(self: EncoderExceptionFallbackBuffer,charUnknownHigh: Char,charUnknownLow: Char,index: int) -> bool Throws an exception because the input character cannot be encoded. Parameters specify the value and index position of the surrogate pair in the input,and the nominal return value is not used. charUnknownHigh: The high surrogate of the input pair. charUnknownLow: The low surrogate of the input pair. index: The index position of the surrogate pair in the input buffer. Returns: None. No value is returned because the System.Text.EncoderExceptionFallbackBuffer.Fallback(System.Char,System.Char,Syst em.Int32) method always throws an exception. Fallback(self: EncoderExceptionFallbackBuffer,charUnknown: Char,index: int) -> bool Throws an exception because the input character cannot be encoded. Parameters specify the value and index position of the character that cannot be converted. charUnknown: An input character. index: The index position of the character in the input buffer. Returns: None. No value is returned because the System.Text.EncoderExceptionFallbackBuffer.Fallback(System.Char,System.Int32) method always throws an exception. """ pass def get_next_char(self): """ GetNextChar(self: EncoderExceptionFallbackBuffer) -> Char Retrieves the next character in the exception fallback buffer. Returns: The return value is always the Unicode character,NULL (U+0000). A return value is defined,although it is unchanging,because this method implements an abstract method. """ pass def move_previous(self): """ MovePrevious(self: EncoderExceptionFallbackBuffer) -> bool Causes the next call to the System.Text.EncoderExceptionFallbackBuffer.GetNextChar method to access the exception data buffer character position that is prior to the current position. Returns: The return value is always false.A return value is defined,although it is unchanging,because this method implements an abstract method. """ pass remaining = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the number of characters in the current System.Text.EncoderExceptionFallbackBuffer object that remain to be processed.\n\n\n\nGet: Remaining(self: EncoderExceptionFallbackBuffer) -> int\n\n\n\n' class Encoderfallbackexception(ArgumentException, ISerializable, _Exception): """ The exception that is thrown when an encoder fallback operation fails. This class cannot be inherited. EncoderFallbackException() EncoderFallbackException(message: str) EncoderFallbackException(message: str,innerException: Exception) """ def add__serialize_object_state(self, *args): """ add_SerializeObjectState(self: Exception,value: EventHandler[SafeSerializationEventArgs]) """ pass def is_unknown_surrogate(self): """ IsUnknownSurrogate(self: EncoderFallbackException) -> bool Indicates whether the input that caused the exception is a surrogate pair. Returns: true if the input was a surrogate pair; otherwise,false. """ pass def remove__serialize_object_state(self, *args): """ remove_SerializeObjectState(self: Exception,value: EventHandler[SafeSerializationEventArgs]) """ pass def __init__(self, *args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass @staticmethod def __new__(self, message=None, innerException=None): """ __new__(cls: type) __new__(cls: type,message: str) __new__(cls: type,message: str,innerException: Exception) """ pass def __reduce_ex__(self, *args): pass def __str__(self, *args): pass char_unknown = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the input character that caused the exception.\n\n\n\nGet: CharUnknown(self: EncoderFallbackException) -> Char\n\n\n\n' char_unknown_high = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the high component character of the surrogate pair that caused the exception.\n\n\n\nGet: CharUnknownHigh(self: EncoderFallbackException) -> Char\n\n\n\n' char_unknown_low = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the low component character of the surrogate pair that caused the exception.\n\n\n\nGet: CharUnknownLow(self: EncoderFallbackException) -> Char\n\n\n\n' index = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the index position in the input buffer of the character that caused the exception.\n\n\n\nGet: Index(self: EncoderFallbackException) -> int\n\n\n\n' class Encoderreplacementfallback(EncoderFallback): """ Provides a failure handling mechanism,called a fallback,for an input character that cannot be converted to an output byte sequence. The fallback uses a user-specified replacement string instead of the original input character. This class cannot be inherited. EncoderReplacementFallback() EncoderReplacementFallback(replacement: str) """ def create_fallback_buffer(self): """ CreateFallbackBuffer(self: EncoderReplacementFallback) -> EncoderFallbackBuffer Creates a System.Text.EncoderFallbackBuffer object that is initialized with the replacement string of this System.Text.EncoderReplacementFallback object. Returns: A System.Text.EncoderFallbackBuffer object equal to this System.Text.EncoderReplacementFallback object. """ pass def equals(self, value): """ Equals(self: EncoderReplacementFallback,value: object) -> bool Indicates whether the value of a specified object is equal to the System.Text.EncoderReplacementFallback object. value: A System.Text.EncoderReplacementFallback object. Returns: true if the value parameter specifies an System.Text.EncoderReplacementFallback object and the replacement string of that object is equal to the replacement string of this System.Text.EncoderReplacementFallback object; otherwise,false. """ pass def get_hash_code(self): """ GetHashCode(self: EncoderReplacementFallback) -> int Retrieves the hash code for the value of the System.Text.EncoderReplacementFallback object. Returns: The hash code of the value of the object. """ pass def __eq__(self, *args): """ x.__eq__(y) <==> x==y """ pass @staticmethod def __new__(self, replacement=None): """ __new__(cls: type) __new__(cls: type,replacement: str) """ pass def __ne__(self, *args): pass default_string = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the replacement string that is the value of the System.Text.EncoderReplacementFallback object.\n\n\n\nGet: DefaultString(self: EncoderReplacementFallback) -> str\n\n\n\n' max_char_count = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the number of characters in the replacement string for the System.Text.EncoderReplacementFallback object.\n\n\n\nGet: MaxCharCount(self: EncoderReplacementFallback) -> int\n\n\n\n' class Encoderreplacementfallbackbuffer(EncoderFallbackBuffer): """ Represents a substitute input string that is used when the original input character cannot be encoded. This class cannot be inherited. EncoderReplacementFallbackBuffer(fallback: EncoderReplacementFallback) """ def fallback(self, *__args): """ Fallback(self: EncoderReplacementFallbackBuffer,charUnknownHigh: Char,charUnknownLow: Char,index: int) -> bool Indicates whether a replacement string can be used when an input surrogate pair cannot be encoded,or whether the surrogate pair can be ignored. Parameters specify the surrogate pair and the index position of the pair in the input. charUnknownHigh: The high surrogate of the input pair. charUnknownLow: The low surrogate of the input pair. index: The index position of the surrogate pair in the input buffer. Returns: true if the replacement string is not empty; false if the replacement string is empty. Fallback(self: EncoderReplacementFallbackBuffer,charUnknown: Char,index: int) -> bool Prepares the replacement fallback buffer to use the current replacement string. charUnknown: An input character. This parameter is ignored in this operation unless an exception is thrown. index: The index position of the character in the input buffer. This parameter is ignored in this operation. Returns: true if the replacement string is not empty; false if the replacement string is empty. """ pass def get_next_char(self): """ GetNextChar(self: EncoderReplacementFallbackBuffer) -> Char Retrieves the next character in the replacement fallback buffer. Returns: The next Unicode character in the replacement fallback buffer that the application can encode. """ pass def move_previous(self): """ MovePrevious(self: EncoderReplacementFallbackBuffer) -> bool Causes the next call to the System.Text.EncoderReplacementFallbackBuffer.GetNextChar method to access the character position in the replacement fallback buffer prior to the current character position. Returns: true if the System.Text.EncoderReplacementFallbackBuffer.MovePrevious operation was successful; otherwise,false. """ pass def reset(self): """ Reset(self: EncoderReplacementFallbackBuffer) Initializes all internal state information and data in this instance of System.Text.EncoderReplacementFallbackBuffer. """ pass @staticmethod def __new__(self, fallback): """ __new__(cls: type,fallback: EncoderReplacementFallback) """ pass remaining = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the number of characters in the replacement fallback buffer that remain to be processed.\n\n\n\nGet: Remaining(self: EncoderReplacementFallbackBuffer) -> int\n\n\n\n' class Encodinginfo(object): """ Provides basic information about an encoding. """ def equals(self, value): """ Equals(self: EncodingInfo,value: object) -> bool Gets a value indicating whether the specified object is equal to the current System.Text.EncodingInfo object. value: An object to compare to the current System.Text.EncodingInfo object. Returns: true if value is a System.Text.EncodingInfo object and is equal to the current System.Text.EncodingInfo object; otherwise,false. """ pass def get_encoding(self): """ GetEncoding(self: EncodingInfo) -> Encoding Returns a System.Text.Encoding object that corresponds to the current System.Text.EncodingInfo object. Returns: A System.Text.Encoding object that corresponds to the current System.Text.EncodingInfo object. """ pass def get_hash_code(self): """ GetHashCode(self: EncodingInfo) -> int Returns the hash code for the current System.Text.EncodingInfo object. Returns: A 32-bit signed integer hash code. """ pass def __eq__(self, *args): """ x.__eq__(y) <==> x==y """ pass def __ne__(self, *args): pass code_page = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the code page identifier of the encoding.\n\n\n\nGet: CodePage(self: EncodingInfo) -> int\n\n\n\n' display_name = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the human-readable description of the encoding.\n\n\n\nGet: DisplayName(self: EncodingInfo) -> str\n\n\n\n' name = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the name registered with the Internet Assigned Numbers Authority (IANA) for the encoding.\n\n\n\nGet: Name(self: EncodingInfo) -> str\n\n\n\n' class Encodingprovider(object): """ EncodingProvider() """ def get_encoding(self, *__args): """ GetEncoding(self: EncodingProvider,name: str,encoderFallback: EncoderFallback,decoderFallback: DecoderFallback) -> Encoding GetEncoding(self: EncodingProvider,codepage: int,encoderFallback: EncoderFallback,decoderFallback: DecoderFallback) -> Encoding GetEncoding(self: EncodingProvider,name: str) -> Encoding GetEncoding(self: EncodingProvider,codepage: int) -> Encoding """ pass class Normalizationform(Enum, IComparable, IFormattable, IConvertible): """ Defines the type of normalization to perform. enum NormalizationForm,values: FormC (1),FormD (2),FormKC (5),FormKD (6) """ def __eq__(self, *args): """ x.__eq__(y) <==> x==yx.__eq__(y) <==> x==yx.__eq__(y) <==> x==y """ pass def __format__(self, *args): """ __format__(formattable: IFormattable,format: str) -> str """ pass def __ge__(self, *args): pass def __gt__(self, *args): pass def __init__(self, *args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass def __le__(self, *args): pass def __lt__(self, *args): pass def __ne__(self, *args): pass def __reduce_ex__(self, *args): pass def __str__(self, *args): pass form_c = None form_d = None form_kc = None form_kd = None value__ = None class Stringbuilder(object, ISerializable): """ Represents a mutable string of characters. This class cannot be inherited. StringBuilder() StringBuilder(capacity: int) StringBuilder(value: str) StringBuilder(value: str,capacity: int) StringBuilder(value: str,startIndex: int,length: int,capacity: int) StringBuilder(capacity: int,maxCapacity: int) """ def append(self, value, *__args): """ Append(self: StringBuilder,value: Decimal) -> StringBuilder Appends the string representation of a specified decimal number to this instance. value: The value to append. Returns: A reference to this instance after the append operation has completed. Append(self: StringBuilder,value: UInt16) -> StringBuilder Appends the string representation of a specified 16-bit unsigned integer to this instance. value: The value to append. Returns: A reference to this instance after the append operation has completed. Append(self: StringBuilder,value: float) -> StringBuilder Appends the string representation of a specified double-precision floating-point number to this instance. value: The value to append. Returns: A reference to this instance after the append operation has completed. Append(self: StringBuilder,value: Int64) -> StringBuilder Appends the string representation of a specified 64-bit signed integer to this instance. value: The value to append. Returns: A reference to this instance after the append operation has completed. Append(self: StringBuilder,value: Single) -> StringBuilder Appends the string representation of a specified single-precision floating-point number to this instance. value: The value to append. Returns: A reference to this instance after the append operation has completed. Append(self: StringBuilder,value: Array[Char]) -> StringBuilder Appends the string representation of the Unicode characters in a specified array to this instance. value: The array of characters to append. Returns: A reference to this instance after the append operation has completed. Append(self: StringBuilder,value: Char*,valueCount: int) -> StringBuilder Append(self: StringBuilder,value: object) -> StringBuilder Appends the string representation of a specified object to this instance. value: The object to append. Returns: A reference to this instance after the append operation has completed. Append(self: StringBuilder,value: UInt32) -> StringBuilder Appends the string representation of a specified 32-bit unsigned integer to this instance. value: The value to append. Returns: A reference to this instance after the append operation has completed. Append(self: StringBuilder,value: UInt64) -> StringBuilder Appends the string representation of a specified 64-bit unsigned integer to this instance. value: The value to append. Returns: A reference to this instance after the append operation has completed. Append(self: StringBuilder,value: str,startIndex: int,count: int) -> StringBuilder Appends a copy of a specified substring to this instance. value: The string that contains the substring to append. startIndex: The starting position of the substring within value. count: The number of characters in value to append. Returns: A reference to this instance after the append operation has completed. Append(self: StringBuilder,value: bool) -> StringBuilder Appends the string representation of a specified Boolean value to this instance. value: The Boolean value to append. Returns: A reference to this instance after the append operation has completed. Append(self: StringBuilder,value: str) -> StringBuilder Appends a copy of the specified string to this instance. value: The string to append. Returns: A reference to this instance after the append operation has completed. Append(self: StringBuilder,value: Char,repeatCount: int) -> StringBuilder Appends a specified number of copies of the string representation of a Unicode character to this instance. value: The character to append. repeatCount: The number of times to append value. Returns: A reference to this instance after the append operation has completed. Append(self: StringBuilder,value: Array[Char],startIndex: int,charCount: int) -> StringBuilder Appends the string representation of a specified subarray of Unicode characters to this instance. value: A character array. startIndex: The starting position in value. charCount: The number of characters to append. Returns: A reference to this instance after the append operation has completed. Append(self: StringBuilder,value: Int16) -> StringBuilder Appends the string representation of a specified 16-bit signed integer to this instance. value: The value to append. Returns: A reference to this instance after the append operation has completed. Append(self: StringBuilder,value: int) -> StringBuilder Appends the string representation of a specified 32-bit signed integer to this instance. value: The value to append. Returns: A reference to this instance after the append operation has completed. Append(self: StringBuilder,value: Char) -> StringBuilder Appends the string representation of a specified Unicode character to this instance. value: The Unicode character to append. Returns: A reference to this instance after the append operation has completed. Append(self: StringBuilder,value: SByte) -> StringBuilder Appends the string representation of a specified 8-bit signed integer to this instance. value: The value to append. Returns: A reference to this instance after the append operation has completed. Append(self: StringBuilder,value: Byte) -> StringBuilder Appends the string representation of a specified 8-bit unsigned integer to this instance. value: The value to append. Returns: A reference to this instance after the append operation has completed. """ pass def append_format(self, *__args): """ AppendFormat(self: StringBuilder,provider: IFormatProvider,format: str,arg0: object,arg1: object) -> StringBuilder AppendFormat(self: StringBuilder,provider: IFormatProvider,format: str,arg0: object) -> StringBuilder AppendFormat(self: StringBuilder,provider: IFormatProvider,format: str,*args: Array[object]) -> StringBuilder Appends the string returned by processing a composite format string,which contains zero or more format items,to this instance. Each format item is replaced by the string representation of a corresponding argument in a parameter array using a specified format provider. provider: An object that supplies culture-specific formatting information. format: A composite format string (see Remarks). args: An array of objects to format. Returns: A reference to this instance after the append operation has completed. After the append operation,this instance contains any data that existed before the operation,suffixed by a copy of format where any format specification is replaced by the string representation of the corresponding object argument. AppendFormat(self: StringBuilder,provider: IFormatProvider,format: str,arg0: object,arg1: object,arg2: object) -> StringBuilder AppendFormat(self: StringBuilder,format: str,arg0: object,arg1: object) -> StringBuilder Appends the string returned by processing a composite format string,which contains zero or more format items,to this instance. Each format item is replaced by the string representation of either of two arguments. format: A composite format string (see Remarks). arg0: The first object to format. arg1: The second object to format. Returns: A reference to this instance with format appended. Each format item in format is replaced by the string representation of the corresponding object argument. AppendFormat(self: StringBuilder,format: str,arg0: object) -> StringBuilder Appends the string returned by processing a composite format string,which contains zero or more format items,to this instance. Each format item is replaced by the string representation of a single argument. format: A composite format string (see Remarks). arg0: An object to format. Returns: A reference to this instance with format appended. Each format item in format is replaced by the string representation of arg0. AppendFormat(self: StringBuilder,format: str,*args: Array[object]) -> StringBuilder Appends the string returned by processing a composite format string,which contains zero or more format items,to this instance. Each format item is replaced by the string representation of a corresponding argument in a parameter array. format: A composite format string (see Remarks). args: An array of objects to format. Returns: A reference to this instance with format appended. Each format item in format is replaced by the string representation of the corresponding object argument. AppendFormat(self: StringBuilder,format: str,arg0: object,arg1: object,arg2: object) -> StringBuilder Appends the string returned by processing a composite format string,which contains zero or more format items,to this instance. Each format item is replaced by the string representation of either of three arguments. format: A composite format string (see Remarks). arg0: The first object to format. arg1: The second object to format. arg2: The third object to format. Returns: A reference to this instance with format appended. Each format item in format is replaced by the string representation of the corresponding object argument. """ pass def append_line(self, value=None): """ AppendLine(self: StringBuilder,value: str) -> StringBuilder Appends a copy of the specified string followed by the default line terminator to the end of the current System.Text.StringBuilder object. value: The string to append. Returns: A reference to this instance after the append operation has completed. AppendLine(self: StringBuilder) -> StringBuilder Appends the default line terminator to the end of the current System.Text.StringBuilder object. Returns: A reference to this instance after the append operation has completed. """ pass def clear(self): """ Clear(self: StringBuilder) -> StringBuilder Removes all characters from the current System.Text.StringBuilder instance. Returns: An object whose System.Text.StringBuilder.Length is 0 (zero). """ pass def copy_to(self, sourceIndex, destination, destinationIndex, count): """ CopyTo(self: StringBuilder,sourceIndex: int,destination: Array[Char],destinationIndex: int,count: int) Copies the characters from a specified segment of this instance to a specified segment of a destination System.Char array. sourceIndex: The starting position in this instance where characters will be copied from. The index is zero-based. destination: The array where characters will be copied. destinationIndex: The starting position in destination where characters will be copied. The index is zero-based. count: The number of characters to be copied. """ pass def ensure_capacity(self, capacity): """ EnsureCapacity(self: StringBuilder,capacity: int) -> int Ensures that the capacity of this instance of System.Text.StringBuilder is at least the specified value. capacity: The minimum capacity to ensure. Returns: The new capacity of this instance. """ pass def equals(self, *__args): """ Equals(self: StringBuilder,sb: StringBuilder) -> bool Returns a value indicating whether this instance is equal to a specified object. sb: An object to compare with this instance,or null. Returns: true if this instance and sb have equal string, System.Text.StringBuilder.Capacity,and System.Text.StringBuilder.MaxCapacity values; otherwise,false. """ pass def insert(self, index, value, *__args): """ Insert(self: StringBuilder,index: int,value: Single) -> StringBuilder Inserts the string representation of a single-precision floating point number into this instance at the specified character position. index: The position in this instance where insertion begins. value: The value to insert. Returns: A reference to this instance after the insert operation has completed. Insert(self: StringBuilder,index: int,value: float) -> StringBuilder Inserts the string representation of a double-precision floating-point number into this instance at the specified character position. index: The position in this instance where insertion begins. value: The value to insert. Returns: A reference to this instance after the insert operation has completed. Insert(self: StringBuilder,index: int,value: int) -> StringBuilder Inserts the string representation of a specified 32-bit signed integer into this instance at the specified character position. index: The position in this instance where insertion begins. value: The value to insert. Returns: A reference to this instance after the insert operation has completed. Insert(self: StringBuilder,index: int,value: Int64) -> StringBuilder Inserts the string representation of a 64-bit signed integer into this instance at the specified character position. index: The position in this instance where insertion begins. value: The value to insert. Returns: A reference to this instance after the insert operation has completed. Insert(self: StringBuilder,index: int,value: Decimal) -> StringBuilder Inserts the string representation of a decimal number into this instance at the specified character position. index: The position in this instance where insertion begins. value: The value to insert. Returns: A reference to this instance after the insert operation has completed. Insert(self: StringBuilder,index: int,value: UInt64) -> StringBuilder Inserts the string representation of a 64-bit unsigned integer into this instance at the specified character position. index: The position in this instance where insertion begins. value: The value to insert. Returns: A reference to this instance after the insert operation has completed. Insert(self: StringBuilder,index: int,value: object) -> StringBuilder Inserts the string representation of an object into this instance at the specified character position. index: The position in this instance where insertion begins. value: The object to insert,or null. Returns: A reference to this instance after the insert operation has completed. Insert(self: StringBuilder,index: int,value: UInt16) -> StringBuilder Inserts the string representation of a 16-bit unsigned integer into this instance at the specified character position. index: The position in this instance where insertion begins. value: The value to insert. Returns: A reference to this instance after the insert operation has completed. Insert(self: StringBuilder,index: int,value: UInt32) -> StringBuilder Inserts the string representation of a 32-bit unsigned integer into this instance at the specified character position. index: The position in this instance where insertion begins. value: The value to insert. Returns: A reference to this instance after the insert operation has completed. Insert(self: StringBuilder,index: int,value: bool) -> StringBuilder Inserts the string representation of a Boolean value into this instance at the specified character position. index: The position in this instance where insertion begins. value: The value to insert. Returns: A reference to this instance after the insert operation has completed. Insert(self: StringBuilder,index: int,value: SByte) -> StringBuilder Inserts the string representation of a specified 8-bit signed integer into this instance at the specified character position. index: The position in this instance where insertion begins. value: The value to insert. Returns: A reference to this instance after the insert operation has completed. Insert(self: StringBuilder,index: int,value: str,count: int) -> StringBuilder Inserts one or more copies of a specified string into this instance at the specified character position. index: The position in this instance where insertion begins. value: The string to insert. count: The number of times to insert value. Returns: A reference to this instance after insertion has completed. Insert(self: StringBuilder,index: int,value: str) -> StringBuilder Inserts a string into this instance at the specified character position. index: The position in this instance where insertion begins. value: The string to insert. Returns: A reference to this instance after the insert operation has completed. Insert(self: StringBuilder,index: int,value: Byte) -> StringBuilder Inserts the string representation of a specified 8-bit unsigned integer into this instance at the specified character position. index: The position in this instance where insertion begins. value: The value to insert. Returns: A reference to this instance after the insert operation has completed. Insert(self: StringBuilder,index: int,value: Array[Char]) -> StringBuilder Inserts the string representation of a specified array of Unicode characters into this instance at the specified character position. index: The position in this instance where insertion begins. value: The character array to insert. Returns: A reference to this instance after the insert operation has completed. Insert(self: StringBuilder,index: int,value: Array[Char],startIndex: int,charCount: int) -> StringBuilder Inserts the string representation of a specified subarray of Unicode characters into this instance at the specified character position. index: The position in this instance where insertion begins. value: A character array. startIndex: The starting index within value. charCount: The number of characters to insert. Returns: A reference to this instance after the insert operation has completed. Insert(self: StringBuilder,index: int,value: Int16) -> StringBuilder Inserts the string representation of a specified 16-bit signed integer into this instance at the specified character position. index: The position in this instance where insertion begins. value: The value to insert. Returns: A reference to this instance after the insert operation has completed. Insert(self: StringBuilder,index: int,value: Char) -> StringBuilder Inserts the string representation of a specified Unicode character into this instance at the specified character position. index: The position in this instance where insertion begins. value: The value to insert. Returns: A reference to this instance after the insert operation has completed. """ pass def remove(self, startIndex, length): """ Remove(self: StringBuilder,startIndex: int,length: int) -> StringBuilder Removes the specified range of characters from this instance. startIndex: The zero-based position in this instance where removal begins. length: The number of characters to remove. Returns: A reference to this instance after the excise operation has completed. """ pass def replace(self, *__args): """ Replace(self: StringBuilder,oldChar: Char,newChar: Char) -> StringBuilder Replaces all occurrences of a specified character in this instance with another specified character. oldChar: The character to replace. newChar: The character that replaces oldChar. Returns: A reference to this instance with oldChar replaced by newChar. Replace(self: StringBuilder,oldChar: Char,newChar: Char,startIndex: int,count: int) -> StringBuilder Replaces,within a substring of this instance,all occurrences of a specified character with another specified character. oldChar: The character to replace. newChar: The character that replaces oldChar. startIndex: The position in this instance where the substring begins. count: The length of the substring. Returns: A reference to this instance with oldChar replaced by newChar in the range from startIndex to startIndex + count -1. Replace(self: StringBuilder,oldValue: str,newValue: str) -> StringBuilder Replaces all occurrences of a specified string in this instance with another specified string. oldValue: The string to replace. newValue: The string that replaces oldValue,or null. Returns: A reference to this instance with all instances of oldValue replaced by newValue. Replace(self: StringBuilder,oldValue: str,newValue: str,startIndex: int,count: int) -> StringBuilder Replaces,within a substring of this instance,all occurrences of a specified string with another specified string. oldValue: The string to replace. newValue: The string that replaces oldValue,or null. startIndex: The position in this instance where the substring begins. count: The length of the substring. Returns: A reference to this instance with all instances of oldValue replaced by newValue in the range from startIndex to startIndex + count - 1. """ pass def to_string(self, startIndex=None, length=None): """ ToString(self: StringBuilder,startIndex: int,length: int) -> str Converts the value of a substring of this instance to a System.String. startIndex: The starting position of the substring in this instance. length: The length of the substring. Returns: A string whose value is the same as the specified substring of this instance. ToString(self: StringBuilder) -> str Converts the value of this instance to a System.String. Returns: A string whose value is the same as this instance. """ pass def __eq__(self, *args): """ x.__eq__(y) <==> x==y """ pass def __getitem__(self, *args): """ x.__getitem__(y) <==> x[y] """ pass def __init__(self, *args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass @staticmethod def __new__(self, *__args): """ __new__(cls: type) __new__(cls: type,capacity: int) __new__(cls: type,value: str) __new__(cls: type,value: str,capacity: int) __new__(cls: type,value: str,startIndex: int,length: int,capacity: int) __new__(cls: type,capacity: int,maxCapacity: int) """ pass def __reduce_ex__(self, *args): pass def __repr__(self, *args): """ __repr__(self: object) -> str """ pass def __setitem__(self, *args): """ x.__setitem__(i,y) <==> x[i]= """ pass def __str__(self, *args): pass capacity = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets the maximum number of characters that can be contained in the memory allocated by the current instance.\n\n\n\nGet: Capacity(self: StringBuilder) -> int\n\n\n\nSet: Capacity(self: StringBuilder)=value\n\n' length = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets or sets the length of the current System.Text.StringBuilder object.\n\n\n\nGet: Length(self: StringBuilder) -> int\n\n\n\nSet: Length(self: StringBuilder)=value\n\n' max_capacity = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the maximum capacity of this instance.\n\n\n\nGet: MaxCapacity(self: StringBuilder) -> int\n\n\n\n' class Unicodeencoding(Encoding, ICloneable): """ Represents a UTF-16 encoding of Unicode characters. UnicodeEncoding() UnicodeEncoding(bigEndian: bool,byteOrderMark: bool) UnicodeEncoding(bigEndian: bool,byteOrderMark: bool,throwOnInvalidBytes: bool) """ def equals(self, value): """ Equals(self: UnicodeEncoding,value: object) -> bool Determines whether the specified System.Object is equal to the current System.Text.UnicodeEncoding object. value: The System.Object to compare with the current object. Returns: true if value is an instance of System.Text.UnicodeEncoding and is equal to the current object; otherwise,false. """ pass def get_byte_count(self, *__args): """ GetByteCount(self: UnicodeEncoding,chars: Char*,count: int) -> int Calculates the number of bytes produced by encoding a set of characters starting at the specified character pointer. chars: A pointer to the first character to encode. count: The number of characters to encode. Returns: The number of bytes produced by encoding the specified characters. GetByteCount(self: UnicodeEncoding,s: str) -> int Calculates the number of bytes produced by encoding the characters in the specified System.String. s: The System.String containing the set of characters to encode. Returns: The number of bytes produced by encoding the specified characters. GetByteCount(self: UnicodeEncoding,chars: Array[Char],index: int,count: int) -> int Calculates the number of bytes produced by encoding a set of characters from the specified character array. chars: The character array containing the set of characters to encode. index: The index of the first character to encode. count: The number of characters to encode. Returns: The number of bytes produced by encoding the specified characters. """ pass def get_bytes(self, *__args): """ GetBytes(self: UnicodeEncoding,chars: Char*,charCount: int,bytes: Byte*,byteCount: int) -> int Encodes a set of characters starting at the specified character pointer into a sequence of bytes that are stored starting at the specified byte pointer. chars: A pointer to the first character to encode. charCount: The number of characters to encode. bytes: A pointer to the location at which to start writing the resulting sequence of bytes. byteCount: The maximum number of bytes to write. Returns: The actual number of bytes written at the location indicated by the bytes parameter. GetBytes(self: UnicodeEncoding,chars: Array[Char],charIndex: int,charCount: int,bytes: Array[Byte],byteIndex: int) -> int Encodes a set of characters from the specified character array into the specified byte array. chars: The character array containing the set of characters to encode. charIndex: The index of the first character to encode. charCount: The number of characters to encode. bytes: The byte array to contain the resulting sequence of bytes. byteIndex: The index at which to start writing the resulting sequence of bytes. Returns: The actual number of bytes written into bytes. GetBytes(self: UnicodeEncoding,s: str,charIndex: int,charCount: int,bytes: Array[Byte],byteIndex: int) -> int Encodes a set of characters from the specified System.String into the specified byte array. s: The System.String containing the set of characters to encode. charIndex: The index of the first character to encode. charCount: The number of characters to encode. bytes: The byte array to contain the resulting sequence of bytes. byteIndex: The index at which to start writing the resulting sequence of bytes. Returns: The actual number of bytes written into bytes. """ pass def get_char_count(self, bytes, *__args): """ GetCharCount(self: UnicodeEncoding,bytes: Byte*,count: int) -> int Calculates the number of characters produced by decoding a sequence of bytes starting at the specified byte pointer. bytes: A pointer to the first byte to decode. count: The number of bytes to decode. Returns: The number of characters produced by decoding the specified sequence of bytes. GetCharCount(self: UnicodeEncoding,bytes: Array[Byte],index: int,count: int) -> int Calculates the number of characters produced by decoding a sequence of bytes from the specified byte array. bytes: The byte array containing the sequence of bytes to decode. index: The index of the first byte to decode. count: The number of bytes to decode. Returns: The number of characters produced by decoding the specified sequence of bytes. """ pass def get_chars(self, bytes, *__args): """ GetChars(self: UnicodeEncoding,bytes: Byte*,byteCount: int,chars: Char*,charCount: int) -> int Decodes a sequence of bytes starting at the specified byte pointer into a set of characters that are stored starting at the specified character pointer. bytes: A pointer to the first byte to decode. byteCount: The number of bytes to decode. chars: A pointer to the location at which to start writing the resulting set of characters. charCount: The maximum number of characters to write. Returns: The actual number of characters written at the location indicated by the chars parameter. GetChars(self: UnicodeEncoding,bytes: Array[Byte],byteIndex: int,byteCount: int,chars: Array[Char],charIndex: int) -> int Decodes a sequence of bytes from the specified byte array into the specified character array. bytes: The byte array containing the sequence of bytes to decode. byteIndex: The index of the first byte to decode. byteCount: The number of bytes to decode. chars: The character array to contain the resulting set of characters. charIndex: The index at which to start writing the resulting set of characters. Returns: The actual number of characters written into chars. """ pass def get_decoder(self): """ GetDecoder(self: UnicodeEncoding) -> Decoder Obtains a decoder that converts a UTF-16 encoded sequence of bytes into a sequence of Unicode characters. Returns: A System.Text.Decoder that converts a UTF-16 encoded sequence of bytes into a sequence of Unicode characters. """ pass def get_encoder(self): """ GetEncoder(self: UnicodeEncoding) -> Encoder Obtains an encoder that converts a sequence of Unicode characters into a UTF-16 encoded sequence of bytes. Returns: A System.Text.Encoder object that converts a sequence of Unicode characters into a UTF-16 encoded sequence of bytes. """ pass def get_hash_code(self): """ GetHashCode(self: UnicodeEncoding) -> int Returns the hash code for the current instance. Returns: The hash code for the current System.Text.UnicodeEncoding object. """ pass def get_max_byte_count(self, charCount): """ GetMaxByteCount(self: UnicodeEncoding,charCount: int) -> int Calculates the maximum number of bytes produced by encoding the specified number of characters. charCount: The number of characters to encode. Returns: The maximum number of bytes produced by encoding the specified number of characters. """ pass def get_max_char_count(self, byteCount): """ GetMaxCharCount(self: UnicodeEncoding,byteCount: int) -> int Calculates the maximum number of characters produced by decoding the specified number of bytes. byteCount: The number of bytes to decode. Returns: The maximum number of characters produced by decoding the specified number of bytes. """ pass def get_preamble(self): """ GetPreamble(self: UnicodeEncoding) -> Array[Byte] Returns a Unicode byte order mark encoded in UTF-16 format,if the constructor for this instance requests a byte order mark. Returns: A byte array containing the Unicode byte order mark,if the constructor for this instance requests a byte order mark. Otherwise,this method returns a byte array of length zero. """ pass def get_string(self, bytes, *__args): """ GetString(self: UnicodeEncoding,bytes: Array[Byte],index: int,count: int) -> str Decodes a range of bytes from a byte array into a string. bytes: The byte array containing the sequence of bytes to decode. index: The index of the first byte to decode. count: The number of bytes to decode. Returns: A System.String object containing the results of decoding the specified sequence of bytes. """ pass def __eq__(self, *args): """ x.__eq__(y) <==> x==y """ pass def __init__(self, *args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass @staticmethod def __new__(self, bigEndian=None, byteOrderMark=None, throwOnInvalidBytes=None): """ __new__(cls: type) __new__(cls: type,bigEndian: bool,byteOrderMark: bool) __new__(cls: type,bigEndian: bool,byteOrderMark: bool,throwOnInvalidBytes: bool) """ pass def __ne__(self, *args): pass def __reduce_ex__(self, *args): pass char_size = 2 class Utf32Encoding(Encoding, ICloneable): """ Represents a UTF-32 encoding of Unicode characters. UTF32Encoding() UTF32Encoding(bigEndian: bool,byteOrderMark: bool) UTF32Encoding(bigEndian: bool,byteOrderMark: bool,throwOnInvalidCharacters: bool) """ def equals(self, value): """ Equals(self: UTF32Encoding,value: object) -> bool Determines whether the specified System.Object is equal to the current System.Text.UTF32Encoding object. value: The System.Object to compare with the current object. Returns: true if value is an instance of System.Text.UTF32Encoding and is equal to the current object; otherwise,false. """ pass def get_byte_count(self, *__args): """ GetByteCount(self: UTF32Encoding,chars: Char*,count: int) -> int Calculates the number of bytes produced by encoding a set of characters starting at the specified character pointer. chars: A pointer to the first character to encode. count: The number of characters to encode. Returns: The number of bytes produced by encoding the specified characters. GetByteCount(self: UTF32Encoding,s: str) -> int Calculates the number of bytes produced by encoding the characters in the specified System.String. s: The System.String containing the set of characters to encode. Returns: The number of bytes produced by encoding the specified characters. GetByteCount(self: UTF32Encoding,chars: Array[Char],index: int,count: int) -> int Calculates the number of bytes produced by encoding a set of characters from the specified character array. chars: The character array containing the set of characters to encode. index: The index of the first character to encode. count: The number of characters to encode. Returns: The number of bytes produced by encoding the specified characters. """ pass def get_bytes(self, *__args): """ GetBytes(self: UTF32Encoding,chars: Char*,charCount: int,bytes: Byte*,byteCount: int) -> int Encodes a set of characters starting at the specified character pointer into a sequence of bytes that are stored starting at the specified byte pointer. chars: A pointer to the first character to encode. charCount: The number of characters to encode. bytes: A pointer to the location at which to start writing the resulting sequence of bytes. byteCount: The maximum number of bytes to write. Returns: The actual number of bytes written at the location indicated by the bytes parameter. GetBytes(self: UTF32Encoding,chars: Array[Char],charIndex: int,charCount: int,bytes: Array[Byte],byteIndex: int) -> int Encodes a set of characters from the specified character array into the specified byte array. chars: The character array containing the set of characters to encode. charIndex: The index of the first character to encode. charCount: The number of characters to encode. bytes: The byte array to contain the resulting sequence of bytes. byteIndex: The index at which to start writing the resulting sequence of bytes. Returns: The actual number of bytes written into bytes. GetBytes(self: UTF32Encoding,s: str,charIndex: int,charCount: int,bytes: Array[Byte],byteIndex: int) -> int Encodes a set of characters from the specified System.String into the specified byte array. s: The System.String containing the set of characters to encode. charIndex: The index of the first character to encode. charCount: The number of characters to encode. bytes: The byte array to contain the resulting sequence of bytes. byteIndex: The index at which to start writing the resulting sequence of bytes. Returns: The actual number of bytes written into bytes. """ pass def get_char_count(self, bytes, *__args): """ GetCharCount(self: UTF32Encoding,bytes: Byte*,count: int) -> int Calculates the number of characters produced by decoding a sequence of bytes starting at the specified byte pointer. bytes: A pointer to the first byte to decode. count: The number of bytes to decode. Returns: The number of characters produced by decoding the specified sequence of bytes. GetCharCount(self: UTF32Encoding,bytes: Array[Byte],index: int,count: int) -> int Calculates the number of characters produced by decoding a sequence of bytes from the specified byte array. bytes: The byte array containing the sequence of bytes to decode. index: The index of the first byte to decode. count: The number of bytes to decode. Returns: The number of characters produced by decoding the specified sequence of bytes. """ pass def get_chars(self, bytes, *__args): """ GetChars(self: UTF32Encoding,bytes: Byte*,byteCount: int,chars: Char*,charCount: int) -> int Decodes a sequence of bytes starting at the specified byte pointer into a set of characters that are stored starting at the specified character pointer. bytes: A pointer to the first byte to decode. byteCount: The number of bytes to decode. chars: A pointer to the location at which to start writing the resulting set of characters. charCount: The maximum number of characters to write. Returns: The actual number of characters written at the location indicated by chars. GetChars(self: UTF32Encoding,bytes: Array[Byte],byteIndex: int,byteCount: int,chars: Array[Char],charIndex: int) -> int Decodes a sequence of bytes from the specified byte array into the specified character array. bytes: The byte array containing the sequence of bytes to decode. byteIndex: The index of the first byte to decode. byteCount: The number of bytes to decode. chars: The character array to contain the resulting set of characters. charIndex: The index at which to start writing the resulting set of characters. Returns: The actual number of characters written into chars. """ pass def get_decoder(self): """ GetDecoder(self: UTF32Encoding) -> Decoder Obtains a decoder that converts a UTF-32 encoded sequence of bytes into a sequence of Unicode characters. Returns: A System.Text.Decoder that converts a UTF-32 encoded sequence of bytes into a sequence of Unicode characters. """ pass def get_encoder(self): """ GetEncoder(self: UTF32Encoding) -> Encoder Obtains an encoder that converts a sequence of Unicode characters into a UTF-32 encoded sequence of bytes. Returns: A System.Text.Encoder that converts a sequence of Unicode characters into a UTF-32 encoded sequence of bytes. """ pass def get_hash_code(self): """ GetHashCode(self: UTF32Encoding) -> int Returns the hash code for the current instance. Returns: The hash code for the current System.Text.UTF32Encoding object. """ pass def get_max_byte_count(self, charCount): """ GetMaxByteCount(self: UTF32Encoding,charCount: int) -> int Calculates the maximum number of bytes produced by encoding the specified number of characters. charCount: The number of characters to encode. Returns: The maximum number of bytes produced by encoding the specified number of characters. """ pass def get_max_char_count(self, byteCount): """ GetMaxCharCount(self: UTF32Encoding,byteCount: int) -> int Calculates the maximum number of characters produced by decoding the specified number of bytes. byteCount: The number of bytes to decode. Returns: The maximum number of characters produced by decoding the specified number of bytes. """ pass def get_preamble(self): """ GetPreamble(self: UTF32Encoding) -> Array[Byte] Returns a Unicode byte order mark encoded in UTF-32 format,if the constructor for this instance requests a byte order mark. Returns: A byte array containing the Unicode byte order mark,if the constructor for this instance requests a byte order mark. Otherwise,this method returns a byte array of length zero. """ pass def get_string(self, bytes, *__args): """ GetString(self: UTF32Encoding,bytes: Array[Byte],index: int,count: int) -> str Decodes a range of bytes from a byte array into a string. bytes: The byte array containing the sequence of bytes to decode. index: The index of the first byte to decode. count: The number of bytes to decode. Returns: A System.String containing the results of decoding the specified sequence of bytes. """ pass def __eq__(self, *args): """ x.__eq__(y) <==> x==y """ pass def __init__(self, *args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass @staticmethod def __new__(self, bigEndian=None, byteOrderMark=None, throwOnInvalidCharacters=None): """ __new__(cls: type) __new__(cls: type,bigEndian: bool,byteOrderMark: bool) __new__(cls: type,bigEndian: bool,byteOrderMark: bool,throwOnInvalidCharacters: bool) """ pass def __ne__(self, *args): pass def __reduce_ex__(self, *args): pass class Utf7Encoding(Encoding, ICloneable): """ Represents a UTF-7 encoding of Unicode characters. UTF7Encoding() UTF7Encoding(allowOptionals: bool) """ def equals(self, value): """ Equals(self: UTF7Encoding,value: object) -> bool Gets a value indicating whether the specified object is equal to the current System.Text.UTF7Encoding object. value: An object to compare to the current System.Text.UTF7Encoding object. Returns: true if value is a System.Text.UTF7Encoding object and is equal to the current System.Text.UTF7Encoding object; otherwise,false. """ pass def get_byte_count(self, *__args): """ GetByteCount(self: UTF7Encoding,chars: Char*,count: int) -> int Calculates the number of bytes produced by encoding a set of characters starting at the specified character pointer. chars: A pointer to the first character to encode. count: The number of characters to encode. Returns: The number of bytes produced by encoding the specified characters. GetByteCount(self: UTF7Encoding,s: str) -> int Calculates the number of bytes produced by encoding the characters in the specified System.String object. s: The System.String object containing the set of characters to encode. Returns: The number of bytes produced by encoding the specified characters. GetByteCount(self: UTF7Encoding,chars: Array[Char],index: int,count: int) -> int Calculates the number of bytes produced by encoding a set of characters from the specified character array. chars: The character array containing the set of characters to encode. index: The index of the first character to encode. count: The number of characters to encode. Returns: The number of bytes produced by encoding the specified characters. """ pass def get_bytes(self, *__args): """ GetBytes(self: UTF7Encoding,chars: Char*,charCount: int,bytes: Byte*,byteCount: int) -> int Encodes a set of characters starting at the specified character pointer into a sequence of bytes that are stored starting at the specified byte pointer. chars: A pointer to the first character to encode. charCount: The number of characters to encode. bytes: A pointer to the location at which to start writing the resulting sequence of bytes. byteCount: The maximum number of bytes to write. Returns: The actual number of bytes written at the location indicated by bytes. GetBytes(self: UTF7Encoding,chars: Array[Char],charIndex: int,charCount: int,bytes: Array[Byte],byteIndex: int) -> int Encodes a set of characters from the specified character array into the specified byte array. chars: The character array containing the set of characters to encode. charIndex: The index of the first character to encode. charCount: The number of characters to encode. bytes: The byte array to contain the resulting sequence of bytes. byteIndex: The index at which to start writing the resulting sequence of bytes. Returns: The actual number of bytes written into bytes. GetBytes(self: UTF7Encoding,s: str,charIndex: int,charCount: int,bytes: Array[Byte],byteIndex: int) -> int Encodes a set of characters from the specified System.String into the specified byte array. s: The System.String containing the set of characters to encode. charIndex: The index of the first character to encode. charCount: The number of characters to encode. bytes: The byte array to contain the resulting sequence of bytes. byteIndex: The index at which to start writing the resulting sequence of bytes. Returns: The actual number of bytes written into bytes. """ pass def get_char_count(self, bytes, *__args): """ GetCharCount(self: UTF7Encoding,bytes: Byte*,count: int) -> int Calculates the number of characters produced by decoding a sequence of bytes starting at the specified byte pointer. bytes: A pointer to the first byte to decode. count: The number of bytes to decode. Returns: The number of characters produced by decoding the specified sequence of bytes. GetCharCount(self: UTF7Encoding,bytes: Array[Byte],index: int,count: int) -> int Calculates the number of characters produced by decoding a sequence of bytes from the specified byte array. bytes: The byte array containing the sequence of bytes to decode. index: The index of the first byte to decode. count: The number of bytes to decode. Returns: The number of characters produced by decoding the specified sequence of bytes. """ pass def get_chars(self, bytes, *__args): """ GetChars(self: UTF7Encoding,bytes: Byte*,byteCount: int,chars: Char*,charCount: int) -> int Decodes a sequence of bytes starting at the specified byte pointer into a set of characters that are stored starting at the specified character pointer. bytes: A pointer to the first byte to decode. byteCount: The number of bytes to decode. chars: A pointer to the location at which to start writing the resulting set of characters. charCount: The maximum number of characters to write. Returns: The actual number of characters written at the location indicated by chars. GetChars(self: UTF7Encoding,bytes: Array[Byte],byteIndex: int,byteCount: int,chars: Array[Char],charIndex: int) -> int Decodes a sequence of bytes from the specified byte array into the specified character array. bytes: The byte array containing the sequence of bytes to decode. byteIndex: The index of the first byte to decode. byteCount: The number of bytes to decode. chars: The character array to contain the resulting set of characters. charIndex: The index at which to start writing the resulting set of characters. Returns: The actual number of characters written into chars. """ pass def get_decoder(self): """ GetDecoder(self: UTF7Encoding) -> Decoder Obtains a decoder that converts a UTF-7 encoded sequence of bytes into a sequence of Unicode characters. Returns: A System.Text.Decoder that converts a UTF-7 encoded sequence of bytes into a sequence of Unicode characters. """ pass def get_encoder(self): """ GetEncoder(self: UTF7Encoding) -> Encoder Obtains an encoder that converts a sequence of Unicode characters into a UTF-7 encoded sequence of bytes. Returns: A System.Text.Encoder that converts a sequence of Unicode characters into a UTF-7 encoded sequence of bytes. """ pass def get_hash_code(self): """ GetHashCode(self: UTF7Encoding) -> int Returns the hash code for the current System.Text.UTF7Encoding object. Returns: A 32-bit signed integer hash code. """ pass def get_max_byte_count(self, charCount): """ GetMaxByteCount(self: UTF7Encoding,charCount: int) -> int Calculates the maximum number of bytes produced by encoding the specified number of characters. charCount: The number of characters to encode. Returns: The maximum number of bytes produced by encoding the specified number of characters. """ pass def get_max_char_count(self, byteCount): """ GetMaxCharCount(self: UTF7Encoding,byteCount: int) -> int Calculates the maximum number of characters produced by decoding the specified number of bytes. byteCount: The number of bytes to decode. Returns: The maximum number of characters produced by decoding the specified number of bytes. """ pass def get_string(self, bytes, *__args): """ GetString(self: UTF7Encoding,bytes: Array[Byte],index: int,count: int) -> str Decodes a range of bytes from a byte array into a string. bytes: The byte array containing the sequence of bytes to decode. index: The index of the first byte to decode. count: The number of bytes to decode. Returns: A System.String containing the results of decoding the specified sequence of bytes. """ pass def __eq__(self, *args): """ x.__eq__(y) <==> x==y """ pass def __init__(self, *args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass @staticmethod def __new__(self, allowOptionals=None): """ __new__(cls: type) __new__(cls: type,allowOptionals: bool) """ pass def __ne__(self, *args): pass def __reduce_ex__(self, *args): pass class Utf8Encoding(Encoding, ICloneable): """ Represents a UTF-8 encoding of Unicode characters. UTF8Encoding() UTF8Encoding(encoderShouldEmitUTF8Identifier: bool) UTF8Encoding(encoderShouldEmitUTF8Identifier: bool,throwOnInvalidBytes: bool) """ def equals(self, value): """ Equals(self: UTF8Encoding,value: object) -> bool Determines whether the specified System.Object is equal to the current System.Text.UTF8Encoding object. value: The System.Object to compare with the current instance. Returns: true if value is an instance of System.Text.UTF8Encoding and is equal to the current object; otherwise,false. """ pass def get_byte_count(self, chars, *__args): """ GetByteCount(self: UTF8Encoding,chars: Char*,count: int) -> int Calculates the number of bytes produced by encoding a set of characters starting at the specified character pointer. chars: A pointer to the first character to encode. count: The number of characters to encode. Returns: The number of bytes produced by encoding the specified characters. GetByteCount(self: UTF8Encoding,chars: str) -> int Calculates the number of bytes produced by encoding the characters in the specified System.String. chars: The System.String containing the set of characters to encode. Returns: The number of bytes produced by encoding the specified characters. GetByteCount(self: UTF8Encoding,chars: Array[Char],index: int,count: int) -> int Calculates the number of bytes produced by encoding a set of characters from the specified character array. chars: The character array containing the set of characters to encode. index: The index of the first character to encode. count: The number of characters to encode. Returns: The number of bytes produced by encoding the specified characters. """ pass def get_bytes(self, *__args): """ GetBytes(self: UTF8Encoding,chars: Char*,charCount: int,bytes: Byte*,byteCount: int) -> int Encodes a set of characters starting at the specified character pointer into a sequence of bytes that are stored starting at the specified byte pointer. chars: A pointer to the first character to encode. charCount: The number of characters to encode. bytes: A pointer to the location at which to start writing the resulting sequence of bytes. byteCount: The maximum number of bytes to write. Returns: The actual number of bytes written at the location indicated by bytes. GetBytes(self: UTF8Encoding,chars: Array[Char],charIndex: int,charCount: int,bytes: Array[Byte],byteIndex: int) -> int Encodes a set of characters from the specified character array into the specified byte array. chars: The character array containing the set of characters to encode. charIndex: The index of the first character to encode. charCount: The number of characters to encode. bytes: The byte array to contain the resulting sequence of bytes. byteIndex: The index at which to start writing the resulting sequence of bytes. Returns: The actual number of bytes written into bytes. GetBytes(self: UTF8Encoding,s: str,charIndex: int,charCount: int,bytes: Array[Byte],byteIndex: int) -> int Encodes a set of characters from the specified System.String into the specified byte array. s: The System.String containing the set of characters to encode. charIndex: The index of the first character to encode. charCount: The number of characters to encode. bytes: The byte array to contain the resulting sequence of bytes. byteIndex: The index at which to start writing the resulting sequence of bytes. Returns: The actual number of bytes written into bytes. """ pass def get_char_count(self, bytes, *__args): """ GetCharCount(self: UTF8Encoding,bytes: Byte*,count: int) -> int Calculates the number of characters produced by decoding a sequence of bytes starting at the specified byte pointer. bytes: A pointer to the first byte to decode. count: The number of bytes to decode. Returns: The number of characters produced by decoding the specified sequence of bytes. GetCharCount(self: UTF8Encoding,bytes: Array[Byte],index: int,count: int) -> int Calculates the number of characters produced by decoding a sequence of bytes from the specified byte array. bytes: The byte array containing the sequence of bytes to decode. index: The index of the first byte to decode. count: The number of bytes to decode. Returns: The number of characters produced by decoding the specified sequence of bytes. """ pass def get_chars(self, bytes, *__args): """ GetChars(self: UTF8Encoding,bytes: Byte*,byteCount: int,chars: Char*,charCount: int) -> int Decodes a sequence of bytes starting at the specified byte pointer into a set of characters that are stored starting at the specified character pointer. bytes: A pointer to the first byte to decode. byteCount: The number of bytes to decode. chars: A pointer to the location at which to start writing the resulting set of characters. charCount: The maximum number of characters to write. Returns: The actual number of characters written at the location indicated by chars. GetChars(self: UTF8Encoding,bytes: Array[Byte],byteIndex: int,byteCount: int,chars: Array[Char],charIndex: int) -> int Decodes a sequence of bytes from the specified byte array into the specified character array. bytes: The byte array containing the sequence of bytes to decode. byteIndex: The index of the first byte to decode. byteCount: The number of bytes to decode. chars: The character array to contain the resulting set of characters. charIndex: The index at which to start writing the resulting set of characters. Returns: The actual number of characters written into chars. """ pass def get_decoder(self): """ GetDecoder(self: UTF8Encoding) -> Decoder Obtains a decoder that converts a UTF-8 encoded sequence of bytes into a sequence of Unicode characters. Returns: A System.Text.Decoder that converts a UTF-8 encoded sequence of bytes into a sequence of Unicode characters. """ pass def get_encoder(self): """ GetEncoder(self: UTF8Encoding) -> Encoder Obtains an encoder that converts a sequence of Unicode characters into a UTF-8 encoded sequence of bytes. Returns: A System.Text.Encoder that converts a sequence of Unicode characters into a UTF-8 encoded sequence of bytes. """ pass def get_hash_code(self): """ GetHashCode(self: UTF8Encoding) -> int Returns the hash code for the current instance. Returns: The hash code for the current instance. """ pass def get_max_byte_count(self, charCount): """ GetMaxByteCount(self: UTF8Encoding,charCount: int) -> int Calculates the maximum number of bytes produced by encoding the specified number of characters. charCount: The number of characters to encode. Returns: The maximum number of bytes produced by encoding the specified number of characters. """ pass def get_max_char_count(self, byteCount): """ GetMaxCharCount(self: UTF8Encoding,byteCount: int) -> int Calculates the maximum number of characters produced by decoding the specified number of bytes. byteCount: The number of bytes to decode. Returns: The maximum number of characters produced by decoding the specified number of bytes. """ pass def get_preamble(self): """ GetPreamble(self: UTF8Encoding) -> Array[Byte] Returns a Unicode byte order mark encoded in UTF-8 format,if the constructor for this instance requests a byte order mark. Returns: A byte array containing the Unicode byte order mark,if the constructor for this instance requests a byte order mark. Otherwise,this method returns a byte array of length zero. """ pass def get_string(self, bytes, *__args): """ GetString(self: UTF8Encoding,bytes: Array[Byte],index: int,count: int) -> str Decodes a range of bytes from a byte array into a string. bytes: The byte array containing the sequence of bytes to decode. index: The index of the first byte to decode. count: The number of bytes to decode. Returns: A System.String containing the results of decoding the specified sequence of bytes. """ pass def __eq__(self, *args): """ x.__eq__(y) <==> x==y """ pass def __init__(self, *args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass @staticmethod def __new__(self, encoderShouldEmitUTF8Identifier=None, throwOnInvalidBytes=None): """ __new__(cls: type) __new__(cls: type,encoderShouldEmitUTF8Identifier: bool) __new__(cls: type,encoderShouldEmitUTF8Identifier: bool,throwOnInvalidBytes: bool) """ pass def __ne__(self, *args): pass def __reduce_ex__(self, *args): pass
class Solution: def minMeetingRooms(self, intervals: List[List[int]]) -> int: minHeap = [] # store end times of each room for start, end in sorted(intervals): if minHeap and start >= minHeap[0]: heapq.heappop(minHeap) heapq.heappush(minHeap, end) return len(minHeap)
class Solution: def min_meeting_rooms(self, intervals: List[List[int]]) -> int: min_heap = [] for (start, end) in sorted(intervals): if minHeap and start >= minHeap[0]: heapq.heappop(minHeap) heapq.heappush(minHeap, end) return len(minHeap)
class custom_range: def __init__(self, start, end, step=1): self.start = start self.end = end self.step = step self.increment = 1 if self.step < 0: self.start, self.end = self.end, self.start self.increment = -1 def __iter__(self): return self def __next__(self): if self.increment > 0: if self.start > self.end: raise StopIteration() else: if self.start < self.end: raise StopIteration() temp = self.start self.start += self.step return temp one_to_ten = custom_range(1, 10) for num in one_to_ten: print(num)
class Custom_Range: def __init__(self, start, end, step=1): self.start = start self.end = end self.step = step self.increment = 1 if self.step < 0: (self.start, self.end) = (self.end, self.start) self.increment = -1 def __iter__(self): return self def __next__(self): if self.increment > 0: if self.start > self.end: raise stop_iteration() elif self.start < self.end: raise stop_iteration() temp = self.start self.start += self.step return temp one_to_ten = custom_range(1, 10) for num in one_to_ten: print(num)
digits = "0123456789abcdefghijklmnopqrstuvwxyz" def baseN(num,b): return (((num == 0) and "0" ) or ( baseN(num // b, b).lstrip("0") + digits[num % b])) # alternatively: def baseN(num,b): if num == 0: return "0" result = "" while num != 0: num, d = divmod(num, b) result += digits[d] return result[::-1] # reverse k = 26 s = baseN(k,16) # returns the string 1a
digits = '0123456789abcdefghijklmnopqrstuvwxyz' def base_n(num, b): return num == 0 and '0' or base_n(num // b, b).lstrip('0') + digits[num % b] def base_n(num, b): if num == 0: return '0' result = '' while num != 0: (num, d) = divmod(num, b) result += digits[d] return result[::-1] k = 26 s = base_n(k, 16)
class Event: """ The base for all Lavalink events. """ pass class QueueEndEvent(Event): """ This event is dispatched when there are no more songs in the queue. """ def __init__(self, player): self.player = player class TrackStuckEvent(Event): """ This event is dispatched when the currently playing song is stuck. """ def __init__(self, player, track, threshold): self.player = player self.track = track self.threshold = threshold class TrackExceptionEvent(Event): """ This event is dispatched when an exception occurs while playing a track. """ def __init__(self, player, track, exception): self.exception = exception self.player = player self.track = track class TrackEndEvent(Event): """ This event is dispatched when the player finished playing a track. """ def __init__(self, player, track, reason): self.reason = reason self.player = player self.track = track class TrackStartEvent(Event): """ This event is dispatched when the player starts to play a track. """ def __init__(self, player, track): self.player = player self.track = track class PlayerUpdateEvent(Event): """ This event is dispatched when the player's progress changes """ def __init__(self, player, position: int, timestamp: int): self.player = player self.position = position self.timestamp = timestamp class NodeDisconnectedEvent(Event): """ This event is dispatched when a node disconnects and becomes unavailable """ def __init__(self, node, code: int, reason: str): self.node = node self.code = code self.reason = reason class NodeConnectedEvent(Event): """ This event is dispatched when Lavalink.py successfully connects to a node """ def __init__(self, node): self.node = node class NodeChangedEvent(Event): """ This event is dispatched when a player changes to another node. Keep in mind this event can be dispatched multiple times if a node disconnects and the load balancer moves players to a new node. Parameters ---------- player: BasePlayer The player whose node was changed. old_node: Node The node the player was moved from. new_node: Node The node the player was moved to. """ def __init__(self, player, old_node, new_node): self.player = player self.old_node = old_node self.new_node = new_node # TODO: The above needs their parameters documented.
class Event: """ The base for all Lavalink events. """ pass class Queueendevent(Event): """ This event is dispatched when there are no more songs in the queue. """ def __init__(self, player): self.player = player class Trackstuckevent(Event): """ This event is dispatched when the currently playing song is stuck. """ def __init__(self, player, track, threshold): self.player = player self.track = track self.threshold = threshold class Trackexceptionevent(Event): """ This event is dispatched when an exception occurs while playing a track. """ def __init__(self, player, track, exception): self.exception = exception self.player = player self.track = track class Trackendevent(Event): """ This event is dispatched when the player finished playing a track. """ def __init__(self, player, track, reason): self.reason = reason self.player = player self.track = track class Trackstartevent(Event): """ This event is dispatched when the player starts to play a track. """ def __init__(self, player, track): self.player = player self.track = track class Playerupdateevent(Event): """ This event is dispatched when the player's progress changes """ def __init__(self, player, position: int, timestamp: int): self.player = player self.position = position self.timestamp = timestamp class Nodedisconnectedevent(Event): """ This event is dispatched when a node disconnects and becomes unavailable """ def __init__(self, node, code: int, reason: str): self.node = node self.code = code self.reason = reason class Nodeconnectedevent(Event): """ This event is dispatched when Lavalink.py successfully connects to a node """ def __init__(self, node): self.node = node class Nodechangedevent(Event): """ This event is dispatched when a player changes to another node. Keep in mind this event can be dispatched multiple times if a node disconnects and the load balancer moves players to a new node. Parameters ---------- player: BasePlayer The player whose node was changed. old_node: Node The node the player was moved from. new_node: Node The node the player was moved to. """ def __init__(self, player, old_node, new_node): self.player = player self.old_node = old_node self.new_node = new_node
class Counter: "This is a counter class" def __init__(self): self.value = 0 def increment(self): "Increments the counter" self.value = self.value + 1 def decrement(self): "Decrements the counter" self.value = self.value - 1
class Counter: """This is a counter class""" def __init__(self): self.value = 0 def increment(self): """Increments the counter""" self.value = self.value + 1 def decrement(self): """Decrements the counter""" self.value = self.value - 1
# Find Fractional Number # https://www.acmicpc.net/problem/1193 n = int(input()) i = 1 while True: sums = int((1 + i) * i * 0.5) if sums >= n: if (i%2) == 0: x = i - (sums - n) y = (sums - n) + 1 else: x = (sums - n) + 1 y = i - (sums - n) print(str(x)+'/'+str(y)) break i = i + 1
n = int(input()) i = 1 while True: sums = int((1 + i) * i * 0.5) if sums >= n: if i % 2 == 0: x = i - (sums - n) y = sums - n + 1 else: x = sums - n + 1 y = i - (sums - n) print(str(x) + '/' + str(y)) break i = i + 1
def for_l(): for row in range(6): for col in range(4): if col==1 and row<5or (row==5 and (col==0 or col==2 or col==3)) : print("*",end=" ") else: print(" ",end=" ") print() def while_l(): row=0 while row<6: col=0 while col<4: if col==1 and row<5or (row==5 and (col==0 or col==2 or col==3)) : print("*",end=" ") else: print(" ",end=" ") col+=1 row+=1 print()
def for_l(): for row in range(6): for col in range(4): if col == 1 and row < 5 or (row == 5 and (col == 0 or col == 2 or col == 3)): print('*', end=' ') else: print(' ', end=' ') print() def while_l(): row = 0 while row < 6: col = 0 while col < 4: if col == 1 and row < 5 or (row == 5 and (col == 0 or col == 2 or col == 3)): print('*', end=' ') else: print(' ', end=' ') col += 1 row += 1 print()
# # 120. Triangle # # Q: https://leetcode.com/problems/triangle/ # A: https://leetcode.com/problems/triangle/discuss/38726/Kt-Js-Py3-Cpp-The-ART-of-Dynamic-Programming # # TopDown class Solution: def minimumTotal(self, A: List[List[int]]) -> int: N = len(A) def go(i = 0, j = 0): if i == N: return 0 return A[i][j] + min(go(i + 1, j), go(i + 1, j + 1)) return go() # TopDownMemo class Solution: def minimumTotal(self, A: List[List[int]]) -> int: N = len(A) @cache def go(i = 0, j = 0): if i == N: return 0 return A[i][j] + min(go(i + 1, j), go(i + 1, j + 1)) return go() # BottomUp class Solution: def minimumTotal(self, A: List[List[int]]) -> int: N = len(A) for i in range(N - 2, -1, -1): for j in range(0, len(A[i])): A[i][j] += min(A[i + 1][j], A[i + 1][j + 1]) return A[0][0]
class Solution: def minimum_total(self, A: List[List[int]]) -> int: n = len(A) def go(i=0, j=0): if i == N: return 0 return A[i][j] + min(go(i + 1, j), go(i + 1, j + 1)) return go() class Solution: def minimum_total(self, A: List[List[int]]) -> int: n = len(A) @cache def go(i=0, j=0): if i == N: return 0 return A[i][j] + min(go(i + 1, j), go(i + 1, j + 1)) return go() class Solution: def minimum_total(self, A: List[List[int]]) -> int: n = len(A) for i in range(N - 2, -1, -1): for j in range(0, len(A[i])): A[i][j] += min(A[i + 1][j], A[i + 1][j + 1]) return A[0][0]
def remove_duplicates_v2(arr): dedupe_arr = [] for i in arr: if i not in dedupe_arr: dedupe_arr.append(i) return dedupe_arr result = remove_duplicates([0,0,0,1,1,2,2,3,4,5]) print(result)
def remove_duplicates_v2(arr): dedupe_arr = [] for i in arr: if i not in dedupe_arr: dedupe_arr.append(i) return dedupe_arr result = remove_duplicates([0, 0, 0, 1, 1, 2, 2, 3, 4, 5]) print(result)
dimensions = (200, 50) print(dimensions[0]) print(dimensions[1]) for dimension in dimensions: print(dimension)
dimensions = (200, 50) print(dimensions[0]) print(dimensions[1]) for dimension in dimensions: print(dimension)
class Config(): def __init__(self): pass def to_dict(self): res_dict = dict() for key, value in self.__dict__.items(): if isinstance(value, Config): res_dict.update(value.to_dict()) else: res_dict[key] = value return res_dict class OptimizerConfig(Config): def __init__(self): pass def create_optimizer(self): raise NotImplementedError() class MemoryConfig(Config): def __init__(self): pass
class Config: def __init__(self): pass def to_dict(self): res_dict = dict() for (key, value) in self.__dict__.items(): if isinstance(value, Config): res_dict.update(value.to_dict()) else: res_dict[key] = value return res_dict class Optimizerconfig(Config): def __init__(self): pass def create_optimizer(self): raise not_implemented_error() class Memoryconfig(Config): def __init__(self): pass
def lazy(func): fnattr = "__lazy_" + func.__name__ @property def wrapper(*args, **kwargs): if not hasattr(func, fnattr): setattr(func, fnattr, func(*args, **kwargs)) return getattr(func, fnattr) return wrapper
def lazy(func): fnattr = '__lazy_' + func.__name__ @property def wrapper(*args, **kwargs): if not hasattr(func, fnattr): setattr(func, fnattr, func(*args, **kwargs)) return getattr(func, fnattr) return wrapper
#def recursion(): #return recursion() #def factorial(n): # rslt = n # for i in range(1, n): # rslt *= i # return rslt """ def factorial(n): if n == 1: return 1 else: return n * factorial(n-1) print(factorial(3))""" """ def pow(x, n): rslt = 1 for i in range(n): rslt *= x return rslt print(pow(3, 2))""" def pow(x, n): if n == 0: return 1 else: return x * pow(x, n-1) print(pow(20, 9)) """num = [2, 4, 6, 23, 65, 89, 43, 12] print(map(lambda n: 2*n, num)) print(map(chr, num)) print(map(ord, "hello, World"))"""
""" def factorial(n): if n == 1: return 1 else: return n * factorial(n-1) print(factorial(3))""" '\ndef pow(x, n):\n\trslt = 1\n\tfor i in range(n):\n\t\trslt *= x\n\treturn rslt\nprint(pow(3, 2))' def pow(x, n): if n == 0: return 1 else: return x * pow(x, n - 1) print(pow(20, 9)) 'num = [2, 4, 6, 23, 65, 89, 43, 12]\nprint(map(lambda n: 2*n, num))\nprint(map(chr, num))\nprint(map(ord, "hello, World"))'
class Profiles(object): """ A class to manage V2 API's for AirWatch Profiles Management """ def __init__(self, client): self.client = client def search(self, **kwargs): """ Returns the Profile information matching the search parameters. /api/mdm/profiles/search?{params} PARAMS: type={type} profilename={profilename} organizationgroupid={organizationgroupid} platform={platform} status={status} ownership={ownership} """ response = self._get(path="/profiles/search", params=kwargs) page = 1 while ( isinstance(response, dict) and page * response["PageSize"] < response["Total"] ): kwargs["page"] = page new_page = self._get(path="/profiles/search", params=kwargs) if isinstance(new_page, dict): response["Profiles"].append(new_page.get("Profiles", [])) response["Page"] = page page += 1 return response def _get(self, module="mdm", path=None, version=None, params=None, header=None): """GET requests for the /MDM/Profiles module.""" response = self.client.get( module=module, path=path, version=version, params=params, header=header ) return response def _post( self, module="mdm", path=None, version=None, params=None, data=None, json=None, header=None, ): """POST requests for the /MDM/Profiles module.""" response = self.client.post( module=module, path=path, version=version, params=params, data=data, json=json, header=header, ) return response
class Profiles(object): """ A class to manage V2 API's for AirWatch Profiles Management """ def __init__(self, client): self.client = client def search(self, **kwargs): """ Returns the Profile information matching the search parameters. /api/mdm/profiles/search?{params} PARAMS: type={type} profilename={profilename} organizationgroupid={organizationgroupid} platform={platform} status={status} ownership={ownership} """ response = self._get(path='/profiles/search', params=kwargs) page = 1 while isinstance(response, dict) and page * response['PageSize'] < response['Total']: kwargs['page'] = page new_page = self._get(path='/profiles/search', params=kwargs) if isinstance(new_page, dict): response['Profiles'].append(new_page.get('Profiles', [])) response['Page'] = page page += 1 return response def _get(self, module='mdm', path=None, version=None, params=None, header=None): """GET requests for the /MDM/Profiles module.""" response = self.client.get(module=module, path=path, version=version, params=params, header=header) return response def _post(self, module='mdm', path=None, version=None, params=None, data=None, json=None, header=None): """POST requests for the /MDM/Profiles module.""" response = self.client.post(module=module, path=path, version=version, params=params, data=data, json=json, header=header) return response
""" Given an integer number n, define a function named printDict() which can print a dictionary where the keys are numbers between 1 and n (both included) and the values are square of keys. The function printDict() doesn't take any argument. Input Format: The first line contains the number n. Output Format: Print the dictionary in one line. Example: Input: 5 Output: {1: 1, 2: 4, 3: 9, 4: 16, 5: 25} NOTE: You are supposed to write the code for the function printDict() only. The function has already been called in the main part of the code. """ def printDict(): n = int(input()) d = {} for i in range(n): d[i+1] = (i+1)**2 print(d, end = " ") printDict()
""" Given an integer number n, define a function named printDict() which can print a dictionary where the keys are numbers between 1 and n (both included) and the values are square of keys. The function printDict() doesn't take any argument. Input Format: The first line contains the number n. Output Format: Print the dictionary in one line. Example: Input: 5 Output: {1: 1, 2: 4, 3: 9, 4: 16, 5: 25} NOTE: You are supposed to write the code for the function printDict() only. The function has already been called in the main part of the code. """ def print_dict(): n = int(input()) d = {} for i in range(n): d[i + 1] = (i + 1) ** 2 print(d, end=' ') print_dict()
class Solution(object): def singleNumber(self, nums): """ :type nums: List[int] :rtype: List[int] """ xor = 0 for num in nums: xor ^= num xor = xor & -xor a, b = 0, 0 for num in nums: if num & xor: a ^= num else: b ^= num return a, b
class Solution(object): def single_number(self, nums): """ :type nums: List[int] :rtype: List[int] """ xor = 0 for num in nums: xor ^= num xor = xor & -xor (a, b) = (0, 0) for num in nums: if num & xor: a ^= num else: b ^= num return (a, b)
# # PySNMP MIB module CXFrameRelay-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CXFrameRelay-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 18:17:11 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, ValueRangeConstraint, ConstraintsIntersection, ConstraintsUnion, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsIntersection", "ConstraintsUnion", "SingleValueConstraint") cxModuleHwPhysSlot, = mibBuilder.importSymbols("CXModuleHardware-MIB", "cxModuleHwPhysSlot") SapIndex, Alias, cxFrameRelay = mibBuilder.importSymbols("CXProduct-SMI", "SapIndex", "Alias", "cxFrameRelay") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") Gauge32, iso, NotificationType, TimeTicks, IpAddress, MibIdentifier, Counter64, NotificationType, ModuleIdentity, Counter32, MibScalar, MibTable, MibTableRow, MibTableColumn, Integer32, Bits, ObjectIdentity, Unsigned32 = mibBuilder.importSymbols("SNMPv2-SMI", "Gauge32", "iso", "NotificationType", "TimeTicks", "IpAddress", "MibIdentifier", "Counter64", "NotificationType", "ModuleIdentity", "Counter32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Integer32", "Bits", "ObjectIdentity", "Unsigned32") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") class DLCI(Integer32): subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(1, 1022) frpSapTable = MibTable((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1), ) if mibBuilder.loadTexts: frpSapTable.setStatus('mandatory') frpSapEntry = MibTableRow((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1), ).setIndexNames((0, "CXFrameRelay-MIB", "frpSapNumber")) if mibBuilder.loadTexts: frpSapEntry.setStatus('mandatory') frpSapNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 1), SapIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapNumber.setStatus('mandatory') frpSapRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("invalid", 1), ("valid", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapRowStatus.setStatus('mandatory') frpSapAlias = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 3), Alias()).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapAlias.setStatus('mandatory') frpSapCompanionAlias = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 4), Alias()).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapCompanionAlias.setStatus('mandatory') frpSapType = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("lower", 1), ("upper", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapType.setStatus('mandatory') frpSapAddressLength = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(2, 3, 4))).clone(namedValues=NamedValues(("two-octets", 2), ("three-octets", 3), ("four-octets", 4))).clone('two-octets')).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapAddressLength.setStatus('mandatory') frpSapMaxSupportedVCs = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1022))).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapMaxSupportedVCs.setStatus('deprecated') frpSapVCBase = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1022))).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapVCBase.setStatus('deprecated') frpSapOutCongestionManagement = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapOutCongestionManagement.setStatus('mandatory') frpSapResourceAllocation = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 99)).clone(80)).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapResourceAllocation.setStatus('mandatory') frpSapLinkManagement = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("none", 1), ("frameRelayForum", 2), ("ansiAnnexD", 3), ("ccittAnnexA", 4), ("dama1", 5), ("dama2", 6), ("auto", 7))).clone('none')).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapLinkManagement.setStatus('mandatory') frpSapInterfaceType = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("uniUser", 1), ("uniNetwork", 2), ("nni", 3))).clone('uniUser')).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapInterfaceType.setStatus('mandatory') frpSapPollingInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(5, 30)).clone(10)).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapPollingInterval.setStatus('mandatory') frpSapPollingVerification = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 14), Integer32().subtype(subtypeSpec=ValueRangeConstraint(5, 30)).clone(15)).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapPollingVerification.setStatus('mandatory') frpSapFullEnquiryInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255)).clone(6)).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapFullEnquiryInterval.setStatus('mandatory') frpSapErrorThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 16), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 10)).clone(3)).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapErrorThreshold.setStatus('mandatory') frpSapMonitoredEvents = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 17), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 10)).clone(4)).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapMonitoredEvents.setStatus('mandatory') frpSapMode = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("frameRelay", 1), ("transparent", 2), ("frameRelayAtmNIwf", 3))).clone('frameRelay')).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapMode.setStatus('mandatory') frpSapPrioQueue1HitRatio = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 19), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapPrioQueue1HitRatio.setStatus('mandatory') frpSapPrioQueue2HitRatio = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 20), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapPrioQueue2HitRatio.setStatus('mandatory') frpSapPrioQueue3HitRatio = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 21), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapPrioQueue3HitRatio.setStatus('mandatory') frpSapPrioQueue4HitRatio = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 22), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapPrioQueue4HitRatio.setStatus('mandatory') frpSapDialEntry = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 23), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapDialEntry.setStatus('mandatory') frpSapFilterBitMap = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 24), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapFilterBitMap.setStatus('mandatory') frpSapLmiFlavor = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 25), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("strict", 2), ("tolerant", 3))).clone('tolerant')).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapLmiFlavor.setStatus('mandatory') frpSapGenerator = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 33), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2), ("retrigger", 3))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapGenerator.setStatus('mandatory') frpSapGeneratorDlciNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 34), DLCI().clone(16)).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapGeneratorDlciNumber.setStatus('mandatory') frpSapGeneratorFrameSize = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 35), Integer32().subtype(subtypeSpec=ValueRangeConstraint(32, 4096)).clone(32)).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapGeneratorFrameSize.setStatus('mandatory') frpSapGeneratorNumberOfFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 36), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 200)).clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapGeneratorNumberOfFrames.setStatus('mandatory') frpSapGeneratorInterFrameDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 37), Integer32().subtype(subtypeSpec=ValueRangeConstraint(50, 60000)).clone(50)).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapGeneratorInterFrameDelay.setStatus('mandatory') frpSapBillingTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 38), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 525600)).clone(1440)).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapBillingTimer.setStatus('mandatory') frpSapSdLmMessageInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 39), Integer32().subtype(subtypeSpec=ValueRangeConstraint(10, 65535)).clone(50)).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapSdLmMessageInterval.setStatus('obsolete') frpSapSdLmActiveTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 40), Integer32().subtype(subtypeSpec=ValueRangeConstraint(10, 65535)).clone(1000)).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapSdLmActiveTimer.setStatus('obsolete') frpSaptrapTrap1 = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 48), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSaptrapTrap1.setStatus('mandatory') frpSapControl = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 53), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("retriggerBillingTimer", 1)))).setMaxAccess("writeonly") if mibBuilder.loadTexts: frpSapControl.setStatus('mandatory') frpSapControlStats = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 54), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("clearSapStats", 1), ("clearAllCircuitStats", 2)))).setMaxAccess("writeonly") if mibBuilder.loadTexts: frpSapControlStats.setStatus('mandatory') frpSapstatLinkManagementState = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 55), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("linkDown", 1), ("linkUp", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatLinkManagementState.setStatus('mandatory') frpSapstatCurrentLinkManagementType = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 56), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("none", 1), ("frameRelayForum", 2), ("ansiAnnexD", 3), ("ccittAnnexA", 4), ("dama1", 5), ("dama2", 6), ("discovering", 7)))).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatCurrentLinkManagementType.setStatus('mandatory') frpSapstatTxDataFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 61), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatTxDataFrames.setStatus('mandatory') frpSapstatRxDataFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 62), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatRxDataFrames.setStatus('mandatory') frpSapstatTxDataOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 63), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatTxDataOctets.setStatus('mandatory') frpSapstatRxDataOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 64), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatRxDataOctets.setStatus('mandatory') frpSapstatTxLmiFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 65), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatTxLmiFrames.setStatus('mandatory') frpSapstatRxLmiFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 66), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatRxLmiFrames.setStatus('mandatory') frpSapstatTxQueuedDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 67), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatTxQueuedDiscards.setStatus('mandatory') frpSapstatRxCIRExceededDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 79), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatRxCIRExceededDiscards.setStatus('mandatory') frpSapstatRxSysCongestionDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 80), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatRxSysCongestionDiscards.setStatus('mandatory') frpSapstatRxUnavailInboundDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 81), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatRxUnavailInboundDiscards.setStatus('mandatory') frpSapstatRxUnavailOutboundDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 82), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatRxUnavailOutboundDiscards.setStatus('mandatory') frpSapstatRxInvalidVCDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 83), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatRxInvalidVCDiscards.setStatus('mandatory') frpSapstatRxBadStatusDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 84), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatRxBadStatusDiscards.setStatus('mandatory') frpSapstatRxMiscellaneousDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 85), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatRxMiscellaneousDiscards.setStatus('mandatory') frpSapstatRxCIRExceeds = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 86), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatRxCIRExceeds.setStatus('mandatory') frpSapstatRxShortFrameDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 87), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatRxShortFrameDiscards.setStatus('mandatory') frpSapstatLmiInvalidFieldDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 97), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatLmiInvalidFieldDiscards.setStatus('mandatory') frpSapstatLmiInvalidSequenceDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 98), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatLmiInvalidSequenceDiscards.setStatus('mandatory') frpSapstatLmiTimeouts = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 99), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatLmiTimeouts.setStatus('mandatory') frpSapstatLmiInvalidStatusDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 100), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatLmiInvalidStatusDiscards.setStatus('mandatory') frpSapstatLmiInvalidStatusEnqDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 101), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatLmiInvalidStatusEnqDiscards.setStatus('mandatory') frpSapstatLmiInvalidUpdStatusDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 102), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatLmiInvalidUpdStatusDiscards.setStatus('mandatory') frpCircuitTable = MibTable((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2), ) if mibBuilder.loadTexts: frpCircuitTable.setStatus('mandatory') frpCircuitEntry = MibTableRow((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1), ).setIndexNames((0, "CXFrameRelay-MIB", "frpCircuitSapNumber"), (0, "CXFrameRelay-MIB", "frpCircuitDlci")) if mibBuilder.loadTexts: frpCircuitEntry.setStatus('mandatory') frpCircuitSapNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 1), SapIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitSapNumber.setStatus('mandatory') frpCircuitDlci = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 2), DLCI()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitDlci.setStatus('mandatory') frpCircuitRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("invalid", 1), ("valid", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpCircuitRowStatus.setStatus('mandatory') frpCircuitPriorityLevel = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("veryHigh", 1), ("high", 2), ("medium", 3), ("low", 4))).clone('medium')).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpCircuitPriorityLevel.setStatus('mandatory') frpCircuitCommittedBurst = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 5), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpCircuitCommittedBurst.setStatus('mandatory') frpCircuitExcessBurst = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 6), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpCircuitExcessBurst.setStatus('mandatory') frpCircuitCommittedInformationRate = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpCircuitCommittedInformationRate.setStatus('mandatory') frpCircuitCIRManagement = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("disabled", 1), ("enabled-inbound", 2), ("monitor-inbound", 3), ("enabled-outbound", 4))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpCircuitCIRManagement.setStatus('mandatory') frpCircuitMultiProtEncaps = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpCircuitMultiProtEncaps.setStatus('mandatory') frpCircuitHighPriorityBurst = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 10), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpCircuitHighPriorityBurst.setStatus('mandatory') frpCircuitLowPriorityBurst = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 11), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpCircuitLowPriorityBurst.setStatus('mandatory') frpCircuitFragmentationSize = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 18), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpCircuitFragmentationSize.setStatus('mandatory') frpCircuitAlias = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 19), Alias()).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpCircuitAlias.setStatus('mandatory') frpCircuitCompanionSapNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 20), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpCircuitCompanionSapNumber.setStatus('mandatory') frpCircuitCompanionDlci = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 21), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpCircuitCompanionDlci.setStatus('mandatory') frpCircuitAlternateSapNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 22), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpCircuitAlternateSapNumber.setStatus('mandatory') frpCircuitAlternateDlci = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 23), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpCircuitAlternateDlci.setStatus('mandatory') frpCircuitMulticastGroupId = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 24), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitMulticastGroupId.setStatus('mandatory') frpCircuitMulticastType = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 25), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("noMulticastAssociation", 1), ("rootOneWay", 2), ("leafOneWay", 3), ("rootTwoWay", 4), ("leafTwoWay", 5), ("rootNWay", 6), ("rootTwoWaySinglePass", 7), ("leafTwoWaySinglePass", 8))).clone('noMulticastAssociation')).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitMulticastType.setStatus('mandatory') frpCircuitCompressionPort = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 26), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpCircuitCompressionPort.setStatus('mandatory') frpCircuitExpressService = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 27), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2))).clone('enabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpCircuitExpressService.setStatus('mandatory') frpCircuittrapTrap1 = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 32), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpCircuittrapTrap1.setStatus('mandatory') frpCircuittrapTrap2 = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 33), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpCircuittrapTrap2.setStatus('mandatory') frpCircuitControlStats = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 39), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("clearCircuitStats", 1)))).setMaxAccess("writeonly") if mibBuilder.loadTexts: frpCircuitControlStats.setStatus('mandatory') frpCircuitstatReportedState = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 40), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("notReported", 1), ("reportedActive", 2), ("reportedInactive", 3))).clone('notReported')).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitstatReportedState.setStatus('mandatory') frpCircuitstatRouteState = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 41), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("noRoute", 1), ("routeNotOperational", 2), ("routeOperational", 3))).clone('noRoute')).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitstatRouteState.setStatus('mandatory') frpCircuitstatAlternateRouteState = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 42), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("noRoute", 1), ("routeNotOperational", 2), ("routeOperational", 3), ("alternateCircuit", 4))).clone('noRoute')).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitstatAlternateRouteState.setStatus('mandatory') frpCircuitstatLocalCreationTime = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 47), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitstatLocalCreationTime.setStatus('mandatory') frpCircuitstatRemoteCreationTime = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 48), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitstatRemoteCreationTime.setStatus('mandatory') frpCircuitstatTxFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 49), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitstatTxFrames.setStatus('mandatory') frpCircuitstatRxFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 50), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitstatRxFrames.setStatus('mandatory') frpCircuitstatTxOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 51), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitstatTxOctets.setStatus('mandatory') frpCircuitstatRxOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 52), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitstatRxOctets.setStatus('mandatory') frpCircuitstatTxFECNs = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 53), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitstatTxFECNs.setStatus('mandatory') frpCircuitstatRxFECNs = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 54), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitstatRxFECNs.setStatus('mandatory') frpCircuitstatTxBECNs = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 55), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitstatTxBECNs.setStatus('mandatory') frpCircuitstatRxBECNs = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 56), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitstatRxBECNs.setStatus('mandatory') frpCircuitstatTxQueuedDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 63), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitstatTxQueuedDiscards.setStatus('mandatory') frpCircuitstatRxCIRExceededDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 70), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitstatRxCIRExceededDiscards.setStatus('mandatory') frpCircuitstatRxSysCongestionDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 71), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitstatRxSysCongestionDiscards.setStatus('mandatory') frpCircuitstatRxUnavailInboundDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 72), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitstatRxUnavailInboundDiscards.setStatus('mandatory') frpCircuitstatRxUnavailOutboundDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 73), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitstatRxUnavailOutboundDiscards.setStatus('mandatory') frpCircuitstatRxCIRExceeds = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 74), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitstatRxCIRExceeds.setStatus('mandatory') frpCircuitstatFragmentationFailures = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 75), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitstatFragmentationFailures.setStatus('mandatory') frpCircuitstatDeFragmentationFailures = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 76), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitstatDeFragmentationFailures.setStatus('mandatory') frpReportedPvcTable = MibTable((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 3), ) if mibBuilder.loadTexts: frpReportedPvcTable.setStatus('mandatory') frpReportedPvcEntry = MibTableRow((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 3, 1), ).setIndexNames((0, "CXFrameRelay-MIB", "frpReportedPvcSapNumber")) if mibBuilder.loadTexts: frpReportedPvcEntry.setStatus('mandatory') frpReportedPvcSapNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 3, 1, 1), SapIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpReportedPvcSapNumber.setStatus('mandatory') frpReportedPvcDlci = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 3, 1, 2), DLCI()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpReportedPvcDlci.setStatus('mandatory') frpReportedPvcLocallyConfigured = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 3, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: frpReportedPvcLocallyConfigured.setStatus('mandatory') frpReportedPvcStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("inactive", 1), ("active", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: frpReportedPvcStatus.setStatus('mandatory') frpMulticastTable = MibTable((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 4), ) if mibBuilder.loadTexts: frpMulticastTable.setStatus('mandatory') frpMulticastEntry = MibTableRow((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 4, 1), ).setIndexNames((0, "CXFrameRelay-MIB", "frpMulticastGroupId"), (0, "CXFrameRelay-MIB", "frpMulticastSapNumber"), (0, "CXFrameRelay-MIB", "frpMulticastDlci")) if mibBuilder.loadTexts: frpMulticastEntry.setStatus('mandatory') frpMulticastGroupId = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: frpMulticastGroupId.setStatus('mandatory') frpMulticastSapNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 4, 1, 2), SapIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpMulticastSapNumber.setStatus('mandatory') frpMulticastDlci = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 4, 1, 3), DLCI()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpMulticastDlci.setStatus('mandatory') frpMulticastRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 4, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("invalid", 1), ("valid", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpMulticastRowStatus.setStatus('mandatory') frpMulticastMemberType = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 4, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("root", 1), ("leaf", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpMulticastMemberType.setStatus('mandatory') frpMulticastServiceType = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 4, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("oneWay", 1), ("twoWay", 2), ("nWay", 3), ("twoWaySinglePass", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpMulticastServiceType.setStatus('mandatory') frpMulticastMemberStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 4, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("inactive", 1), ("active", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: frpMulticastMemberStatus.setStatus('mandatory') frpMibLevel = MibScalar((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpMibLevel.setStatus('mandatory') frpSapInterfaceStatusChange = NotificationType((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3) + (0,1)).setObjects(("CXModuleHardware-MIB", "cxModuleHwPhysSlot"), ("CXFrameRelay-MIB", "frpSapNumber"), ("CXFrameRelay-MIB", "frpSapstatLinkManagementState")) frpPvcReportedStatusChange = NotificationType((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3) + (0,2)).setObjects(("CXModuleHardware-MIB", "cxModuleHwPhysSlot"), ("CXFrameRelay-MIB", "frpCircuitSapNumber"), ("CXFrameRelay-MIB", "frpCircuitDlci"), ("CXFrameRelay-MIB", "frpCircuitstatReportedState")) frpPvcBillingStats = NotificationType((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3) + (0,3)).setObjects(("CXModuleHardware-MIB", "cxModuleHwPhysSlot"), ("CXFrameRelay-MIB", "frpCircuitSapNumber"), ("CXFrameRelay-MIB", "frpCircuitDlci"), ("CXFrameRelay-MIB", "frpCircuitstatTxFrames"), ("CXFrameRelay-MIB", "frpCircuitstatRxFrames"), ("CXFrameRelay-MIB", "frpCircuitstatTxOctets"), ("CXFrameRelay-MIB", "frpCircuitstatRxOctets")) mibBuilder.exportSymbols("CXFrameRelay-MIB", frpCircuitstatRxCIRExceededDiscards=frpCircuitstatRxCIRExceededDiscards, frpSapGenerator=frpSapGenerator, frpSapstatLinkManagementState=frpSapstatLinkManagementState, frpPvcBillingStats=frpPvcBillingStats, frpSapInterfaceType=frpSapInterfaceType, frpMulticastTable=frpMulticastTable, frpCircuitstatRxBECNs=frpCircuitstatRxBECNs, frpSapstatRxUnavailOutboundDiscards=frpSapstatRxUnavailOutboundDiscards, frpSapstatLmiTimeouts=frpSapstatLmiTimeouts, frpSapControlStats=frpSapControlStats, frpCircuitstatRouteState=frpCircuitstatRouteState, frpCircuitstatRemoteCreationTime=frpCircuitstatRemoteCreationTime, frpSapSdLmMessageInterval=frpSapSdLmMessageInterval, frpCircuitstatDeFragmentationFailures=frpCircuitstatDeFragmentationFailures, frpSapPrioQueue1HitRatio=frpSapPrioQueue1HitRatio, frpSapTable=frpSapTable, frpSapstatRxDataOctets=frpSapstatRxDataOctets, frpCircuitLowPriorityBurst=frpCircuitLowPriorityBurst, frpMulticastDlci=frpMulticastDlci, frpCircuitCompanionSapNumber=frpCircuitCompanionSapNumber, frpSapGeneratorFrameSize=frpSapGeneratorFrameSize, frpReportedPvcEntry=frpReportedPvcEntry, frpSapControl=frpSapControl, frpSapGeneratorInterFrameDelay=frpSapGeneratorInterFrameDelay, frpMibLevel=frpMibLevel, frpSapGeneratorNumberOfFrames=frpSapGeneratorNumberOfFrames, frpMulticastRowStatus=frpMulticastRowStatus, frpSapstatLmiInvalidUpdStatusDiscards=frpSapstatLmiInvalidUpdStatusDiscards, frpMulticastGroupId=frpMulticastGroupId, frpSapPollingInterval=frpSapPollingInterval, frpSapstatRxLmiFrames=frpSapstatRxLmiFrames, frpSapNumber=frpSapNumber, frpSapFilterBitMap=frpSapFilterBitMap, frpCircuitFragmentationSize=frpCircuitFragmentationSize, frpCircuitstatAlternateRouteState=frpCircuitstatAlternateRouteState, frpSapMode=frpSapMode, frpSapLinkManagement=frpSapLinkManagement, frpCircuitstatRxOctets=frpCircuitstatRxOctets, frpCircuittrapTrap2=frpCircuittrapTrap2, frpSapstatRxMiscellaneousDiscards=frpSapstatRxMiscellaneousDiscards, frpSapRowStatus=frpSapRowStatus, frpCircuitRowStatus=frpCircuitRowStatus, frpSapstatRxSysCongestionDiscards=frpSapstatRxSysCongestionDiscards, frpSapPrioQueue4HitRatio=frpSapPrioQueue4HitRatio, frpSapstatRxDataFrames=frpSapstatRxDataFrames, frpSapOutCongestionManagement=frpSapOutCongestionManagement, frpSapstatTxDataFrames=frpSapstatTxDataFrames, frpCircuitExpressService=frpCircuitExpressService, frpCircuitAlternateSapNumber=frpCircuitAlternateSapNumber, frpCircuitCompanionDlci=frpCircuitCompanionDlci, frpSapAddressLength=frpSapAddressLength, frpSapPollingVerification=frpSapPollingVerification, frpCircuitCommittedBurst=frpCircuitCommittedBurst, frpCircuitSapNumber=frpCircuitSapNumber, frpPvcReportedStatusChange=frpPvcReportedStatusChange, frpReportedPvcDlci=frpReportedPvcDlci, frpSapstatRxCIRExceededDiscards=frpSapstatRxCIRExceededDiscards, frpSapPrioQueue3HitRatio=frpSapPrioQueue3HitRatio, frpReportedPvcTable=frpReportedPvcTable, frpCircuitstatRxFrames=frpCircuitstatRxFrames, frpCircuitExcessBurst=frpCircuitExcessBurst, frpCircuitstatFragmentationFailures=frpCircuitstatFragmentationFailures, frpCircuitstatLocalCreationTime=frpCircuitstatLocalCreationTime, frpSapstatLmiInvalidStatusEnqDiscards=frpSapstatLmiInvalidStatusEnqDiscards, frpSapstatTxLmiFrames=frpSapstatTxLmiFrames, frpReportedPvcStatus=frpReportedPvcStatus, frpSapGeneratorDlciNumber=frpSapGeneratorDlciNumber, frpMulticastServiceType=frpMulticastServiceType, frpSapMonitoredEvents=frpSapMonitoredEvents, frpReportedPvcSapNumber=frpReportedPvcSapNumber, frpSaptrapTrap1=frpSaptrapTrap1, frpSapstatLmiInvalidStatusDiscards=frpSapstatLmiInvalidStatusDiscards, frpCircuitCommittedInformationRate=frpCircuitCommittedInformationRate, frpCircuittrapTrap1=frpCircuittrapTrap1, frpReportedPvcLocallyConfigured=frpReportedPvcLocallyConfigured, frpCircuitstatRxSysCongestionDiscards=frpCircuitstatRxSysCongestionDiscards, frpMulticastMemberType=frpMulticastMemberType, frpSapstatLmiInvalidFieldDiscards=frpSapstatLmiInvalidFieldDiscards, frpSapstatRxBadStatusDiscards=frpSapstatRxBadStatusDiscards, frpSapstatCurrentLinkManagementType=frpSapstatCurrentLinkManagementType, frpSapstatRxCIRExceeds=frpSapstatRxCIRExceeds, frpSapErrorThreshold=frpSapErrorThreshold, frpSapAlias=frpSapAlias, frpSapMaxSupportedVCs=frpSapMaxSupportedVCs, frpCircuitstatTxFECNs=frpCircuitstatTxFECNs, frpSapResourceAllocation=frpSapResourceAllocation, frpSapBillingTimer=frpSapBillingTimer, frpSapEntry=frpSapEntry, frpSapstatRxInvalidVCDiscards=frpSapstatRxInvalidVCDiscards, frpSapstatTxDataOctets=frpSapstatTxDataOctets, frpSapVCBase=frpSapVCBase, frpCircuitAlias=frpCircuitAlias, frpCircuitstatRxFECNs=frpCircuitstatRxFECNs, frpSapstatLmiInvalidSequenceDiscards=frpSapstatLmiInvalidSequenceDiscards, frpCircuitstatReportedState=frpCircuitstatReportedState, frpMulticastEntry=frpMulticastEntry, DLCI=DLCI, frpMulticastSapNumber=frpMulticastSapNumber, frpCircuitstatRxUnavailOutboundDiscards=frpCircuitstatRxUnavailOutboundDiscards, frpMulticastMemberStatus=frpMulticastMemberStatus, frpCircuitMulticastType=frpCircuitMulticastType, frpCircuitMultiProtEncaps=frpCircuitMultiProtEncaps, frpSapPrioQueue2HitRatio=frpSapPrioQueue2HitRatio, frpCircuitTable=frpCircuitTable, frpCircuitCIRManagement=frpCircuitCIRManagement, frpSapstatTxQueuedDiscards=frpSapstatTxQueuedDiscards, frpCircuitstatRxCIRExceeds=frpCircuitstatRxCIRExceeds, frpSapSdLmActiveTimer=frpSapSdLmActiveTimer, frpCircuitPriorityLevel=frpCircuitPriorityLevel, frpCircuitHighPriorityBurst=frpCircuitHighPriorityBurst, frpCircuitstatRxUnavailInboundDiscards=frpCircuitstatRxUnavailInboundDiscards, frpSapInterfaceStatusChange=frpSapInterfaceStatusChange, frpSapFullEnquiryInterval=frpSapFullEnquiryInterval, frpSapCompanionAlias=frpSapCompanionAlias, frpCircuitAlternateDlci=frpCircuitAlternateDlci, frpCircuitMulticastGroupId=frpCircuitMulticastGroupId, frpCircuitControlStats=frpCircuitControlStats, frpCircuitEntry=frpCircuitEntry, frpCircuitstatTxOctets=frpCircuitstatTxOctets, frpCircuitstatTxFrames=frpCircuitstatTxFrames, frpSapstatRxShortFrameDiscards=frpSapstatRxShortFrameDiscards, frpSapDialEntry=frpSapDialEntry, frpCircuitDlci=frpCircuitDlci, frpCircuitstatTxQueuedDiscards=frpCircuitstatTxQueuedDiscards, frpSapstatRxUnavailInboundDiscards=frpSapstatRxUnavailInboundDiscards, frpCircuitstatTxBECNs=frpCircuitstatTxBECNs, frpSapLmiFlavor=frpSapLmiFlavor, frpSapType=frpSapType, frpCircuitCompressionPort=frpCircuitCompressionPort)
(object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, value_range_constraint, constraints_intersection, constraints_union, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsIntersection', 'ConstraintsUnion', 'SingleValueConstraint') (cx_module_hw_phys_slot,) = mibBuilder.importSymbols('CXModuleHardware-MIB', 'cxModuleHwPhysSlot') (sap_index, alias, cx_frame_relay) = mibBuilder.importSymbols('CXProduct-SMI', 'SapIndex', 'Alias', 'cxFrameRelay') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (gauge32, iso, notification_type, time_ticks, ip_address, mib_identifier, counter64, notification_type, module_identity, counter32, mib_scalar, mib_table, mib_table_row, mib_table_column, integer32, bits, object_identity, unsigned32) = mibBuilder.importSymbols('SNMPv2-SMI', 'Gauge32', 'iso', 'NotificationType', 'TimeTicks', 'IpAddress', 'MibIdentifier', 'Counter64', 'NotificationType', 'ModuleIdentity', 'Counter32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Integer32', 'Bits', 'ObjectIdentity', 'Unsigned32') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') class Dlci(Integer32): subtype_spec = Integer32.subtypeSpec + value_range_constraint(1, 1022) frp_sap_table = mib_table((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1)) if mibBuilder.loadTexts: frpSapTable.setStatus('mandatory') frp_sap_entry = mib_table_row((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1)).setIndexNames((0, 'CXFrameRelay-MIB', 'frpSapNumber')) if mibBuilder.loadTexts: frpSapEntry.setStatus('mandatory') frp_sap_number = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 1), sap_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapNumber.setStatus('mandatory') frp_sap_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('invalid', 1), ('valid', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapRowStatus.setStatus('mandatory') frp_sap_alias = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 3), alias()).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapAlias.setStatus('mandatory') frp_sap_companion_alias = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 4), alias()).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapCompanionAlias.setStatus('mandatory') frp_sap_type = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('lower', 1), ('upper', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapType.setStatus('mandatory') frp_sap_address_length = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(2, 3, 4))).clone(namedValues=named_values(('two-octets', 2), ('three-octets', 3), ('four-octets', 4))).clone('two-octets')).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapAddressLength.setStatus('mandatory') frp_sap_max_supported_v_cs = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(1, 1022))).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapMaxSupportedVCs.setStatus('deprecated') frp_sap_vc_base = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(1, 1022))).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapVCBase.setStatus('deprecated') frp_sap_out_congestion_management = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2))).clone('disabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapOutCongestionManagement.setStatus('mandatory') frp_sap_resource_allocation = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(1, 99)).clone(80)).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapResourceAllocation.setStatus('mandatory') frp_sap_link_management = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('none', 1), ('frameRelayForum', 2), ('ansiAnnexD', 3), ('ccittAnnexA', 4), ('dama1', 5), ('dama2', 6), ('auto', 7))).clone('none')).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapLinkManagement.setStatus('mandatory') frp_sap_interface_type = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('uniUser', 1), ('uniNetwork', 2), ('nni', 3))).clone('uniUser')).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapInterfaceType.setStatus('mandatory') frp_sap_polling_interval = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 13), integer32().subtype(subtypeSpec=value_range_constraint(5, 30)).clone(10)).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapPollingInterval.setStatus('mandatory') frp_sap_polling_verification = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 14), integer32().subtype(subtypeSpec=value_range_constraint(5, 30)).clone(15)).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapPollingVerification.setStatus('mandatory') frp_sap_full_enquiry_interval = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 15), integer32().subtype(subtypeSpec=value_range_constraint(1, 255)).clone(6)).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapFullEnquiryInterval.setStatus('mandatory') frp_sap_error_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 16), integer32().subtype(subtypeSpec=value_range_constraint(1, 10)).clone(3)).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapErrorThreshold.setStatus('mandatory') frp_sap_monitored_events = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 17), integer32().subtype(subtypeSpec=value_range_constraint(1, 10)).clone(4)).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapMonitoredEvents.setStatus('mandatory') frp_sap_mode = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 18), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('frameRelay', 1), ('transparent', 2), ('frameRelayAtmNIwf', 3))).clone('frameRelay')).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapMode.setStatus('mandatory') frp_sap_prio_queue1_hit_ratio = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 19), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapPrioQueue1HitRatio.setStatus('mandatory') frp_sap_prio_queue2_hit_ratio = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 20), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapPrioQueue2HitRatio.setStatus('mandatory') frp_sap_prio_queue3_hit_ratio = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 21), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapPrioQueue3HitRatio.setStatus('mandatory') frp_sap_prio_queue4_hit_ratio = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 22), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapPrioQueue4HitRatio.setStatus('mandatory') frp_sap_dial_entry = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 23), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapDialEntry.setStatus('mandatory') frp_sap_filter_bit_map = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 24), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapFilterBitMap.setStatus('mandatory') frp_sap_lmi_flavor = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 25), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('strict', 2), ('tolerant', 3))).clone('tolerant')).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapLmiFlavor.setStatus('mandatory') frp_sap_generator = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 33), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2), ('retrigger', 3))).clone('disabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapGenerator.setStatus('mandatory') frp_sap_generator_dlci_number = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 34), dlci().clone(16)).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapGeneratorDlciNumber.setStatus('mandatory') frp_sap_generator_frame_size = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 35), integer32().subtype(subtypeSpec=value_range_constraint(32, 4096)).clone(32)).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapGeneratorFrameSize.setStatus('mandatory') frp_sap_generator_number_of_frames = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 36), integer32().subtype(subtypeSpec=value_range_constraint(1, 200)).clone(1)).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapGeneratorNumberOfFrames.setStatus('mandatory') frp_sap_generator_inter_frame_delay = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 37), integer32().subtype(subtypeSpec=value_range_constraint(50, 60000)).clone(50)).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapGeneratorInterFrameDelay.setStatus('mandatory') frp_sap_billing_timer = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 38), integer32().subtype(subtypeSpec=value_range_constraint(1, 525600)).clone(1440)).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapBillingTimer.setStatus('mandatory') frp_sap_sd_lm_message_interval = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 39), integer32().subtype(subtypeSpec=value_range_constraint(10, 65535)).clone(50)).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapSdLmMessageInterval.setStatus('obsolete') frp_sap_sd_lm_active_timer = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 40), integer32().subtype(subtypeSpec=value_range_constraint(10, 65535)).clone(1000)).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapSdLmActiveTimer.setStatus('obsolete') frp_saptrap_trap1 = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 48), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2))).clone('disabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSaptrapTrap1.setStatus('mandatory') frp_sap_control = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 53), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('retriggerBillingTimer', 1)))).setMaxAccess('writeonly') if mibBuilder.loadTexts: frpSapControl.setStatus('mandatory') frp_sap_control_stats = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 54), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('clearSapStats', 1), ('clearAllCircuitStats', 2)))).setMaxAccess('writeonly') if mibBuilder.loadTexts: frpSapControlStats.setStatus('mandatory') frp_sapstat_link_management_state = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 55), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('linkDown', 1), ('linkUp', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatLinkManagementState.setStatus('mandatory') frp_sapstat_current_link_management_type = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 56), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('none', 1), ('frameRelayForum', 2), ('ansiAnnexD', 3), ('ccittAnnexA', 4), ('dama1', 5), ('dama2', 6), ('discovering', 7)))).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatCurrentLinkManagementType.setStatus('mandatory') frp_sapstat_tx_data_frames = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 61), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatTxDataFrames.setStatus('mandatory') frp_sapstat_rx_data_frames = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 62), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatRxDataFrames.setStatus('mandatory') frp_sapstat_tx_data_octets = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 63), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatTxDataOctets.setStatus('mandatory') frp_sapstat_rx_data_octets = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 64), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatRxDataOctets.setStatus('mandatory') frp_sapstat_tx_lmi_frames = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 65), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatTxLmiFrames.setStatus('mandatory') frp_sapstat_rx_lmi_frames = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 66), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatRxLmiFrames.setStatus('mandatory') frp_sapstat_tx_queued_discards = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 67), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatTxQueuedDiscards.setStatus('mandatory') frp_sapstat_rx_cir_exceeded_discards = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 79), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatRxCIRExceededDiscards.setStatus('mandatory') frp_sapstat_rx_sys_congestion_discards = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 80), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatRxSysCongestionDiscards.setStatus('mandatory') frp_sapstat_rx_unavail_inbound_discards = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 81), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatRxUnavailInboundDiscards.setStatus('mandatory') frp_sapstat_rx_unavail_outbound_discards = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 82), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatRxUnavailOutboundDiscards.setStatus('mandatory') frp_sapstat_rx_invalid_vc_discards = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 83), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatRxInvalidVCDiscards.setStatus('mandatory') frp_sapstat_rx_bad_status_discards = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 84), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatRxBadStatusDiscards.setStatus('mandatory') frp_sapstat_rx_miscellaneous_discards = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 85), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatRxMiscellaneousDiscards.setStatus('mandatory') frp_sapstat_rx_cir_exceeds = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 86), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatRxCIRExceeds.setStatus('mandatory') frp_sapstat_rx_short_frame_discards = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 87), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatRxShortFrameDiscards.setStatus('mandatory') frp_sapstat_lmi_invalid_field_discards = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 97), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatLmiInvalidFieldDiscards.setStatus('mandatory') frp_sapstat_lmi_invalid_sequence_discards = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 98), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatLmiInvalidSequenceDiscards.setStatus('mandatory') frp_sapstat_lmi_timeouts = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 99), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatLmiTimeouts.setStatus('mandatory') frp_sapstat_lmi_invalid_status_discards = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 100), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatLmiInvalidStatusDiscards.setStatus('mandatory') frp_sapstat_lmi_invalid_status_enq_discards = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 101), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatLmiInvalidStatusEnqDiscards.setStatus('mandatory') frp_sapstat_lmi_invalid_upd_status_discards = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 102), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatLmiInvalidUpdStatusDiscards.setStatus('mandatory') frp_circuit_table = mib_table((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2)) if mibBuilder.loadTexts: frpCircuitTable.setStatus('mandatory') frp_circuit_entry = mib_table_row((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1)).setIndexNames((0, 'CXFrameRelay-MIB', 'frpCircuitSapNumber'), (0, 'CXFrameRelay-MIB', 'frpCircuitDlci')) if mibBuilder.loadTexts: frpCircuitEntry.setStatus('mandatory') frp_circuit_sap_number = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 1), sap_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitSapNumber.setStatus('mandatory') frp_circuit_dlci = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 2), dlci()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitDlci.setStatus('mandatory') frp_circuit_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('invalid', 1), ('valid', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpCircuitRowStatus.setStatus('mandatory') frp_circuit_priority_level = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('veryHigh', 1), ('high', 2), ('medium', 3), ('low', 4))).clone('medium')).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpCircuitPriorityLevel.setStatus('mandatory') frp_circuit_committed_burst = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 5), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpCircuitCommittedBurst.setStatus('mandatory') frp_circuit_excess_burst = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 6), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpCircuitExcessBurst.setStatus('mandatory') frp_circuit_committed_information_rate = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 7), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpCircuitCommittedInformationRate.setStatus('mandatory') frp_circuit_cir_management = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('disabled', 1), ('enabled-inbound', 2), ('monitor-inbound', 3), ('enabled-outbound', 4))).clone('disabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpCircuitCIRManagement.setStatus('mandatory') frp_circuit_multi_prot_encaps = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2))).clone('disabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpCircuitMultiProtEncaps.setStatus('mandatory') frp_circuit_high_priority_burst = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 10), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpCircuitHighPriorityBurst.setStatus('mandatory') frp_circuit_low_priority_burst = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 11), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpCircuitLowPriorityBurst.setStatus('mandatory') frp_circuit_fragmentation_size = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 18), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpCircuitFragmentationSize.setStatus('mandatory') frp_circuit_alias = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 19), alias()).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpCircuitAlias.setStatus('mandatory') frp_circuit_companion_sap_number = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 20), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpCircuitCompanionSapNumber.setStatus('mandatory') frp_circuit_companion_dlci = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 21), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpCircuitCompanionDlci.setStatus('mandatory') frp_circuit_alternate_sap_number = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 22), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpCircuitAlternateSapNumber.setStatus('mandatory') frp_circuit_alternate_dlci = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 23), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpCircuitAlternateDlci.setStatus('mandatory') frp_circuit_multicast_group_id = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 24), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitMulticastGroupId.setStatus('mandatory') frp_circuit_multicast_type = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 25), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('noMulticastAssociation', 1), ('rootOneWay', 2), ('leafOneWay', 3), ('rootTwoWay', 4), ('leafTwoWay', 5), ('rootNWay', 6), ('rootTwoWaySinglePass', 7), ('leafTwoWaySinglePass', 8))).clone('noMulticastAssociation')).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitMulticastType.setStatus('mandatory') frp_circuit_compression_port = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 26), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpCircuitCompressionPort.setStatus('mandatory') frp_circuit_express_service = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 27), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2))).clone('enabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpCircuitExpressService.setStatus('mandatory') frp_circuittrap_trap1 = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 32), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2))).clone('disabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpCircuittrapTrap1.setStatus('mandatory') frp_circuittrap_trap2 = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 33), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2))).clone('disabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpCircuittrapTrap2.setStatus('mandatory') frp_circuit_control_stats = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 39), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('clearCircuitStats', 1)))).setMaxAccess('writeonly') if mibBuilder.loadTexts: frpCircuitControlStats.setStatus('mandatory') frp_circuitstat_reported_state = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 40), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('notReported', 1), ('reportedActive', 2), ('reportedInactive', 3))).clone('notReported')).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitstatReportedState.setStatus('mandatory') frp_circuitstat_route_state = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 41), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('noRoute', 1), ('routeNotOperational', 2), ('routeOperational', 3))).clone('noRoute')).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitstatRouteState.setStatus('mandatory') frp_circuitstat_alternate_route_state = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 42), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('noRoute', 1), ('routeNotOperational', 2), ('routeOperational', 3), ('alternateCircuit', 4))).clone('noRoute')).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitstatAlternateRouteState.setStatus('mandatory') frp_circuitstat_local_creation_time = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 47), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitstatLocalCreationTime.setStatus('mandatory') frp_circuitstat_remote_creation_time = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 48), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitstatRemoteCreationTime.setStatus('mandatory') frp_circuitstat_tx_frames = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 49), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitstatTxFrames.setStatus('mandatory') frp_circuitstat_rx_frames = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 50), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitstatRxFrames.setStatus('mandatory') frp_circuitstat_tx_octets = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 51), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitstatTxOctets.setStatus('mandatory') frp_circuitstat_rx_octets = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 52), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitstatRxOctets.setStatus('mandatory') frp_circuitstat_tx_fec_ns = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 53), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitstatTxFECNs.setStatus('mandatory') frp_circuitstat_rx_fec_ns = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 54), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitstatRxFECNs.setStatus('mandatory') frp_circuitstat_tx_bec_ns = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 55), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitstatTxBECNs.setStatus('mandatory') frp_circuitstat_rx_bec_ns = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 56), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitstatRxBECNs.setStatus('mandatory') frp_circuitstat_tx_queued_discards = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 63), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitstatTxQueuedDiscards.setStatus('mandatory') frp_circuitstat_rx_cir_exceeded_discards = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 70), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitstatRxCIRExceededDiscards.setStatus('mandatory') frp_circuitstat_rx_sys_congestion_discards = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 71), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitstatRxSysCongestionDiscards.setStatus('mandatory') frp_circuitstat_rx_unavail_inbound_discards = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 72), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitstatRxUnavailInboundDiscards.setStatus('mandatory') frp_circuitstat_rx_unavail_outbound_discards = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 73), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitstatRxUnavailOutboundDiscards.setStatus('mandatory') frp_circuitstat_rx_cir_exceeds = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 74), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitstatRxCIRExceeds.setStatus('mandatory') frp_circuitstat_fragmentation_failures = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 75), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitstatFragmentationFailures.setStatus('mandatory') frp_circuitstat_de_fragmentation_failures = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 76), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitstatDeFragmentationFailures.setStatus('mandatory') frp_reported_pvc_table = mib_table((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 3)) if mibBuilder.loadTexts: frpReportedPvcTable.setStatus('mandatory') frp_reported_pvc_entry = mib_table_row((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 3, 1)).setIndexNames((0, 'CXFrameRelay-MIB', 'frpReportedPvcSapNumber')) if mibBuilder.loadTexts: frpReportedPvcEntry.setStatus('mandatory') frp_reported_pvc_sap_number = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 3, 1, 1), sap_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpReportedPvcSapNumber.setStatus('mandatory') frp_reported_pvc_dlci = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 3, 1, 2), dlci()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpReportedPvcDlci.setStatus('mandatory') frp_reported_pvc_locally_configured = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 3, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: frpReportedPvcLocallyConfigured.setStatus('mandatory') frp_reported_pvc_status = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 3, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('inactive', 1), ('active', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: frpReportedPvcStatus.setStatus('mandatory') frp_multicast_table = mib_table((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 4)) if mibBuilder.loadTexts: frpMulticastTable.setStatus('mandatory') frp_multicast_entry = mib_table_row((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 4, 1)).setIndexNames((0, 'CXFrameRelay-MIB', 'frpMulticastGroupId'), (0, 'CXFrameRelay-MIB', 'frpMulticastSapNumber'), (0, 'CXFrameRelay-MIB', 'frpMulticastDlci')) if mibBuilder.loadTexts: frpMulticastEntry.setStatus('mandatory') frp_multicast_group_id = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 4, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: frpMulticastGroupId.setStatus('mandatory') frp_multicast_sap_number = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 4, 1, 2), sap_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpMulticastSapNumber.setStatus('mandatory') frp_multicast_dlci = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 4, 1, 3), dlci()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpMulticastDlci.setStatus('mandatory') frp_multicast_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 4, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('invalid', 1), ('valid', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpMulticastRowStatus.setStatus('mandatory') frp_multicast_member_type = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 4, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('root', 1), ('leaf', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpMulticastMemberType.setStatus('mandatory') frp_multicast_service_type = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 4, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('oneWay', 1), ('twoWay', 2), ('nWay', 3), ('twoWaySinglePass', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpMulticastServiceType.setStatus('mandatory') frp_multicast_member_status = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 4, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('inactive', 1), ('active', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: frpMulticastMemberStatus.setStatus('mandatory') frp_mib_level = mib_scalar((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpMibLevel.setStatus('mandatory') frp_sap_interface_status_change = notification_type((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3) + (0, 1)).setObjects(('CXModuleHardware-MIB', 'cxModuleHwPhysSlot'), ('CXFrameRelay-MIB', 'frpSapNumber'), ('CXFrameRelay-MIB', 'frpSapstatLinkManagementState')) frp_pvc_reported_status_change = notification_type((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3) + (0, 2)).setObjects(('CXModuleHardware-MIB', 'cxModuleHwPhysSlot'), ('CXFrameRelay-MIB', 'frpCircuitSapNumber'), ('CXFrameRelay-MIB', 'frpCircuitDlci'), ('CXFrameRelay-MIB', 'frpCircuitstatReportedState')) frp_pvc_billing_stats = notification_type((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3) + (0, 3)).setObjects(('CXModuleHardware-MIB', 'cxModuleHwPhysSlot'), ('CXFrameRelay-MIB', 'frpCircuitSapNumber'), ('CXFrameRelay-MIB', 'frpCircuitDlci'), ('CXFrameRelay-MIB', 'frpCircuitstatTxFrames'), ('CXFrameRelay-MIB', 'frpCircuitstatRxFrames'), ('CXFrameRelay-MIB', 'frpCircuitstatTxOctets'), ('CXFrameRelay-MIB', 'frpCircuitstatRxOctets')) mibBuilder.exportSymbols('CXFrameRelay-MIB', frpCircuitstatRxCIRExceededDiscards=frpCircuitstatRxCIRExceededDiscards, frpSapGenerator=frpSapGenerator, frpSapstatLinkManagementState=frpSapstatLinkManagementState, frpPvcBillingStats=frpPvcBillingStats, frpSapInterfaceType=frpSapInterfaceType, frpMulticastTable=frpMulticastTable, frpCircuitstatRxBECNs=frpCircuitstatRxBECNs, frpSapstatRxUnavailOutboundDiscards=frpSapstatRxUnavailOutboundDiscards, frpSapstatLmiTimeouts=frpSapstatLmiTimeouts, frpSapControlStats=frpSapControlStats, frpCircuitstatRouteState=frpCircuitstatRouteState, frpCircuitstatRemoteCreationTime=frpCircuitstatRemoteCreationTime, frpSapSdLmMessageInterval=frpSapSdLmMessageInterval, frpCircuitstatDeFragmentationFailures=frpCircuitstatDeFragmentationFailures, frpSapPrioQueue1HitRatio=frpSapPrioQueue1HitRatio, frpSapTable=frpSapTable, frpSapstatRxDataOctets=frpSapstatRxDataOctets, frpCircuitLowPriorityBurst=frpCircuitLowPriorityBurst, frpMulticastDlci=frpMulticastDlci, frpCircuitCompanionSapNumber=frpCircuitCompanionSapNumber, frpSapGeneratorFrameSize=frpSapGeneratorFrameSize, frpReportedPvcEntry=frpReportedPvcEntry, frpSapControl=frpSapControl, frpSapGeneratorInterFrameDelay=frpSapGeneratorInterFrameDelay, frpMibLevel=frpMibLevel, frpSapGeneratorNumberOfFrames=frpSapGeneratorNumberOfFrames, frpMulticastRowStatus=frpMulticastRowStatus, frpSapstatLmiInvalidUpdStatusDiscards=frpSapstatLmiInvalidUpdStatusDiscards, frpMulticastGroupId=frpMulticastGroupId, frpSapPollingInterval=frpSapPollingInterval, frpSapstatRxLmiFrames=frpSapstatRxLmiFrames, frpSapNumber=frpSapNumber, frpSapFilterBitMap=frpSapFilterBitMap, frpCircuitFragmentationSize=frpCircuitFragmentationSize, frpCircuitstatAlternateRouteState=frpCircuitstatAlternateRouteState, frpSapMode=frpSapMode, frpSapLinkManagement=frpSapLinkManagement, frpCircuitstatRxOctets=frpCircuitstatRxOctets, frpCircuittrapTrap2=frpCircuittrapTrap2, frpSapstatRxMiscellaneousDiscards=frpSapstatRxMiscellaneousDiscards, frpSapRowStatus=frpSapRowStatus, frpCircuitRowStatus=frpCircuitRowStatus, frpSapstatRxSysCongestionDiscards=frpSapstatRxSysCongestionDiscards, frpSapPrioQueue4HitRatio=frpSapPrioQueue4HitRatio, frpSapstatRxDataFrames=frpSapstatRxDataFrames, frpSapOutCongestionManagement=frpSapOutCongestionManagement, frpSapstatTxDataFrames=frpSapstatTxDataFrames, frpCircuitExpressService=frpCircuitExpressService, frpCircuitAlternateSapNumber=frpCircuitAlternateSapNumber, frpCircuitCompanionDlci=frpCircuitCompanionDlci, frpSapAddressLength=frpSapAddressLength, frpSapPollingVerification=frpSapPollingVerification, frpCircuitCommittedBurst=frpCircuitCommittedBurst, frpCircuitSapNumber=frpCircuitSapNumber, frpPvcReportedStatusChange=frpPvcReportedStatusChange, frpReportedPvcDlci=frpReportedPvcDlci, frpSapstatRxCIRExceededDiscards=frpSapstatRxCIRExceededDiscards, frpSapPrioQueue3HitRatio=frpSapPrioQueue3HitRatio, frpReportedPvcTable=frpReportedPvcTable, frpCircuitstatRxFrames=frpCircuitstatRxFrames, frpCircuitExcessBurst=frpCircuitExcessBurst, frpCircuitstatFragmentationFailures=frpCircuitstatFragmentationFailures, frpCircuitstatLocalCreationTime=frpCircuitstatLocalCreationTime, frpSapstatLmiInvalidStatusEnqDiscards=frpSapstatLmiInvalidStatusEnqDiscards, frpSapstatTxLmiFrames=frpSapstatTxLmiFrames, frpReportedPvcStatus=frpReportedPvcStatus, frpSapGeneratorDlciNumber=frpSapGeneratorDlciNumber, frpMulticastServiceType=frpMulticastServiceType, frpSapMonitoredEvents=frpSapMonitoredEvents, frpReportedPvcSapNumber=frpReportedPvcSapNumber, frpSaptrapTrap1=frpSaptrapTrap1, frpSapstatLmiInvalidStatusDiscards=frpSapstatLmiInvalidStatusDiscards, frpCircuitCommittedInformationRate=frpCircuitCommittedInformationRate, frpCircuittrapTrap1=frpCircuittrapTrap1, frpReportedPvcLocallyConfigured=frpReportedPvcLocallyConfigured, frpCircuitstatRxSysCongestionDiscards=frpCircuitstatRxSysCongestionDiscards, frpMulticastMemberType=frpMulticastMemberType, frpSapstatLmiInvalidFieldDiscards=frpSapstatLmiInvalidFieldDiscards, frpSapstatRxBadStatusDiscards=frpSapstatRxBadStatusDiscards, frpSapstatCurrentLinkManagementType=frpSapstatCurrentLinkManagementType, frpSapstatRxCIRExceeds=frpSapstatRxCIRExceeds, frpSapErrorThreshold=frpSapErrorThreshold, frpSapAlias=frpSapAlias, frpSapMaxSupportedVCs=frpSapMaxSupportedVCs, frpCircuitstatTxFECNs=frpCircuitstatTxFECNs, frpSapResourceAllocation=frpSapResourceAllocation, frpSapBillingTimer=frpSapBillingTimer, frpSapEntry=frpSapEntry, frpSapstatRxInvalidVCDiscards=frpSapstatRxInvalidVCDiscards, frpSapstatTxDataOctets=frpSapstatTxDataOctets, frpSapVCBase=frpSapVCBase, frpCircuitAlias=frpCircuitAlias, frpCircuitstatRxFECNs=frpCircuitstatRxFECNs, frpSapstatLmiInvalidSequenceDiscards=frpSapstatLmiInvalidSequenceDiscards, frpCircuitstatReportedState=frpCircuitstatReportedState, frpMulticastEntry=frpMulticastEntry, DLCI=DLCI, frpMulticastSapNumber=frpMulticastSapNumber, frpCircuitstatRxUnavailOutboundDiscards=frpCircuitstatRxUnavailOutboundDiscards, frpMulticastMemberStatus=frpMulticastMemberStatus, frpCircuitMulticastType=frpCircuitMulticastType, frpCircuitMultiProtEncaps=frpCircuitMultiProtEncaps, frpSapPrioQueue2HitRatio=frpSapPrioQueue2HitRatio, frpCircuitTable=frpCircuitTable, frpCircuitCIRManagement=frpCircuitCIRManagement, frpSapstatTxQueuedDiscards=frpSapstatTxQueuedDiscards, frpCircuitstatRxCIRExceeds=frpCircuitstatRxCIRExceeds, frpSapSdLmActiveTimer=frpSapSdLmActiveTimer, frpCircuitPriorityLevel=frpCircuitPriorityLevel, frpCircuitHighPriorityBurst=frpCircuitHighPriorityBurst, frpCircuitstatRxUnavailInboundDiscards=frpCircuitstatRxUnavailInboundDiscards, frpSapInterfaceStatusChange=frpSapInterfaceStatusChange, frpSapFullEnquiryInterval=frpSapFullEnquiryInterval, frpSapCompanionAlias=frpSapCompanionAlias, frpCircuitAlternateDlci=frpCircuitAlternateDlci, frpCircuitMulticastGroupId=frpCircuitMulticastGroupId, frpCircuitControlStats=frpCircuitControlStats, frpCircuitEntry=frpCircuitEntry, frpCircuitstatTxOctets=frpCircuitstatTxOctets, frpCircuitstatTxFrames=frpCircuitstatTxFrames, frpSapstatRxShortFrameDiscards=frpSapstatRxShortFrameDiscards, frpSapDialEntry=frpSapDialEntry, frpCircuitDlci=frpCircuitDlci, frpCircuitstatTxQueuedDiscards=frpCircuitstatTxQueuedDiscards, frpSapstatRxUnavailInboundDiscards=frpSapstatRxUnavailInboundDiscards, frpCircuitstatTxBECNs=frpCircuitstatTxBECNs, frpSapLmiFlavor=frpSapLmiFlavor, frpSapType=frpSapType, frpCircuitCompressionPort=frpCircuitCompressionPort)
# Note that this file is multi-lingual and can be used in both Python # and POSIX shell. # This file should define a variable VERSION which we use as the # debugger version number. VERSION = '2.9.0'
version = '2.9.0'
""" This module calculate Jaccard's distance score parameters: x : (numpy array) first string sequence y : (numpy array) second string sequence return: (float) : Jaccard's distance socre (1 - Jaccard's similarlity) """ def jaccard_seq(x, y): len_x = len(x) len_y = len(y) fst, snd = (x, y) if len_x < len_y else (y, x) num_intersect = len(set(fst).intersection(snd)) return 1 - (num_intersect / (len_x + len_y - num_intersect))
""" This module calculate Jaccard's distance score parameters: x : (numpy array) first string sequence y : (numpy array) second string sequence return: (float) : Jaccard's distance socre (1 - Jaccard's similarlity) """ def jaccard_seq(x, y): len_x = len(x) len_y = len(y) (fst, snd) = (x, y) if len_x < len_y else (y, x) num_intersect = len(set(fst).intersection(snd)) return 1 - num_intersect / (len_x + len_y - num_intersect)
def reverse(input): #reverse as string return input[::-1] #An alternative approach I wass using - string to list '''myinput = input mylist = list(myinput) #print (mylist) mylist.reverse() return (mylist)''' '''while True: if input == None: print (None) break else: #find length of list l=len(mylist)-1 #while loop to reverse while l >= 0: print (mylist[l]) l -= 1 #actual reverse function happens here #return(mylist) #not working: '' input and '' puctuated sentence.''' reverse(input = 'robot') reverse(input = 'Ramen') reverse(input = 'I\'m hungry!') reverse(input = 'racecar')
def reverse(input): return input[::-1] 'myinput = input\n mylist = list(myinput)\n #print (mylist)\n mylist.reverse()\n return (mylist)' "while True:\n if input == None:\n print (None)\n break\n else:\n #find length of list\n l=len(mylist)-1\n #while loop to reverse\n while l >= 0:\n print (mylist[l])\n l -= 1\n#actual reverse function happens here\n \n #return(mylist)\n #not working: '' input and '' puctuated sentence." reverse(input='robot') reverse(input='Ramen') reverse(input="I'm hungry!") reverse(input='racecar')
# Similar to longest substring with k different characters, with k = 2 class Solution: def totalFruit(self, tree: List[int]) -> int: if not tree or len(tree) == 0: return 0 left = 0 ans = 0 baskets = {} # Use the dictionary to store the last index all fruits/letters in the array for t, fruit in enumerate(tree): baskets[fruit] = t if len(baskets) > 2: left = min(baskets.values()) del baskets[tree[left]] left += 1 ans = max(ans, t - left + 1) return ans
class Solution: def total_fruit(self, tree: List[int]) -> int: if not tree or len(tree) == 0: return 0 left = 0 ans = 0 baskets = {} for (t, fruit) in enumerate(tree): baskets[fruit] = t if len(baskets) > 2: left = min(baskets.values()) del baskets[tree[left]] left += 1 ans = max(ans, t - left + 1) return ans
''' Return Permutations of a String Given a string, find and return all the possible permutations of the input string. Note : The order of permutations are not important. Sample Input : abc Sample Output : abc acb bac bca cab cba ''' def permutations(string): #Implement Your Code Here if len(string) == 1: return [string] temp = permutations(string[1:]) output = [] for i in temp: for j in range(len(i)+1): smallString = i[:j] + string[0] + i[j:] output.append(smallString) return output string = input() ans = permutations(string) for s in ans: print(s)
""" Return Permutations of a String Given a string, find and return all the possible permutations of the input string. Note : The order of permutations are not important. Sample Input : abc Sample Output : abc acb bac bca cab cba """ def permutations(string): if len(string) == 1: return [string] temp = permutations(string[1:]) output = [] for i in temp: for j in range(len(i) + 1): small_string = i[:j] + string[0] + i[j:] output.append(smallString) return output string = input() ans = permutations(string) for s in ans: print(s)
def get_hours_since_midnight(seconds): ''' Type the code to calculate total hours given n(number) of seconds For example, given 3800 seconds the total hours is 1 ''' return (seconds//3600) ''' IF YOU ARE OK WITH A GRADE OF 70 FOR THIS ASSIGNMENT STOP HERE. ''' def get_minutes(seconds): ''' Type the code to calculate total minutes less whole hour given n(number) of seconds For example, given 3800 seconds the total minutes is 3 ''' seconds_left = (seconds % 3600) return (seconds_left // 60) def get_seconds(seconds): ''' Type the code to calculate total minutes less whole hour given n(number) of seconds For example, given 3800 seconds the total minutes is 20 ''' seconds_left = (seconds % 3600) return (seconds_left % 60) # used the // to get the amount of minutes left and the % to get the remaining seconds.
def get_hours_since_midnight(seconds): """ Type the code to calculate total hours given n(number) of seconds For example, given 3800 seconds the total hours is 1 """ return seconds // 3600 '\nIF YOU ARE OK WITH A GRADE OF 70 FOR THIS ASSIGNMENT STOP HERE.\n' def get_minutes(seconds): """ Type the code to calculate total minutes less whole hour given n(number) of seconds For example, given 3800 seconds the total minutes is 3 """ seconds_left = seconds % 3600 return seconds_left // 60 def get_seconds(seconds): """ Type the code to calculate total minutes less whole hour given n(number) of seconds For example, given 3800 seconds the total minutes is 20 """ seconds_left = seconds % 3600 return seconds_left % 60
class BingoBoard: def __init__(self) -> None: self.board = [] self.markedNums = 0 def __repr__(self) -> str: ret = '' for line in self.board: for num in line: ret += num + ' ' ret += '\n' return ret def check_value(self, val: str): r = 0 c = 0 found = 0 for row in self.board: for num in row: if num == val: row.pop(c) row.insert(c, '-1') found = 1 break c += 1 if found: break r += 1 c = 0 if found: self.markedNums += 1 # check if we have a winner winner = 0 if self.markedNums >= 5 and found: # check row for i in range(5): if self.board[r][i] == '-1': winner = 1 else: winner = 0 break if winner: return 1 # check column for j in range(5): if self.board[j][c] == '-1': winner = 1 else: winner = 0 break if winner: return 1 else: return 0 def calculate_winning_score(self): sum = 0 for row in self.board: for num in row: if num != '-1': sum += int(num) return sum def getInput(numbers, boards): lineNum = 0 with open('4.in', 'r') as file: curr_board = None for line in file: if lineNum == 0: numbers.extend(line.strip('\n').split(',')) else: if line == '\n' and curr_board: boards.append(curr_board) curr_board = BingoBoard() elif line == '\n': curr_board = BingoBoard() else: curr_board.board.append(line.strip('\n').split()) lineNum += 1 boards.append(curr_board) def solution(): numbers = [] boards = [] getInput(numbers, boards) numberOfBoards = len(boards) winningBoards = [] for num in numbers: boardNum = 0 for board in boards: if boardNum in winningBoards: pass else: winnerBool = board.check_value(num) if winnerBool: if len(winningBoards) != numberOfBoards - 1: winningBoards.append(boardNum) else: # calculate score sum = board.calculate_winning_score() print(int(num) * sum) return 0 boardNum += 1 solution()
class Bingoboard: def __init__(self) -> None: self.board = [] self.markedNums = 0 def __repr__(self) -> str: ret = '' for line in self.board: for num in line: ret += num + ' ' ret += '\n' return ret def check_value(self, val: str): r = 0 c = 0 found = 0 for row in self.board: for num in row: if num == val: row.pop(c) row.insert(c, '-1') found = 1 break c += 1 if found: break r += 1 c = 0 if found: self.markedNums += 1 winner = 0 if self.markedNums >= 5 and found: for i in range(5): if self.board[r][i] == '-1': winner = 1 else: winner = 0 break if winner: return 1 for j in range(5): if self.board[j][c] == '-1': winner = 1 else: winner = 0 break if winner: return 1 else: return 0 def calculate_winning_score(self): sum = 0 for row in self.board: for num in row: if num != '-1': sum += int(num) return sum def get_input(numbers, boards): line_num = 0 with open('4.in', 'r') as file: curr_board = None for line in file: if lineNum == 0: numbers.extend(line.strip('\n').split(',')) elif line == '\n' and curr_board: boards.append(curr_board) curr_board = bingo_board() elif line == '\n': curr_board = bingo_board() else: curr_board.board.append(line.strip('\n').split()) line_num += 1 boards.append(curr_board) def solution(): numbers = [] boards = [] get_input(numbers, boards) number_of_boards = len(boards) winning_boards = [] for num in numbers: board_num = 0 for board in boards: if boardNum in winningBoards: pass else: winner_bool = board.check_value(num) if winnerBool: if len(winningBoards) != numberOfBoards - 1: winningBoards.append(boardNum) else: sum = board.calculate_winning_score() print(int(num) * sum) return 0 board_num += 1 solution()
#! /usr/bin/env python3 # coding: utf-8 def main(): with open('sample1.txt','r') as f: content = f.read() content = content.upper() with open('sample2.txt','w') as f: f.write(content) if __name__ =='__main__': main()
def main(): with open('sample1.txt', 'r') as f: content = f.read() content = content.upper() with open('sample2.txt', 'w') as f: f.write(content) if __name__ == '__main__': main()
f_chr6 = open("/hwfssz1/ST_BIOCHEM/P18Z10200N0032/liyiyan/SV_Caller/HG002/chr6_reads.fastq") liness = f_chr6.readlines() reads_list = [] for i in range(1,len(liness),4): reads_list.append(liness[i]) res = min(reads_list, key=len,default='') print(len(res)-1)
f_chr6 = open('/hwfssz1/ST_BIOCHEM/P18Z10200N0032/liyiyan/SV_Caller/HG002/chr6_reads.fastq') liness = f_chr6.readlines() reads_list = [] for i in range(1, len(liness), 4): reads_list.append(liness[i]) res = min(reads_list, key=len, default='') print(len(res) - 1)
qtd = 0 soma = 0 for i in range(1, 101, 1): if i % 2 == 0: qtd += 1 soma += i media = soma / qtd print('A media dos pares de 1 ate 100 e de {} '.format(media))
qtd = 0 soma = 0 for i in range(1, 101, 1): if i % 2 == 0: qtd += 1 soma += i media = soma / qtd print('A media dos pares de 1 ate 100 e de {} '.format(media))
names = ["Adam", "Alex", "Mariah", "Martine", "Columbus"] for word in names: print(word)
names = ['Adam', 'Alex', 'Mariah', 'Martine', 'Columbus'] for word in names: print(word)
# # PySNMP MIB module HPNSAECC-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HPNSAECC-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:42:09 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ConstraintsUnion, ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsUnion", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") Counter64, MibIdentifier, Bits, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter32, NotificationType, iso, Integer32, Gauge32, IpAddress, enterprises, Unsigned32, ObjectIdentity, NotificationType, ModuleIdentity, TimeTicks = mibBuilder.importSymbols("SNMPv2-SMI", "Counter64", "MibIdentifier", "Bits", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter32", "NotificationType", "iso", "Integer32", "Gauge32", "IpAddress", "enterprises", "Unsigned32", "ObjectIdentity", "NotificationType", "ModuleIdentity", "TimeTicks") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") hp = MibIdentifier((1, 3, 6, 1, 4, 1, 11)) nm = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2)) hpnsa = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 23)) hpnsaECC = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 23, 6)) hpnsaEccMibRev = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 1)) hpnsaEccAgent = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 2)) hpnsaEccLog = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3)) hpnsaEccMibRevMajor = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnsaEccMibRevMajor.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccMibRevMajor.setDescription('The major revision level of the MIB.') hpnsaEccMibRevMinor = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnsaEccMibRevMinor.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccMibRevMinor.setDescription('The minor revision level of the MIB.') hpnsaEccAgentTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 2, 1), ) if mibBuilder.loadTexts: hpnsaEccAgentTable.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccAgentTable.setDescription('A table of SNMP Agents that satisfy requests for this MIB.') hpnsaEccAgentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 2, 1, 1), ).setIndexNames((0, "HPNSAECC-MIB", "hpnsaEccAgentIndex")) if mibBuilder.loadTexts: hpnsaEccAgentEntry.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccAgentEntry.setDescription('A description of the agents that access ECC Memory related information.') hpnsaEccAgentIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnsaEccAgentIndex.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccAgentIndex.setDescription('A unique index for this module description.') hpnsaEccAgentName = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 2, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnsaEccAgentName.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccAgentName.setDescription('Name of the Agent/Agents satisfying SNMP requests for this MIB.') hpnsaEccAgentVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 2, 1, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 5))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnsaEccAgentVersion.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccAgentVersion.setDescription('Version number of the Agent/Agents satisfying SNMP requests for this MIB.') hpnsaEccAgentDate = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 2, 1, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(6, 6)).setFixedLength(6)).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnsaEccAgentDate.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccAgentDate.setDescription('The date on which this Agent was created. field octets contents range _________________________________________________ 1 1 years since 1900 0..255 2 2 month 1..12 3 3 day 1..31 4 4 hour 0..23 5 5 minute 0..59 6 6 second 0..59 ') hpnsaEccStatus = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("notSupported", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnsaEccStatus.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccStatus.setDescription('ECC memory system tracking status: 1 - ECC memory is not supported in this machine 2 - ECC memory logging is disabled due to some errors (example, too many single or multiple bits error occurred in a short period of time) 3 - ECC memory logging is enabled and functioning.') hpnsaEccEraseLog = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 2), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnsaEccEraseLog.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccEraseLog.setDescription("Set this variable to integer value 1234 and without changing it again before hpnsaEccPollTime expired, will erase the system's Log area.") hpnsaEccTotalErrCorrected = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnsaEccTotalErrCorrected.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccTotalErrCorrected.setDescription('Total number of ECC memory error had occurred and been corrected.') hpnsaEccTrapEnable = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 0))).clone(namedValues=NamedValues(("trapOn", 1), ("trapOff", 0)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnsaEccTrapEnable.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccTrapEnable.setDescription('Set this variable to 1, the ECC memory errors are forwarded as SNMP traps. No trap are generated if this variable is set to 0.') hpnsaEccTrapDelay = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(100, 5000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnsaEccTrapDelay.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccTrapDelay.setDescription('Delay in milliseconds between the sending of ECC traps.') hpnsaEccPollTime = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(60, 2592000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnsaEccPollTime.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccPollTime.setDescription('Seconds between checking of ECC memory error.') hpnsaEccMemErrTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 7), ) if mibBuilder.loadTexts: hpnsaEccMemErrTable.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccMemErrTable.setDescription('A table of ECC memory error descriptions.') hpnsaEccMemErrEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 7, 1), ).setIndexNames((0, "HPNSAECC-MIB", "hpnsaEccMemErrIndex")) if mibBuilder.loadTexts: hpnsaEccMemErrEntry.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccMemErrEntry.setDescription('ECC memory error description.') hpnsaEccMemErrIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 7, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnsaEccMemErrIndex.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccMemErrIndex.setDescription('A unique index for the ECC memory error log.') hpnsaEccMemErrTime = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 7, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnsaEccMemErrTime.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccMemErrTime.setDescription('The Server local time when the ECC memory error occurred.') hpnsaEccMemErrDesc = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 7, 1, 3), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnsaEccMemErrDesc.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccMemErrDesc.setDescription('A string indicating the SIMM location when ECC memory error occurred.') hpnsaEccErrorCorrected = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 23, 6) + (0,4353)) if mibBuilder.loadTexts: hpnsaEccErrorCorrected.setDescription('An ECC single-bit error has been corrected in one of the memory modules') hpnsaEccSBEOverflow = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 23, 6) + (0,4354)) if mibBuilder.loadTexts: hpnsaEccSBEOverflow.setDescription("Error logging for ECC single-bit errors has been disabled due to too many SBE's detected in a short time period") hpnsaEccMemoryResize = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 23, 6) + (0,4355)) if mibBuilder.loadTexts: hpnsaEccMemoryResize.setDescription('ECC Memory size has been adjusted during the Power-On-Self-Test during the last boot due to a failed memory module') hpnsaEccMultiBitError = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 23, 6) + (0,4357)) if mibBuilder.loadTexts: hpnsaEccMultiBitError.setDescription('An ECC double-bit error has occurred in one of the memory modules') hpnsaEccMultiBitErrorOverflow = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 23, 6) + (0,4358)) if mibBuilder.loadTexts: hpnsaEccMultiBitErrorOverflow.setDescription("Error logging for ECC multiple-bit errors has been disabled due to too many MBE's detected in a short time period") mibBuilder.exportSymbols("HPNSAECC-MIB", hpnsa=hpnsa, hpnsaEccMemErrDesc=hpnsaEccMemErrDesc, hpnsaEccAgentVersion=hpnsaEccAgentVersion, hp=hp, hpnsaEccMibRevMajor=hpnsaEccMibRevMajor, hpnsaEccMemErrTable=hpnsaEccMemErrTable, hpnsaEccLog=hpnsaEccLog, hpnsaEccAgentEntry=hpnsaEccAgentEntry, hpnsaEccAgentDate=hpnsaEccAgentDate, hpnsaEccAgentIndex=hpnsaEccAgentIndex, hpnsaEccMibRev=hpnsaEccMibRev, hpnsaEccMibRevMinor=hpnsaEccMibRevMinor, hpnsaEccMemErrEntry=hpnsaEccMemErrEntry, hpnsaEccErrorCorrected=hpnsaEccErrorCorrected, hpnsaEccAgent=hpnsaEccAgent, hpnsaEccMemErrTime=hpnsaEccMemErrTime, hpnsaEccMemErrIndex=hpnsaEccMemErrIndex, hpnsaEccMemoryResize=hpnsaEccMemoryResize, hpnsaEccMultiBitErrorOverflow=hpnsaEccMultiBitErrorOverflow, hpnsaEccMultiBitError=hpnsaEccMultiBitError, hpnsaEccTrapEnable=hpnsaEccTrapEnable, hpnsaEccAgentTable=hpnsaEccAgentTable, hpnsaEccTrapDelay=hpnsaEccTrapDelay, hpnsaEccEraseLog=hpnsaEccEraseLog, hpnsaEccSBEOverflow=hpnsaEccSBEOverflow, hpnsaEccTotalErrCorrected=hpnsaEccTotalErrCorrected, hpnsaEccAgentName=hpnsaEccAgentName, hpnsaEccPollTime=hpnsaEccPollTime, hpnsaEccStatus=hpnsaEccStatus, hpnsaECC=hpnsaECC, nm=nm)
(integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, constraints_union, constraints_intersection, value_size_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ConstraintsUnion', 'ConstraintsIntersection', 'ValueSizeConstraint', 'ValueRangeConstraint') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (counter64, mib_identifier, bits, mib_scalar, mib_table, mib_table_row, mib_table_column, counter32, notification_type, iso, integer32, gauge32, ip_address, enterprises, unsigned32, object_identity, notification_type, module_identity, time_ticks) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter64', 'MibIdentifier', 'Bits', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter32', 'NotificationType', 'iso', 'Integer32', 'Gauge32', 'IpAddress', 'enterprises', 'Unsigned32', 'ObjectIdentity', 'NotificationType', 'ModuleIdentity', 'TimeTicks') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') hp = mib_identifier((1, 3, 6, 1, 4, 1, 11)) nm = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2)) hpnsa = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 23)) hpnsa_ecc = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 23, 6)) hpnsa_ecc_mib_rev = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 1)) hpnsa_ecc_agent = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 2)) hpnsa_ecc_log = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3)) hpnsa_ecc_mib_rev_major = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnsaEccMibRevMajor.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccMibRevMajor.setDescription('The major revision level of the MIB.') hpnsa_ecc_mib_rev_minor = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnsaEccMibRevMinor.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccMibRevMinor.setDescription('The minor revision level of the MIB.') hpnsa_ecc_agent_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 2, 1)) if mibBuilder.loadTexts: hpnsaEccAgentTable.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccAgentTable.setDescription('A table of SNMP Agents that satisfy requests for this MIB.') hpnsa_ecc_agent_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 2, 1, 1)).setIndexNames((0, 'HPNSAECC-MIB', 'hpnsaEccAgentIndex')) if mibBuilder.loadTexts: hpnsaEccAgentEntry.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccAgentEntry.setDescription('A description of the agents that access ECC Memory related information.') hpnsa_ecc_agent_index = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 2, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnsaEccAgentIndex.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccAgentIndex.setDescription('A unique index for this module description.') hpnsa_ecc_agent_name = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 2, 1, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnsaEccAgentName.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccAgentName.setDescription('Name of the Agent/Agents satisfying SNMP requests for this MIB.') hpnsa_ecc_agent_version = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 2, 1, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 5))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnsaEccAgentVersion.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccAgentVersion.setDescription('Version number of the Agent/Agents satisfying SNMP requests for this MIB.') hpnsa_ecc_agent_date = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 2, 1, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(6, 6)).setFixedLength(6)).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnsaEccAgentDate.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccAgentDate.setDescription('The date on which this Agent was created. field octets contents range _________________________________________________ 1 1 years since 1900 0..255 2 2 month 1..12 3 3 day 1..31 4 4 hour 0..23 5 5 minute 0..59 6 6 second 0..59 ') hpnsa_ecc_status = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('notSupported', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnsaEccStatus.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccStatus.setDescription('ECC memory system tracking status: 1 - ECC memory is not supported in this machine 2 - ECC memory logging is disabled due to some errors (example, too many single or multiple bits error occurred in a short period of time) 3 - ECC memory logging is enabled and functioning.') hpnsa_ecc_erase_log = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 2), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnsaEccEraseLog.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccEraseLog.setDescription("Set this variable to integer value 1234 and without changing it again before hpnsaEccPollTime expired, will erase the system's Log area.") hpnsa_ecc_total_err_corrected = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnsaEccTotalErrCorrected.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccTotalErrCorrected.setDescription('Total number of ECC memory error had occurred and been corrected.') hpnsa_ecc_trap_enable = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 0))).clone(namedValues=named_values(('trapOn', 1), ('trapOff', 0)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnsaEccTrapEnable.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccTrapEnable.setDescription('Set this variable to 1, the ECC memory errors are forwarded as SNMP traps. No trap are generated if this variable is set to 0.') hpnsa_ecc_trap_delay = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 5), integer32().subtype(subtypeSpec=value_range_constraint(100, 5000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnsaEccTrapDelay.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccTrapDelay.setDescription('Delay in milliseconds between the sending of ECC traps.') hpnsa_ecc_poll_time = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 6), integer32().subtype(subtypeSpec=value_range_constraint(60, 2592000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnsaEccPollTime.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccPollTime.setDescription('Seconds between checking of ECC memory error.') hpnsa_ecc_mem_err_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 7)) if mibBuilder.loadTexts: hpnsaEccMemErrTable.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccMemErrTable.setDescription('A table of ECC memory error descriptions.') hpnsa_ecc_mem_err_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 7, 1)).setIndexNames((0, 'HPNSAECC-MIB', 'hpnsaEccMemErrIndex')) if mibBuilder.loadTexts: hpnsaEccMemErrEntry.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccMemErrEntry.setDescription('ECC memory error description.') hpnsa_ecc_mem_err_index = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 7, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnsaEccMemErrIndex.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccMemErrIndex.setDescription('A unique index for the ECC memory error log.') hpnsa_ecc_mem_err_time = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 7, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnsaEccMemErrTime.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccMemErrTime.setDescription('The Server local time when the ECC memory error occurred.') hpnsa_ecc_mem_err_desc = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 7, 1, 3), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnsaEccMemErrDesc.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccMemErrDesc.setDescription('A string indicating the SIMM location when ECC memory error occurred.') hpnsa_ecc_error_corrected = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 23, 6) + (0, 4353)) if mibBuilder.loadTexts: hpnsaEccErrorCorrected.setDescription('An ECC single-bit error has been corrected in one of the memory modules') hpnsa_ecc_sbe_overflow = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 23, 6) + (0, 4354)) if mibBuilder.loadTexts: hpnsaEccSBEOverflow.setDescription("Error logging for ECC single-bit errors has been disabled due to too many SBE's detected in a short time period") hpnsa_ecc_memory_resize = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 23, 6) + (0, 4355)) if mibBuilder.loadTexts: hpnsaEccMemoryResize.setDescription('ECC Memory size has been adjusted during the Power-On-Self-Test during the last boot due to a failed memory module') hpnsa_ecc_multi_bit_error = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 23, 6) + (0, 4357)) if mibBuilder.loadTexts: hpnsaEccMultiBitError.setDescription('An ECC double-bit error has occurred in one of the memory modules') hpnsa_ecc_multi_bit_error_overflow = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 23, 6) + (0, 4358)) if mibBuilder.loadTexts: hpnsaEccMultiBitErrorOverflow.setDescription("Error logging for ECC multiple-bit errors has been disabled due to too many MBE's detected in a short time period") mibBuilder.exportSymbols('HPNSAECC-MIB', hpnsa=hpnsa, hpnsaEccMemErrDesc=hpnsaEccMemErrDesc, hpnsaEccAgentVersion=hpnsaEccAgentVersion, hp=hp, hpnsaEccMibRevMajor=hpnsaEccMibRevMajor, hpnsaEccMemErrTable=hpnsaEccMemErrTable, hpnsaEccLog=hpnsaEccLog, hpnsaEccAgentEntry=hpnsaEccAgentEntry, hpnsaEccAgentDate=hpnsaEccAgentDate, hpnsaEccAgentIndex=hpnsaEccAgentIndex, hpnsaEccMibRev=hpnsaEccMibRev, hpnsaEccMibRevMinor=hpnsaEccMibRevMinor, hpnsaEccMemErrEntry=hpnsaEccMemErrEntry, hpnsaEccErrorCorrected=hpnsaEccErrorCorrected, hpnsaEccAgent=hpnsaEccAgent, hpnsaEccMemErrTime=hpnsaEccMemErrTime, hpnsaEccMemErrIndex=hpnsaEccMemErrIndex, hpnsaEccMemoryResize=hpnsaEccMemoryResize, hpnsaEccMultiBitErrorOverflow=hpnsaEccMultiBitErrorOverflow, hpnsaEccMultiBitError=hpnsaEccMultiBitError, hpnsaEccTrapEnable=hpnsaEccTrapEnable, hpnsaEccAgentTable=hpnsaEccAgentTable, hpnsaEccTrapDelay=hpnsaEccTrapDelay, hpnsaEccEraseLog=hpnsaEccEraseLog, hpnsaEccSBEOverflow=hpnsaEccSBEOverflow, hpnsaEccTotalErrCorrected=hpnsaEccTotalErrCorrected, hpnsaEccAgentName=hpnsaEccAgentName, hpnsaEccPollTime=hpnsaEccPollTime, hpnsaEccStatus=hpnsaEccStatus, hpnsaECC=hpnsaECC, nm=nm)
""" return the taker/maker commission rate """ class CommissionRate: def __init__(self): self.symbol = "" self.makerCommissionRate = 0.0 self.takerCommissionRate = 0.0 @staticmethod def json_parse(json_data): result = CommissionRate() result.symbol = json_data.get_string("symbol") result.makerCommissionRate = json_data.get_float("makerCommissionRate") result.takerCommissionRate = json_data.get_float("takerCommissionRate") return result
""" return the taker/maker commission rate """ class Commissionrate: def __init__(self): self.symbol = '' self.makerCommissionRate = 0.0 self.takerCommissionRate = 0.0 @staticmethod def json_parse(json_data): result = commission_rate() result.symbol = json_data.get_string('symbol') result.makerCommissionRate = json_data.get_float('makerCommissionRate') result.takerCommissionRate = json_data.get_float('takerCommissionRate') return result
# status: testado com exemplos da prova if __name__ == '__main__': n = int(input()) cubes = [int(x) for x in input().split()] ways = 0 for x in range(0, n): x_sum = cubes[x] for y in range(x, n): if x == y: if cubes[y] % 8 == 0: ways += 1 else: x_sum += cubes[y] if x_sum % 8 == 0: ways += 1 print(ways)
if __name__ == '__main__': n = int(input()) cubes = [int(x) for x in input().split()] ways = 0 for x in range(0, n): x_sum = cubes[x] for y in range(x, n): if x == y: if cubes[y] % 8 == 0: ways += 1 else: x_sum += cubes[y] if x_sum % 8 == 0: ways += 1 print(ways)
""" Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sorted in ascending from left to right. Integers in each column are sorted in ascending from top to bottom. """ class Solution240: pass
""" Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sorted in ascending from left to right. Integers in each column are sorted in ascending from top to bottom. """ class Solution240: pass
def albumFromID(id:int): return f'https://www.jiosaavn.com/api.php?__call=content.getAlbumDetails&_format=json&cc=in&_marker=0%3F_marker=0&albumid={id}' def albumsearchFromSTRING(query:str): return f'https://www.jiosaavn.com/api.php?__call=autocomplete.get&_format=json&_marker=0&cc=in&includeMetaTags=1&query={"+".join(query.split(" "))}' def songFromID(id:str): return f'https://www.jiosaavn.com/api.php?__call=song.getDetails&cc=in&_marker=0%3F_marker%3D0&_format=json&pids={id}' def songsearchFromSTRING(query:str,p:int,n:int): return f'https://www.jiosaavn.com/api.php?p={p}&_format=json&_marker=0&api_version=4&ctx=wap6dot0&n={n}&__call=search.getResults&q={"+".join(query.split(" "))}' def lyricsFromID(id:str): return f'https://www.jiosaavn.com/api.php?__call=lyrics.getLyrics&ctx=web6dot0&api_version=4&_format=json&_marker=0%3F_marker=0&lyrics_id={id}' def playlistFromID(id:str): return f'https://www.jiosaavn.com/api.php?__call=playlist.getDetails&_format=json&cc=in&_marker=0%3F_marker%3D0&listid={id}'
def album_from_id(id: int): return f'https://www.jiosaavn.com/api.php?__call=content.getAlbumDetails&_format=json&cc=in&_marker=0%3F_marker=0&albumid={id}' def albumsearch_from_string(query: str): return f"https://www.jiosaavn.com/api.php?__call=autocomplete.get&_format=json&_marker=0&cc=in&includeMetaTags=1&query={'+'.join(query.split(' '))}" def song_from_id(id: str): return f'https://www.jiosaavn.com/api.php?__call=song.getDetails&cc=in&_marker=0%3F_marker%3D0&_format=json&pids={id}' def songsearch_from_string(query: str, p: int, n: int): return f"https://www.jiosaavn.com/api.php?p={p}&_format=json&_marker=0&api_version=4&ctx=wap6dot0&n={n}&__call=search.getResults&q={'+'.join(query.split(' '))}" def lyrics_from_id(id: str): return f'https://www.jiosaavn.com/api.php?__call=lyrics.getLyrics&ctx=web6dot0&api_version=4&_format=json&_marker=0%3F_marker=0&lyrics_id={id}' def playlist_from_id(id: str): return f'https://www.jiosaavn.com/api.php?__call=playlist.getDetails&_format=json&cc=in&_marker=0%3F_marker%3D0&listid={id}'
def normalize_inputs(data): """ Normalizes the inputs to [-1, 1] :param data: input data array :return: normalized data to [-1, 1] """ data = (data - 127.5) / 127.5 return data
def normalize_inputs(data): """ Normalizes the inputs to [-1, 1] :param data: input data array :return: normalized data to [-1, 1] """ data = (data - 127.5) / 127.5 return data
def samesign(a, b): return a * b > 0 def bisect(func, low, high): 'Find root of continuous function where f(low) and f(high) have opposite signs' assert not samesign(func(low), func(high)) for i in range(54): midpoint = (low + high) / 2.0 if samesign(func(low), func(midpoint)): low = midpoint else: high = midpoint return midpoint def f(x): return x**3 + x - 1 x = bisect(f, 0, 1) print(x, f(x))
def samesign(a, b): return a * b > 0 def bisect(func, low, high): """Find root of continuous function where f(low) and f(high) have opposite signs""" assert not samesign(func(low), func(high)) for i in range(54): midpoint = (low + high) / 2.0 if samesign(func(low), func(midpoint)): low = midpoint else: high = midpoint return midpoint def f(x): return x ** 3 + x - 1 x = bisect(f, 0, 1) print(x, f(x))
i = 1 while i <= 9: j = 1 while j <= i: print("{}x{}={}\t".format(j, i, i * j), end='') j += 1 print() i += 1
i = 1 while i <= 9: j = 1 while j <= i: print('{}x{}={}\t'.format(j, i, i * j), end='') j += 1 print() i += 1
''' Default quantization scheme The options are: iteration: Specify numbers of images for quantization use_avg: Whether to use AVG method to calculate scale data_scale: Specify data_scale to scale Min and Max mean: When firstconv need mean preprocess input std: When fistconv need std preprocess input per_channel: Whether to quantize weight for each channel ''' mlu_qscheme = { 'iteration' : 1, 'use_avg' : False, 'data_scale': 1.0, 'mean' : [0,0,0], 'std' : [1,1,1], 'firstconv' : True, 'per_channel': False } CONV_HYPER_PARAMS = { 'alpha' : 0.04, 'beta' : 0.1, 'gamma' : 2, 'delta' : 100, 'th' : 0.03, } LINEAR_HYPER_PARAMS = { 'alpha' : 0.04, 'beta' : 0.1, 'gamma' : 2, 'delta' : 100, 'th' : 0.01, } class QuantifyParams(object): r"""Base class for all quantify module params.""" def __init__(self): self.init_bitwidth = 8 self.max_bitwidth = 31 self.quantify_rate = 0.01 self.alpha = 0.04 self.beta = 0.1 self.gamma = 2 self.delta = 100 self.th = 0.03 self.steps_per_epoch = 10000 def set_bitwidth(self, init_bitwidth = 8, max_bitwidth = 31): self.init_bitwidth = init_bitwidth self.max_bitwidth = max_bitwidth def set_hyperparam(self, quantify_rate = 0.01, alpha = 0.04, beta = 0.1, gamma = 2, delta = 100, th = 0.03): self.quantify_rate = quantify_rate self.alpha = alpha self.beta = beta self.gamma = gamma self.delta = delta self.th = th class MatmulQuantifyParams(QuantifyParams): def __init__(self): super(QuantifyParams, self).__init__() self.set_hyperparam(th = 0.01) class ConvQuantifyParams(QuantifyParams): def __init__(self): super(QuantifyParams, self).__init__() self.set_hyperparam(th = 0.03)
""" Default quantization scheme The options are: iteration: Specify numbers of images for quantization use_avg: Whether to use AVG method to calculate scale data_scale: Specify data_scale to scale Min and Max mean: When firstconv need mean preprocess input std: When fistconv need std preprocess input per_channel: Whether to quantize weight for each channel """ mlu_qscheme = {'iteration': 1, 'use_avg': False, 'data_scale': 1.0, 'mean': [0, 0, 0], 'std': [1, 1, 1], 'firstconv': True, 'per_channel': False} conv_hyper_params = {'alpha': 0.04, 'beta': 0.1, 'gamma': 2, 'delta': 100, 'th': 0.03} linear_hyper_params = {'alpha': 0.04, 'beta': 0.1, 'gamma': 2, 'delta': 100, 'th': 0.01} class Quantifyparams(object): """Base class for all quantify module params.""" def __init__(self): self.init_bitwidth = 8 self.max_bitwidth = 31 self.quantify_rate = 0.01 self.alpha = 0.04 self.beta = 0.1 self.gamma = 2 self.delta = 100 self.th = 0.03 self.steps_per_epoch = 10000 def set_bitwidth(self, init_bitwidth=8, max_bitwidth=31): self.init_bitwidth = init_bitwidth self.max_bitwidth = max_bitwidth def set_hyperparam(self, quantify_rate=0.01, alpha=0.04, beta=0.1, gamma=2, delta=100, th=0.03): self.quantify_rate = quantify_rate self.alpha = alpha self.beta = beta self.gamma = gamma self.delta = delta self.th = th class Matmulquantifyparams(QuantifyParams): def __init__(self): super(QuantifyParams, self).__init__() self.set_hyperparam(th=0.01) class Convquantifyparams(QuantifyParams): def __init__(self): super(QuantifyParams, self).__init__() self.set_hyperparam(th=0.03)
class StateMachine(object): """ Abstract character-driven finite state machine implementation, used to chop down and transform strings. Useful for implementig simple transpilators, compressors and so on. Important: when implementing this class, you must set the :attr:`current` attribute to a key defined in :attr:`jumps` dict. """ jumps = {} # finite state machine jumps start = "" # character which started current state current = "" # current state (an initial value must be set) pending = "" # unprocessed remaining data streaming = False # stream mode toggle @property def nearest(self): """ Get the next state jump. The next jump is calculated looking at :attr:`current` state and its possible :attr:`jumps` to find the nearest and bigger option in :attr:`pending` data. If none is found, the returned next state label will be None. :returns: tuple with index, substring and next state label :rtype: tuple """ try: options = self.jumps[self.current] except KeyError: raise KeyError( "Current state %r not defined in %s.jumps." % (self.current, self.__class__) ) offset = len(self.start) index = len(self.pending) if self.streaming: index -= max(map(len, options)) key = (index, 1) result = (index, "", None) for amark, anext in options.items(): asize = len(amark) aindex = self.pending.find(amark, offset, index + asize) if aindex > -1: index = aindex akey = (aindex, -asize) if akey < key: key = akey result = (aindex, amark, anext) return result def __init__(self, data=""): """ :param data: content will be added to pending data :type data: str """ self.pending += data def __iter__(self): """ Yield over result chunks, consuming :attr:`pending` data. On :attr:`streaming` mode, yield only finished states. On non :attr:`streaming` mode, yield last state's result chunk even if unfinished, consuming all pending data. :yields: transformation result chunka :ytype: str """ index, mark, next = self.nearest while next is not None: data = self.transform(self.pending[:index], mark, next) self.start = mark self.current = next self.pending = self.pending[index:] if data: yield data index, mark, next = self.nearest if not self.streaming: data = self.transform(self.pending, mark, next) self.start = "" self.pending = "" if data: yield data def transform(self, data, mark, next): """ Apply the appropriate transformation function on current state data, which is supposed to end at this point. It is expected transformation logic makes use of :attr:`start`, :attr:`current` and :attr:`streaming` instance attributes to bettee know the state is being left. :param data: string to transform (includes start) :type data: str :param mark: string producing the new state jump :type mark: str :param next: state is about to star, None on finish :type next: str or None :returns: transformed data :rtype: str """ method = getattr(self, "transform_%s" % self.current, None) return method(data, mark, next) if method else data def feed(self, data=""): """ Optionally add pending data, switch into streaming mode, and yield result chunks. :yields: result chunks :ytype: str """ self.streaming = True self.pending += data for i in self: yield i def finish(self, data=""): """ Optionally add pending data, turn off streaming mode, and yield result chunks, which implies all pending data will be consumed. :yields: result chunks :ytype: str """ self.pending += data self.streaming = False for i in self: yield i
class Statemachine(object): """ Abstract character-driven finite state machine implementation, used to chop down and transform strings. Useful for implementig simple transpilators, compressors and so on. Important: when implementing this class, you must set the :attr:`current` attribute to a key defined in :attr:`jumps` dict. """ jumps = {} start = '' current = '' pending = '' streaming = False @property def nearest(self): """ Get the next state jump. The next jump is calculated looking at :attr:`current` state and its possible :attr:`jumps` to find the nearest and bigger option in :attr:`pending` data. If none is found, the returned next state label will be None. :returns: tuple with index, substring and next state label :rtype: tuple """ try: options = self.jumps[self.current] except KeyError: raise key_error('Current state %r not defined in %s.jumps.' % (self.current, self.__class__)) offset = len(self.start) index = len(self.pending) if self.streaming: index -= max(map(len, options)) key = (index, 1) result = (index, '', None) for (amark, anext) in options.items(): asize = len(amark) aindex = self.pending.find(amark, offset, index + asize) if aindex > -1: index = aindex akey = (aindex, -asize) if akey < key: key = akey result = (aindex, amark, anext) return result def __init__(self, data=''): """ :param data: content will be added to pending data :type data: str """ self.pending += data def __iter__(self): """ Yield over result chunks, consuming :attr:`pending` data. On :attr:`streaming` mode, yield only finished states. On non :attr:`streaming` mode, yield last state's result chunk even if unfinished, consuming all pending data. :yields: transformation result chunka :ytype: str """ (index, mark, next) = self.nearest while next is not None: data = self.transform(self.pending[:index], mark, next) self.start = mark self.current = next self.pending = self.pending[index:] if data: yield data (index, mark, next) = self.nearest if not self.streaming: data = self.transform(self.pending, mark, next) self.start = '' self.pending = '' if data: yield data def transform(self, data, mark, next): """ Apply the appropriate transformation function on current state data, which is supposed to end at this point. It is expected transformation logic makes use of :attr:`start`, :attr:`current` and :attr:`streaming` instance attributes to bettee know the state is being left. :param data: string to transform (includes start) :type data: str :param mark: string producing the new state jump :type mark: str :param next: state is about to star, None on finish :type next: str or None :returns: transformed data :rtype: str """ method = getattr(self, 'transform_%s' % self.current, None) return method(data, mark, next) if method else data def feed(self, data=''): """ Optionally add pending data, switch into streaming mode, and yield result chunks. :yields: result chunks :ytype: str """ self.streaming = True self.pending += data for i in self: yield i def finish(self, data=''): """ Optionally add pending data, turn off streaming mode, and yield result chunks, which implies all pending data will be consumed. :yields: result chunks :ytype: str """ self.pending += data self.streaming = False for i in self: yield i
""" Utility functions for i3 blocks formatting """ ################################################################################ def _to_sRGB(component): """ Convert linear Color to sRGB """ component = 12.92 * component if component <= 0.0031308 else (1.055 * (component**(1/2.4))) - 0.055 return int(255.9999 * component) def _from_sRGB(component): """ Linearize sRGB color """ component /= 255.0 return component / 12.92 if component <= 0.04045 else ((component+0.055)/1.055)**2.4 def _from_Hex(color): """ Converts #RRGGBB hex code into (r,g,b) tuple """ color = color.lstrip('#') return [int(color[i:i+2], 16) for i in range(0, 6, 2)] def _to_Hex(color): """ Converts (r,g,b) tuple into #RRGGBB hex code """ return "".join(f"{component:02x}" for component in color) def gradient_at(gradient, mix, gamma=0.43): """ Calculates color at specified point in gradient. Parameters ----------- gradient : list list of (<hex code>, <stop>) tuples sorted by stop mix : float position on the gradient Returns ------- tuple (r,g,b)-tuple containing color at point """ # Get first two tuples (<hex code1>, <stop1>), (<hex_code2>, <stop2>) where stop2 > mix color1, color2 = next((a,b) for a,b in (gradient[i:i+2] for i in range(len(gradient)-1)) if b[1] >= mix) color1, stop1 = color1 color2, stop2 = color2 # Scale mix to interval [stop1, stop2] mix = (mix - stop1) / (stop2 - stop1) # Convert both colors from hex codes to (r,g,b)-tuples color1 = _from_Hex(color1) color2 = _from_Hex(color2) # Convert both colors to linear representation color1 = [_from_sRGB(component) for component in color1] color2 = [_from_sRGB(component) for component in color2] # Calculate color brightnesses bright1 = sum(color1)**gamma bright2 = sum(color2)**gamma # Interpolate Colors lerp = lambda a,b,t: a*(1-t) + b*t intensity = lerp(bright1, bright2, mix)**(1/gamma) color = [lerp(component1, component2, mix) for component1, component2 in zip(color1, color2)] if sum(color) != 0: color = tuple((component * intensity / sum(color)) for component in color) # Return hex code for color return _to_Hex(_to_sRGB(component) for component in color) def span(text, font=None, fg=None, bg=None): """ Generate pango formatting span around text """ return ("<span" + (f" font='{font}'" if font else "") + (f" foreground='#{fg}'" if fg else "") + (f" background='#{bg}'" if bg else "") + f">{text}</span>") def fa(codepoint): """ Generate formatting for Font Awesome Icond """ return f"<span font='Font Awesome Heavy'>&#x{codepoint};</span>"
""" Utility functions for i3 blocks formatting """ def _to_s_rgb(component): """ Convert linear Color to sRGB """ component = 12.92 * component if component <= 0.0031308 else 1.055 * component ** (1 / 2.4) - 0.055 return int(255.9999 * component) def _from_s_rgb(component): """ Linearize sRGB color """ component /= 255.0 return component / 12.92 if component <= 0.04045 else ((component + 0.055) / 1.055) ** 2.4 def _from__hex(color): """ Converts #RRGGBB hex code into (r,g,b) tuple """ color = color.lstrip('#') return [int(color[i:i + 2], 16) for i in range(0, 6, 2)] def _to__hex(color): """ Converts (r,g,b) tuple into #RRGGBB hex code """ return ''.join((f'{component:02x}' for component in color)) def gradient_at(gradient, mix, gamma=0.43): """ Calculates color at specified point in gradient. Parameters ----------- gradient : list list of (<hex code>, <stop>) tuples sorted by stop mix : float position on the gradient Returns ------- tuple (r,g,b)-tuple containing color at point """ (color1, color2) = next(((a, b) for (a, b) in (gradient[i:i + 2] for i in range(len(gradient) - 1)) if b[1] >= mix)) (color1, stop1) = color1 (color2, stop2) = color2 mix = (mix - stop1) / (stop2 - stop1) color1 = _from__hex(color1) color2 = _from__hex(color2) color1 = [_from_s_rgb(component) for component in color1] color2 = [_from_s_rgb(component) for component in color2] bright1 = sum(color1) ** gamma bright2 = sum(color2) ** gamma lerp = lambda a, b, t: a * (1 - t) + b * t intensity = lerp(bright1, bright2, mix) ** (1 / gamma) color = [lerp(component1, component2, mix) for (component1, component2) in zip(color1, color2)] if sum(color) != 0: color = tuple((component * intensity / sum(color) for component in color)) return _to__hex((_to_s_rgb(component) for component in color)) def span(text, font=None, fg=None, bg=None): """ Generate pango formatting span around text """ return '<span' + (f" font='{font}'" if font else '') + (f" foreground='#{fg}'" if fg else '') + (f" background='#{bg}'" if bg else '') + f'>{text}</span>' def fa(codepoint): """ Generate formatting for Font Awesome Icond """ return f"<span font='Font Awesome Heavy'>&#x{codepoint};</span>"
def test_preamble(l: list) -> bool: t = l.pop() for i in range(len(l) - 1): if t - l[i] in l[i + 1:]: return True return False def find_preamble(s: str, p: int) -> int: l = [int(l) for l in s.splitlines()] for i in range(len(l) - p): if not test_preamble(l[i:i + p + 1]): return l[i + p] def run_tests(): test_input = """35 20 15 25 47 40 62 55 65 95 102 117 150 182 127 219 299 277 309 576""" test_output = 127 assert find_preamble(test_input, 5) == test_output def run() -> int: with open("inputs/input_09.txt") as file: data = file.read() return find_preamble(data, 25) if __name__ == "__main__": run_tests() print(run())
def test_preamble(l: list) -> bool: t = l.pop() for i in range(len(l) - 1): if t - l[i] in l[i + 1:]: return True return False def find_preamble(s: str, p: int) -> int: l = [int(l) for l in s.splitlines()] for i in range(len(l) - p): if not test_preamble(l[i:i + p + 1]): return l[i + p] def run_tests(): test_input = '35\n 20\n 15\n 25\n 47\n 40\n 62\n 55\n 65\n 95\n 102\n 117\n 150\n 182\n 127\n 219\n 299\n 277\n 309\n 576' test_output = 127 assert find_preamble(test_input, 5) == test_output def run() -> int: with open('inputs/input_09.txt') as file: data = file.read() return find_preamble(data, 25) if __name__ == '__main__': run_tests() print(run())